NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Shift Detection at the Camera–Model Boundary

A vision model can fail silently when the camera changes. If the lighting dims, the exposure is set wrong, or the sensor gain is turned up, the objects in the picture are the same, but the model's accuracy can collapse while its confidence stays high. Detecting this kind of change is called covariate shift detection: the input distribution moves while the correct label for each input does not. Current detectors are bolted onto the inside of one particular classifier. They read its feature norms, its logits, or its gradients. So they must be rebuilt for every new backbone, and they have mostly been tested on synthetic corruptions rather than real camera changes.

We propose to put the shift detector at the boundary between the image-acquisition stage (the "eyes") and the recognition model (the "brain"), as a separate module with a fixed contract. The detector sees only what the camera hands to any model. It is trained once on clean in-distribution images and outputs a single shift score that any backbone can consume through a small monotone calibration map. Our claim is that physical acquisition shift is mostly a property of the input interface rather than of the backbone. If that holds, one backbone-agnostic detector should rank shifts as well as per-backbone white-box detectors and transfer across CNNs, vision transformers, and CLIP models without retraining. Because the detector lives next to the camera, it can also be used without labels to choose camera settings: among candidate exposures, pick the one the detector considers most in-distribution.

Core Claim

The claim has two testable parts. First, a detector restricted to the camera–model interface, using low-level appearance statistics from a small frozen front end, will match or beat backbone-internal covariate detectors at flagging accuracy-degrading acquisition shifts. It will do so on several backbones at once, with only a per-backbone one-dimensional calibration. Second, the same score, minimized over camera settings at capture time, will recover a large fraction of the accuracy gap between auto-exposure and oracle-tuned settings. That gap is reported as 9.9% to 47.9% in Unexplored Faces of Robustness and Out-of-Distribution: Covariate Shifts in Environment and Sensor Domains.

The most likely way this fails is that model confidence alone selects settings just as well. We treat that as the central competing hypothesis.

Why This Gap Is Real

Three findings motivate the work. Exploring Covariate and Concept Shift for Detection and Confidence Calibration of Out-of-Distribution Data shows that covariate shift degrades classifiers as badly as novel classes do, and that covariate shift appears in feature norms while semantic shift appears in feature angles. Its Geometric ODIN score is our strongest white-box competitor, but it must be fit inside each network. Covariate Shift Detection via Domain Interpolation Sensitivity shows that semantic detectors such as Energy, ODIN and GradNorm do worse than plain maximum softmax probability (MSP) on covariate shift. Its own interpolation method needs many forward passes and a cache of training images. Baek et al. show that ViM and ReAct label physically shifted, misclassified images as in-distribution with high confidence. They also show that fixing the camera beats scaling the model: an EfficientNet-B0 with tuned settings outperformed an OpenCLIP-h with 120 times more parameters.

Two papers supply methods we reuse. Can Your Generative Model Detect Out-of-Distribution Covariate Shift? splits images into low- and high-frequency parts and models texture given structure. We borrow that conditioning idea, but use a cheap density model instead of a normalizing flow that needs per-sample backpropagation. Contrastive Identification of Covariate Shift in Image Data shows that generic ImageNet features miss subtle shifts that a density-ratio-trained space catches. That result warns us that the front end's features must be chosen deliberately.

The modular-systems work constrains the design rather than supplying the detector. DeepDIVA, the Universal Causal Evaluation Engine, FaceX-Zoo and OmniEvaluator all show that narrow interfaces make components swappable and comparisons fair. OmniEvaluator, for example, cuts integration cost from $O(N\times M)$ to $O(N+M)$, where $N$ and $M$ are the numbers of backends and benchmarks. None of these systems contains a shift-detection stage.

The closest work at the intersection takes different routes. CADRef "decouples" features by their sign alignment with classifier weights, which is internal to one model and tested only on semantic OOD. Learning Modular Structures That Generalize Out-of-Distribution builds modular subnetworks to improve accuracy on Colored and Rotated MNIST, not to detect shift. Our proposal differs from both: the detector is outside every backbone, its contract is defined at the acquisition interface, and it is judged on real sensor shifts and on whether it can steer the camera.

Research Program

The interface detector has three parts.

The first is a frozen front end: the first few convolutional stages of a small pretrained network. From these stages it computes channel-wise means and variances. These are style statistics that track brightness, noise and blur while largely ignoring object identity.

The second is a content-conditioned density model. Following the CovariateFlow intuition, it models high-frequency statistics given a low-frequency summary of the image. We implement it as a class-agnostic Gaussian mixture, so that a dark scene is not confused with a dark sensor. The score of an input $x$ is

$$s(x) = -\log p_\phi\big(t_{\text{hi}}(x) \mid t_{\text{lo}}(x)\big),$$

where $t_{\text{hi}}$ is the vector of early-layer texture and noise statistics, $t_{\text{lo}}$ is a low-pass summary of the image, and $p_\phi$ is the mixture fit on clean in-distribution images.

The third is a per-backbone calibration. A monotone (isotonic) map $c_b$ for backbone $b$ converts $s(x)$ into a predicted probability that $b$ errs. It is fit on a few hundred held-out clean and lightly perturbed images. The contract is that $s$ is shared across all backbones and only $c_b$ is backbone-specific.

We then run two analyses. The detection analysis asks whether $s$ flags inputs from ImageNet-ES settings where a given backbone's accuracy drops. It also asks whether one $s$ ranks the 56 settings consistently across ResNet-50, EfficientNet-B0, ViT and OpenCLIP. The acquisition analysis uses captures of the same displayed image under many settings. For each image, it selects the setting with the lowest $s$, without labels, and measures the backbone's accuracy on the selected captures. We will restrict this analysis to images with complete or near-complete setting grids if the released data is not fully crossed.

Baselines

The naive reference point is to do nothing. For detection, that means flagging nothing beyond MSP. For acquisition, it means using standard auto-exposure. The upper reference is the oracle setting per image chosen with labels, which bounds what any label-free selector can recover.

The strongest generic competitor is MSP and its acquisition analogue: choose the setting where the backbone is most confident. MSP is the baseline that beat Energy, ODIN and GradNorm on covariate shift in Gokhale et al., who report MSP AUROC 0.6652 against DIS's 0.6179 on PACS. It needs no extra model. We run it on exactly the same captures and backbones, and we also give it the same isotonic calibration.

The strongest white-box competitor is the feature-norm covariate score from Tian et al.'s Geometric ODIN. We fit it separately inside each backbone, using the same in-distribution data and the same hyperparameter search budget, measured in GPU-hours, as our detector. We also run DIS, matching its total forward-pass budget to ours, and report its cost as configured by the authors.

On CIFAR-10-C and ImageNet200-C, the strongest reported generative baseline is CovariateFlow with the Normalized Score Distance score. Viviers et al. report average AUROC 74.9% on CIFAR-10-C and 72.3% on ImageNet200-C. On the full-spectrum OBJECTS split, the strongest reported method is the two-stage contrastive denoising approach of Pan et al., with mean AUROC 78.07%. For ImageNet-ES detection AUROC, no reported result found on Lacuna for ViM, ReAct, Geometric ODIN, DIS or CovariateFlow; we will produce these numbers ourselves. For the acquisition analysis, the only reported reference is the 9.9%–47.9% oracle-over-auto-exposure gain.

Beating the competitors means three things. On ImageNet-ES, the detector must achieve higher mean AUROC than per-backbone Geometric ODIN across all four backbones, while being trained once. On CIFAR-10-C and ImageNet200-C, it must stay within a few points of CovariateFlow's 74.9% and 72.3% at a fraction of the cost. In acquisition, it must recover significantly more of the oracle gap than confidence-based selection, measured with image-level bootstrap intervals.

Two ablations isolate the key ingredients. One drops the low-frequency conditioning, which tests whether content conditioning matters. The other replaces early-layer style statistics with each backbone's own penultimate features, which tests whether the interface location rather than the density model is doing the work.

Why not just…?

Why not just pick the camera setting the classifier is most confident about? This is the real threat. If confidence-based selection recovers as much of the oracle gap as our detector, the acquisition half of the claim fails. Baek et al. report that ViM and ReAct assign high in-distribution confidence to shifted, misclassified captures, which suggests confidence will sometimes prefer bad settings. That is suggestive, not decisive. The head-to-head acquisition experiment settles it. If confidence wins, we will report that, and the contribution narrows to cross-backbone detection.

Why not just use per-backbone white-box detectors like Geometric ODIN? They may be more accurate on any single backbone, since feature norms carry covariate information there. Their cost is that they must be refit inside every model, which is exactly the coupling the modular-systems literature warns against. The transfer experiment measures the price precisely. If the interface detector loses more than a small margin to per-backbone Geometric ODIN, the case for the boundary placement is weak and we will say so.

Why not just use a bigger model, or train on ImageNet-C corruptions? Baek et al. show that the smaller model with tuned optics beats the 120× larger one. Hendrycks and Dietterich show that the relative corruption error of deeper networks barely improves over AlexNet's, and they warn that training on the corruptions overfits to them. Neither route provides a detector. We still include OpenCLIP as a backbone so that the scaling argument is tested directly on our data.

Why not just threshold image brightness or the camera's own exposure metadata? Simple histogram statistics might catch lights-off captures but miss noise from high gain or blur from wide apertures. We include a Mahalanobis-on-raw-histogram baseline. If it matches the full detector, the front-end features are unnecessary.

Proposed Experiments

The primary benchmark is ImageNet-ES: 202,000 captures of 200 TinyImageNet classes under 56 lighting and sensor configurations. In-distribution is clean TinyImageNet. A capture is a positive whenever its setting reduces the given backbone's accuracy by more than five points.

Detection is scored with AUROC, false-positive rate at 95% true-positive rate, and Spearman correlation between per-setting mean score and per-setting accuracy drop for each backbone. Calibration is scored with expected calibration error after the isotonic map. Cost is reported as forward passes and milliseconds per image. Acquisition is scored as accuracy on the selected captures, expressed as the fraction of the auto-exposure-to-oracle gap recovered.

Secondary benchmarks place the detector against published numbers. CIFAR-10-C and ImageNet200-C allow direct comparison with CovariateFlow. The OBJECTS full-spectrum split, where covariate-shifted in-distribution data must be separated from semantic outliers, checks whether an interface detector wrongly flags semantic novelty or misses it.

Three results are decisive. If one score achieves Spearman correlation above 0.7 with accuracy drop on all four backbones, the "shift lives at the interface" hypothesis survives; widely divergent per-backbone rankings would refute it. If the interface detector beats confidence-based selection on oracle-gap recovery with non-overlapping bootstrap intervals, the acquisition claim survives; a tie would refute it. If removing the low-frequency conditioning collapses performance on lights-off settings, conditioning on content is shown to be the ingredient that matters.