← Latest papers
🤖 AI

Do Language Models Track Entities Across State Changes?

This paper reveals that large language models fail to incrementally track entity states across sequential operations, instead relying on a non-sequential strategy that aggregates information at the query token and utilizes a fragile global suppression mechanism for removals, leading to predictable failure modes that can be partially mitigated through mechanistic intervention.

Original authors: Zilu Tang, Qiao Zhao, Gabriel Franco, Derry Wijaya, Aaron Mueller, Sebastian Schuster, Najoung Kim

Published 2026-05-29
📖 5 min read🧠 Deep dive

Original authors: Zilu Tang, Qiao Zhao, Gabriel Franco, Derry Wijaya, Aaron Mueller, Sebastian Schuster, Najoung Kim

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are playing a game of "Simon Says" with a very smart, but slightly forgetful, robot. You tell the robot where various items are hidden in seven different boxes. Then, you start giving it instructions: "Put a watch in Box 1," "Take the jar out of Box 2," "Move the apple from Box 0 to Box 1." Finally, you ask, "What is in Box 1?"

This paper investigates how modern AI language models (the "robots") handle this game. Specifically, it asks: Does the robot keep a running mental list of where everything is as you speak, or does it wait until the very end to figure it out?

Here is what the researchers found, explained through simple analogies:

1. The Robot Doesn't Keep a "Live Feed"

You might assume that as the robot hears each instruction, it updates a mental map of the world, like a GPS updating your location turn-by-turn.

  • The Reality: The robot is more like a student taking a test who doesn't study until the last minute. It doesn't build a complete picture of the world as the story unfolds. Instead, it waits until you ask the final question ("What's in Box 1?"). Only then does it frantically scan the entire story it just heard, pick out the specific sentences relevant to Box 1, and calculate the answer on the spot. It doesn't track the "state" of the world incrementally; it just retrieves the necessary facts in parallel at the very end.

2. The "Add" vs. The "Delete" Problem

The researchers looked at how the robot handles two specific types of instructions: PUT (adding an item) and REMOVE (taking an item away).

  • The "PUT" Operation (Adding): This works quite well. When the robot hears "Put the watch in Box 1," it uses a standard "look-back" mechanism. It finds the mention of "Box 1" and the mention of "watch" and links them together, much like how humans connect a name to a face. This part is reliable.

  • The "REMOVE" Operation (Deleting): This is where the robot gets weird and makes mistakes.

    • The Analogy: Imagine you have a list of guests at a party. If you say, "Remove John from the list," a smart system would cross out John's name only on that specific list.
    • The Robot's Flaw: This robot uses a "Global Eraser." When it hears the word "Remove," it doesn't just cross out the item in the specific box mentioned. It puts a giant, invisible "DO NOT PREDICT" tag on that item everywhere. It effectively tells itself, "Never say the word 'jar' again," regardless of which box the jar was in.

3. The "White Bear" Effect

The researchers compared this "Global Eraser" to a famous psychological trick called the "White Bear Problem." If you tell someone, "Do not think about a white bear," they immediately start thinking about it.

  • In the robot's case, the instruction "Remove the jar" creates a signal that says "Suppress the jar." Because this signal is global (applied to the whole world, not just one box), the robot sometimes gets confused. If the jar was in Box 2, and you asked about Box 1, the robot might still suppress the jar even though it wasn't in Box 1 to begin with.

4. Predicting and Fixing the Glitch

Because the researchers understood how the robot was thinking (the "mechanism"), they could predict exactly when it would fail, even before they saw the failure happen.

  • The Test: They created tricky scenarios the robot hadn't seen before, like: "The jar is in Box 1. Remove the jar from Box 1. Now, put the jar back in Box 1."
  • The Result: Because the robot uses a "Global Eraser," it often forgets to put the jar back in, because the "Remove" tag is still haunting the word "jar."
  • The Fix: The researchers tried a "surgical" intervention. They manually wiped out that "Global Eraser" tag inside the robot's brain right before it made its guess. This successfully fixed the error in many cases, proving that the "Global Eraser" was indeed the cause of the problem.

The Big Takeaway

The paper concludes that while these AI models are incredibly good at solving complex puzzles, they don't do it the way humans do. Humans build a continuous story in their heads. These models, however, treat the story as a static library of facts that they only consult when absolutely necessary.

Furthermore, their method for "deleting" information is fragile. Instead of carefully editing a specific file, they tend to throw a "Do Not Use" sign on the entire concept, which leads to errors when the context gets complicated. The study shows that by understanding these internal "mechanics," we can predict where the robot will stumble and even fix its mistakes without retraining the whole system.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →