← Latest papers
💬 NLP

Mechanistic evaluation of Transformers and state space models

This paper employs causal interventions to reveal that while Transformers and SSMs may achieve similar accuracy on associative recall tasks, they rely on fundamentally different mechanisms—specifically, Transformers and Based models use in-context induction whereas most SSMs rely on single-layer state computations, with Mamba uniquely achieving induction through short convolutions rather than its core SSM component.

Original authors: Aryaman Arora, Neil Rathi, Nikil Roashan Selvam, Róbert Csordás, Dan Jurafsky, Christopher Potts

Published 2026-02-02
📖 5 min read🧠 Deep dive

Original authors: Aryaman Arora, Neil Rathi, Nikil Roashan Selvam, Róbert Csordás, Dan Jurafsky, Christopher Potts

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 are trying to teach a robot how to play a memory game. The game is simple: You show the robot a list of pairs, like "Apple = Red," "Banana = Yellow," and "Grape = Purple." Then, you ask, "What is the color of the Banana?" The robot needs to look back at the list, find "Banana," and remember that it is linked to "Yellow."

In the world of AI, this is called Associative Recall. The paper you shared is a deep dive into how different types of AI brains (architectures) solve this game. The researchers didn't just look at who got the highest score; they put the robots under a microscope to see exactly what was happening inside their "heads" while they played.

Here is the story of their findings, broken down into simple concepts.

The Two Main Contenders

The paper compares two main types of AI architectures:

  1. Transformers: The current champions of AI (like the ones powering most chatbots). They use a mechanism called "Attention," which is like having a spotlight that can instantly scan the whole list of pairs to find the answer.
  2. State Space Models (SSMs): The new, faster, and more efficient challengers (like Mamba and DeltaNet). They are designed to be lighter and quicker than Transformers but have been suspected of being worse at memory tasks.

The Big Discovery: It's Not Just About the Score

Usually, if an AI gets 99% on a test, we assume it learned the lesson. But this paper argues that getting the right answer doesn't mean you learned the right way.

The researchers used a special "surgery" technique called Causal Intervention. Imagine you have a robot that solves the memory game perfectly. Then, you secretly swap the word "Banana" with "Car" in the robot's memory after it has read the list but before it gives the answer.

  • If the robot suddenly says "Yellow is the color of a Car," it means it was actually remembering the link (Induction).
  • If the robot just guesses or fails, it means it wasn't truly storing the link in a flexible way; it was just looking at the immediate surroundings.

What They Found

1. The "Induction" vs. "Direct Retrieval" Difference

  • Transformers and "Based" models: These models learned to play the game the "smart" way. They created a mental map where they stored the connection between the item and its value (e.g., "Banana" is stuck to "Yellow") as they read the list. When asked a question, they looked up this stored map. The researchers call this Induction.
  • Most SSMs (like H3 and Hyena): These models failed the game. They couldn't figure out how to store the links.
  • Mamba and DeltaNet: These models got high scores, but they cheated! They didn't build a mental map. Instead, they used a "shortcut." When the question "Banana?" came up, they looked immediately at the token right before it or used a very specific, rigid trick to grab the answer. They didn't learn the general rule of "associating" things; they just learned to grab the answer from a specific spot.

2. The Secret Weapon: The "Short Convolution"

The researchers discovered that the models that did succeed (Mamba and Based) had a secret weapon: a tiny, short-term memory tool called a short convolution.

  • Analogy: Imagine reading a book. A "long convolution" is like reading the whole chapter to understand a sentence. A "short convolution" is like glancing at the word you just read and the one before it.
  • The Finding: Mamba uses this "glance" (short convolution) to link "Banana" to "Yellow" as it reads. Without this specific tool, Mamba completely forgets how to play the game. It turns out, Mamba isn't using its main "brain" (the SSM part) to do the memory work; it's using this tiny "glance" tool to do the heavy lifting.

3. The Twist: The "Tree" Game (ATR)

To see if these findings were just a fluke of the simple game, the researchers invented a harder version called Associative Treecall (ATR).

  • The Change: In the simple game, "Banana" and "Yellow" were always right next to each other. In the "Tree" game, they could be far apart, separated by other words, like a family tree. "John had a dog. The dog chased a cat. The cat saw a bird. What did John have?"
  • The Result:
    • Transformers and Based: Still used their "Induction" map. They handled the distance easily.
    • Mamba (with the shortcut): Still used its "glance" tool and did well.
    • Mamba (without the shortcut): Here is the surprise! When the researchers removed Mamba's "short convolution" tool, Mamba failed the simple game but succeeded at the hard "Tree" game.
    • Why? Without the shortcut, Mamba was forced to learn the "Induction" map (the same way Transformers do) to solve the harder problem. It proved that Mamba is capable of learning the smart way, but it only does so when it absolutely has to.

The Takeaway

The paper concludes that accuracy is a liar.

Two AI models might get the same score on a test, but one might be a genius who understands the rules (Induction), while the other is a trickster who just memorized the answer key for that specific test (Direct Retrieval).

  • Transformers are like librarians who organize books on shelves so they can find any connection later.
  • Mamba (in its standard form) is like a person who only remembers the last thing they saw, unless they use a specific "sticky note" (short convolution) to help them.
  • The Lesson: To truly understand AI, we can't just look at the test scores. We have to look under the hood to see how the machine is thinking. This "mechanistic evaluation" is the new tool the authors propose to stop us from being fooled by high scores that hide weak understanding.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →