Manuscript Offprint

arXiv:2610.36640

When Does Perturbation Consistency Add Information Beyond Softmax Confidence? Theory and Evidence for the Decision Consistency Framework

Amit Kalitaa, Moirangthem Tiken Singh

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

Abstract

Perturbation consistency scores judge whether a prediction survives small input changes. The Decision Consistency Framework (DCF) scores each image by label stability (LS) and confidence deviation (CD) under six mild operators, combines them into a consistency score (CS), and summarises a model by the gap between accuracy and mean consistency (CAG). We ask when these scores carry information that the clean softmax output lacks. Across 201 evaluations with three seeds per configuration, CS detected misclassifications on clean data less well than the maximum softmax probability (MSP) in every model family. For frozen CNNs the deficit was 0.057 in area under the ROC curve (AUROC; 95% CI 0.043 to 0.073), at 8 to 15 times the compute. A label flip requires the logit margin to be at most the square root of two times the logit displacement, and at a fixed margin the displacement predicted errors at AUROC 0.515. The same inequality gives a label-free split-conformal no-flip certificate, never violated in 84 runs. Consistency did add information where confidence is misled: under noise corruptions of CIFAR-10-C it beat the margin, and under projected-gradient attacks it separated clean from attacked inputs with AUROC 0.83 against 0.37 for MSP at a budget of 2/255, as pre-specified. The gain under noise did not transfer to unseen shift families. The large negative CAG on OCTMNIST persists under full fine-tuning and in-domain training and is partly a class-prior effect: correcting the prior recovers about 40% of the gap.

Keywords: decision consistency, misclassification detection, conformal prediction, distribution shift, label shift, adversarial detection

1. Introduction

Accuracy on a held-out test set says how often a classifier is right on average. It does not say which of its predictions should be trusted. In deployment the second question matters more. A radiology triage tool or an inspection camera has to decide, image by image, whether to act on the output or pass the case to a person [1, 2]. The usual answer is a confidence score. The maximum softmax probability (MSP) [3], the logit margin, the predictive entropy and the energy score [4] are all computed from one forward pass and are difficult to outperform for misclassification detection [5, 6, 7].

These scores read only the clean output. They cannot show whether a prediction would survive a small, harmless change to the input. A second family of scores addresses this gap. Test-time augmentation agreement [8, 9], the flip probabilities of ImageNet-P [10] and feature squeezing for adversarial detection [11] all follow this idea. The Decision Consistency Framework (DCF) is one instance of it. For each test image, DCF applies six mild operators: rotation, brightness, Gaussian noise, contrast, blur and JPEG compression. It records how often the predicted label is kept (label stability, LS) and how much the top-class confidence moves (confidence deviation, CD). It then combines the two into a consistency score (CS). At the model level, DCF reports the consistency-accuracy gap (CAG), the difference between clean accuracy and mean CS.

∗^{*}Corresponding author.

Email addresses: contactamitkalita@gmail.com (Amit Kalita), tiken.m@dibru.ac.in (Moirangthem Tiken Singh)

The appeal of such scores is intuitive. A prediction that flips under a rotation of two degrees looks fragile, and one that never moves looks dependable. The cost is also clear, because each operator needs one extra forward pass. That cost is justified only if consistency carries information that the clean output does not already contain. Arguments for such scores usually rest on Lipschitz-style bounds and on flip frequencies. They seldom rest on a comparison with the confidence the scores are meant to improve on. The central question is therefore:

When does perturbation consistency add information about the correctness of a prediction beyond what the clean softmax output already provides?

We answer it with a theoretical argument and a pre-specified set of experiments. The answer is mostly negative, with two exceptions. The contributions follow the order of the argument.

  1. A mechanism for redundancy. We prove that a label flip under any operator implies that the clean logit margin is at most the square root of two times the norm of the logit displacement. It follows that LS and CD can add information only through the dependence of the displacement on correctness at a fixed clean output. Measured directly within margin bins, that dependence is negligible on clean data.

  2. A finite-sample no-flip certificate. The same inequality yields a split-conformal rule that certifies an image from its clean margin alone. The calibration set needs no labels. The probability that an image is certified and still flips is bounded by a chosen level, and this bound held in every run at every level tested. Unlike a Lipschitz flip-probability bound, which is vacuous in this setting, the rule needs neither a Lipschitz constant nor a shared perturbation budget.

  3. A broad comparison against confidence baselines. The mechanism predicts that consistency is redundant on clean data, and the comparison tests this prediction. It covers frozen and natively trained CNNs, vision transformers, a model zoo and last-layer ensembles, evaluated on several natural-image and medical-image datasets. CS was below MSP on average for clean error detection in every model family. LS alone was close to chance among high-confidence predictions. No reformulation of CD and no choice of the weight between LS and CD closed the gap.

  4. A boundary condition. The same mechanism indicates where redundancy should fail, namely where the clean output is itself misled. Consistency signals did add information in two such settings. The first is noise-type corruptions of natural images, where the gain grew with MSP over-confidence. The second is adversarial inputs, where a pre-specified prediction was confirmed in every run. The gain does not transfer to shift families not seen in training. An attacker who penalises instability can evade the detector, at the price of a much lower attack success rate.

  5. A partial explanation of “stable but wrong” predictions. The last finding concerns CAG. Models trained on a retinal imaging task had a large negative CAG, which means that many wrong predictions were stable. The pattern survives longer head training, full fine-tuning and training from scratch on the target domain, and at matched accuracy the in-domain model is no better. Part of it is a class-prior shift between the official splits. Correcting the prior recovers part of the gap, and inducing the same kind of shift on a natural-image benchmark reproduces it.

These findings suggest a rule for practice. Use MSP or the margin for clean error detection. Use the conformal certificate when a cheap guarantee against small perturbations is needed. Reserve consistency checks for settings where confidence itself is known to be corrupted.

The rest of the paper is organised as follows. Section 2 reviews related work. Section 3 defines the DCF quantities and states the theory. Section 4 describes the protocol, including the perturbation audit and the pre-specified predictions. Section 5 reports the results, Section 6 discusses their implications and limitations, and Section 7 concludes.

References (77)