← Latest papers
🤖 AI

Transformers converge to invariant algorithmic cores

This paper introduces Algorithmic Core Extraction (ACE) to demonstrate that independently trained transformers, despite varying weight configurations, converge on compact, invariant algorithmic subspaces that govern their behavior, revealing a shared computational structure beneath apparent complexity and offering a new path for mechanistic understanding and control.

Original authors: Joshua S. Schiffman

Published 2026-07-08
📖 6 min read🧠 Deep dive

Original authors: Joshua S. Schiffman

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

The Big Idea: Different Roads, Same Destination

Imagine you are trying to get from your house to a specific coffee shop.

  • Driver A takes a route through the suburbs, then a highway, then a back alley.
  • Driver B takes a route through the city center, then a park, then a bridge.
  • Driver C takes a completely different path involving a ferry and a train.

If you look at their maps (the specific roads they drove), they look nothing alike. They are totally different. However, if you look at what they are actually doing (the act of driving to the coffee shop), they are all doing the exact same thing.

This paper argues that AI models (specifically "Transformers") work the same way. When we train two AI models to do the same task, they end up with completely different internal "wiring" (weights and parameters). But, deep inside, they are all using the same hidden "engine" to get the job done.

The authors call this hidden engine an Algorithmic Core.

The Problem: Looking at the Wrong Thing

Usually, when scientists try to understand how AI works, they look at the specific wiring of one single model. The paper says this is risky. It's like studying Driver A's map and thinking, "Ah, so to get to coffee, you must take the back alley." But that's just an accident of Driver A's route. Driver B didn't take that alley.

The paper suggests we should stop looking at the specific roads (the messy, unique details of one training run) and start looking for the Invariant (the unchanging truth that all drivers share).

The Solution: Finding the "Core"

The authors created a tool called ACE (Algorithmic Core Extraction). Think of ACE as a special pair of X-ray glasses.

  1. It filters out the noise: It ignores the millions of unique details that make one AI different from another.
  2. It finds the engine: It isolates a tiny, compact "core" inside the AI that is absolutely necessary to do the task. If you remove this core, the AI fails. If you keep only this core, the AI still works perfectly.
  3. It proves they are the same: Even though the AIs look different on the outside, ACE shows they all hide the same mathematical "engine" inside.

Three Experiments: From Simple to Complex

The paper tested this idea in three different scenarios:

1. The Simple Puzzle (Markov Chains)
They taught three different AIs a simple game: predicting the next step in a sequence.

  • Result: The three AIs learned using completely different internal maps. Their "wiring" was almost totally different.
  • The Core: But when ACE looked inside, it found that all three were hiding a tiny, 3-dimensional "core" that did the exact same math. It was like finding that three different car engines all used the exact same 3-cylinder piston arrangement, even though the rest of the cars looked different.

2. The "Grokking" Mystery (Modular Addition)
"Grokking" is a weird phenomenon where an AI suddenly goes from failing a math problem to solving it perfectly, often after a long time of just memorizing answers.

  • The Discovery: The authors found that right when the AI "groks" (suddenly understands), a compact, circular "core" forms inside it. This core acts like a clock, rotating numbers to solve the math.
  • The Twist: If you keep training the AI after it has learned, this core gets "bloated." It starts using way more space than it needs, filling up with redundant copies of the same math.
  • The Lesson: The paper found that having many redundant ways to solve a problem actually helps the AI learn faster. It's like having a team of people all shouting the same answer; eventually, the right answer gets through faster.

3. The Real World (Language Models)
Finally, they looked at six huge, real-world AI models (like GPT-2, LLaMA, and others) that are used for writing text. These models are huge and very different from each other.

  • The Task: They focused on Subject-Verb Agreement (knowing if a sentence needs "is" or "are").
  • The Discovery: In all six massive models, there is a single, invisible "line" (a 1-dimensional axis) in the AI's brain that controls whether a sentence is singular or plural.
  • The Magic Trick: If you take this single line and "flip" it (reverse the direction), the AI instantly starts making grammar mistakes. It changes "The cat is" to "The cat are."
  • The Alignment: Even though these models were built by different companies, trained on different data, and have different sizes, they all use this exact same line to handle grammar. It's as if every human brain, regardless of culture or language, uses the exact same neural switch to decide between "I" and "We."

Why This Matters

The paper concludes that beneath the messy, complex surface of AI, there is a simpler, shared structure.

  • Don't look at the paint job: The specific colors and shapes of the AI (its parameters) are just accidents of how it was trained.
  • Look at the engine: The "Algorithmic Core" is the real thing. It is the part that stays the same no matter who builds the AI or how they build it.

By finding these cores, we can understand and control AI better. Instead of trying to fix a million tiny wires, we can just find the one "switch" that controls the behavior we care about.

Summary Analogy

Imagine three different architects building a house.

  • Architect A uses wood.
  • Architect B uses brick.
  • Architect C uses steel.

If you look at the materials, they are totally different. But if you look at the blueprint for the stairs, you might find that all three architects used the exact same 10-step design because that's the most efficient way to go up.

This paper says: "Stop arguing about the wood, brick, and steel. Let's study the stairs."

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 →