arXiv:2611.07206cs.LGNov 2026

Manuscript Offprint

arXiv:2611.07206

TrustMix: Graceful Degradation for Pretrained Models under Distribution Shift

Juliusz Ziomek, Maike Osborne, Yee Whye Teh

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Juliusz Ziomek

Machine Learning Research Group University of Oxford Oxford OX1 2JD, United Kingdom

juliusz [at] robots (dot) ac.uk

Maike Osborne

Machine Learning Research Group University of Oxford Oxford OX1 2JD, United Kingdom

maike.osborne [at] eng (dot) ox.ac.uk

Yee Whye Teh

Department of Statistics University of Oxford Oxford OX1 2JD, United Kingdom

yee.teh [at] stats (dot) ox.ac.uk

Abstract

Predicting beyond the training domain necessarily requires assumptions about how the ground truth extrapolates, yet in most neural networks these assumptions are made only implicit through the architecture. We propose TrustMix, a lightweight post-hoc method that makes a pretrained model's extrapolative behaviour explicit and controllable. TrustMix combines the predictive distribution produced by a pretrained model with a user-specified fallback distribution p0(y∣x)p_0(y|x), such that as the out-of-distribution (OOD) deviation statistic grows, we collapse towards p0(y∣x)p_0(y|x). TrustMix provides graceful degradation: the predictive distribution converges toward the fallback distribution as the OOD signal grows. The fallback distribution p0(y∣x)p_0(y|x) can reflect domain knowledge, if available, or rely on a domain-agnostic stationarity assumption. TrustMix does not require retraining of the base model and can be applied to both regression and classification problems. We evaluated TrustMix on several synthetic and real-world distribution shifts, including tabular, image, and natural language processing tasks. We tested TrustMix on datasets such as CIFAR-10/100 and ImageNet and on numerous architectures including Convolutional Neural Networks (CNNs) and Transformers. TrustMix remains competitive in-distribution while improving predictive uncertainty under distribution shift, with gains in predictive likelihood for regression and calibration for classification. Finally, we showed that TrustMix can provide useful predictive distributions for decision-making applications by utilizing it as a surrogate for Bayesian Optimisation.

Keywords: deep learning; distribution shift; uncertainty quantification

1 Introduction

Nothing is more dangerous than a failure that is silent. Neural networks today are capable of achieving excellent performance within training distribution. However, their behaviour outside of this training domain is less understood. A network can be confident even when it is completely wrong and far from the domain it was trained upon. In general, making predictions under distribution shift requires assumptions about how patterns observed in the training data transfer beyond the training domain. Standard neural networks make such assumptions implicitly through their architecture; however, they lack a mechanism directly identifying the transitions from interpolation to extrapolation. To address this, Out-Of-Distribution (OOD) Detection methods have been developed.

Although OOD detection signals can identify inputs that appear to be unusual or atypical, they do not resolve the fundamental problem of prediction. An OOD score can indicate that the relationship between inputs and outputs that a model has learned may no longer apply; however it does not specify what the model should predict instead. While the optimal predictive distribution in those regions necessarily depends on domain assumptions, we believe that these assumptions can be made explicit. We present TRUSTMIX, a simple post-hoc framework for enabling graceful degradation of pretrained models during distribution shift. TrustMix separates the predictive behaviour that a model learns from data and the assumed fallback distribution p0(y∣x)p_0(y \mid x) to which the model collapses in OOD regimes. TrustMix gradually transitions from the base model's predictive distribution to the fallback distribution, as a scalar deviation signal D(x)D(x) grows. We specifically enforce the monotonicity of this transition architecturally, which guarantees that reliance on the base model is non-increasing as a function of D(x)D(x) and disappears entirely as D(x)→∞D(x) \to \infty. TrustMix does not eliminate model assumptions, but makes them controllable and explicit through the choice of fallback distribution p0(y∣x)p_0(y \mid x).

References (53)