Spectral Probe-Circuits: A Three-Step Recipe for Identifying Attention-Head Circuits in Pretrained Transformers
This paper introduces a three-step, unsupervised methodology for identifying causal attention-head circuits in pretrained transformers, demonstrating that a spectral signal-based approach successfully isolates task-specific induction circuits across diverse model scales, architectures, and training pipelines.
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 giant library of books (a neural network) that has been reading millions of stories to learn how to speak. Inside this library, there are thousands of tiny librarians (called "attention heads") who decide which words to pay attention to when forming a sentence.
This paper presents a three-step recipe to find the specific group of librarians responsible for a particular trick, like "induction" (spotting a pattern like "A, B... A, B" and predicting the next B). The authors want to know: Which specific librarians are doing this job, and can we prove it?
Here is the recipe, explained simply:
Step 1: The "Activity Meter" (The Spectral Signal)
The Problem: You can't just look at the library and know who is working. You need a way to spot librarians who are actually thinking about the content of the story, rather than just staring blankly or following a rigid rule.
The Solution: The authors invented a "participation ratio" meter.
- The Analogy: Imagine a librarian who always points to the same shelf, no matter what book you ask about. That's boring; they aren't really thinking. Now imagine a librarian who looks at a different shelf for every single book you ask about. That librarian is actively processing the content.
- The Tool: The authors measure how "spread out" a librarian's attention is over time. If a librarian's attention jumps around to many different places depending on the story, their "meter" goes up. This helps them find librarians that are doing specialized work without needing to know what specific task they are doing yet. It's like finding the most active workers in a factory just by watching how much they move around.
Step 2: The "Job Description" Screen
The Problem: The "Activity Meter" from Step 1 finds all the busy workers. But we want to find the workers doing one specific job (like induction). The meter might highlight a worker who is busy doing something else entirely.
The Solution: They apply a "screen" to filter the list.
- The Analogy: You have a list of 100 active workers. You ask them: "Who is looking at the word immediately before the current one?" (Previous-token) or "Who is looking at the pattern 'A... A'?" (Induction).
- The Tool: They check the attention patterns of the active workers. If a worker is looking at the right place for the specific task (e.g., looking back at the first "A" when they see the second "A"), they get a "ticket" to the candidate list. This turns a general list of "busy workers" into a specific list of "induction workers."
Step 3: The "Fire Drill" (Causal Verification)
The Problem: Just because a worker is looking at the right place doesn't mean they are causing the result. Maybe they are just watching, and someone else is doing the real work.
The Solution: They perform a "fire drill" (ablation).
- The Analogy: You tell the specific group of "induction workers" identified in Step 2 to stop working (you zero out their output).
- The Test: Does the library stop predicting the next word correctly?
- The Control: To make sure you aren't just breaking the library by randomly firing people, you also fire a different group of workers from the same department who were not on your list.
- The Result: If the library crashes only when you fire the "induction workers," but keeps working fine when you fire the random group, you have proven that your specific group was the one doing the job.
What Did They Find?
- The Recipe Works Everywhere: They tested this on models ranging from very small (51 million parameters) to quite large (1 billion parameters). In every single model, they found a tiny team of 3 to 6 librarians responsible for the induction trick.
- It's Predictive: They could find these specific teams during the training process, before the model was even finished. The "Activity Meter" lit up for the right workers before the model even started getting good at the task.
- The "Specialist" Ratio is Constant: No matter how big the library gets, the percentage of librarians doing these specialized, high-level jobs stays roughly the same (about 17–19%). The rest of the library handles general stuff.
- Different Models, Different Teams: Even though the job (induction) is the same, different models use different teams of librarians to do it. One model might use workers in the first few rows; another might use workers in the middle rows. But the recipe finds the right team for each specific model.
Summary
This paper gives us a reliable, three-step method to find the "brain cells" in AI that do specific tricks. It doesn't just guess; it finds the active workers, filters them by job description, and then proves they are essential by turning them off and watching what breaks. It shows that even as AI models get huge, the core teams doing the clever work remain small and consistent.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.