NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Perturb and Correct: Post-Hoc Ensembles using Affine Redundancy

Eleanor Quint

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: Graphs, OOD Detection & Medical Imaging › Out-Distribution Detection Methods · Type: new method · Keywords: post-hoc ensemble, distribution shift, model calibration, perturbation, least-squares correction, deep learning reliability

Areas: Continual Learning & Adaptation › Domain Shift Adaptation › Out-of-Distribution Detection

Summary

Perturb-and-Correct (P&C) is a post-hoc method that creates diverse predictors from a single pretrained network by applying random hidden layer perturbations and a least-squares correction to improve ID/OOD tradeoffs.

Explained to a 5-year-old

We have a big computer brain that works well on familiar things. To make it smarter for new things, we slightly shake it inside. Then we fix its answers a little. This creates many little helpers that agree on familiar things. But they can give different answers on new things, helping it be more reliable.

Explained to a 5-year-old, longer

A computer program can learn to do many things well when it sees lots of examples. Sometimes, when it sees something new, it might give wrong answers because it hasn't seen that kind before. To help it be more careful, we can add a little bit of randomness inside the program while it is working. After we add this randomness, we also adjust its answers using a simple math rule. This process creates many different versions of the program that all work together. All these versions agree with each other when they see the same old examples they know. But when they see something completely new, they can give slightly different answers. Having many different answers helps us see if the program is really confident or just guessing. This makes the program more trustworthy, especially in situations where the data is unusual. The new idea works well on tasks like predicting how robots move and spotting strange images. It also uses only one big model that has already been trained, so it does not need to train many new models. In short, we make a team of helpful friends from one brain to improve its reliability.

For a technical reader

The paper presents a post-hoc technique that turns a single pretrained neural network into an ensemble of diverse predictors without additional training. It injects random perturbations into hidden layers and then applies a least-squares correction to the subsequent affine transformation, which yields multiple outputs that stay calibrated on in-distribution data. This correction controls the residual near the calibration geometry while allowing sensitivity to grow for out-of-distribution inputs. Empirically, the method achieves strong ID/OOD tradeoffs on MuJoCo dynamics prediction and CIFAR-10 OOD detection, matching or exceeding existing baselines. The approach requires only one pretrained model, making it computationally efficient for practical deployment.

Problem

When deep models perform well on the data they were trained on, they may still give very different predictions when faced with data from a different distribution, limiting reliability.

Method

The approach applies random perturbations to hidden layers of a pretrained network and then corrects the resulting outputs using a least-squares adjustment in the following affine layer, yielding multiple predictors that stay calibrated on in-distribution data while diverging under distribution shift.

Results

The approach attains a strong in-distribution/out-of-distribution tradeoff on MuJoCo dynamics prediction and CIFAR-10 OOD detection, matching or surpassing existing post-hoc baselines while using only a single pretrained model.

Contributions

It proposes a post-hoc ensemble construction technique that leverages random hidden perturbations and a least-squares correction to generate diverse predictors from a single model, and it demonstrates strong performance on two benchmark tasks.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction