From Early Encoding to Late Suppression: Interpreting LLMs on Character Counting Tasks
This paper reveals that large language models often fail at character counting tasks not due to a lack of internal representation, but because specific negative circuits in later layers actively suppress correct signals in favor of incorrect, higher-probability outputs.
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 have a brilliant, super-smart librarian who has read almost every book in the world. They can write poetry, solve complex riddles, and summarize history books better than anyone else. But, if you ask them a simple question like, "How many times does the letter 'p' appear in the word 'apple'?", they might confidently tell you the answer is "1" or "2," even though the correct answer is "2."
This paper investigates why these super-smart AI models (Large Language Models or LLMs) fail at such simple tasks. The researchers discovered something surprising: The AI actually knows the answer, but it chooses to ignore it.
Here is the breakdown of their findings using simple analogies:
1. The "Hidden Note" Analogy (Early Encoding)
Think of the AI model as a factory assembly line with many stations (layers).
- The Discovery: When the AI reads the word "apple," the very first stations on the line immediately write down a "sticky note" that says, "Hey, there are two 'p's here."
- The Proof: The researchers used a tool called a "probe" (like a metal detector) to scan the AI's internal memory at different stages. They found that this "sticky note" with the correct count was clearly visible and readable in the early and middle stations of the factory. The information was there, loud and clear.
2. The "Censor" Analogy (Late Suppression)
So, if the AI knows the answer, why does it give the wrong one?
- The Discovery: As the information travels down the assembly line toward the final output (the answer the user sees), it hits a specific group of workers in the last few stations. These workers act like censors or editors.
- The Mechanism: Instead of passing the correct note ("2") to the final speaker, these late-stage workers actively crumple up the correct note and replace it with a simpler, more "comfortable" guess.
- Some models (like Qwen) act like a stubborn child who always guesses "1" because that's what they've seen most often.
- Other models (like LLaMA) act like a confused person who just picks a random number because they don't trust their own memory.
- The Result: The final answer is wrong, not because the factory didn't know the answer, but because the final editors decided to suppress the truth in favor of a "safer" or more probable guess.
3. The "Broken Compass" Analogy (No Specialized Routing)
You might think the AI has a special "letter-counting team" (like a dedicated department) that handles this task.
- The Discovery: The researchers looked for this team and found nothing. There is no specific "letter-counting department."
- The Reality: The information about the letters is scattered across many different workers in a messy, uncoordinated way. It's like trying to pass a message through a crowded room where everyone is shouting different things. By the time the message reaches the end, it gets lost or overwritten by the loudest voices (the incorrect guesses).
4. The "Bigger Isn't Better" Twist
Usually, when we make AI models bigger (adding more parameters, like giving the factory more workers), we expect them to get smarter.
- The Finding: The researchers tested bigger models (up to 9 billion parameters) and even models that had been "trained" to follow instructions better.
- The Result: They failed just as badly. Making the factory bigger didn't fix the problem. The "censors" at the end of the line were still there, still crumpling the correct notes. In fact, training the models to be more obedient sometimes made them worse at counting because they learned to rely even more on their bad habits (like always guessing "1").
The Big Takeaway
This paper tells us that the problem isn't that AI is "dumb" or lacks the capacity to understand letters. The problem is structural.
Imagine a car with a perfect engine and a perfect GPS, but the driver (the final layer of the AI) has a habit of ignoring the GPS and driving in circles because they think they know a shortcut. The car has the right map, but the driver refuses to use it.
Why does this matter?
If these models can't be trusted to count letters—a task a 5-year-old can do—it suggests they might be fragile in other areas too. They might be "hallucinating" (making things up) not because they don't know the facts, but because their internal "censors" are actively suppressing the truth to give a more confident-sounding, but incorrect, answer.
In short: The AI isn't failing because it can't see the answer; it's failing because it's been trained to ignore the answer it sees.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.