Contextual Similarity Distillation: Ensemble Uncertainties with a Single Model
On the map: Offline RL and imitation learning from data → Offline RL algorithms
Abstract (arXiv)
Uncertainty quantification is a critical aspect of reinforcement learning and deep learning, with numerous applications ranging from efficient exploration and stable offline reinforcement learning to outlier detection in medical diagnostics. The scale of modern neural networks, however, complicates the use of many theoretically well-motivated approaches such as full Bayesian inference. Approximate methods like deep ensembles can provide reliable uncertainty estimates but still remain computationally expensive. In this work, we propose contextual similarity distillation, a novel approach that explicitly estimates the variance of an ensemble of deep neural networks with a single model, without ever learning or evaluating such an ensemble in the first place. Our method builds on the predictable learning dynamics of wide neural networks, governed by the neural tangent kernel, to derive an efficient approximation of the predictive variance of an infinite ensemble. Specifically, we reinterpret the computation of ensemble variance as a supervised regression problem with kernel similarities as regression targets. The resulting model can estimate predictive variance at inference time with a single forward pass, and can make use of unlabeled target-domain data or data augmentations to refine its uncertainty estimates. We empirically validate our method across a variety of out-of-distribution detection benchmarks and sparse-reward reinforcement learning environments. We find that our single-model method performs competitively and sometimes superior to ensemble-based baselines and serves as a reliable signal for efficient exploration. These results, we believe, position contextual similarity distillation as a principled and scalable alternative for uncertainty quantification in reinforcement learning and general deep learning.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Placed in Offline RL algorithms, one of 13 directions in Offline RL and imitation learning from data. Builds on 51 of its 68 references that are in the map. First posted on arXiv 14 Mar 2025.
Builds on
51 of 68 references.
Closest ancestors · 1
Same direction, newest first
Other references · 50
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
- 2018Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actorcited by 4,885
- 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,448
- 2017Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithmscited by 4,349
- 2016Simple and Scalable Predictive Uncertainty Estimation using Deep Ensemblescited by 3,926
- 2015Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classificationcited by 3,611
- 2018Neural Tangent Kernel: Convergence and Generalization in Neural Networkscited by 2,621
- 2018Addressing Function Approximation Error in Actor-Critic Methodscited by 2,417
- 2017Curiosity-driven Exploration by Self-supervised Predictioncited by 1,194
- 2015Prioritized Experience Replaycited by 1,099
38 more
- 2018Exploration by Random Network Distillationcited by 993
- 2018IMPALA: Scalable Distributed Deep-RL with Importance Weighted Actor-Learner Architecturescited by 883
- 2017Rainbow: Combining Improvements in Deep Reinforcement Learningcited by 786
- 2013Exact solutions to the nonlinear dynamics of learning in deep linear neural networkscited by 763
- 2019Wide Neural Networks of Any Depth Evolve as Linear Models Under Gradient Descentcited by 738
- 2016Unifying Count-Based Exploration and Intrinsic Motivationcited by 639
- 2017Deep Neural Networks as Gaussian Processescited by 622
- 2016Deep Exploration via Bootstrapped DQNcited by 527
- 2019Provably Efficient Reinforcement Learning with Linear Function Approximationcited by 520
- 2018Is Q-learning Provably Efficient?cited by 487
- 2019Deep Ensembles: A Loss Landscape Perspectivecited by 443
- 2018Deep Learning for Classical Japanese Literaturecited by 422
- 2021What Are Bayesian Neural Network Posteriors Really Like?cited by 308
- 2021Randomized Ensembled Double Q-Learning: Learning Fast Without a Modelcited by 288
- 2016ViZDoom: A Doom-based AI Research Platform for Visual Reinforcement Learningcited by 179
- 2017Deep Exploration via Randomized Value Functionscited by 156
- 2020Bayesian Neural Networks: An Introduction and Surveycited by 131
- 2016Why is Posterior Sampling Better than Optimism for Reinforcement Learning?cited by 117
- 2021DEUP: Direct Epistemic Uncertainty Predictioncited by 104
- 2021Repulsive Deep Ensembles are Bayesiancited by 104
- 2018Uncertainty in Neural Networks: Approximately Bayesian Ensemblingcited by 94
- 2020Bayesian Deep Ensembles via the Neural Tangent Kernelcited by 90
- 2017The Uncertainty Bellman Equation and Explorationcited by 82
- 2022BYOL-Explore: Exploration by Bootstrapped Predictioncited by 73
- 2021Spectral Normalisation for Deep Reinforcement Learning: an Optimisation Perspectivecited by 65
- 2018Information-Directed Exploration for Deep Reinforcement Learningcited by 52
- 2020Combining Ensembles and Data Augmentation can Harm your Calibrationcited by 44
- 2023Tractable Function-Space Variational Inference in Bayesian Neural Networkscited by 41
- 2021Exact Langevin Dynamics with Stochastic Gradientscited by 30
- 2021Deep Ensembles from a Bayesian Perspectivecited by 27
- 2022An Analysis of Ensemble Samplingcited by 24
- 2025Uncertainty Quantification with the Empirical Neural Tangent Kernelcited by 11
- 2021Fast and Data-Efficient Training of Rainbow: an Experimental Study on Ataricited by 10
- 2024Posterior Uncertainty Quantification in Neural Networks using Data Augmentationcited by 9
- 2023Diverse Projection Ensembles for Distributional Reinforcement Learningcited by 8
- 2021Model-Value Inconsistency as a Signal for Epistemic Uncertaintycited by 6
- 2022Disentangling the Predictive Variance of Deep Ensembles through the Neural Tangent Kernelcited by 4
- 2024Epistemic Uncertainty and Observation Noise with the Neural Tangent Kernelcited by 3
Built on by
Citing papers per year: 2025: 2; 2026: 1.
3 papers.
Similar, not cited
Close in wording, no citation either way
- 2022Simple Regularisation for Uncertainty-Aware Knowledge Distillation
- 2025Knowledge Distillation of Uncertainty using Deep Latent Factor Model
- 2023Generalized Uncertainty of Deep Neural Networks: Taxonomy and Applications
- 2023Neural State-Space Models: Empirical Evaluation of Uncertainty Quantification
- 2023Window-Based Early-Exit Cascades for Uncertainty Estimation: When Deep Ensembles are More Efficient than Single Models
- 2025GNN's Uncertainty Quantification using Self-Distillation
- 2026SGD-Based Knowledge Distillation with Bayesian Teachers: Theory and Guidelines
- 2023Multi-teacher knowledge distillation as an effective method for compressing ensembles of neural networks