Imagine you’re following a recipe. You have all the ingredients laid out perfectly. But then, someone changes the color of the kitchen tiles, and suddenly, you lose track of whether you’ve already added the salt.
It sounds absurd, but this is exactly what happens to state-of-the-art AI models. In their new paper, Recoverable Symbols, Unstable Execution, Ruiqi Liu and colleagues dive into a strange phenomenon: a model can "see" every piece of information it needs to solve a task, yet it still gets the answer wrong because the irrelevant background changed.
TL;DR
Even when a Vision Transformer (ViT) perfectly encodes all the "symbols" needed for a task, the neural network "head" sitting on top can still fail if the surrounding context changes. By surgically swapping internal components, the researchers found that background noise leaks into the model's internal "clock" (the rotation phase), causing it to lose its place in a sequence even though the data is right in front of it.
What Problem Does This Paper Address?
We often evaluate AI models on their final accuracy. If a model fails, we assume it didn't "see" the right features. But there is a subtle gap between perception (encoding the data) and execution (using that data to track a state).
The authors look at "Visual State Tracking." Think of this like a mental game where you see a sequence of symbols (e.g., $+1, -2, +5$) and have to keep a running total. The researchers found that if you take the exact same symbol tiles but place them in a different "donor" image with a different background, the model’s performance craters.
The mystery is this: a separate, simple decoder can still read the symbols perfectly from the model's internal features. The information hasn't been lost; the model just fails to use it stably. This is a failure of decision identity—the model should make the same decision for the same core information, regardless of the "wallpaper" around it.
Methods
To find the "ghost in the machine," the authors developed a clever diagnostic toolkit:
- Query-Preserving Pairs: They created pairs of images. The "Original" (F) and the "Donor" (D). Both have the exact same symbol tiles in the exact same positions, but the surrounding "distractor" tiles are different.
- The Information Witness: They trained a simple, supervised decoder to act as a witness. If this decoder can correctly identify the symbols in both images, it proves the ViT encoder is doing its job.
- Surgical Interventions: They didn't just look at the output. They went inside the "Rotary" head (a recurrent neural network that tracks state) and swapped specific internal channels—like the rotation phase (how the model updates its internal memory) and the decay—between the Original and Donor versions to see which one restored the correct answer.
Datasets
The study uses synthetic but complex "grammars" for state tracking:
- G5c and G5r: These are five-state grammars where models must track increments and decrements through a sequence of 32-pixel tiles.
- New Program Families: To ensure they weren't just "teaching to the test," they evaluated on 192 entirely unseen program families in a "locked" test.
- Encoders: They tested these effects across different frozen backbones, specifically DINOv2 and DINOv1.
Key Insights and Ideas
- Recoverability $\neq$ Stability: This is the most profound takeaway. Just because a model's features contain the necessary information doesn't mean the model is robust enough to use it. The "perception" layer is often much more resilient than the "reasoning" layer.
- The Phase Pathway: In models using "Rotary" heads, the background noise specifically corrupts the input-dependent rotation phase. This phase acts like a steering wheel for the model's memory; when the background changes, the steering wheel jerks, and the model "drives" its internal state into the wrong lane.
- Decision Identity is Fragile: Even when you "fix" a model's accuracy by intervening, it doesn't always return to the same decisions it made before. It might get the right answer for the wrong reasons.
Key Results
- The Accuracy Drop: Simply changing the surrounding context lowered the balanced accuracy of a Rotary head by 17.13 percentage points, even when every symbol was still perfectly recoverable.
- The Surgical Fix: By restoring the "original phase" from the clean image into the noisy computation, the researchers repaired 351 out of 391 new errors.
- Locked Test Confirmation: On unseen programs, the "phase pathway" was confirmed again: 28 of 29 new errors were repaired by fixing the phase, and 382 of 384 predictions remained unchanged from the original.
Limitations and Future Work
The authors are upfront about the boundaries of this work:
- Synthetic Symbols: The tasks use generated symbols and a fixed "traversal" (the model is told exactly where to look). How this translates to messy, natural scenes where the model must also find the objects is still an open question.
- Frozen Encoders: The study focused on the "heads" of the models while keeping the ViT backbones frozen. Fine-tuning the entire stack might change the dynamics.
- Training Objectives: While the authors derived new "consistency objectives" to try and train more robust models, these didn't actually outperform standard, heavy data augmentation. It turns out that telling a model "don't be distracted" is harder than just showing it a lot of distractions during training.
In the end, this paper serves as a cautionary tale for AI researchers: don't just ask if your model can see the data—ask if it's stable enough to actually use it.
Summary updated