NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Exact Gaussian Moment Matching for Residual Networks: a Second-Order Method

Simon Kuang, Xinfan Lin

NeurIPS page · Open on the map

Category: Time Series, PDEs & Probabilistic ML › Bayesian Inference for Neural Networks · Type: new method · Keywords: Gaussian moment matching, deep residual networks, Bayesian neural networks, uncertainty quantification, deterministic inference

Summary

Exact Gaussian Moment Matching for Residual Networks introduces exact layer-by-layer propagation of mean and covariance for deep residual networks, achieving massive reductions in KL divergence error.

Explained to a 5-year-old

Deep computer programs called neural networks try to guess things. They sometimes get confused about how sure they are. This paper figures out a way to keep track of how sure they are, using math that works exactly. It works for many kinds of computer brains, even those that skip parts. This helps the computers make better guesses and be more trustworthy.

Explained to a 5-year-old, longer

Imagine a big computer brain that learns to do things like recognize pictures or understand words. Sometimes we want to know how confident the brain is in its answers, just like being sure about a guess. The paper creates a special math recipe that tells the brain exactly how to keep track of its confidence, step by step, through all its layers. This recipe works for many different kinds of brain connections, including the shortcuts called residual connections. By using this exact method, the brain’s confidence estimates become much more accurate, leading to better decisions and more trustworthy results. The new method also comes with a proof that shows why it removes small errors and spreads higher-order accuracy throughout the network. This makes the brain’s predictions more reliable, especially in important tasks where we need to be sure about the outcomes.

For a technical reader

The method Exact Gaussian Moment Matching for Residual Networks provides closed-form updates for the mean and covariance of a Gaussian distribution as it passes through each layer of a deep residual network. By deriving exact moment-matching formulas for activations such as ReLU, GeLU, probit, Heaviside, and sine, the approach eliminates the leading approximation errors that affect existing deterministic inference schemes. Experiments on random networks and a variational Bayesian neural network demonstrate up to a millionfold reduction in KL divergence error compared to popular alternatives. The paper also proves a smooth-distance error bound that guarantees higher-order accuracy propagation under mild regularity assumptions.

Problem

Accurately propagating the mean and covariance of a Gaussian distribution through deep neural networks, especially residual architectures, is challenging due to activation nonlinearities. Existing approximations often incur large errors, motivating the need for exact moment-matching techniques.

Method

The approach derives exact formulas for the mean and covariance after each layer by matching moments for a range of activation functions, applicable to both standard and residual connections. It implements layer-by-layer moment matching to propagate Gaussian statistics through the network. The resulting deterministic inference is validated against Monte Carlo sampling.

Results

The approach achieves orders-of-magnitude improvements in KL divergence error, up to a millionfold on random networks, and hundredfold reductions compared to a state-of-the-art deterministic inference method on a variational Bayesian neural network.

Contributions

It provides exact moment-matching derivations for multiple activation functions and residual layers, enabling highly accurate Gaussian propagation and significantly better uncertainty estimates for deep networks.

Limitations and assumptions

The analysis assumes Gaussian inputs and relies on regularity conditions for the error bound; evaluation is limited to random networks and a single variational Bayesian neural network.

Practical relevance

Accurate Gaussian moment propagation can improve reliability of Bayesian deep learning models in safety-critical applications where uncertainty quantification is essential.

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