# Neural Statistical Functions

*Daniel Xu, Yuxin Xie, Minghao Guo, Haixu Wu, Wojciech Matusik*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/154480) · [Open on the map](../papers.html#p154480)

Category: [Time Series, PDEs & Probabilistic ML](../pcat/9.md) › [Latent Space Bayesian Optimization](../pgroup/520.md) · Type: new method · Keywords: neural statistical functions, prefix statistics, interval-conditional framework, statistical inference, model efficiency, physical processes

## Summary
Neural Statistical Functions is a new family of models learned from pre-trained single-sample predictors and scattered data samples that directly infer statistics over continuous operating condition ranges without explicit sampling, achieving up to a 100× reduction in model evaluations.

## Explained to a 5-year-old
Deep learning models usually look at one thing at a time. But sometimes we need to know many things like total energy, middle values, or highest stress all at once. Doing that many times is slow and takes a lot of time. This paper creates a new way to learn from old models and a few data points so we can get all those statistics quickly. It helps engineers get answers faster.

## Explained to a 5-year-old, longer
Deep learning models are like smart computers that can guess things, but they usually work on one example at a time. In real life, we often need to know not just one thing, but many things like how much total energy is used, what the middle value is, or what the highest stress is. To get all those numbers, we normally have to run the model many times, which is slow and uses a lot of computer power. This paper introduces a new idea called prefix statistics that helps turn many different kinds of statistics into a single, easier problem. By using a special learning rule that connects these statistics to the original model's predictions, the researchers can train a new model that knows how to compute many statistics at once. The new model is built from already trained models and a few scattered data points, so it does not need to start from scratch. It can directly give answers for a whole range of conditions without having to sample each one individually. This makes it possible to get answers for engineering tasks like checking energy use, predicting wind forces, or measuring stress in car crashes much faster. The speed improvement is huge-up to a hundred times fewer calculations compared to the old way. Because it works on many kinds of statistics, it can be useful in many fields where numbers like totals, averages, or extremes matter. The approach also keeps the accuracy high, so the fast answers are still reliable. Overall, this method helps engineers and scientists get quick, trustworthy statistical insights without the heavy computational cost.

## For a technical reader
The paper addresses the inefficiency of repeatedly running deep learning models to compute statistical quantities such as integrals, quantiles, or maxima. It proposes a framework that leverages pre-trained single-sample predictors and scattered data to learn a model capable of directly estimating these statistics over a continuous range. By introducing prefix statistics, diverse statistical functions are unified under an interval-conditional formulation, and a learning objective ties them to the original regression task. The resulting model can evaluate multiple statistics in a single forward pass, achieving speedups of up to two orders of magnitude compared to repeated inference. This approach is particularly useful for engineering simulations where rapid, accurate statistical estimates are needed for decision-making.

## Problem
Real-world decision-making tasks often require estimating statistical quantities such as integrals, quantiles, and maxima through repeated inference, which leads to substantial latency and computational cost. This repeated inference is inefficient and hampers applications involving uncertainty and extreme-value analysis.

## Method
The approach learns models from pre-trained single-sample predictors and scattered data samples, using prefix statistics to unify diverse statistical functions into an interval-conditional framework, where a principled identity between prefix statistics and individual-case regression serves as the learning objective.

## Results
Neural statistical functions achieve strong performance in estimating accumulated energy, quantiles, and maximum stress while achieving up to a 100× reduction in model evaluations.

## Contributions
The paper introduces prefix statistics to unify statistical functions, proposes a learning framework that directly infers statistics over continuous ranges, and demonstrates substantial speedups in model evaluations.

## Practical relevance
The approach enables faster statistical inference for real-world engineering and safety-critical applications, reducing computational cost and latency.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/154480)
