Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Variational Routing: A Scalable Bayesian Framework for Calibrated Mixture-of-Experts Transformers

About

Foundation models are increasingly being deployed in contexts where understanding the uncertainty of their outputs is critical to ensuring responsible deployment. While Bayesian methods offer a principled approach to uncertainty quantification, their computational overhead renders their use impractical for training or inference at foundation model scale. State-of-the-art models achieve parameter counts in the trillions through carefully engineered sparsity including Mixture-of-Experts (MoE) layers. In this work, we demonstrate calibrated uncertainty at scale by introducing Variational Mixture-of-Experts Routing (VMoER), a structured Bayesian approach for modelling uncertainty in MoE layers. VMoER confines Bayesian inference to the expert-selection stage which is typically done by a deterministic routing network. We instantiate VMoER using two inference strategies: amortised variational inference over routing logits and inferring a temperature parameter for stochastic expert selection. Across tested foundation models, VMoER improves routing stability under noise by 38\%, reduces calibration error by 94\%, and increases out-of-distribution AUROC by 12\%, while incurring less than 1\% additional FLOPs. These results suggest VMoER offers a scalable path toward robust and uncertainty-aware foundation models.

Albus Yizhuo Li, Matthew Wicker• 2026

Related benchmarks

TaskDatasetResultRank
Multiple-choice Question AnsweringOpenBookQA (test)
Accuracy81.8
39
Science KnowledgeSciQ
Accuracy88.4
21
Common senseOpenBookQA
Accuracy81.8
21
MedicalMedMCQA
Accuracy (ACC)56.2
21
ReasoningARC Challenge
Accuracy (ACC)88
21
Out-of-Distribution DetectionARC-E Near-Domain
AUROC62.1
7
Out-of-Distribution DetectionARC-C Near-Domain
AUROC70.9
7
Out-of-Distribution DetectionMedMCQA Far-Domain
AUROC84.4
7
Out-of-Distribution DetectionMMLU Law (Far-Domain)
AUROC83.4
7
Showing 9 of 9 rows

Other info

Follow for update