English

Perturb and Correct: Post-Hoc Ensembles using Affine Redundancy

Machine Learning 2026-05-05 v1

Abstract

Models that are indistinguishable on in-distribution data can behave very differently under distribution shift. We introduce Perturb-and-Correct (P&C), a post-hoc method for constructing epistemically diverse predictors from a single pretrained network. P&C applies random hidden layer perturbations with a least-squares correction in the subsequent affine layer, producing predictors that agree on calibration data while remaining free to disagree away from it. We analyze this mechanism through the post-correction residual and its first-order sensitivity: the residual is controlled near the calibration distribution by a leverage term, while corrected sensitivity grows as inputs deviate from the calibration geometry. Empirically, P&C achieves a strong ID/OOD tradeoff across MuJoCo dynamics prediction and CIFAR-10 OOD detection, matching or outperforming standard post-hoc baselines while requiring only a single pretrained model. Our findings highlight the potential in further exploiting overparameterization as a strength of deep learning models.

Cite

@article{arxiv.2605.01632,
  title  = {Perturb and Correct: Post-Hoc Ensembles using Affine Redundancy},
  author = {Eleanor Quint},
  journal= {arXiv preprint arXiv:2605.01632},
  year   = {2026}
}
R2 v1 2026-07-01T12:47:04.536Z