Manuscript Offprint

arXiv:2610.11668

σσTransfer: Uncertainty Transfer from Small to Large Networks under μPμ\mathrm{P}

Richard Bergna, Fernando Ruiz Mazo, Nicolò Felicioni, José Miguel Hernández-Lobato, Kamil Ciosek

σ\sigma TRANSFER: UNCERTAINTY TRANSFER FROM SMALL TO LARGE NETWORKS UNDER μ\muP

Richard Bergna 1,2∗^{1,2*} Fernando Ruiz Mazo 1^{1} Nicolò Felicioni 2^{2}

José Miguel Hernández-Lobato 1^{1} Kamil Ciosek 2^{2}

1^{1}University of Cambridge 2^{2}Spotify

ABSTRACT

Reliable predictive uncertainty in Laplace approximations depends critically on the prior precision, yet selecting it requires a posteriori sweep that is prohibitively expensive for neural networks with billions of parameters. Under the Maximal Update Parametrization ( μ\muP), we derive a rescaling of the prior covariance that makes the selected precision stable as model width grows. This leads to σ\sigmaTransfer: we select the precision on a smaller model and zero-shot transfer it to the much larger model, i.e., without searching for the precision on the larger model at all. We show convergence of the prior kernel, posterior covariance, selected precision, and posterior-derived decisions under explicit conditions, and verify σ\sigmaTransfer across regression, image classification, and Transformer readouts. For example, measured precision-sweep speedups reach ∼5000×\sim5000\times when transferring from width 128 to 4096 on MNIST, at a target-NLL degradation of 0.002; transferring from a public 1B to 7B model gives a median search speedup of ∼2.3×\sim2.3\times (up to ∼330×\sim330\times), with a mean measured target-NLL increase below 10−410^{-4} across ten tasks. The same posterior stability also enables transfer of acquisition, OOD-detection, and abstention decisions without constructing a target posterior.

References (100)

  • Pen-based recognition of handwritten digits (opens the publisher in a new tab)
  • Adapting the linearised Laplace model evidence for modern deep learning
  • Sampling-based inference for large linear models, with application to linearised Laplace
  • Prediction-oriented Bayesian active learning
  • A suite for analyzing large language models across training and scaling
  • u-μP: The unit-scaled maximal update parametrization
  • A large annotated corpus for learning natural language inference
  • Deep learning for classical japanese literature (opens arXiv in a new tab)
  • Laplace redux-effortless bayesian deep learning
  • Transforming neural-net output levels to probability distributions
  • Deep bayesian active learning with image data
  • A baseline for detecting misclassified and out-of-distribution examples in neural networks (opens arXiv in a new tab)
  • Bayesian active learning for classification and preference learning (opens arXiv in a new tab)
  • Open graph benchmark: Datasets for machine learning on graphs
  • Scalable marginal likelihood estimation for model selection in deep learning
  • Improving predictions of bayesian neural nets via local linearization
  • Batchbald: Efficient and diverse batch acquisition for deep bayesian active learning
  • Similarity of neural network representations revisited
  • Being bayesian, even just a bit, fixes overconfidence in relu networks
  • Learnable uncertainty under laplace approximations
  • Gradient-based learning applied to document recognition
  • Learning question classifiers
  • Learning word vectors for sentiment analysis
  • Optimizing neural networks with kronecker-factored approximate curvature
  • Freesolv: a database of experimental and calculated hydration free energies, with input files
  • Seeing stars: Exploiting class relationships for sentiment categorization with respect to rating scales
  • The FineWeb datasets: Decanting the web for the finest text data at scale
  • A scalable laplace approximation for neural networks
  • Extended-connectivity fingerprints
  • Carer: Contextualized affect representations for emotion recognition
  • David Slate. Letter recognition. UCI Machine Learning Repository, 1991. URL https://doi.org/10.24432/C5ZP40. (opens the publisher in a new tab)
  • Recursive deep models for semantic compositionality over a sentiment treebank
  • Moleculenet: a benchmark for molecular machine learning
  • Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithms
  • Greg Yang. Tensor programs ii: Neural tangent kernel for any architecture. arXiv preprint arXiv:2006.14548, 2020a. (opens arXiv in a new tab)
  • Greg Yang. Tensor programs iii: Neural matrix laws. arXiv preprint arXiv:2009.10685, 2020b. (opens arXiv in a new tab)
  • Tensor programs iv: Feature learning in infinite-width neural networks
  • Tensor programs ivb: Adaptive optimization in the infinite-width limit (opens arXiv in a new tab)
  • Tuning large neural networks via zero-shot hyperparameter transfer
  • Character-level convolutional networks for text classification
  • Establishing the corresponding convergence conditions for our Transformer settings and determining the proxy width needed for a given transfer accuracy remain open
  • Another important direction is to move beyond width-only transfer and derive prior-scaling rules for models whose width and depth increase together
  • We compare SP, standard parametrization with an isotropic stored-coordinate prior; $\mu\text{P} + \text{isotropic}$, $\mu\text{P}$ training with the same stored-coordinate prior; and $\sigma\text{Transfer}$, $\mu\text{P}$ training with the width-normalized prior (ours)
  • Flattened pixels lie in $[0, 1]$, and the classification head has no bias
  • The width-128 model is the proxy; target widths use the proxy-selected numerical $\lambda$ unchanged
  • The full approximation stores the entire $P \times P$ matrix $(O(P^2)$ memory, $O(P^3)$ inversion), giving the exact linearized posterior
  • Kernel stability alone does not imply posterior stability: the exact last-layer posteriors of Section 6 test whether it survives conditioning
  • Each dataset uses the OGB scaffold split (Hu et al., 2020) of its MoleculeNet original (ogbg-molesol, ogbg-molfreesolv, ogbg-mollipo), so training, validation, and test molecules occupy disjoint scaffolds
  • The width-512 model is the proxy and width 4096 the target
  • + empirical
  • For matching seeds within each parametrization, priors share checkpoints, data splits, and likelihood settings
  • These comparisons concern mean transfer gaps, not statistical significance or absolute predictive quality
  • For each dataset, we use 5,000 training and 1,000 validation examples and standardize inputs using training-set statistics
  • At each trained checkpoint, we select the prior precision by maximizing the fixed-checkpoint Laplace log-evidence
  • at width 4096 the target's own plug-in score optimum sits away from the test optimum, so a transferred precision can attain a lower test NLL than the target's own selection
  • Table 9 expands this across all measured target widths
  • Filled markers use the proxy-selected precision; open markers use target-side selection
  • The agreement ordering replicates with a compressed baseline spread ( $\bar{\rho} = 0.73$ for $\sigma$Transfer against 0.36–0.43)
  • Left: per-round Spearman correlation between the width-128 and width-4096 acquisition scores (band: 95% CI of the mean)
  • Each run starts with 20 labelled examples and acquires 20 per round until 1,000 are labelled, giving 50 evaluations including the initial fit
  • We warm-start the weights each round and use full-batch Adam (SP) or MuAdam ( $\mu$P), both at learning rate $10^{-3}$, for at most 500 updates
  • The agreement ordering replicates ( $\bar{\rho} = 0.73 \pm 0.02$ for $\sigma$Transfer against 0.36–0.43; see also Figure 7), with a compressed baseline spread
  • 95% CI of the mean)
  • We train decoder-only Transformers at hidden widths 128, 256, 512, 1024, 2048
  • 95% CI of the mean; same protocol and encoding as Figure 10)
  • (a) Proxy–target acquisition-rank agreement
  • They are trained on the same stream of $10^{9}$ FineWeb-Edu tokens (Penedo et al., 2024)
  • SP uses nn.Linear and AdamW at learning rate 0.0003
  • Agreement between the proxy and target posteriors, with the target evaluated at the transferred precision: Spearman rank correlation of EPIG scores, top-10 acquisition-set Jaccard, and symmetric predictive KL (lower better)
  • ><tr><td rowspan=
  • Regret = oracle-EPIG accuracy – method accuracy
  • After the final acquisition, we evaluate the target's MAP predictions on 7,600 test examples
  • We choose the proxy's prior precision using ID validation data and OOD source $A$
  • Answered prompts use the large model's MAP predictions
  • OOD recall is the fraction of OOD prompts rejected, and ID retention is the fraction of ID prompts answered
  • Its precision is $\alpha D$, where $D = \mathrm{diag}(H)$ and $H$ is the summed last-layer GGN. We compute $D$ from training data at each width and transfer $\alpha$ from width 128 to 2048
  • $\lambda$ values are $\log_2$
  • Thus this normalization leaves substantial precision drift in our fixed-checkpoint experiment
  • Each model's search time is its curvature eigendecomposition plus grid sweep (u-$\mu$P family; SP within 10%); Yahoo and DBpedia run on CPU because their 41k/57k-dimensional eigenproblems exceed the GPU solver
  • Precision gaps are in bits (mean $\pm$ s.d
  • For an internal matrix, $\widetilde{W}^\ell = W^\ell/\sqrt{n}$ is the canonical $\mu$P matrix parameter; parameter and optimizer scalings transform together under Yang & Littwin (2023, Proposition 2.2.3 and Definition 2.9.12)
  • The parameter derivatives are
  • The kernel therefore converges by continuity of finite sums and products
  • The adapter supports nn.Linear and MuReadout parameters
  • For the first result, finite-set forward and backward Gram convergence is derived from TP-admissible finite-step $\mu$P training rather than assumed
  • For finite input sets $A, B$, write
  • The Laplace posterior mean and covariance at prior precision $\lambda = \sigma_p^{-2}$ are
  • Finally, the normalized readout $f = n^{-1}a^\top h^L + c$ is stable by Cauchy–Schwarz, as are the empirical forward and backward inner products
  • The fixed- $\delta$ limits are therefore Cauchy as $\delta \downarrow 0$, and a three- $\epsilon$ argument gives the claimed limits for exact ReLU
  • The prior-kernel blocks
  • Then, for every compact interval $\Lambda = [\lambda_-, \lambda_+] \subset (0, \infty)$
  • Since both $M_n(\lambda)$ and $M_\infty(\lambda)$ are bounded below by $I$
  • The convergence is uniform for $\lambda$ in every compact interval $\Lambda \subset (0, \infty)$
  • Diagonal and Kronecker-factored approximations retain the width-normalized coordinate interpretation, but their width limits depend on more than $K_n$
  • For an approximate positive-semidefinite curvature $\widetilde{H}_{\theta,n}$ in stored coordinates, define $\widetilde{H}_{\phi,n} = T_n^\top \widetilde{H}_{\theta,n} T_n$ and
  • Homogeneity therefore gives $\mathcal{Q}_g(H_{\phi,n,g}) = t_{n,g}^2\mathcal{Q}_g(H_{\theta,n,g})$
  • Then, for every compact $\Lambda = [\lambda_-, \lambda_+] \subset (0, \infty)$
  • For undamped KFAC, they are the eigenvalues of its block-Kronecker curvature
  • Under Proposition 2, if the corresponding predictive means converge uniformly and the assumptions of Theorems 3 and 4 hold, then their validation-NLL precision-transfer and decision-transfer conclusions hold with $C_n^\lambda$ replaced by $\widetilde{C}_n^\lambda$
  • Yet diagonal curvature gives

Couldn't load all references. Reload the page to try again.