Levels of Analysis for Large Language Models
This paper proposes a framework for understanding large language models by adapting David Marr's levels of analysis and established cognitive science techniques to decode their behavior and internal organization.
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've built a robot that can write poetry, solve math problems, and chat like a human. It's amazing, but it's also a "black box." You know what goes in (your questions) and what comes out (the answers), but you have no idea what's happening inside its brain. It's like watching a magician perform a trick: you see the rabbit appear, but you don't know how the rabbit got there.
This paper argues that computer scientists are facing a problem that psychologists have been solving for decades: How do you understand a mind you can't see inside?
The authors suggest we borrow a toolkit from cognitive science, using a famous framework by a scientist named David Marr. Think of Marr's framework as a way to study a bird's flight by looking at it from three different zoom levels.
Here is the paper explained in simple terms, using those three levels:
Level 1: The "Why" (The Computational Level)
The Analogy: Imagine you are studying a bird. At this level, you don't look at the feathers or muscles yet. You ask: "What is the goal of this bird? Is it trying to migrate? Is it trying to catch a fish?" You understand the bird by understanding the problem it is trying to solve.
For AI:
Large Language Models (LLMs) like ChatGPT are trained with one specific goal: Predict the next word. They are like a super-powered autocomplete.
- The Insight: Because their only job is to guess the next word based on what usually comes next, they sometimes act weird.
- The Example: If you ask the AI to count letters in a word, it's great at it if the answer is a common number like "30" (because it sees "30" a lot in its training data). But if the answer is "29," it might fail. It's not bad at math; it's just "addicted" to guessing the most likely word.
- The Takeaway: To understand the AI, look at its training goal. If you know what it's trying to predict, you can predict its mistakes.
Level 2: The "How" (The Algorithmic Level)
The Analogy: Now you ask: "How does the bird actually fly?" Does it flap its wings fast? Does it glide? Does it get confused if there are too many birds flying at once? This level looks at the processes and tricks the mind uses.
For AI:
Since we can't see the code inside the AI, we have to trick it into showing us its "thought process" by watching how it behaves, just like psychologists do with humans.
- The "Crowded Room" Test: Humans get confused when they try to remember too many things at once (like a red square and a blue circle). If you mix them up, we might remember a "red circle." The paper found that AI models do the exact same thing! They get "confused" when processing too many visual details at once, proving they use a similar "parallel processing" method to humans.
- The "Secret Association" Test: If you ask an AI directly, "Are women bad at management?" it will say, "No, that's a stereotype." But if you play a word-association game (like "Which word goes with 'wedding'?"), it might secretly link "woman" to "wedding" and "man" to "office."
- The Takeaway: By watching how the AI makes mistakes or associates words, we can map out its internal "mental map" without ever seeing its code.
Level 3: The "What" (The Implementation Level)
The Analogy: Finally, you look at the hardware. What are the muscles and bones made of? How do the nerves fire to make the wing move?
For AI:
This is about the actual neurons and wires inside the computer chip.
- The Insight: Scientists are now using "surgery" on AI. They can zap specific parts of the AI's brain (turning a neuron on or off) to see what happens.
- The Discovery: They found specific "circuits" inside the AI that act like a spell-checker or a memory bank. If they break a specific circuit, the AI forgets how to tell the truth or stops being able to learn from a conversation.
- The Takeaway: We are starting to see the physical gears turning inside the machine, proving that these complex behaviors are built from specific, understandable parts.
The Big Picture: Why Does This Matter?
The paper concludes that we shouldn't just test AI by seeing if it can pass a hard math test (which it might do by luck). Instead, we should use psychology to understand why it thinks the way it does.
- The "Reverse Psychology" Trick: Just as we know humans get bad at recognizing faces if we ask them to describe the face out loud, the paper found that asking AI to "think out loud" (Chain of Thought) actually makes it worse at certain tasks like recognizing patterns.
- The Future: By treating AI like a new kind of mind rather than just a calculator, we can find its weaknesses, understand its biases, and build better, safer systems.
In short: We are no longer just building AI; we are learning to be its therapists, using the same tools we use to understand ourselves.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.