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

Variational Filtering for Bayesian Last Layers with an Independent Binary Probit Surrogate

Dimitrije Markovic, Conor Heins, Alexander Tschantz, Christopher L. BuckleyarXiv 2026

This paper introduces IBProbit, a novel variational filtering algorithm for the "Bayesian last layer" of deep neural networks. By treating the final classification layer as a state-space model and using a clever mathematical surrogate for the standard softmax, the authors achieve superior calibration, better out-of-distribution detection, and a 2x speedup in fine-tuning wall-clock time compared to standard baselines.

TL;DR

The authors propose a variational filtering approach for the last layer of deep classifiers that replaces gradient-based head optimization with closed-form, Kalman-style updates. By using an independent binary probit surrogate, they maintain a well-calibrated uncertainty estimate that enables faster convergence and significantly better out-of-distribution detection than standard cross-entropy or existing Bayesian last-layer methods.

What Problem Does This Paper Address?

Modern deep learning models are notoriously overconfident. While they might predict the correct label, their "confidence" (probability score) often doesn't reflect the actual likelihood of being right—a problem known as poor calibration.

Standard solutions like temperature scaling are "post-hoc," meaning they are applied after training is finished. This doesn't help the model learn better features or converge faster. On the other hand, Full Bayesian inference (treating all weights as distributions) is computationally crushing at scale.

The Bayesian Last Layer (BLL) paradigm is a middle ground: keep the backbone deterministic but treat the final layer as a distribution. However, existing BLL methods often still rely on gradient descent to optimize the head or use approximations that don't scale well or maintain high-quality uncertainty.

Methods

The core innovation is treating the last-layer weights as the latent state of a linear-Gaussian state-space model.

  1. The IBProbit Surrogate: Instead of the standard softmax (which is non-conjugate and hard to work with mathematically), the authors use an Independent Binary Probit surrogate. This allows them to lower-bound the categorical likelihood and perform inference using Coordinate-Ascent Variational Inference (CAVI).
  2. Variational Filtering: The algorithm processes data in mini-batches. Each step consists of:
  3. Prediction: A Kalman-style step that adds "process noise." This noise is critical—it accounts for "feature drift" as the backbone is fine-tuned and prevents the model's uncertainty from collapsing to zero as it sees more data.
  4. Update: A closed-form variational update that assimilates the new batch of data.
  5. Efficiency: Because the probit likelihood induces a precision matrix shared across all $K$ classes, the most expensive operations (Cholesky factorizations) only happen once per batch, not once per class. This makes the method scale linearly with the number of classes.

The complete procedure is detailed in Algorithm 1:

Algorithm 1: Variational filtering for the Independent-Binary-Probit last layer

Datasets

The authors evaluated their method using DINOv3 backbones of various sizes (Small to Huge) across several regimes:

  • Linear Probing: Oxford Pets, Food-101, Flowers-102, Stanford Cars, and DTD.
  • Out-of-Distribution (OOD) Detection: CIFAR-10, CIFAR-100, and SVHN.
  • Full-Network Fine-Tuning: ImageNet-1k, with evaluation under distribution shift on ImageNet-R, -A, -V2, and -Sketch.

Key Insights and Ideas

  • No Learning Rate for the Head: Unlike standard heads, the IBProbit head has no learning rate or weight decay. It simply "assimilates" evidence. This removes a major hyperparameter headache for the classification layer.
  • Process Noise as a Calibration Floor: The authors show that process noise isn't just a stabilization trick; it sets a "covariance floor." This ensures the model remains "honestly uncertain" even after seeing millions of samples, which is the primary failure mode of simpler recursive Bayesian updates.
  • Sample Efficiency: Because the head updates are closed-form and conjugate, the classifier becomes accurate much faster than a gradient-trained head. In fine-tuning, the model reaches "converged" performance levels in half the time.
  • Input-Dependent Temperature: The method naturally produces an input-dependent scaling factor (an "internal temperature") that increases for inputs in feature directions the model hasn't seen much, naturally leading to better OOD detection.

Key Results

  • Superior Probing: On the DINOv3-Huge backbone, IBProbit achieved the best accuracy and Negative Log-Likelihood (NLL) on all five downstream tasks.
  • OOD Performance: In OOD detection (e.g., CIFAR-10 vs. SVHN), IBProbit reduced the false-positive rate (at 95% true-positive rate) by a factor of 1.4x to 3.2x compared to the best baseline.
  • 2x Speedup: When fine-tuning DINOv3-Huge on ImageNet-1k, IBProbit reached the final accuracy and calibration metrics of the cross-entropy baseline in half the wall-clock time.
  • Scaling: The method's memory advantage becomes clear in many-class regimes; for ImageNet-1k, the IBProbit head has 36% fewer uncertainty parameters than the diagonal-covariance VBLL baseline.

Limitations and Future Work

  • Hyperparameter Transfer: The process noise parameter ($q$) needs to be rescaled if the total training duration changes. The authors provide a scaling rule ($q \propto M^{-2}$), but it requires careful application.
  • Class Independence Assumption: The shared covariance assumes classes are independent. This might be a limitation for datasets with extreme class imbalance or strong hierarchical structures.
  • Future Directions: The authors suggest extending this to a fully Bayesian treatment of the entire network by combining the IBProbit head with recent Bayesian optimizers for the backbone weights.

Summary updated

BibTeX
@misc{markovic2026variational,
  author = {Dimitrije Markovic and Conor Heins and Alexander Tschantz and Christopher L. Buckley},
  title = {{Variational Filtering for Bayesian Last Layers with an Independent Binary Probit Surrogate}},
  year = {2026},
  eprint = {2610.16578},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.16578},
}
Figure