Constructing Interpretable Features from Compositional Neuron Groups
This paper proposes using semi-nonnegative matrix factorization (SNMF) to decompose MLP activations into sparse, interpretable features composed of co-activated neurons, demonstrating that this approach outperforms sparse autoencayers and supervised baselines in causal steering while revealing a hierarchical structure of concept representations in large language models.
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 Large Language Model (LLM) like a massive, complex orchestra. For a long time, scientists trying to understand how this orchestra works have focused on individual musicians (neurons). They thought, "If I can figure out what one violinist is doing, I'll understand the music."
However, the paper argues that this approach is flawed. In reality, musicians often play together in groups to create specific sounds. A single violinist might play a sad note in one song and a happy note in another. The "meaning" isn't in the violinist alone; it's in the combination of musicians playing at the same time.
Here is the paper's story, broken down into simple concepts:
1. The Problem: The "Dictionary" Was Too Messy
Previously, researchers tried to find these musical groups using a tool called a Sparse Autoencoder (SAE). You can think of an SAE as a very ambitious librarian trying to organize a chaotic library. It tries to invent new "shelves" (features) from scratch to sort the books (data).
The problem? The librarian sometimes creates shelves that don't make sense to humans, or the books on the shelves don't actually belong there. When researchers tried to use these shelves to control the orchestra (make it play a specific song), the librarian's system often failed. It was like trying to steer a ship using a map that was drawn from scratch without looking at the ocean.
2. The Solution: The "Compositional" Approach
The authors propose a new method called SNMF (Semi-Nonnegative Matrix Factorization).
Instead of inventing new shelves, SNMF looks at the orchestra's sheet music (the model's internal math) and asks: "Which musicians are playing together right now?"
- The Analogy: Imagine the orchestra is playing a song about "Rain." SNMF doesn't invent a new "Rain" button. Instead, it notices that the Flute, the Cello, and the Timpani are all playing loudly at the same time. It groups them together and says, "This specific trio is the 'Rain' feature."
- The Key Difference: Because SNMF builds its groups directly from the musicians who are actually playing, it knows exactly which notes (inputs) triggered that group. It's like having a direct line to the conductor saying, "When you see these three instruments, you know it's raining."
3. The Results: Better Control and Clearer Meaning
The researchers tested this new method on several famous AI models (like Llama 3.1 and Gemma 2). They compared it to the old "librarian" method (SAE) and a very strict, supervised method (where humans tell the computer exactly what to look for).
- The "Steering" Test: They tried to "steer" the AI to talk about specific topics (like "police" or "history"). SNMF was much better at this. It could turn the AI's output toward the desired topic more effectively than the old methods, while still keeping the sentences grammatically correct and fluent.
- The "Detection" Test: They checked if the AI could recognize when a topic was being discussed. SNMF performed just as well as the best existing methods at spotting these concepts.
4. The Big Discovery: The "Lego" Structure
The most fascinating part of the paper is what they found about how these groups are built.
They discovered that the AI builds complex ideas by stacking simpler ones, like Lego bricks.
- The Analogy: Imagine you have a group of neurons that represents "Day." Then, you have a slightly different group that represents "Weekday." The "Weekday" group is just the "Day" group plus a few extra neurons that say, "No, not Saturday or Sunday."
- The Hierarchy: By applying their method recursively (repeatedly), they saw a tree structure.
- Bottom Level: Specific neurons for "Monday," "Tuesday," etc.
- Middle Level: A group for "Weekdays" (combining Mon-Fri).
- Top Level: A group for "Days of the Week" (combining weekdays and weekends).
This shows that the AI doesn't just have random neurons; it has a hierarchical architecture. It reuses the same core "building blocks" (neurons) to create more complex ideas. For example, the core neurons for "Day" are reused for "Monday," "Tuesday," and "Weekend," with only a few extra neurons added to distinguish them.
Summary
The paper claims that by looking at groups of neurons working together (rather than individuals) and using a math tool that respects how the model actually calculates things, we can:
- Find concepts that humans can easily understand.
- Control the AI's output much more effectively than before.
- See that the AI builds complex ideas by combining simpler, reusable parts, much like building a house with bricks.
The authors conclude that this method is a simple, effective way to "dissect" how AI models think, revealing that they are organized in a logical, hierarchical way that we can now see and use.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.