NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Full-Covariance Smoothing of Bayesian Neural Networks for Online Adaptation

Oren Wright, Haoming Jing, Qiaoan Shen, Koichiro Niinuma, Yorie Nakahira, José M. F. MouraarXiv 2026

TL;DR

This paper introduces a novel framework for training Bayesian Neural Networks (BNNs) using full-covariance state-space smoothing. By deriving a missing analytic cross-covariance identity for nonlinear activations, the authors enable single-pass, gradient-free online adaptation that preserves correlations between neurons. The resulting algorithm delivers superior accuracy and calibrated uncertainty in non-stationary environments compared to previous diagonal-covariance methods.

What Problem Does This Paper Address?

Deep learning models excel in static environments but often fail catastrophically when conditions change—such as a robot experiencing a altered control frame or a damaged camera sensor. Standard gradient-based fine-tuning struggles with online adaptation because it requires iterative batch processing, overfits to small streaming datasets, and produces poorly calibrated uncertainty estimates.

Bayesian Neural Networks (BNNs) offer a theoretical solution by tracking probability distributions over weights, allowing models to recursively balance new evidence against prior knowledge. One promising approach treats BNN training as a state estimation problem, using Kalman filtering and Rauch–Tung–Striebel (RTS) smoothing across network layers. However, prior smoothing-based BNNs were restricted to diagonal covariance representations, completely discarding the correlations between neurons. This paper tackles this limitation head-on to enable full-covariance propagation.

Methods

The authors treat a feed-forward neural network's layers as time steps in a state-space model. BNN training is thus transformed into a classical filtering and smoothing problem:

  1. Forward Pass (Moment Propagation): Gaussian moments (means and covariances) are propagated forward through the network layers based on the current prior.
  2. Backward Pass (RTS Smoothing): Weight posteriors are updated in closed form using a single backward pass per training sample, completely bypassing gradient descent or replay buffers.

The core mathematical breakthrough is Theorem 1 (Activation cross-covariance). To perform full RTS updates, the algorithm requires the cross-covariance between a nonlinear activation function's input and its output. The authors derive an exact analytic expression for this missing moment. Combined with existing proofs for activation covariance, this allows full-covariance tracking through nonlinearities like ReLUs.

Additionally, the authors structure each layer to place the activation before the affine transformation ($y = W^T g(x) + b$). This allows them to invoke central-limit-like behavior to approximate only the affine outputs as Gaussian, resulting in a more stable, efficient one-step-per-layer backward update.

Datasets

The method was evaluated across three distinct non-stationary and streaming setups:

  • Modified Moon Dataset: A synthetic binary classification dataset that abruptly and randomly rotates every 500 samples to simulate non-stationary data streams.
  • Gymnasium CartPole (Modified): A continuous-force version of the classic control environment used to evaluate online dynamics learning with highly correlated multivariate outputs (e.g., position and velocity).
  • Siemens Industrial Benchmark: A challenging, high-dimensional (33-D input), stochastic environment mimicking industrial control problems.
  • VLA Adaptation (Robotics): Fine-tuning a pre-trained Vision-Language-Action (VLA) model ($\pi_{0.5}$) on a simulated Franka Emika Panda robot pick-and-place task, where the control frame rotates by $\pi/10$ radians every 60 samples.

Key Insights and Ideas

  • Neuron Correlations Matter: Restricting BNN smoothers to diagonal covariances assumes neurons act independently. Tracking the full covariance matrix preserves vital structural correlations, which proves crucial for rapid recovery after sudden environmental shifts.
  • Rethinking Layer Boundaries: By placing the activation function before the weight multiplication, the quantity being approximated as Gaussian is a weighted sum of many terms (the affine output). This makes the Gaussian assumption much more theoretically sound via the Central Limit Theorem than approximating the activation outputs directly.
  • True Single-Pass Learning: Because the updates are solved in closed form via state-space equations, the network learns from each observation in a single pass without needing gradient iterations or memory-heavy replay buffers.

Key Results

The full-covariance smoothing method consistently outperformed standard stochastic gradient descent (SGD) and state-of-the-art diagonal smoothers (KBNN and TAGI):

  • Non-Stationary Classification: On the rotating Moon dataset, the proposed method adapted to abrupt changes significantly faster than SGD, achieving a mean test accuracy of 92.19% (see Figure 1).
  • Dynamics Learning: In the CartPole and Siemens benchmarks, the model achieved lower one-step and rollout Root Mean Squared Error (RMSE) than competing NN methods, even approaching the performance of exact Gaussian Processes (GPs) without the GP's prohibitive cubic scaling over time (see Figures 2 and 3).
  • VLA Robot Fine-Tuning: The proposed method successfully adapted the VLA model to control-frame rotations, achieving a 79.82% task success rate, vastly outperforming KBNN (63.13%), TAGI (63.57%), and SGD with replay (49.41%) (see Figure 4).
Online adaptation and decision boundaries on the modified Moon dataset.
One-step test RMSE over training samples for the modified CartPole environment.
One-step test RMSE over training samples for the Siemens Industrial Benchmark.
Success rate of the VLA model after fine-tuning under shifting control frames.

Limitations and Future Work

Despite its strong performance, the authors highlight a few key limitations:

  • Computational Complexity: Tracking full covariances scales poorly with layer width ($O(n^2m^3)$ for weight covariance updates). This restricts the method to smaller networks or lightweight adapters unless low-rank or structured covariance approximations are introduced.
  • Independence Assumptions: The framework assumes independence between weights and activations during the forward pass. While common in literature, this assumption may degrade as updates accumulate over long periods.
  • Stationary Priors: The underlying Bayesian recursion assumes a stationary target, meaning the model's adaptation to drift relies on empirical robustness rather than an explicit, principled model of environmental change.

Summary updated

BibTeX
@misc{wright2026full,
  author = {Oren Wright and Haoming Jing and Qiaoan Shen and Koichiro Niinuma and Yorie Nakahira and José M. F. Moura},
  title = {{Full-Covariance Smoothing of Bayesian Neural Networks for Online Adaptation}},
  year = {2026},
  eprint = {2609.27244},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.27244},
}
Figure