Inference Dynamics: Image Classifiers Keep Using Visual Cues After They Are Removed
Organizations: Central South University, Changsha, Hunan, China
Abstract
Image classifiers are typically evaluated by their final predictions, treating inference as a static image-to-label mapping. Reliability, however, also depends on whether a model can relinquish evidence after that evidence disappears. We reveal a counterintuitive phenomenon: removing a local visual cue from its original location may not remove its influence on the prediction. Once captured by early layers, the cue can become distributed across later representations, making no longer visible'' different from no longer relied upon.'' We introduce Inference Dynamics, a process-level framework for tracing how cue influence evolves and remains withdrawable across network depth. Given an image and a matched cue-removed reference, we replace cue-aligned states in the original branch with their reference counterparts at successive layers and measure recovery toward the cue-free prediction. The resulting trajectory separates evidence locality from decision-level withdrawability. Across datasets and architectures, we find locality declines before withdrawability collapses: cue-induced information becomes less concentrated at its original support while its effect remains active, before entering an evidence lock-in stage. Consequently, fixed late-stage correction may alter the final readout without removing accumulated cue dependence. We therefore propose Evidence Reset, which selects an input-dependent layer before lock-in and reconstructs cue-aligned states toward their cue-free counterparts. Our results establish evidence withdrawability as a process-level dimension of classifier reliability and suggest a new intervention principle: correction depth should follow the dynamics of evidence rather than be fixed in advance.
Figures & tables
| Generality | Predictive validity | ||||||
|---|---|---|---|---|---|---|---|
| Dataset | Backbone | Locality-first (%) | Stable lock-in (%) | Median | Best layer pre-lock (%) | Pre–post WG gap | NCR reduction |
| Waterbirds | ResNet-50 | ||||||
| Waterbirds | ViT-B/16 | ||||||
| UrbanCars | ResNet-50 | ||||||
| UrbanCars | ViT-B/16 | ||||||
| Waterbirds | UrbanCars | |||||||
| Method | Avg. | WG | NCR | Aligned | Avg. | WG | NCR | Aligned |
| ERM | ||||||||
| GroupDRO | ||||||||
| JTT | ||||||||
| DFR | ||||||||
| LLE | – | – | – | – | ||||
| (a) Layer-selection strategy | ||||
|---|---|---|---|---|
| Strategy | WG Acc. | NCR | Aligned | Layer Err. |
| Random layer | ||||
| Best fixed layer | – | |||
| Locality only: | ||||
| Withdrawability only: | ||||
| Full: | ||||
| Research family | Primary question | Typical intervention or signal | Depth treatment | Primary output |
|---|---|---|---|---|
| Attribution and concept localization | Which pixels, regions, units, or concepts are associated with the prediction? | Gradients, relevance, perturbation, or concept sensitivity | Usually one or several selected representations | Saliency, attribution, or concept score |
| Visual counterfactual explanation | What plausible input modification changes the prediction? | Input deletion, replacement, or generative editing | Internal depth is not the main object | Counterfactual image and output change |
| Activation patching and causal tracing | Does restoring or transplanting an internal component recover a target behavior? | Source-to-target activation replacement | Layers or components are searched or compared | Causal contribution, localization, or circuit |
| Concept erasure and latent editing | Can a specified concept be removed or the model behavior be steered? | Projection, direction removal, injection, or latent steering | Commonly fitted at a fixed representation | Reduced decodability or edited behavior |
| Shortcut mitigation | Can training reduce reliance on spurious correlations? | Reweighting, retraining, augmentation, regularization, or relevance alignment | Usually fixed by method design | Improved average or worst-group robustness |
| Inference Dynamics and Evidence Reset | When does the cue’s original support cease to control its accumulated decision effect? | Matched local withdrawal followed by learned cue-free reconstruction | Full depth trajectory and image–cue-specific selection | Locality–withdrawability trajectory, lock-in onset, and adaptive reset |
| Information | Dynamics analysis | Module training | Inference |
|---|---|---|---|
| Original image | ✓ | ✓ | ✓ |
| Cue mask | ✓ | ✓ | ✓ |
| Cue-removed reference | ✓ | ✓ | – |
| Paired hidden states | ✓ | ✓ | – |
| Full withdrawal trajectory | ✓ | ✓ | – |
| Dynamics-derived target layer | ✓ | ✓ | – |
| Dataset | Train | Val. | Test | Target cue |
|---|---|---|---|---|
| Waterbirds | 4,795 | 1,199 | 5,794 | Background |
| UrbanCars | 8,000 | 1,000 | 1,000 | Background; co-object |
| Spawrious-M2M-Hard | Official | Official | Official | Background environment |
| ImageNet-9 | – | – | Official | Background |
| Dataset | Backbone | Best pre-lock (%) | Pre-lock WG | Post-lock WG | WG gap | Pre-lock NCR | Post-lock NCR | NCR reduction |
|---|---|---|---|---|---|---|---|---|
| Waterbirds | ResNet-50 | |||||||
| Waterbirds | ViT-B/16 | |||||||
| UrbanCars | ResNet-50 | |||||||
| UrbanCars | ViT-B/16 |
| Relative layer | Task-correct reset (%) | Raw JS residual | NCR |
|---|---|---|---|
| Trajectory category | Share | Correction behavior |
|---|---|---|
| Actionable stable lock-in | 83.6% | Best reset usually occurs before onset; pre-lock intervention has substantially lower NCR. |
| Early lock-in | 6.3% | The earliest candidate is usually the strongest available intervention, but residual cue dependence remains high. |
| Persistently withdrawable | 6.8% | Correction quality changes gradually with depth and shows no stable pre–post discontinuity. |
| Irregular non-persistent | 3.3% | Local fluctuations occur, but no persistent correction boundary is observed. |
| ResNet-50 | ViT-B/16 | |||||||
|---|---|---|---|---|---|---|---|---|
| Method | Avg. | WG | NCR | Aligned | Avg. | WG | NCR | Aligned |
| ERM | ||||||||
| GroupDRO | ||||||||
| JTT | ||||||||
| DFR | ||||||||
| Input Removal | ||||||||
| ResNet-50 | ViT-B/16 | |||||||
|---|---|---|---|---|---|---|---|---|
| Method | Avg. | WG | NCR | Aligned | Avg. | WG | NCR | Aligned |
| ERM | ||||||||
| GroupDRO | ||||||||
| JTT | ||||||||
| DFR | ||||||||
| LLE | ||||||||
| ResNet-50 | ViT-B/16 | |||||||
|---|---|---|---|---|---|---|---|---|
| Method | BG WG | BG NCR | Obj. WG | Obj. NCR | BG WG | BG NCR | Obj. WG | Obj. NCR |
| Input Removal | ||||||||
| Best Fixed Reset | ||||||||
| Evidence Reset | ||||||||
| Oracle-layer Reset | ||||||||
| Intervention strategy | Waterbirds ResNet-50 | Waterbirds ViT-B/16 | UrbanCars ResNet-50 | UrbanCars ViT-B/16 |
|---|---|---|---|---|
| Fixed depth | ||||
| Fixed depth | ||||
| Fixed depth | ||||
| Fixed depth | ||||
| Fixed depth | ||||
| Fixed depth |
| Dataset | Backbone / seed | Fixed WG | Fixed NCR | Evidence WG | Evidence NCR | WG gain | NCR reduction |
|---|---|---|---|---|---|---|---|
| Waterbirds | ResNet-50 / 0 | 89.8 | 0.31 | 92.4 | 0.16 | +2.6 | 0.15 |
| Waterbirds | ResNet-50 / 1 | 90.7 | 0.29 | 93.2 | 0.15 | +2.5 | 0.14 |
| Waterbirds | ResNet-50 / 2 | 91.3 | 0.27 | 93.7 | 0.14 | +2.4 | 0.13 |
| Waterbirds | ViT-B/16 / 0 | 91.6 | 0.26 | 94.0 | 0.14 | +2.4 | 0.12 |
| Waterbirds | ViT-B/16 / 1 | 92.2 | 0.25 | 94.5 | 0.13 | +2.3 | 0.12 |
| Waterbirds | ViT-B/16 / 2 | 92.8 | 0.24 | 95.0 | 0.12 | +2.2 | 0.12 |
| Method | Group or shortcut labels | Cue mask train / test | Cue-free pair train / test | Layer scan train / test | Dynamics layer target | Deployable without reference |
|---|---|---|---|---|---|---|
| ERM | – | – / – | – / – | – / – | – | Yes |
| GroupDRO | Train | – / – | – / – | – / – | – | Yes |
| JTT | – | – / – | – / – | – / – | – | Yes |
| DFR | Retraining set | – / – | – / – | – / – | – | Yes |
| LLE | Shortcut attributes | – / – | – / – | – / – | – | Yes |
| Input-level Cue Removal | – | Yes / Yes | Yes / Yes | – / – | – | No |
| Layer strategy | WG Acc. | NCR | Aligned | Layer Err. |
|---|---|---|---|---|
| Random layer | ||||
| Fixed early layer | – | |||
| Fixed middle layer | – | |||
| Fixed late layer | – | |||
| Best fixed layer | – | |||
| Dynamics-free selector |
| Variant | WG Acc. | NCR | Aligned | NR Prec. | NR Recall | NR F1 |
|---|---|---|---|---|---|---|
| w/o | ||||||
| w/o | ||||||
| w/o | ||||||
| w/o no-reset option | – | – | – | |||
| Full objective |
| Variant | Parameter multiplier | WG Acc. | NCR | Aligned | Inference overhead |
|---|---|---|---|---|---|
| Half-width shared core | |||||
| Default shared conditioned core | |||||
| -width shared core | |||||
| Layer-specific reconstruction cores | |||||
| No layer conditioning | |||||
| Unmasked reset input |
| Strategy | Avg. | WG | Aligned | BG NCR | Obj. NCR | Joint NCR |
|---|---|---|---|---|---|---|
| No reset | ||||||
| Background only | ||||||
| Object only | ||||||
| Joint reset | ||||||
| BG Obj. | ||||||
| Obj. BG |
| Dataset | Backbone | Locality first (%) | Stable lock-in (%) | Median | Fixed Eval. Acc. | Evidence Eval. Acc. | Fixed NCR | Evidence NCR |
|---|---|---|---|---|---|---|---|---|
| Spawrious-M2M-Hard | ResNet-50 | |||||||
| Spawrious-M2M-Hard | ViT-B/16 | |||||||
| ImageNet-9 | ResNet-50 | |||||||
| ImageNet-9 | ViT-B/16 |
| Backbone | Method | Original | Mixed-Same | Mixed-Rand | Only-FG | Gap |
|---|---|---|---|---|---|---|
| ResNet-50 | ERM | |||||
| ResNet-50 | Best Fixed Reset | |||||
| ResNet-50 | Evidence Reset | |||||
| ViT-B/16 | ERM | |||||
| ViT-B/16 | Best Fixed Reset | |||||
| ViT-B/16 | Evidence Reset |
| Parameter | Value | Locality first (%) | Stable lock-in (%) | Median | WG Acc. | NCR | Aligned |
|---|---|---|---|---|---|---|---|
| Configuration | WG Acc. | NCR | Aligned | Layer Err. | Scan cost relative |
|---|---|---|---|---|---|
| Default: | |||||
| Default: | |||||
| Backbone | Candidate layers | Dynamics ms / pair | Cache MB / pair | Base params | Added params | Base latency | Evidence latency | Peak test memory |
|---|---|---|---|---|---|---|---|---|
| ResNet-50 | M | M | ms | ms | GB | |||
| ViT-B/16 | M | M | ms | ms | GB |
| Intervention | Depth | Test Ref. | Cue Probe Acc. | WG Acc. | NCR | Aligned |
|---|---|---|---|---|---|---|
| No intervention | – | No | ||||
| Zero ablation | Fixed | No | ||||
| Mean replacement | Fixed | No | ||||
| Local INLP | Fixed | No | ||||
| Local LEACE | Fixed | No | ||||
| Global LEACE | Fixed | No |
| Category | Rate | Behavior and response |
|---|---|---|
| Pair rejected (automatic references) | Foreground damage, cue residue, weak mask agreement, or visible completion artifacts; excluded before dynamics construction. | |
| Early lock-in (validated pairs) | No valid pre-lock candidate exists; assigned to no-reset. | |
| Persistently withdrawable (validated pairs) | Local control remains available and no stable onset is assigned. | |
| Irregular trajectory (validated pairs) | Threshold crossings are isolated rather than persistent. | |
| Large selector deviation (actionable pairs) | Predicted layer differs from the target by more than two candidate positions. | |
| High reset residual (actionable pairs) | A valid reset is applied, but the output remains far from the cue-free prediction. |
Image Classification
Image classification assigns semantic labels to images, enabling recognition of objects, scenes, conditions, and fine-grained categories.
See all 445 papers