Inference Dynamics: Image Classifiers Keep Using Visual Cues After They Are Removed

Ruiqi Wang, Mingming LuarXiv 2026

TL;DR

Ever tried to "un-see" something? It turns out neural networks have the same problem. This paper reveals that once an image classifier captures a visual cue (like a boat in a background) in its early layers, that influence persists even if the cue is removed later in the computation. The authors introduce Inference Dynamics to trace this "ghostly" influence and propose Evidence Reset, a method that identifies the exact moment before a cue's influence becomes "locked in," allowing the model to successfully relinquish spurious evidence.

What Problem Does This Paper Address?

We’ve known for a while that deep learning models are "shortcut learners." If most pictures of cows are on grass, a model might learn to look for green pixels rather than a four-legged mammal. Usually, we evaluate these models by their final output: did it get the label right?

But this paper asks a deeper, process-oriented question: Once a model starts relying on a piece of evidence, can it stop?

The authors argue that reliability isn't just about using the right evidence; it’s about the ability to relinquish evidence when it disappears. They find that "no longer visible" is not the same as "no longer relied upon." As an image travels through the layers of a network, the influence of a local cue (like a specific texture or background object) spreads out. Eventually, it reaches a stage of evidence lock-in, where even if you go back and "fix" the representation at the cue's original location, the rest of the network has already moved on, and the final prediction remains tainted.

The cue disappears locally, but its judgment persists.

Methods

The authors developed a framework called Inference Dynamics to study this phenomenon. Here’s how it works:

  1. Matched Executions: They take an image and a "cue-removed" version (e.g., the same bird but with the background swapped).
  2. Layer-wise Withdrawal: They run both through the model. At each layer, they take the "dirty" representation from the original image and replace the pixels/tokens corresponding to the cue with the "clean" versions from the reference image.
  3. Tracing the Trajectory: They measure two things:
  4. Evidence Locality: Is the difference between the "dirty" and "clean" passes still concentrated in the original spot?
  5. Evidence Withdrawability: If we swap the states at this layer, does the final prediction actually change back to the "clean" version?

To fix the problem, they propose Evidence Reset. Instead of intervening at a fixed layer for every image, they train a lightweight "selector" to predict the optimal, input-dependent layer to perform the reset—specifically, the latest possible moment before "lock-in" occurs. A "reset module" then reconstructs what the representation should have looked like without the cue, using the surrounding valid context.

Overview of the Inference Dynamics and Evidence Reset framework.

Datasets

The study utilizes several benchmarks designed to test shortcut reliance:

  • Waterbirds: Birds on land vs. water backgrounds (the classic spurious correlation test).
  • UrbanCars: Cars in urban vs. country settings, featuring both background and co-occurring object shortcuts.
  • Spawrious-M2M-Hard: A photorealistic synthetic dataset of dog breeds in various environments.
  • ImageNet-9 Background Challenge: A subset of ImageNet used to test how much models rely on backgrounds.

Key Insights and Ideas

  • The Locality-Withdrawability Mismatch: This is the "aha!" moment. They found that locality declines before withdrawability collapses. In other words, the information about a cue starts spreading to neighboring neurons before it becomes impossible to remove. This creates a "sweet spot" for intervention.
  • Evidence Lock-in: There is a definitive point in the network where a local cue’s influence becomes globally distributed. Once you pass this point, local edits are useless.
  • Dynamic vs. Fixed Intervention: Most previous "shortcut mitigation" techniques intervene at a fixed layer. This paper shows that the "lock-in" point varies significantly from image to image. A one-size-fits-all approach either intervenes too early (losing useful context) or too late (failing to remove the shortcut).
Locality declines before withdrawability, leading to a lock-in stage.

Key Results

  • Improved Robustness: On the Waterbirds dataset, Evidence Reset improved worst-group accuracy (the accuracy on the rarest, most difficult combinations) by 7.4 to 8.6 percentage points compared to standard training.
  • Better Cue Removal: They measured the "Normalized Cue Residual" (NCR)—basically, how much of the shortcut's influence remains. Evidence Reset consistently achieved lower NCR (0.14–0.17) than fixed-layer methods (0.27–0.30).
  • Generality: The "locality-first" decline was observed in 79.6% to 88.5% of all validated image-cue pairs across different architectures (ResNet and Vision Transformers).

Limitations and Future Work

  • Mask Dependency: Currently, the method requires a spatial mask of the cue at inference time. While this can be provided by external segmentation models, it’s an extra step.
  • Class-Preserving Cues: The method is designed for cues that don't change the actual label (like a background). It doesn't yet handle cases where removing a part of the object itself changes the ground truth.
  • Discovery vs. Mitigation: The framework assumes you already know what the "bad" cue is. Future work could involve automatically discovering these harmful patterns as part of the dynamics-tracing process.

Summary updated

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.
BibTeX
@misc{wang2026inference,
  author = {Ruiqi Wang and Mingming Lu},
  title = {{Inference Dynamics: Image Classifiers Keep Using Visual Cues After They Are Removed}},
  year = {2026},
  eprint = {2611.28795},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.28795},
}
Figure