Manuscript Offprint
arXiv:2610.16578Variational Filtering for Bayesian Last Layers with an Independent Binary Probit Surrogate
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Modern deep classifiers trained by gradient descent need many passes over the data to become accurate, and even then are not always well calibrated; post-hoc temperature scaling corrects calibration after training but cannot influence training-time accuracy or convergence. We propose a variational filtering algorithm for the last layer of deep classifiers, whose parameters are treated as the latent state of a linear-Gaussian state-space model. Each mini-batch is assimilated by an exact prediction step followed by a closed-form variational update, made conjugate by an independent binary probit (IBProbit) surrogate for the categorical likelihood. The filter’s process noise stabilises the updates under feature drift and keeps the predictive distribution from collapsing to a point estimate, allowing the same procedure to be used for linear probing on a frozen backbone and for full-network fine-tuning. We evaluate on DINOv3 backbones against two baselines tuned under an identical protocol: AdamW with cross-entropy and post-hoc temperature scaling, and Variational Bayesian Last Layers (VBLL). As a linear probe on frozen features, IBProbit attains the best accuracy and negative log-likelihood on all five downstream tasks at the largest backbone, and on two of the five at the smallest. In out-of-distribution detection with CIFAR probes on the largest backbone, IBProbit reduces the false-positive rate at 95% true-positive rate by a factor of 1.4 to 3.2 relative to the better of the two baselines, on all three dataset pairs. When the whole network is fine-tuned on ImageNet-1k, IBProbit reaches the final performance of the cross-entropy baseline in half the wall-clock time.
1 Introduction
Modern deep neural networks, despite achieving remarkable predictive accuracy, are often weakly calibrated, as their confidence scores do not reliably reflect the true probability of correctness (Guo et al., 2017). This matters in safety-critical applications such as medical diagnosis, autonomous driving, and financial decision-making, where downstream decisions depend on predicted probabilities, and not just the correctness of the predicted labels. Temperature scaling (Guo et al., 2017) is the standard post-hoc correction and is a strong in-distribution baseline, but it is a one-parameter correction applied after training on a separate validation split; it cannot influence the learned features, and it offers no mechanism to keep a model calibrated during training or fine-tuning, where the feature distribution is itself shifting.
Bayesian approaches to deep learning offer a principled alternative, replacing a point estimate of the weights with a distribution and propagating the associated uncertainty into predictions (Blundell et al., 2015; Izmailov et al., 2021). Full Bayesian inference over all network parameters remains computationally prohibitive at scale. The “Bayesian last-layer” (BLL) paradigm is a practical compromise: only the final classification layer is treated probabilistically, while the feature extractor remains deterministic (Kristiadi et al., 2020; Daxberger et al., 2021). This preserves the representational power of large pretrained backbones while adding meaningful epistemic uncertainty at a small fraction of the compute cost. Existing sampling-free BLL methods either rely on softmax-bound ELBOs that still require gradient-based head optimization (VBLL (Harrison et al., 2024)) or on post-hoc Laplace approximations whose uncertainty quality is bounded by the converged point estimate (Daxberger et al., 2021).
We build on Wojnowicz et al. (2022), who introduce categorical-from-binary (CB) likelihoods: categorical models whose likelihood is lower-bounded by a product of independent per-class binary likelihoods evaluated at the one-hot encoding of the label, so that this independent binary (IB) model can serve as a tractable surrogate for posterior inference. The surrogate model admits a conjugate Gaussian update that we can solve in closed form via coordinate-ascent variational inference (CAVI), with no gradient-based optimization of the classification head. We extend this approach in two ways that are relevant in practice. First, we turn the batch update into a variational filter: the head is the latent state of a linear-Gaussian state-space model, and each mini-batch is one exact prediction step followed by a closed-form variational update. The process noise of the prediction step serves two purposes at once — it tracks changes in the optimal head as the backbone is fine-tuned, and it counteracts covariance contraction as evidence accumulates; enabling a well calibrated posterior predictive data likelihood. Other approaches, like streaming variational Bayes (Broderick et al., 2013), accumulate evidence without discounting it. Here, instead we introduce a single scalar hyper-parameter that sets a covariance floor for arbitrarily long training. In addition, we exploit the fact that the independent-probit likelihood induces a precision matrix that is shared across all classes, so two Cholesky factorisations per batch (not per CAVI step) serve all class-conditional updates, and the -iteration CAVI inner loop itself reduces to matrix multiplications with no further matrix solves or inversions.
Concretely, we ask: can a closed-form variational filter over the last-layer weights (i) match an extensively trained cross-entropy and temperature-scaling baseline on both accuracy and calibration in fewer epochs, (ii) surpass the leading sampling-free Bayesian last-layer alternative on the same backbone, and (iii) scale to ImageNet-scale probing on modern self-supervised backbones? Our contributions are: (i) a variational filtering algorithm for the last layer, pairing a Kalman-style prediction step with a closed-form CAVI update under the independent binary probit (IBProbit) surrogate; (ii) a parallel-in-, Cholesky-preconditioned inner loop accelerated by parameter expansion (Algorithm 1); (iii) a comparison under a matched training protocol against AdamW+cross-entropy with temperature scaling and against Variational Bayesian Last Layers (Harrison et al., 2024), where IBProbit leads on accuracy and NLL at every task at the largest backbone, and on more tasks as the backbone size increases; (iv) out-of-distribution detection with CIFAR-10 and CIFAR-100 probes on the largest backbone, where IBProbit has the lowest false-positive rate at 95% true-positive rate on all three dataset pairs (lower than the better baseline by a factor of about three on CIFAR-10 vs SVHN) and loses no in-distribution accuracy; and (v) full-network fine-tuning of DINOv3-Huge on ImageNet-1k, where IBProbit reaches the final accuracy, NLL and Brier score of the cross-entropy baseline in half the wall-clock time, and VBLL does not reach them within the same budget.
Code and scripts to reproduce all results are released at the following GitHub repository https://github.com/dimarkov/bllarse.
Calibration of deep classifiers.
Post-hoc temperature scaling (Guo et al., 2017) is a strong in-distribution baseline but, being applied after training, cannot influence training-time convergence or accuracy. Training-time alternatives reshape the loss — focal loss (Mukhoti et al., 2020), mixup (Thulasidasan et al., 2019) — and recent architecture-driven gains in calibration are uneven and architecture-specific (Minderer et al., 2021). We instead replace the softmax likelihood with a categorical-from-binary probit likelihood (Wojnowicz et al., 2022) and infer the last-layer weights through its independent binary surrogate.
Bayesian Last Layers.
Treating only the final layer as Bayesian is a long-established compromise: a single Bayesian layer fixes overconfidence far from training data (Kristiadi et al., 2020), and an additional infinite-feature GP extension is needed for cubic-rate asymptotic calibration (Kristiadi et al., 2021). For classification, Variational Bayesian Last Layers (VBLL) (Harrison et al., 2024) keep the categorical likelihood tractable via a double-Jensen log-sum-exp lower bound on the ELBO; for regression, Fiedler and Lucia (2023) proposes a related Bayesian last-layer method via a reformulated marginal likelihood. We differ in two ways. First, we bound a different quantity: instead of keeping the softmax and bounding its ELBO, we change the likelihood to a categorical-from-binary probit and lower-bound it by its independent binary probit surrogate (Wojnowicz et al., 2022), whose ELBO is maximized by a closed-form conjugate update rather than by gradient steps. Second, we apply this update as a recursive Bayesian filter over a drifting head.
Filtering the last layer.
Streaming variational Bayes (Broderick et al., 2013) updates a variational posterior recursively over the data, with a static parameter, so its precision accumulates without bound; adding dynamics to the parameter yields a filter. Closest to our work, Titsias et al. (2024) place a state-space model over the last-layer weights and track it with a Kalman filter whose covariance is, as here, shared across classes. They handle classification by replacing the softmax with a Gaussian likelihood on the one-hot labels, and predict by Monte Carlo through the exact softmax with a gradient-fitted calibration parameter. Our update keeps a non-Gaussian probit observation model and solves it variationally: it has the same form as theirs, with the Albert–Chib expectations in place of the one-hot targets, and its predictive is closed-form. We also target a different regime, calibration under standard probing and fine-tuning rather than online continual learning.
Other uncertainty-quantification approaches.
Whole-network UQ methods — deep ensembles (Lakshminarayanan et al., 2017), MC Dropout (Gal and Ghahramani, 2016), SWAG (Maddox et al., 2019) — are more expressive but substantially more expensive at train and inference time, and their absolute calibration still degrades under shift, with deep ensembles among the most robust but still imperfect (Snoek et al., 2019); post-hoc Laplace approximations (Daxberger et al., 2021) avoid that cost but, being a Gaussian centered at the trained MAP, inherit any pathologies of the converged point estimate. Harrison et al. (2024) found variational last-layer methods competitive with these baselines at a fraction of the compute, so we focus our direct comparison on the VBLL family.
Pólya-Gamma augmentation.
Pólya-Gamma augmentation (Polson et al., 2013) yields conjugate Gaussian updates for logistic regression, and stick-breaking variants (Linderman et al., 2015) extend it to multinomial outcomes. We implement both for reference, but each CAVI iteration requires a full inversion per class — meaning that the per-sample auxiliary variables break the shared-precision structure. This makes runtime linearly dependent on the number of classes, and orders of magnitude slower than the update for the independent binary probit surrogate (Wojnowicz et al., 2022), whose precision is shared across classes and whose inversion can be moved outside the CAVI iterations (Algorithm 1). The trade-off is that stick-breaking Pólya-Gamma is conjugate for a genuine categorical likelihood, at the cost of an imposed class ordering, whereas the independent binary surrogate is order-invariant but only bounds its categorical likelihood.
Deep Kernel Learning.
Deep Kernel Learning (Wilson et al., 2016) pairs a deep feature extractor with a Gaussian-Process head; the original work uses KISS-GP / inducing-point approximations to avoid the cubic cost of exact GPs, at the expense of additional approximation and tuning overhead. Our method can be interpreted as a variational approximation to DKL under specific assumptions: marginalizing the last-layer weights under our Gaussian posterior induces a linear kernel on the (neural) features, and the independent binary probit surrogate, whose covariance is shared across classes, admits closed-form updates that scale linearly in both and .
3 Methods
The method is a variational filter over the last-layer weights. §3.2 gives its observation model, §3.3 its update step, §3.4 its dynamics and prediction step, and §3.5 its predictive.
3.1 Problem Setting
Consider a classification problem with classes. Given an image and features produced by a neural-network backbone , we seek to model the class-predictive probabilities for . In standard practice, this is achieved via a linear layer followed by softmax:
where are the weights projecting features to class . Training proceeds by minimizing the cross-entropy loss with respect to parameters , in the case of linear probing, or with respect to both last layer and network parameters , in the case of full-network training and fine-tuning.
3.2 Independent Binary Probit Model
Following Wojnowicz et al. (2022), we replace the softmax likelihood with a categorical-from-binary (CB) probit likelihood and perform inference through its independent binary (IB) probit surrogate. We pad the input features with a constant to absorb the bias, writing and for its dimension. The surrogate treats the entries of the one-hot label vector , with , as independent binary probit observations,
where denotes the standard normal cumulative distribution function (CDF). The surrogate is not a categorical model, because it also assigns probability to label vectors with no active class or with several. The categorical likelihood is the CB model obtained by conditioning the surrogate on exactly one active class, which Wojnowicz et al. (2022) call the categorical-from-binary-via-conditioning (CBC) model:
It satisfies for every label, so the evidence lower bound of the surrogate is also a lower bound on the marginal likelihood of the categorical model (Appendix A.1). We therefore infer the posterior over with the surrogate (§3.3) and use (3) for the training loss and for prediction (§3.6).
We place a Gaussian prior on the weight matrix in its general conjugate form — a product of multivariate normals whose covariance is shared across classes:
At initialisation we take and , but we keep the prior general because the filtering recursion of §3.4 replaces it at every batch with the predicted posterior.
3.3 The Variational Update: CAVI with Parameter Expansion
Variational posterior.
We approximate the intractable posterior , where denotes a dataset, by the same family as (4),
The shared is a consequence of the independent-probit likelihood rather than a particular choice of the variational approximation: the quadratic term in is driven by and does not depend on , so every class posterior inherits the same precision and only the first natural parameter differs by class.
Augmented ELBO.
The independent binary probit admits an Albert–Chib augmentation (Albert and Chib, 1993) with auxiliary variables and observation rule . Under the mean-field factorization , the evidence lower bound is
where is the one-hot label matrix. We maximize (6) by coordinate ascent over the two factors: is updated with held fixed, and then with held fixed. For a model with these two factors, coordinate-ascent variational inference (CAVI) and variational Bayesian expectation maximization (VB-EM; Beal, 2003) are the same algorithm: the update of is the E-step and the update of is the M-step. We call the algorithm CAVI, following Wojnowicz et al. (2022), and its two updates the E-step and the M-step. Both updates are available in closed form for this likelihood (Appendix A.2), so no gradient-based optimization of the head is required.
E-step.
Holding fixed, is the Albert–Chib truncated normal at (Wojnowicz et al., 2022) with mean
where is the standard normal PDF and . The inverse Mills ratios and are evaluated in log-space, , for stability in the tails of . This is a coordinate update, so it uses the plain posterior mean ; marginalising over is a separate operation performed at prediction time (see §3.5).
M-step.
Holding fixed, is Gaussian with natural parameters
where stacks the rows and . The variational posterior has exactly the form of the prior (4), which is the closure property §3.4 relies on. The precision is shared across classes, so all class-conditional means update in parallel as a single matrix operation and one Cholesky factorization is used for all classes.
Parameter expansion.
Plain CAVI alternates (7) and (8) and converges slowly along one direction: the overall scale of the class scores. The mean-field factorization removes the correlation between and that is present in the true posterior, so each alternation changes the scale only slightly. Parameter-expanded variational Bayes (Qi and Jaakkola, 2007) (hereafter, PX) accelerates convergence in this direction. It adds a scale parameter to the model, which multiplies the prior mean of by , and the prior covariance of and the variance of the auxiliary variables by . The expanded model assigns the same probability to the labels for every and is the original model at , but the ELBO of a given depends on . Each inner iteration therefore also maximizes the ELBO over , which has a closed-form solution, and then returns to the original model by rescaling and by (Appendix A.3). Writing for the data term of (8), the resulting update divides this term by ,
where is the positive root of the quadratic equation, is the number of rows of , and and are formed from quantities already computed in the E-step and the M-step. At a fixed point of plain CAVI , so and (9) is the ordinary M-step: PX converges to the same solution as plain CAVI in fewer inner iterations. The precision is not changed by the expansion, and the inner-iteration count trades compute for closer convergence to that fixed point.
3.4 Variational Filtering: the Prior Between Batches
Running CAVI over the full dataset is impractical when the backbone drifts across epochs (full-network fine-tuning) or when is very large (ImageNet-scale). We therefore process the data in mini-batches of size . Since the posterior of §3.3 has the same form as the prior (4), the same update can be applied to each batch, and it only remains to choose the prior parameters for batch .
We make this choice by treating the head as the latent state of a linear-Gaussian state-space model whose dynamics are a random walk with independent (per-direction) process noise,
This is a modelling assumption rather than a numerical stabilisation technique, and it has two independent motivations. The first is drift: under full-network fine-tuning the features change at every step, so the optimal last layer drifts, and sets the rate of this drift.
The second is calibration, and it applies even when the backbone is frozen and there is no drift to track. A recursion without process noise accumulates precision without bound, so and the moderated predictive of §3.5 collapses onto posterior expectation : confidence then grows with the quantity of data the head has seen rather than with the evidence bearing on any particular input, which is the failure mode that a Bayesian treatment is intended to avoid. Process noise instead imposes a lower bound on the posterior covariance, in the scalar reduction with per-batch data precision — the geometric mean of the process noise and the inverse data precision rather than itself (Appendix A.4) — so the moderation term remains non-negligible for arbitrarily long training. Calibration is therefore one of the two motivations for the filtering formulation, and not only a consequence of it.
Propagating the previous posterior through (10) increases its covariance and leaves its mean unchanged, so the prior for batch is
and the update is the CAVI/PX step of §3.3 run with . The prediction step is exact, as in a Kalman filter. The update step is not, because the probit observation is non-Gaussian; it is the variational update of §3.3, which returns a posterior in the family (4). We call the resulting recursion a variational filter. Since does not depend on the class, the precision remains shared across the classes and the only added cost is the second Cholesky factorization, for .
Setting the process noise.
The process noise of (10) is the one hyperparameter of the head. We parametrize it as
where is the effective learning rate of the head. At the steady state of the filter the posterior mean is an exponentially weighted average of the estimates from the individual mini-batches, in which the newest mini-batch has approximately the weight (Appendix A.4). For features of unit scale per coordinate , so this weight is , and a mini-batch influences the posterior mean over approximately filtering steps. The features used in the experiments are not normalised, so there equals this weight only up to the scale of the features, and is selected directly by the hyperparameter search (Appendices C and D.2). The appropriate value depends on the number of training steps : Appendix D.3 derives the rule , that is, , from the steady state of the filter and reports a measurement that is consistent with it.
3.5 The Posterior Predictive
For the independent binary probit the required expectation is closed-form (Bishop, 2006; Appendix A.5); the relevant measure is the one-step-ahead predictive of (11), and because and are both shared across classes the result is a single class-independent rescaling of the class scores:
The denominator is an input-dependent temperature: one scalar per input, larger for inputs lying in feature directions the posterior does not constrain, and constant only in the degenerate case — which is precisely temperature scaling (Guo et al., 2017). A predictive evaluated at the posterior mean discards entirely, so temperature scaling is the constant- special case of (13), and the two differ only where varies across inputs.
The epistemic term enters the predictive in both regimes. Away from the training distribution it increases, increases with it, and confidence decreases (see the detection results in §4, which are explained by this mechanism). In distribution it does not vanish, which is the benefit of the filtering formulation: without process noise and , so the predictive degenerates to the plug-in estimate at and confidence grows with the amount of data seen. The floor of §3.4 prevents from collapsing to one as data accumulates; Appendix A.4 derives it, and Appendix C reports the detection result obtained when is at the lower bound of its search range. The additive term is the direct contribution of the process noise to the predictive variance; its size relative to the epistemic term depends on the selected and on the scale of the features.
Algorithm 1 Variational filtering for the Independent-Binary-Probit last layer
1: Features , labels , batch size , inner iterations , process noise from (12)
2:
3: , ,
4: for each mini-batch do
5: ;
6: (11) predict: first Cholesky
7: (8) with ; second Cholesky
8:
9: for do update: PX-CAVI, all classes in parallel
10: E-step (7) at
11: scale from (9)
12: end for
13: ;
14: end for
Each mini-batch is one variational filtering step, and every quantity in Algorithm 1 is updated by a closed-form conjugate step: the head has no learning rate, no weight decay, and no gradient-based optimization of any kind. The one free scalar is the process noise of (12). Backbone gradients are taken through (13) alone (Appendix D.1), and the cost of a filtering step is given in Appendix A.6.
3.6 Loss Function
The variational filter of §3.4 supplies the filtering posterior over the last-layer weights, but training the backbone still requires a differentiable scalar loss, and evaluation requires class probabilities. For both we use the categorical likelihood (3), evaluated at the moderated class scores of (13). Writing , the predictive class probabilities and the loss are
with as in (3). All experiments in this paper use this loss, both for training the backbone and for evaluation.
In the loss and in the predictive class probabilities we replace by the cubic GELU-style approximation (Hendrycks and Gimpel, 2016),
where is the logistic function. Under this approximation exactly, so (14) is a softmax cross-entropy on a cubic transformation of the moderated scores. All reported metrics are computed with this approximation; the CAVI inner loop uses the exact and in log-space.
4 Results
Every experiment below uses DINOv3 backbones (Siméoni et al., 2025) and compares three heads under one training protocol: AdamW with cross-entropy and post-hoc temperature scaling (CE+TS), Variational Bayesian Last Layers (VBLL, Harrison et al., 2024), and IBProbit, the variational filter of §3.4. We report accuracy (), NLL () and Brier score ().
Note that the cross-entropy baseline is always shown with temperature scaling. TS is the strongest low-cost calibration baseline: it fits a single parameter post-hoc on the same validation split used for model selection, so it adds only marginal cost to tuning the CE+TS variant. In addition, each training method’s hyper-parameters are tuned independently per dataset under a shared step budget and a single objective (Appendix C). The backbones, datasets, baselines, metrics and compute resources are described in Appendix B. We first study the head in isolation on frozen features (§4.1, §4.2), then jointly with the backbone (§4.3).
4.1 Linear probing on frozen DINOv3 features
Frozen features isolate the head: there are no backbone gradients, and any difference between training methods is attributable to the last layer alone. Every method is trained on the same cached features for the same budget of steps and is scored at the evaluation with the lowest validation NLL (Appendix C); for IBProbit a step is one filtering step on a mini-batch, so the filter makes repeated passes over the training data. We probe four backbone sizes — DINOv3 Small, Base, Large, Huge — on five downstream tasks with training sets of K to K images and to classes, with ten seeds per setting (Figure 1).
At DINOv3-Huge, IBProbit attains the best accuracy and the best NLL (Brier) on all five tasks. The margin is largest on Stanford Cars, the task with the most classes: accuracy against for CE+TS and for VBLL, with NLL against and . On Oxford Pets the accuracy gap is pp over both baselines and NLL falls from (CE+TS) and (VBLL) to . The accuracies of CE+TS and VBLL are within pp of each other on every task at this backbone size, and VBLL does not have a lower NLL than CE+TS on any of them. This indicates that a variational last layer trained by gradient descent improves little on a well-tuned linear probe with a fitted temperature, whereas a variationally filtered probit head does improve on it.
The number of tasks on which IBProbit leads increases with backbone size. At DINOv3-Small the results are mixed: IBProbit has the lowest NLL on Flowers-102 and Stanford Cars but trails CE+TS in NLL on Oxford Pets ( vs ), Food-101 ( vs ) and DTD ( vs ). It also trails CE+TS in NLL on three tasks at DINOv3-Base, on two at DINOv3-Large, and on none at DINOv3-Huge ( more parameters than Small). The margin itself does not increase on every task: on Stanford Cars it is largest at DINOv3-Small. We do not attribute the trend with backbone size to the predictive variance. The factor of (13) rescales all class scores of an input by the same positive number and therefore leaves the predicted class unchanged, so the accuracy differences in Figure 1 are differences between the fitted mean weights. We report this trend explicitly because the opposite would have been the more common result, and because it is relevant to whether the added complexity of the method is justified at the scales used in practice.
One caveat concerns cost, because §4.3 reaches the opposite conclusion at ImageNet scale. IBProbit’s uncertainty state is a single covariance shared across classes — parameters, independent of the class count — against for VBLL’s per-class diagonal; the two are equal at , which is , , and across the four backbone sizes. Every task here has , so in nineteen of these twenty settings it is IBProbit that has the larger head: VBLL’s at Stanford Cars on Huge, and at Oxford Pets, where a shared covariance is compared with per-class diagonals. The absolute quantities are negligible either way ( MB at the largest), but the accuracy and NLL gains above are obtained with a larger head and the -independence argued in §4.3 is a many-class property that does not apply in the probing regime.
Figure 1: Linear probing on frozen DINOv3 features across backbone scale. Columns are the five downstream tasks; rows are accuracy (), NLL () and Brier score (); the -axis is the backbone size (Small, Base, Large, Huge). Points show the mean over ten seeds and error bars standard deviation. AdamW+CE is shown without and with temperature scaling (TS); the temperature is fit on the same validation split used for model selection. A black ring marks a setting in which the validation optimum of at least one seed fell in the last 10% of the step budget, so that the plotted value is a lower bound (Appendix C). Every method is tuned independently per dataset under one shared 30,000-step budget, at DINOv3-Huge only; the other three backbone sizes use the configuration tuned at Huge (Appendix C), so points left of Huge are not separately optimized for any method.
4.2 Out-of-distribution detection from frozen features
In-distribution calibration does not determine behaviour under shift, so we evaluate separately whether probes trained under the same protocol separate in- from out-of-distribution inputs. We use three pairs at DINOv3-Huge: CIFAR-10 vs SVHN and CIFAR-100 vs SVHN (far-OOD), and CIFAR-10 vs CIFAR-100 (near-OOD, the harder of the two CIFAR-10 pairs). CIFAR appears here as in-distribution data on a frozen ViT — chosen because SVHN and the CIFAR-10/100 split provide a clear contrast between far and near OOD on identical features.
Every condition is scored with maximum softmax probability (MSP), and we report AUROC and FPR at 95% TPR. For IBProbit this choice does not discard the uncertainty estimate: the moderated predictive rescales the logits by a class-independent factor , which acts as a per-input temperature, so its MSP is a monotone function of the epistemic term . An MSP advantage under shift is therefore indirect evidence that the epistemic term is informative.
IBProbit leads on all three pairs and both metrics (Figure 2). The largest difference is on CIFAR-10 vs SVHN, where FPR@95 falls to against for CE+TS and for VBLL — a factor of three below the better baseline, on identical features and an identical evaluation set. On near-OOD the ordering is preserved with a smaller margin ( against and ), and on CIFAR-100 vs SVHN, hardest for every method, IBProbit still leads ( against and ). IBProbit also has the highest in-distribution accuracy on both datasets, exceeding the next best method by on CIFAR-10 and on CIFAR-100, so the improved detection does not come at the cost of accuracy. Its in-distribution NLL is the lowest of the three methods on CIFAR-10 but the highest on CIFAR-100 (, compared with for CE+TS and for VBLL).
Figure 2: Out-of-distribution detection from frozen DINOv3-Huge features, scored by maximum softmax probability. Columns are the three ID/OOD pairs, far-OOD for the two pairs with SVHN and near-OOD for CIFAR-10 vs CIFAR-100; rows are AUROC () and FPR at 95% TPR (). Points show the mean over ten seeds with standard deviation. AdamW+CE is shown with temperature scaling fit on the in-distribution validation split — the same operating point reported in Figure 1 — and the single fitted temperature is applied to both the ID and the OOD logits, as it would be at deployment.
4.3 Full-network fine-tuning on ImageNet-1k
Probing keeps the features fixed. A more demanding test is whether the filter still helps when the backbone changes during training, which is the regime its process noise was introduced for. We therefore fine-tune DINOv3-Huge end to end on ImageNet-1k for two epochs (M samples), five seeds per method, with all three heads under an identical training protocol. Hyperparameters are tuned at the reported backbone, on the -sample budget fixed by the tuning protocol ( steps at batch ), and transferred to the reported duration by the AdamW SDE scaling rule (Mlodozeniec et al., 2025); the process noise of IBProbit is transferred by the rule , where is the number of training steps. The training step, the search and the transfer are described in Appendix D.
Sample efficiency.
IBProbit has a large advantage early in training (Figure 3). At K samples it reaches accuracy against for CE+TS and for VBLL, with NLL against and ; at the first evaluation, K samples, the NLL gap is wider still — against and . This is the regime the filter is designed for: each batch is assimilated in one closed-form filtering step, so the head is usable long before a gradient-trained head has converged.
A further result, not available from probing, is that the advantage persists throughout training. IBProbit stays below both baselines on NLL and Brier and above them on accuracy for the whole trajectory, and it is still ahead at the endpoint (Table 1), on every metric in distribution and under shift. Two of the margins are within about one standard deviation, both over VBLL under shift: NLL, against , and accuracy, against . For the other metrics the gap to the better baseline is between two and ten times the larger of the two standard deviations.
Cost to reach a target performance.
Fixing a target performance and measuring the cost to reach it makes the comparison concrete (Figure 5). We take as the target the performance that cross-entropy with temperature scaling, the baseline with the better in-distribution results, has at the end of its two-epoch run: the mean over seeds of its accuracy, NLL and Brier score at the final evaluation, which are the values in Table 1. For the other two methods we measure the amount of training after which a run first meets all three.
Every IBProbit run reaches the target. On average it does so after hours and epochs, compared with the hours and two epochs for which the cross-entropy runs were trained. This is a speed-up of in wall-clock time and in samples; across the five seeds the speed-up in wall-clock time ranges from to . No VBLL run reaches the target within its two epochs, which took hours, so VBLL is right-censored in the figure. The lowest NLL of any VBLL run at any evaluation is , compared with the target of .
The comparison cannot be made in the opposite direction, because neither baseline reaches the performance of IBProbit. Neither the five cross-entropy runs nor the five VBLL runs reach, within the full two-epoch budget, what IBProbit attains after one epoch, jointly on accuracy, NLL and Brier. The shortfall is in calibration rather than in accuracy: every cross-entropy run passes the accuracy that IBProbit has after one epoch at some point in its trajectory, but none reaches an NLL below or a Brier score below , compared with and for IBProbit after one epoch.
We do not report peak training memory. At this backbone size the methods’ activations dominate and the measurement cannot resolve the head: the state stored by the two Bayesian heads differs by under MB, a few thousandths of a percent of the peak, and the allocator statistics available in the two frameworks are not defined identically. The head-state comparison below is analytical for that reason.
In addition to the mean of any linear head, IBProbit adds one covariance shared across classes — parameters, independent of — while VBLL in its diagonal parameterization adds a per-class diagonal, , growing linearly in the class count. At DINOv3-Huge () the two are equal at : on ImageNet-1k IBProbit’s head has M uncertainty parameters against VBLL’s M, fewer, while on the small- probing tasks the ordering reverses (M against M at Stanford Cars’ ; see §4.1). Richer VBLL parameterizations only widen the gap in the many-class regime: low rank costs and full covariance , both of which retain the linear-in- scaling that the shared covariance removes.
Behaviour under shift.
Scoring the same trajectory on ImageNet-R, -A, -V2 and -Sketch reproduces the ordering on three of the four sets (Figure 4). On ImageNet-R and -A IBProbit has the best accuracy, NLL and Brier score for almost the entire run. On ImageNet-V2 it has the best accuracy throughout and the best NLL in the first half of the run, after which the three methods are close. On ImageNet-Sketch the three methods are close in accuracy and Brier score, and IBProbit has the highest NLL at the endpoint (, against for CE+TS and for VBLL). Table 1 gives the endpoint averaged over the four sets.
The fourth row scores the same predictives as a detector, by maximum softmax probability, against the in-distribution split at the same step — the score used in §4.2, so that the two settings are evaluated with the same score. Because ImageNet-R and -A cover of the classes, the in-distribution reference for those columns is restricted to the same classes and to the images whose label falls in them; comparing a -class maximum against a -class one would measure the class count rather than the shift. IBProbit detects best at the first evaluation on all four sets, which is consistent with the sample-efficiency result, and it still leads at the endpoint on three of the four; cross-entropy overtakes it only on ImageNet-R ( against ). On ImageNet-V2 no method detects the shift much above chance, which is expected for a re-collection of the same classes.
One feature of this row requires an explanation. On ImageNet-R, and to a smaller extent on ImageNet-A and -Sketch, detection quality peaks partway through training and then falls for every method — on ImageNet-R cross-entropy loses AUROC from its own peak, IBProbit , VBLL — while the accuracy, NLL and Brier rows above are stable or improving over the same period. Detection and calibration therefore diverge under continued fine-tuning. This is a consequence of fitting the in-distribution task more closely and is not specific to any head: a model that becomes more confident on ImageNet also becomes more confident on ImageNet-R, and cross-entropy, which has no posterior covariance, shows the effect as strongly as the Bayesian methods. We therefore do not interpret it as evidence about the covariance floor of §3.4.
Figure 3: Full-network fine-tuning of DINOv3-Huge on ImageNet-1k: metrics on the held-out of the ImageNet validation split against samples seen (log scale). Lines show the mean over five seeds, and bands the range between the smallest and the largest value across seeds. The dashed vertical line marks the -sample budget the hyperparameters were selected at; results to the right of it lie beyond the budget used for tuning, for every method equally. Accuracy, NLL and Brier are shown; NLL and Brier are proper scoring rules and support the calibration claim, whereas ECE depends on the choice of binning. Brier is the multiclass definition over the full predictive vector. Raw AdamW+CE is omitted: CE+TS is the baseline being compared against, and in the accuracy panel the two coincide exactly.
Figure 4: The same fine-tuning trajectories scored under distribution shift. Columns are the four shift sets; rows are accuracy, NLL, Brier score and the AUROC of maximum-softmax-probability detection against the in-distribution split. Lines, bands and the dashed vertical line are as in Figure 3, and markers show the individual evaluations. ImageNet-R and -A cover 200 of the 1000 classes and are evaluated with a subset mask; ImageNet-V2 and -Sketch span all 1000 and are not masked. Every method is fit in distribution and then evaluated under shift; in particular the single temperature of the CE baseline is fitted on the in-distribution validation split and applied unchanged to the shifted logits, never refitted on the shifted set. The shift sets are scored at every second evaluation of the trajectory, so these panels contain fewer points than Figure 3.
Figure 5: Training needed to reach the final performance of cross-entropy with temperature scaling (CE+TS), in wall-clock hours (left) and in epochs (right). The target is the mean over the five CE+TS seeds of the accuracy, NLL and Brier score at the end of the two-epoch run (Table 1). The target is joint: a run reaches it at the first evaluation at which all three metrics are at or better than the target. The CE+TS bar is the length of its own runs. For IBProbit the bar shows the mean over the five seeds and circles the individual seeds; all five reach the target, and the number above the bar is the speed-up relative to CE+TS. No VBLL run reaches the target within two epochs, so VBLL is right-censored: the hatched bar with an arrow marks the length of its runs, which is a lower bound. Time is measured from the first evaluation of each run. The times of CE+TS and IBProbit include the evaluation of the shift sets during training, which the VBLL runs delegate to a separate process.
Table 1: Fine-tuning endpoint at M samples, the largest evaluation present in every run. Mean standard deviation over five seeds. The rows under shift average ImageNet-R, -A, -V2 and -Sketch; AUROC is maximum-softmax-probability detection against the in-distribution split at the same step, with the in-distribution reference restricted to the covered classes on the two masked sets. ECE is omitted for the reason given in Figure 3’s caption; Brier is the multiclass definition over the full predictive vector.
| Metric | AdamW+CE+TS | VBLL | IBProbit |
|---|---|---|---|
| In distribution | |||
| Accuracy | 0.8880 0.0011 | 0.8866 0.0004 | |
| NLL | 0.3891 0.0015 | 0.4034 0.0010 | |
| Brier | 0.1669 0.0008 | 0.1693 0.0006 | |
| Under shift (mean of four sets) | |||
| Accuracy | 0.8323 0.0017 | 0.8373 0.0025 | |
| NLL | 0.7194 0.0074 | 0.7036 0.0097 | |
| Brier | 0.2478 0.0024 | 0.2422 0.0026 | |
| AUROC | 0.6617 0.0023 | 0.6557 0.0104 |
5 Limitations
One hyperparameter does not transfer across training durations.
The process noise has to be rescaled when the training duration changes; if it is left unchanged, it degrades the head late in training, and this can be mistaken for a property of the method. We give a rule for it in Appendix D.3, derived from the steady state of the filter, but its exponent is measured on one backbone and we have not established it across widths. A search run at a short budget and scored by the best value anywhere on its curve will also prefer configurations whose validation loss is low early and then degrades, for the same reason; our fine-tuning searches score the end of the trajectory instead. Both are properties of tuning any method with a forgetting rate against a truncated budget rather than of this head alone, but we encountered both in our experiments and therefore report them.
The head’s memory advantage is structural, not measurable end-to-end.
IBProbit’s uncertainty state is -independent and smaller than VBLL’s diagonal once , but at that advantage is under MB, which no end-to-end training measurement can resolve: backbone activations dominate the peak at this backbone size, and the two frameworks’ allocator statistics are not defined identically, so we do not report peak memory at all. Isolating the head’s footprint would need a measurement designed for it, which we have not made. The -independence claim is also stated at the diagonal parameterization we ran; against full-covariance VBLL the gap widens, but we did not train that variant and do not report it.
Model assumptions.
The posterior covariance shared across classes is what makes the CAVI inner loop linear in the class count, but it offers no per-class adaptive capacity, so severe class imbalance may under-regularize minority classes. The class-independence assumption inherited from Wojnowicz et al. (2022) did not degrade calibration on any task we evaluated, but may be more restrictive under strong inter-class structure such as hierarchical labels.
Scope of the tuning.
Probing configurations were searched at DINOv3-Huge only and applied unchanged at the three smaller backbones, whose features have different dimension; the fine-tuning configurations were searched at DINOv3-Huge on a budget of M samples, about a third of an epoch, and transferred to two epochs (Appendix D). Both limitations apply symmetrically to all three methods, so they affect the absolute numbers rather than the comparison, but the points for the smaller backbones in Figure 1 should not be interpreted as the best achievable result of any method.
What the detection result does and does not show.
Figure 2 scores MSP, which for IBProbit is a monotone function of the epistemic term rather than a direct measurement of it. The result is therefore evidence that the term is informative, not a measurement of its magnitude. The probing runs also store a single evaluation each, so §4.1 and §4.2 contain no trajectories: no detection-versus-compute curve and no endpoint-penalty analysis are available there, only at fine-tuning scale.
Calibration is not safety.
Better-calibrated probabilities reduce undetected over-confidence where downstream actions depend on probability thresholds, but they do not address fairness, bias, or adversarial robustness, and a well-calibrated classifier can still be systematically wrong on populations under-represented at training time.
6 Conclusion
We presented a variational filtering algorithm for the Bayesian last layer, built on the independent binary probit (IBProbit) surrogate of Wojnowicz et al. (2022). By replacing the softmax with a categorical-from-binary probit likelihood and performing inference through its independent binary probit surrogate, we derived efficient closed-form variational filtering updates. This distinguishes our method from recent approaches like VBLL, which keep the softmax, bound it, and rely on gradient-based optimization. Our experiments on DINOv3 backbones demonstrate that an IBProbit based last layer provides a computationally efficient way to obtain well-calibrated deep networks. The closed-form nature of our updates makes this approach particularly attractive for one-shot adaptation and scenarios where gradient-based tuning of the uncertainty mechanism is undesirable. In practice, the method can replace a standard linear probe without further changes to the training pipeline: the head has no learning rate or weight decay and needs no post-hoc calibration step. With the largest backbone it gave higher accuracy and lower negative log-likelihood than both baselines on all five probing tasks, and under full-network fine-tuning on ImageNet-1k it remained better than both on accuracy, negative log-likelihood and Brier score after two epochs. Its uncertainty state is a single covariance matrix shared across classes, so its size does not grow with the number of classes.
Better-calibrated probabilities reduce the risk of undetected over-confidence in high-stakes applications where downstream actions depend on probability thresholds. However, they do not address fairness, bias, or adversarial robustness, and should not be interpreted as a safety certification — a well-calibrated classifier can still be systematically wrong on populations under-represented at training time.
A natural extension of the presented approach would be a fully end-to-end Bayesian treatment of deep learning that combines the IBProbit head with the IVON optimizer (Shen et al., 2024), or the more recent EVON optimizer (Minut et al., 2026) for variational inference on the backbone weights.
Acknowledgments
The authors gratefully acknowledge the computing time granted on the high-performance computers Raven (NVIDIA A100) and Viper (AMD Instinct MI300A) at the Max Planck Computing and Data Facility (MPCDF), and thank the MPCDF support staff for their assistance.
References
T. Akiba, S. Sano, T. Yanase, T. Ohta, and M. Koyama Optuna: a next-generation hyperparameter optimization framework. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 2623–2631. Cited by: Appendix C.
J. H. Albert and S. Chib Bayesian analysis of binary and polychotomous response data. Journal of the American Statistical Association 88 (422), pp. 669–679. Cited by: §3.3.
M. J. Beal Variational algorithms for approximate bayesian inference. Ph.D. Thesis, Gatsby Computational Neuroscience Unit, University College London. Cited by: §3.3.
C. M. Bishop Pattern recognition and machine learning. Springer. Cited by: §A.2, §3.5.
C. Blundell, J. Cornebise, K. Kavukcuoglu, and D. Wierstra Weight uncertainty in neural network. In Proceedings of the 32nd International Conference on Machine Learning, F. Bach and D. Blei (Eds.), Proceedings of Machine Learning Research, Vol. 37, Lille, France, pp. 1613–1622. External Links: Link Cited by: §1.
JAX: composable transformations of Python+NumPy programs External Links: Link Cited by: Appendix B.
T. Broderick, N. Boyd, A. Wibisono, A. C. Wilson, and M. I. Jordan Streaming variational Bayes. In Advances in Neural Information Processing Systems, Cited by: §1, §2.
E. Daxberger, A. Kristiadi, A. Immer, R. Eschenhagen, M. Bauer, and P. Hennig Laplace redux – effortless Bayesian deep learning. In Advances in Neural Information Processing Systems, Cited by: §1, §2.
J. Deng, W. Dong, R. Socher, L. Li, K. Li, and L. Fei-Fei ImageNet: a large-scale hierarchical image database. In IEEE Conference on Computer Vision and Pattern Recognition, Cited by: Appendix B.
F. Fiedler and S. Lucia Improved uncertainty quantification for neural networks with Bayesian last layer. IEEE Access. Note: arXiv:2302.10975 Cited by: §2.
Y. Gal and Z. Ghahramani Dropout as a Bayesian approximation: representing model uncertainty in deep learning. In International Conference on Machine Learning, Cited by: §2.
C. Guo, G. Pleiss, Y. Sun, and K. Q. Weinberger On calibration of modern neural networks. In Proceedings of the 34th International Conference on Machine Learning, D. Precup and Y. W. Teh (Eds.), Proceedings of Machine Learning Research, Vol. 70, pp. 1321–1330. External Links: Link Cited by: §1, §2, §3.5.
J. Harrison, J. Willes, and J. Snoek Variational Bayesian last layers. In International Conference on Learning Representations, Cited by: Appendix B, Appendix B, §1, §1, §2, §2, §4.
D. Hendrycks and K. Gimpel Gaussian error linear units (GELUs). arXiv preprint arXiv:1606.08415. Cited by: §3.6.
P. Izmailov, S. Vikram, M. D. Hoffman, and A. G. G. Wilson What are bayesian neural network posteriors really like?. In Proceedings of the 38th International Conference on Machine Learning, M. Meila and T. Zhang (Eds.), Proceedings of Machine Learning Research, Vol. 139, pp. 4629–4640. External Links: Link Cited by: §1.
P. Kidger and C. Garcia Equinox: neural networks in JAX via callable PyTrees and filtered transformations. arXiv preprint arXiv:2111.00254. Cited by: Appendix B.
D. P. Kingma and J. Ba Adam: a method for stochastic optimization. In International Conference on Learning Representations, Cited by: Appendix B.
A. Kristiadi, M. Hein, and P. Hennig Being Bayesian, even just a bit, fixes overconfidence in ReLU networks. In International Conference on Machine Learning, pp. 5436–5446. Cited by: §1, §2.
A. Kristiadi, M. Hein, and P. Hennig An infinite-feature extension for Bayesian ReLU nets that fixes their asymptotic overconfidence. In Advances in Neural Information Processing Systems, Cited by: §2.
B. Lakshminarayanan, A. Pritzel, and C. Blundell Simple and scalable predictive uncertainty estimation using deep ensembles. In Advances in Neural Information Processing Systems, Cited by: §2.
S. Linderman, M. J. Johnson, and R. P. Adams Dependent multinomial models made easy: stick-breaking with the Pólya-Gamma augmentation. In Advances in Neural Information Processing Systems, Cited by: §2.
I. Loshchilov and F. Hutter Decoupled weight decay regularization. In International Conference on Learning Representations, Cited by: Appendix B.
W. J. Maddox, P. Izmailov, T. Garipov, D. P. Vetrov, and A. G. Wilson A simple baseline for Bayesian uncertainty in deep learning. In Advances in Neural Information Processing Systems, Cited by: §2.
M. Minderer, J. Djolonga, R. Romijnders, F. Hubis, X. Zhai, N. Houlsby, D. Tran, and M. Lucic Revisiting the calibration of modern neural networks. In Advances in Neural Information Processing Systems, Cited by: §2.
A. R. Minut, N. Daheim, M. Miani, M. E. Khan, W. Lin, and T. Möllenhoff SOAP-bubbles: structured weight uncertainty for neural networks. arXiv preprint arXiv:2606.23357. Cited by: §6.
B. Mlodozeniec, P. Ablin, L. Béthune, D. Busbridge, M. Klein, J. Ramapuram, and M. Cuturi Completed hyperparameter transfer across modules, width, depth, batch and duration. arXiv preprint arXiv:2512.22382. Cited by: §D.3, §4.3.
J. Mukhoti, V. Kulharia, A. Sanyal, S. Golodetz, P. H. S. Torr, and P. K. Dokania Calibrating deep neural networks using focal loss. In Advances in Neural Information Processing Systems, Cited by: §2.
N. G. Polson, J. G. Scott, and J. Windle Bayesian inference for logistic models using Pólya–Gamma latent variables. Journal of the American Statistical Association 108 (504), pp. 1339–1349. Cited by: §2.
Y. Qi and T. S. Jaakkola Parameter expanded variational Bayesian methods. In Advances in Neural Information Processing Systems, Cited by: §A.3, §3.3.
Y. Shen, N. Daheim, B. Cong, P. Nickl, G. M. Marconi, C. Bazan, R. Yokota, I. Gurevych, D. Cremers, M. E. Khan, and T. Möllenhoff Variational learning is effective for large deep networks. In Proceedings of the 41st International Conference on Machine Learning, Proceedings of Machine Learning Research. Cited by: §6.
O. Siméoni, H. V. Vo, M. Seitzer, F. Baldassarre, M. Oquab, et al. DINOv3. arXiv preprint arXiv:2508.10104. Cited by: Appendix B, §4.
J. Snoek, Y. Ovadia, E. Fertig, B. Lakshminarayanan, S. Nowozin, D. Sculley, J. Dillon, J. Ren, and Z. Nado Can you trust your model’s uncertainty? Evaluating predictive uncertainty under dataset shift. Advances in Neural Information Processing Systems 32. Cited by: §2.
S. Thulasidasan, G. Chennupati, J. A. Bilmes, T. Bhattacharya, and S. Michalak On mixup training: improved calibration and predictive uncertainty for deep neural networks. In Advances in Neural Information Processing Systems, Cited by: §2.
M. K. Titsias, A. Galashov, A. Rannen-Triki, R. Pascanu, Y. W. Teh, and J. Bornschein Kalman filter for online classification of non-stationary data. In International Conference on Learning Representations, Cited by: §2.
A. G. Wilson, Z. Hu, R. Salakhutdinov, and E. P. Xing Deep kernel learning. In Artificial Intelligence and Statistics, pp. 370–378. Cited by: §2.
M. Wojnowicz, S. Aeron, E. Miller, and M. C. Hughes Easy variational inference for categorical models via an independent binary approximation. In Proceedings of the 39th International Conference on Machine Learning, Proceedings of Machine Learning Research, Vol. 162, pp. 23879–23899. Cited by: §1, §2, §2, §2, §3.2, §3.2, §3.3, §3.3, §5, §6.
Appendix A Derivations
This appendix derives the results that §3.2–§3.5 state without proof: the lower bound of §3.2 (Appendix A.1), the two updates of §3.3 (Appendix A.2), the parameter expansion (Appendix A.3), the steady state of the filter of §3.4 (Appendix A.4), the predictive of §3.5 (Appendix A.5) and the cost of a filtering step (Appendix A.6). Throughout, is the dimension of the padded feature , the matrix contains the features of the data being assimilated, which in the filter is one mini-batch (), and are the class scores at the posterior mean.
A.1 The categorical likelihood and its lower bound
Let and let denote the one-hot vector of class . Because and , the surrogate (2) assigns to this vector the probability
The probability that exactly one class is active is therefore , and conditioning the surrogate on this event gives
which is (3). Since , we have for every class and every . The inequality is preserved by the product over the data and by the expectation over the prior . The marginal likelihood of the categorical model is therefore larger than that of the surrogate, and the ELBO (6) of the surrogate is a lower bound on both.
A.2 The E-step and the M-step
Augmented model.
With the auxiliary variables of §3.3, the joint distribution of the labels, the auxiliary variables and the weights is
where is one if every has the sign prescribed by its label ( for and for ) and zero otherwise. Integrating out returns the surrogate (2), because . Coordinate ascent on the ELBO (6) sets the logarithm of each factor of to the expectation of under the other factor, up to an additive constant [Bishop, 2006].
E-step.
On the half-line prescribed by the label, the terms of (18) that contain give
because the expectation equals and its second term does not depend on . The factor is therefore a normal distribution with mean and unit variance, truncated to if and to if . The posterior covariance does not enter it, which is why the E-step uses the scores at the posterior mean. The first two moments of this truncated normal distribution are
The first is (7). The second is required by the parameter expansion of Appendix A.3.
M-step.
The terms of (18) that contain give
where is the -th column of . This is the logarithm of a normal density with the natural parameters (8). The precision depends neither on the class nor on . It is therefore computed once per batch, and only the means change during the inner iterations.
Relation to the Kalman filter.
Substituting into gives the M-step in the form
This is the update of a Kalman filter with observation matrix , unit observation noise and gain , in which the expected auxiliary variables take the place of the observations. In a linear-Gaussian model the observations are given and (22) is applied once. Here depends on through (20), so the E-step and (22) are iterated.
Value of the bound and its maximizer.
After an E-step, the ELBO (6) evaluates to
The first term is the log-likelihood of the surrogate at the posterior mean, the second is a penalty for the posterior variance of the scores, and the third is the divergence from the prior. With fixed, (23) depends on the means only through , which is strictly concave because is concave. The inner iterations therefore have a single fixed point, and the mean at this fixed point is the maximum-a-posteriori estimate of the probit regressions under the prior (4). The number of inner iterations determines how closely this estimate is approached at each batch.
A.3 Parameter expansion
Parameter expansion adds a scale parameter to the model, which makes the ELBO a function of , and maximizes the ELBO over in every inner iteration. The update (9), the quadratic equation for and its coefficients and all follow from this maximization, as shown below.
Why plain CAVI is slow.
In the exact posterior the overall scale of and the overall scale of are coupled, because has mean . The factorization does not represent this coupling. The E-step computes for the current scale of and the M-step computes for the current scale of , so the common scale changes by a small amount per iteration. Parameter-expanded variational Bayes [Qi and Jaakkola, 2007] introduces a parameter that changes both scales together and optimizes it in every iteration.
Expanded model.
For we define the model by
with the observation rule unchanged. It is the original model at . For any other value it is the original model in rescaled variables: if is distributed according to the original model, then is distributed according to . The labels depend only on the signs of the auxiliary variables, which the rescaling does not change, so for every . The parameter therefore does not change the marginal likelihood of the labels.
Expanded ELBO.
The ELBO of the expanded model,
is a lower bound on the same marginal likelihood for every , and it equals (6) at . For a given it does depend on , so it can be increased by maximizing over in addition to the two factors of . Let be the result of the E-step and let . The terms of (25) that depend on , on the means or on the covariance are
where as in (8) and the expectation in (27) is over only. The first term of comes from the likelihood of the auxiliary variables and the second from the prior. We maximize (26) over its three arguments in turn.
Covariance.
The maximizer of (26) over is , whatever the means. With this covariance the trace term is the constant and , so that
Means.
For a given , is quadratic in , and (28) is maximized by
At this is the plain M-step (8). We denote its mean by .
Scale.
Expanding the second term of (27) in powers of shows that, for given means, (28) is up to a constant, with
Its derivative with respect to is . Setting the derivative to zero gives the quadratic equation of (9), . Since , the equation has exactly one positive root,
and this root is the maximizer, because the derivative is positive below it and negative above it.
One inner iteration.
Each inner iteration of Algorithm 1 starts from the original model, , with the current mean , and performs the following steps.
- E-step. Compute the moments (20) of at the scores , and the data term .
- Means at . Set , the mean of the plain M-step.
- Scale. Set to the root (31), with and evaluated at .
- Means at the new . Set by (29). The covariance is .
- Reduction. Return to the original model by the change of variables , which maps to and divides the means by and the covariance by :
The result (32) is the update (9): the first natural parameter is and the precision is unchanged. In comparison with the plain M-step, the only difference is that the data term is divided by . Step 1 is line 8 of Algorithm 1, and steps 2 to 5 together are line 9.
The bound does not decrease.
Steps 2 to 4 each maximize (28) over one of its arguments, so none of them decreases the bound. Step 5 leaves the value of the bound unchanged, because a change of variables applied to both the model and does not change the divergence between them. The reduction also rescales , which the E-step of the next iteration replaces by the optimal factor, again without decreasing the bound. The ELBO (6) of the original model therefore does not decrease from one inner iteration to the next, and after each iteration it is at least as large as it would be after the plain M-step from the same .
Fixed point.
At a fixed point of plain CAVI the M-step returns the mean at which the E-step was evaluated, . By (20), , and summing over and gives . The M-step (8) gives . Substituting both into (30) gives
so solves the quadratic equation and the iteration leaves the fixed point unchanged. Conversely, at a fixed point of the PX iteration none of the steps increases the bound, so step 2 leaves the means unchanged and the point is a fixed point of plain CAVI. The two algorithms therefore have the same fixed point, which by Appendix A.2 is unique, and they differ only in the number of iterations needed to approach it. Away from the fixed point in general.
Form used in the implementation.
With and the scores of the plain M-step, the coefficients (30) at are
with from (20). The matrices and do not change during the inner iterations. They are computed once per batch from the Cholesky factorization of that the M-step already requires, so each inner iteration consists of matrix multiplications only.
A.4 The filtering recursion and its steady state
Prediction step.
Let and , where is independent of . Then , which is (11). This step involves no approximation. Because is the same for every class, the predicted covariance is again shared across classes, and the predicted distribution has the form of the prior (4) that the update of Appendix A.2 requires.
Covariance recursion.
Combining (11) with the precision of (8) gives
The covariance depends on the features only, and not on the labels or on the inner iterations. To analyse the recursion we consider the case in which every batch has the same Gram matrix, . Starting from , the matrix then has the eigenvectors of for every , and each of its eigenvalues follows the scalar recursion
where is the corresponding eigenvalue of , that is, the precision that one batch contributes in that direction. We refer to (36) as the scalar reduction. For batches that differ from one another it describes the average behaviour of the filter, with the average precision per batch, and the statements below hold in this approximate sense.
Without process noise.
For and , (36) gives , which decreases to zero as the number of batches increases.
Lower bound on the covariance.
For the recursion converges to the positive solution of ,
In the first regime the limit is the geometric mean of the process noise and the variance of the estimate from a single batch, and not itself. In the second regime the process noise is so large that the previous posterior contributes no information in this direction, and the posterior is that of the current batch alone.
Gain and memory.
In the scalar reduction, the update (22) with the prior mean of the prediction step reads
where is the data term of batch and is the estimate that this batch alone would give. At the steady state the weight of the newest batch is for , and the data term of a batch that was assimilated steps earlier enters the mean with the weight . The number of filtering steps over which a batch influences the posterior mean is therefore
The process noise thus determines both the lower bound (37) on the posterior covariance and the memory (39) of the filter.
The effective learning rate.
The gain in (38) is the learning rate of the mean: each batch moves the mean by the fraction of its distance to the estimate of that batch. The precision that a batch of inputs contributes is , where is the second moment of the features in the direction considered. With the parametrization of (12),
For features of unit scale per coordinate in every direction, so is the steady-state gain itself and is the memory of the filter in steps, which is why we call the effective learning rate of the head. For the features used in the experiments, which are not normalised (Appendix B), differs between directions, and is the gain up to the factor . Appendix D.3 uses (39) to derive how has to change with the number of training steps.
A.5 The posterior predictive
Expectation of the probit function.
Let and let be independent of . Then , and
because . This identity is exact.
Moderated scores.
A new input is scored by the head one transition after its last update, so the weights have the predicted distribution of (11). The score is then normally distributed with mean and variance , and (41) gives (13). Neither nor depends on the class, so is one positive number per input. Dividing all scores by it does not change their order, and hence does not change the predicted class. It changes only the confidence of the prediction.
Class probabilities.
The factor and the transition (10) are both independent across classes. Under the predictive distribution of the surrogate, the binary variables of an input are therefore independent, with probabilities , where . Conditioning this distribution on exactly one active class, as in Appendix A.1, gives the class probabilities (14). They are the predictive distribution of the surrogate conditioned on one active class. They are not the expectation of (3) under , which has no closed form.
A.6 Computational cost of a filtering step
One filtering step on a batch of inputs consists of the following operations. The prediction step factorizes and solves for and , at a cost of . The update forms , factorizes it, and computes and the two constant matrices of (34), at a cost of . Each of the inner iterations then computes the scores , the data term and the coefficients and by matrix multiplications, at a cost of , of which the second term is due to the parameter expansion. Finally and are obtained from the factorization of . The total cost of a step is
with two Cholesky factorizations per batch, whose cost depends neither on nor on , and an inner loop that is linear in .
The state of the head consists of the means, with entries as in any linear head, and the shared covariance, with distinct entries for any number of classes. A per-class diagonal covariance, as in the diagonal parameterization of VBLL, has entries, and a per-class factorization of rank has .
Appendix B Experimental setup
This appendix describes what is common to all experiments. The protocols of the probing and detection experiments and of the fine-tuning experiment are given in Appendices C and D.
Backbones and features.
All experiments use DINOv3 [Siméoni et al., 2025], in the four sizes ViT-S+/16, ViT-B/16, ViT-L/16 and ViT-H+/16, which we refer to as Small, Base, Large and Huge and which produce features of dimension , , and . The feature is the mean of the patch tokens of the final layer. The features are used as the backbone produces them, without normalisation; for DINOv3-Huge their mean square per coordinate is between and on the probing datasets.
Datasets.
The probing experiments (§4.1) use Oxford Pets, Food-101, Flowers-102, Stanford Cars and DTD, and the detection experiments (§4.2) use CIFAR-10, CIFAR-100 and SVHN. For these experiments the features are extracted once per backbone and dataset, from images resized to pixels for the five probing datasets and to pixels for CIFAR-10/100 and SVHN, and stored. Every method therefore receives identical inputs, and none can benefit from different preprocessing. The fine-tuning experiment (§4.3) trains ViT-H+/16 end to end on ImageNet-1k [Deng et al., 2009] at pixels, without data augmentation, and evaluates under shift on ImageNet-R, -A, -V2 and -Sketch.
Methods.
IBProbit is the head of §3.3–§3.6. Every run uses the parameter expansion of §3.3, the loss (14) with the approximation (15), the initial state , , and a process noise that is constant during a run. Its hyperparameters are the process noise , the number of inner iterations and the batch size. AdamW+CE is a linear layer trained with the cross-entropy loss, and CE+TS applies to it a single temperature that is fitted on the validation set after training. VBLL is the classification head of Harrison et al. [2024] in its diagonal parameterization. Its predictive is the Monte Carlo estimate of the expected softmax, with samples in the probing experiments and in fine-tuning.
Optimization and implementation.
The gradient-trained heads (AdamW+CE and VBLL) and, in fine-tuning, the backbone are trained with AdamW [Kingma and Ba, 2015, Loshchilov and Hutter, 2019] at a constant learning rate. The cross-entropy and IBProbit experiments use JAX [Bradbury et al., 2018] with Equinox [Kidger and Garcia, 2021]; the VBLL experiments use the PyTorch implementation of Harrison et al. [2024]. In probing all methods read the same stored features; in fine-tuning the VBLL runs use a PyTorch implementation of the same pretrained backbone with the same pooled feature.
Metrics and seeds.
We report the accuracy, the negative log-likelihood (NLL) and the multiclass Brier score, which is computed over the full predictive vector. Detection is scored by the maximum softmax probability, for which we report the AUROC and the false-positive rate at a true-positive rate of . Test-set numbers are averaged over seeds: ten for the linear-probing and detection experiments (§4.1, §4.2) and five for full-network fine-tuning (§4.3). Figures 1 and 2 show the seed mean with error bars of standard deviation; in Figures 3 and 4 the bands are the range across seeds.
Compute resources.
The reported linear-probing and detection runs (§4.1, §4.2: 690 runs across three methods, four backbone sizes, seven datasets and ten seeds) total approximately 250 GPU-hours on NVIDIA A100s. The reported full-network fine-tuning runs (§4.3: three methods five seeds two epochs of ImageNet-1k on DINOv3-Huge) total approximately 280 GPU-hours on the same hardware, – hours per run, plus roughly GPU-hours for the separate workers that score the checkpoints of the PyTorch runs on the shift sets. The hyperparameter searches behind both cost substantially more than the reported runs: 21 studies of roughly 100 completed trials each for probing, and approximately GPU-hours for the three DINOv3-Huge fine-tuning studies whose configurations are reported (Appendix D.2). The project as a whole cost considerably more again, through the DINOv3-Large studies, the process-noise measurements of Appendix D.3, preliminary exploration, abandoned configurations and earlier algorithm variants.
Appendix C Linear probing and detection: protocol, tuning and final runs
Figures 1 and 2 compare three heads, so the comparison is only as reliable as the tuning of the two baselines. This appendix describes the protocol of these experiments in the order in which it is carried out: the training procedure, the data splits and the budget, then the hyperparameter search, the final runs behind every plotted point, and the caveats that apply to the figures. One protocol is applied identically to every method. The fine-tuning experiment of §4.3 was tuned separately and is described in Appendix D.
Training procedure.
Each method is trained on the stored features of the training split of a dataset. AdamW+CE and VBLL take one AdamW step per mini-batch. IBProbit takes one filtering step per mini-batch (Algorithm 1), which requires no gradient computation. The filter makes repeated passes over the training data, and its posterior is carried from one pass to the next without a reset.
Data splits.
Training uses the full training split. A fixed of the held-out split of each dataset, the same for every method and seed, is the validation set: it is used to select the evaluation at which a run is scored, to score the search trials and to fit the temperature. All reported numbers are computed on the remaining . For Flowers-102 the training split is the official one of images and the held-out split is the union of the official validation and test sets.
Budget and evaluation.
Every run of every method has the same budget of steps, expressed as whole epochs at that run’s batch size, so two configurations with different batch sizes receive the same number of updates rather than the same number of passes. The validation NLL is evaluated on a grid that is uniform in the number of training samples, with the same interval for every batch size of a dataset. A run is scored at the evaluation with the lowest validation NLL.
Search spaces.
Each method is searched over its own hyperparameters. AdamW+CE: learning rate and weight decay , both log-uniform, plus batch size over a per-dataset set of powers of two. VBLL adds its three variational hyperparameters — KL ratio , prior scale , Wishart scale , all log-uniform — for six searched dimensions, the largest of the three. IBProbit has neither a learning rate nor a weight decay, because the head is updated in closed form and the backbone is frozen; it is searched over (log-uniform in ), the number of inner iterations , and batch size. Temperature scaling is not searched — it is fit post hoc on the validation split, so CE+TS uses none of the CE search budget and improves the baseline at no additional search cost.
Objective, and the smoothing window.
A trial scores the lowest mean validation NLL over any two consecutive evaluations, rather than the single lowest value. Each trial is run with two seeds, neither of which is among the ten reported ones, and its score is the mean over the two. The width of the window affects which configurations are selected. On a trajectory that does not converge, the single-point minimum reflects the amplitude of the noise rather than the level reached, and the search favours configurations whose validation loss oscillates strongly enough to reach low values: on Oxford Pets the unsmoothed objective selected a CE learning rate of whose late-phase standard deviation is its own median, over a configuration more stable and better on test NLL.
Only methods with a learning rate can benefit from this, so the bias is not symmetric across the methods being compared. A window that is too wide has a different undesired effect, on IBProbit. We measured both by repeating the entire search at each width. Widths and select the same operating point for IBProbit (within NLL at every task and FPR@95 at every pair), while width selects at its lower search bound, — confirmed on an independent search seed — and increases FPR@95 by a factor of three on CIFAR-10 vs SVHN. Conversely the gradient-trained methods need width to avoid the selection of noisy minima described above. Width is the only setting satisfying both, and it is applied uniformly to all three methods; no method is tuned under an objective of its own.
Search procedure and depth.
Each (method, dataset) study is a separate Optuna [Akiba et al., 2019] TPE search run by four parallel workers against a shared journal, with a median pruner (20 startup trials, 10 warmup evaluations). In addition, a trial is stopped early after 40 consecutive evaluations without relative improvement. Workers stop once the study holds 100 completed trials, counting across workers, so the search depth is fixed in advance and does not depend on how many trials the pruner stopped. Of the 21 studies, 17 reached that target. Four stopped short — IBProbit on Oxford Pets (73 completed) and Stanford Cars (86), CE (79) and VBLL (89) on CIFAR-10 — because prune rates in those studies reach – and the per-worker trial limit was reached first. We report the shortfall instead of adding trials: in the two CIFAR-10 studies a further 600 trials yielded only nine additional completions, which indicates a converged study rather than one with too few trials. Table 2 lists every selected configuration.
Final runs.
Reported numbers come from new runs at the selected configuration, never from the search trials. Each final run uses the full -step budget, without the early stopping of the search, and is scored at the evaluation with the lowest validation NLL. At DINOv3-Huge this evaluation falls, for IBProbit, after a median of (DTD) to (Flowers-102) passes over the training data. Figure 1 is 3 methods 4 backbone sizes 5 tasks 10 seeds runs, all of which completed. The figure uses 598 of them: one seed each of CE on Food-101 and of IBProbit on Flowers-102 at DINOv3-Base was excluded by the analysis script, which carried over an exclusion list from an earlier campaign in which these two runs had failed, so those two settings have nine seeds. Figure 2 is 3 methods 3 pairs 10 seeds runs, all of which completed.
Caveats.
There are three, all of which affect how the figures should be interpreted. Only DINOv3-Huge was tuned. The other three backbone sizes use the configuration tuned at Huge, and the backbones produce 384/768/1024/1280-dimensional features, so a configuration optimal at one is not guaranteed optimal at another; the non-Huge points in Figure 1 are therefore not separately optimized for any method, which is a limitation applying equally to all three. 69 of the 598 runs are budget-truncated, meaning their validation optimum falls in the last 10% of the step budget and the plotted point is a lower bound; these concentrate at DINOv3-Small and on Food-101, and the figure marks them. The IBProbit configuration on Oxford Pets is close to a region where training diverges: 30 of the 600 trials in that study produced a non-finite validation NLL at every evaluation, all at batch 1024 with , which is also the setting of the selected configuration. The selected configuration itself completed in all ten reported seeds, but roughly one trial in nine with these settings fails.
Table 2: Selected configurations, one per (method, dataset), tuned at DINOv3-Huge and applied at every backbone size. epochs restates the shared 30,000-step budget at that entry’s batch size and is not an independent hyperparameter. The final column is the number of completed trials the study reached. IBProbit has no learning rate or weight decay: its head update is closed-form.
| AdamW + cross-entropy (+ post-hoc temperature scaling) | |||||
|---|---|---|---|---|---|
| Dataset | batch | learning rate | weight decay | epochs | trials |
| Oxford Pets | 64 | 527 | 102 | ||
| Food-101 | 512 | 205 | 100 | ||
| Flowers-102 | 256 | 10000 | 103 | ||
| Stanford Cars | 64 | 237 | 102 | ||
| DTD | 64 | 518 | 100 | ||
| CIFAR-10 | 512 | 310 | 79 | ||
| CIFAR-100 | 512 | 310 | 101 | ||
| IBProbit | |||||
| Dataset | batch | epochs | trials | ||
| Oxford Pets | 1024 | 192 | 10000 | 73 | |
| Food-101 | 1024 | 64 | 411 | 103 | |
| Flowers-102 | 256 | 32 | 10000 | 103 | |
| Stanford Cars | 256 | 192 | 968 | 86 | |
| DTD | 64 | 192 | 518 | 102 | |
| CIFAR-10 | 64 | 128 | 39 | 102 | |
| CIFAR-100 | 128 | 32 | 77 | 102 |
| VBLL (diagonal parameterization) | |||||||
|---|---|---|---|---|---|---|---|
| Dataset | batch | lr | weight decay | KL ratio | prior scale | Wishart scale | trials |
| Oxford Pets | 128 | 101 | |||||
| Food-101 | 128 | 100 | |||||
| Flowers-102 | 64 | 102 | |||||
| Stanford Cars | 64 | 100 | |||||
| DTD | 64 | 103 | |||||
| CIFAR-10 | 1024 | 89 | |||||
| CIFAR-100 | 512 | 102 |
Appendix D Full-network fine-tuning: procedure, tuning and transfer
This appendix describes the fine-tuning experiment of §4.3 in the order in which it is carried out: the training step (Appendix D.1), the hyperparameter search at a short training duration (Appendix D.2), the transfer of the selected hyperparameters to the reported duration, which includes the scaling law for the process noise and its empirical validation (Appendix D.3), and the final runs (Appendix D.4). We write for the number of training steps of a run. For IBProbit every training step contains one filtering step, so is also the number of filtering steps.
D.1 Training procedure
Common settings.
All three methods fine-tune all weights of DINOv3-Huge on ImageNet-1k with AdamW at a constant learning rate. The batch size is , reached by accumulating the gradients of micro-batches of images ( for VBLL). Layer-wise learning-rate decay reduces the learning rate by a constant factor from each of the blocks of the backbone to the block below it, such that the learning rate of the input embedding is times that of the last block. The backbone is evaluated in bfloat16 precision, and the weights, the optimizer state and the head are kept in float32.
The training step of IBProbit.
One training step on a batch consists of three operations.
- Loss and gradient. The backbone computes the features of the batch, and the loss (14) is evaluated with the head of the previous step, . The gradient of the loss is taken with respect to the weights of the backbone only. It passes through the features into both the class scores and the factor of (13), and the head is a constant in this computation.
- Backbone step. AdamW updates the backbone with the gradient averaged over the batch.
- Head step. The features computed in the first operation, together with the labels, are assimilated by one filtering step of Algorithm 1 on the whole batch of , which gives .
The loss of a batch is thus evaluated before the head has assimilated that batch. In the first step the head is in its initial state , for which the loss does not depend on the features, so only the head step is performed. The head is not reset between epochs: the process noise discounts the evidence obtained from features that earlier states of the backbone produced.
The training step of the baselines.
For AdamW+CE and VBLL the head is trained jointly with the backbone by the same AdamW steps. The learning rate of the head is a multiple of that of the backbone, and this multiple is a searched hyperparameter.
Data splits.
A fixed partition of images, of the official ImageNet validation set, is the validation set of this experiment: it is used to score the search trials and to fit the temperature of CE+TS. The remaining images are the test set on which every figure and table reports.
D.2 Hyperparameter search
Search setting.
Each method is tuned at the reported backbone, DINOv3-Huge, at a short training duration: steps ( samples, about a third of an epoch), with the validation NLL evaluated every samples. Each study is a TPE search with a median pruner, and each trial uses one seed, which is not among the reported ones.
Search spaces.
The searched coordinates are chosen to be invariant under the transfer to the reported duration (Appendix D.3), so that the selected values remain valid after the transfer. Learning rate and weight decay are searched per , and the AdamW moment decays as the products , which we call horizons, with the -horizon in and the -horizon in . At batch the learning-rate search range is for every method, and the weight-decay search range is for cross-entropy, for VBLL and for IBProbit. Cross-entropy and VBLL also search the head’s learning rate as a multiple of the backbone’s, ; VBLL adds its KL ratio and prior scale . IBProbit has no head learning rate. It searches with the number of inner iterations fixed at , since at a value of appropriate for the training duration and inner iterations gave validation NLL within of each other (DINOv3-Large, steps, one seed).
Objective.
Every reported configuration is the trial with the lowest mean validation NLL over its last five evaluations. A trial is also stopped when its validation NLL has not improved by a relative over consecutive evaluations; such a trial counts as completed and is scored on its last five evaluations. Scoring the end of the trajectory rather than its minimum is important for a method with a forgetting rate: a search that scores the minimum of a truncated curve prefers configurations whose validation loss is low early and then degrades, which selects a process noise that is too large (Appendix D.3). The IBProbit study was run under this objective directly, with pruning deferred to of the run, and completed trials. The cross-entropy and VBLL studies were run earlier with pruning after ten evaluations and completed and trials; their reported configurations are selected by applying the same objective to those completed trials. Both searches had converged — among their near-best trials every cross-entropy coordinate lies within a factor and every VBLL coordinate within — so rerunning them at IBProbit’s smaller completion target would have given the baselines a weaker search, not a fairer one.
D.3 Transfer to the reported training duration
The search is run at steps and the reported runs at steps, which is two epochs, at the same batch size. Hyperparameters whose appropriate value depends on the number of steps have to be converted from one duration to the other. We first state the two rules that we use, and then report the measurements that test the second of them.
AdamW hyperparameters.
For the hyperparameters of AdamW we use the scaling rule derived from its stochastic-differential-equation limit [Mlodozeniec et al., 2025]. The learning rate and the weight decay are multiplied by . The moment decays are set such that the horizons are unchanged, which keeps the averaging window of each moment estimate at a fixed fraction of the run. The ratio of the head and backbone learning rates is unchanged.
Process noise: the scaling law.
The rule for AdamW does not cover the process noise , whose appropriate value also depends on the number of steps. By (39), a batch influences the posterior mean of the head over filtering steps, where is the precision that one batch contributes. We require that is the same fraction of the run at both durations. This is the requirement that the rule above places on the averaging windows of AdamW, applied to the head. At a fixed batch size does not change, so is unchanged if and only if
In terms of the effective learning rate of (12), the law is : the effective learning rate of the head is inversely proportional to the number of steps. For the reported runs, (43) gives (Table 3). The exponent is a consequence of the steady state of the filter and is not fitted to data.
Empirical validation.
We tested (43) by measuring the best value of at three training durations. On DINOv3-Large we evaluated seven values of , six from to , one decade apart, and , at , and steps, with one seed per setting. All other hyperparameters were those of the tuned configuration, transferred to each duration by the rule for AdamW above, so that only the number of steps and varied. The best value on this grid decreases by one decade from to steps and by one further decade from to steps:
| steps | |||
|---|---|---|---|
| best |
Fitting to the first interval gives . The second interval is consistent with within the resolution of the grid: predicts at , between the grid values , which has the lowest test NLL (), and (). An exponent fits less well: it predicts at , between the grid values and , and at the latter the test NLL is higher than at the optimum ( against ).
Effect of a value that is too large.
When is roughly two decades above the value appropriate for the training duration, the in-distribution NLL reaches its minimum near half the budget and increases for the remainder. Below the appropriate value the curve descends monotonically to its final evaluation instead. This is why cannot be transferred unchanged from the short duration of the search, and why the search scores the end of the trajectory (Appendix D.2).
Test on a second backbone.
We applied (43) to a backbone on which it was not measured: DINOv3-Huge, at a matched budget, with the same tuned trial and only rescaled. The rescaling reduces the rise of the validation NLL past its minimum by and improves the test NLL at the validation-optimal evaluation from to , and at the end of training from to (one seed).
Limits.
The derivation of (43) uses the scalar reduction of Appendix A.4 in the regime and assumes a fixed batch size. The exponent is measured at one backbone size. The rise of the validation NLL that remains at DINOv3-Huge is consistent either with a starting value of that was selected under an objective that scores the minimum of a truncated curve, or with a dependence of the exponent on the width of the backbone that we have not identified, and the two are not separated by the experiments reported here.
D.4 Final runs
Table 3 gives the values selected by the search and the values after the transfer. Each method is run with the transferred values for five seeds, 15 runs in all. Validation and test metrics are computed every samples, which gives evaluations per run, and the shift sets are scored at every second evaluation. Cross-entropy and IBProbit evaluate the shift sets in the training process; VBLL writes checkpoints that a separate worker scores, which is why its compute is accounted separately in Appendix B. All 15 runs completed with every scheduled evaluation present.
Wall-clock time and memory.
The wall-clock comparison of Figure 5 is made on fixed hardware with an identical training protocol across methods. It remains dependent on the implementation (matrix-multiplication dispatch, mixed precision, Cholesky kernel, just-in-time compilation) and should be interpreted as a comparison between these implementations rather than between the methods in general. We do not report peak memory for the fine-tuning runs. At and the states of the two Bayesian heads (Appendix A.6) differ by less than MB, which a measurement of the peak memory of end-to-end training cannot resolve, because the activations of the backbone dominate the peak. A comparison across frameworks would in addition have to match XLA’s peak_bytes_in_use against PyTorch’s max_memory_reserved, statistics that are defined differently enough that the choice between max_memory_reserved and max_memory_allocated alone changes the PyTorch result by several GiB, which is more than the differences being compared.
Table 3: Selected fine-tuning configurations at DINOv3-Huge. The upper rows are the values the search selected at steps; the lower rows are what each run of Figures 3–5 and Table 1 actually used at steps, after the transfer of Appendix D.3. Every run uses batch size , a constant learning rate and the same layer-wise decay.
| AdamW+CE | VBLL | IBProbit | |
|---|---|---|---|
| Selected at steps | |||
| completed trials | |||
| learning rate / | |||
| weight decay / | |||
| -horizon / -horizon | / | / | / |
| head / backbone learning rate | — | ||
| KL ratio / prior scale | — | / | — |
| process noise | — | — | |
| As run at steps | |||
| learning rate | |||
| head learning rate | — | ||
| weight decay | |||
| / | / | / | / |
| process noise / inner iterations | — | — | / |