It’s late, you’ve probably spent the day debugging or reading through endless documentation, and the last thing you want is a dense academic slog. But have you ever wondered why an LLM can tell you the last letter of "cat" is "t," yet it famously struggles to count the 'r's in "strawberry"?
This paper dives into the "mind" of the language model to figure out where character-level information lives and how it changes as models get bigger.
TL;DR
Language models have two ways of "knowing" how a word is spelled: a static, prompt-independent "store" hidden in the word's embedding, and a dynamic, question-driven signal that appears only when you ask for it. While the static store stays roughly the same regardless of model size, the dynamic signal—the model "thinking" about the answer—gets significantly stronger as models scale up, specifically in the final layers of the network.
What Problem Does This Paper Address?
We know that LLMs process tokens, not individual characters. This is why they often fail at tasks like counting letters (the "Strawberry Problem"). However, researchers have found that if you "probe" a model's hidden states with a simple linear classifier, you can often find character information even when the model's output is wrong.
The big question is: Is that information just a passive byproduct of the word being present, or is the model actively "assembling" the answer because we asked?
Previous research couldn't distinguish between the two. This paper introduces a "word-position baseline" to separate the information the model naturally keeps about a word from the information it generates in response to a specific prompt.
Methods
The authors used linear probes—simple models trained to predict a property (like the last letter) from the hidden activations of a much larger model.
To isolate the "active" signal, they compared three scenarios:
- The Neutral Sentence: "The word 'cat' appears in this sentence." (Probing the word "cat").
- The Question: "The last letter of the word 'cat' is..." (Probing the answer position).
- The Nuisance Floor: A baseline to make sure the probe isn't just "cheating" by guessing based on word length or common letter patterns.
By comparing these, they could see what information was already there (the "store") versus what was added by the question (the "signal").
Datasets
The researchers tested 16 open-weight models across seven families (including Qwen3, Llama-3, Gemma-2, and Phi-4), ranging from 0.6B to 14B parameters.
They evaluated these models on 11 character tasks, such as:
first_letter/last_lettermost_frequent_letterword_lengthcounting_lm(a "cleaned" version of the counting task that removes shortcuts)
The stimuli consisted of 800 examples per task sampled from a 6,000-word English vocabulary.
Key Insights and Ideas
- Spelling is mostly lexical: About 70% of the character information is already present at Layer 0 (the token embedding). The model "knows" how a word is spelled simply because that information is baked into the vector representing the word.
- The "Store" doesn't scale: Surprisingly, the quality of this internal word-level store doesn't really improve as models get bigger. A 0.6B model and a 14B model have roughly the same "static" knowledge of a word's characters.
- The "Signal" scales aggressively: When you ask a question, a second signal appears at the answer position. This is what grows with model scale. Larger models are much better at extracting and "reformatting" that static knowledge into a decodable answer.
- The Late Rise: This scale-dependent growth is strictly a "late-game" phenomenon. In the first quarter of the network, the signal is the same across all model sizes. The "intelligence" of scale only kicks in during the final layers.
Key Results
- Linear Decodability: For tasks like
last_letter, the signal at the answer position grows by +0.091 per decade of parameters. - Small vs. Large: In small models, the answer position actually holds less information than the word's own tokens. In large models, the answer position holds more.
- Embedding Dominance: Figure 2 shows that for tasks like
most_frequent_letter, over 80% of the decodable signal is already there in the very first layer.
- The Question Effect: Asking the question adds a late-layer signal that is statistically significant across all prompt-sensitive tasks ($p \leq 0.018$).
Limitations and Future Work
- Correlational Probes: The authors are careful to note that just because a probe can find information doesn't mean the model is actually using it to generate text.
- Mechanism Unknown: While they've identified where and when this signal appears, they don't yet know how the model produces it. Is it integrating information across multiple tokens, or just reformatting what's already in the embedding?
- Linearity: The study focuses on linear decodability. It's possible that smaller models have this information in a non-linear format that a simple probe can't see.
In short: your LLM has a built-in dictionary of spellings that doesn't change much with size, but the "processor" it uses to look up those spellings gets a massive upgrade every time you add a few billion parameters.
Summary updated