Model Internal Sleuthing: Finding Lexical Identity and Inflectional Features in Modern Language Models
This paper systematically probes 25 modern language models across six languages to reveal that while inflectional features remain linearly decodable throughout the network, lexical identity representations weaken with depth as models trade specific word identity for compact, predictive structures.
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 a modern Large Language Model (LLM) not as a giant, scary robot brain, but as a multi-story skyscraper where information travels from the ground floor up to the penthouse.
This paper, titled "Model Internal Sleuthing," is like a team of detectives (the researchers) going into that skyscraper to see how it organizes its thoughts. They wanted to answer two specific questions:
- Lexical Identity: Does the building remember what a word is (e.g., "walk")?
- Inflectional Features: Does the building remember the grammar of the word (e.g., "walked" = past tense, "walking" = continuous)?
They tested 25 different "buildings" (models ranging from older ones like BERT to newer giants like Llama-3 and Qwen) across six different languages (English, Chinese, German, French, Russian, and Turkish).
Here is what they found, explained with some everyday analogies:
1. The "Name Tag" vs. The "Uniform"
Think of Lexical Identity (the word "walk") as a person's Name Tag, and Inflection (the "-ed" in "walked") as their Uniform.
- The Finding: When a word enters the building (the first few floors), the Name Tag is very bright and clear. The model knows exactly what word it is.
- The Twist: As the information travels up to the higher floors (deeper layers), the Name Tag starts to fade. By the time it reaches the top, the model cares less about the specific word "walk" and more about the context of the sentence. It's like the person taking off their name tag to blend in with the crowd.
- The Uniform, however, never fades. The grammar (past tense, plural, etc.) stays visible and easy to read on every single floor, from the lobby to the penthouse. The model keeps the "Uniform" information locked in a very stable, easy-to-access pocket the whole way up.
2. The "Linear Elevator" vs. The "Maze"
The researchers tried to "read" the model's thoughts using two tools: a simple Linear Elevator (a straight path) and a complex Maze (a non-linear path).
- Grammar (The Uniform): You can use the Linear Elevator to find the grammar information on any floor. It's a straight shot. The model keeps grammar organized in a neat, straight line.
- Word Meaning (The Name Tag): On the lower floors, the elevator works fine. But on the upper floors, the elevator stops working. To find the specific word meaning up there, you have to navigate a Maze. The information is still there, but it's twisted and tangled up with other context.
3. The "Compression Room"
Some of the newer, faster models (like Qwen and Pythia) have a weird feature in the middle of the building: a Compression Room.
- Imagine a hallway that suddenly squeezes down to a tiny tunnel before expanding again.
- In these models, the middle layers squash the data so hard that the "dimensions" collapse. It's like trying to fit a whole library into a shoebox and then pulling it back out.
- The Result: Even though the model can still guess the grammar correctly in this room, it becomes much harder to steer or control the model's behavior there. It's like trying to turn a car while the wheels are locked in mud; the engine runs, but the steering doesn't work as well.
4. The "Construction Site" (Pre-training)
The researchers also watched the building being built (during the training phase).
- Grammar is built first. The "Uniform" (grammar rules) is constructed very early in the process. Once the foundation is laid, the grammar stays solid and doesn't change much.
- Word Meaning is built last. The "Name Tags" keep changing and evolving as the building gets taller. The model spends a lot of time refining what the words mean in different contexts, often sacrificing the raw identity of the word to make better predictions about what comes next.
5. The "Language Difficulty" Factor
They tested this in six languages.
- English, German, French, Russian: The model handled these well.
- Turkish: This language is like a Lego set with infinite pieces (it's highly "agglutinative," meaning you can stick many grammar pieces onto one word). The model struggled the most here. The "Name Tag" faded very quickly, and the "Uniform" was harder to keep straight. It's like trying to organize a messy pile of Legos; the more complex the pieces, the harder it is for the model to keep them sorted.
The Big Takeaway
Modern AI models are incredibly smart, but they have a specific trade-off:
- They keep grammar (inflection) rigid and accessible because it's the skeleton of language.
- They let go of specific word identities (lexical) as they go deeper, because they need to focus on the bigger picture (context and prediction).
In short: If you ask a modern AI, "What is the past tense of 'run'?" it will tell you instantly, no matter how deep you look. But if you ask, "What specific word 'run' are we talking about right now?" the answer gets fuzzier the deeper you go, because the model is busy thinking about the story, not just the word.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.