← Latest papers
🤖 machine learning

Anatomical Heterogeneity in Transformer Language Models

This paper challenges the assumption of layer homogeneity in transformer language models by demonstrating profound anatomical heterogeneity in SmolLM2-135M, where layers exhibit vastly different importance and training requirements, ultimately proving that reallocating computational budgets based on layer importance can significantly reduce costs while improving performance.

Original authors: Tomasz Wietrzykowski

Published 2026-03-23
📖 4 min read☕ Coffee break read

Original authors: Tomasz Wietrzykowski

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 building a giant, 30-story skyscraper to house a super-smart AI.

For years, engineers (AI researchers) have built these skyscrapers by treating every single floor exactly the same. They give every floor the same amount of concrete, the same number of workers, and the same amount of time to build. They assume that Floor 1 is just as important as Floor 15, and Floor 30.

But a new study by researcher Tomasz Wietrzykowski suggests this is a huge mistake. He looked inside a small AI model (called SmolLM2) and discovered that its "floors" are actually wildly different from one another. Some floors are the brain of the building, some are just decorative hallways, and a few are actually structural weaknesses that make the building worse.

Here is the breakdown of his findings using simple analogies:

1. The "Anatomy" of the AI

Wietrzykowski found that the AI isn't a uniform block of code. It has an anatomy, just like a human body:

  • The Brainstem (Layers 1 & 2): These are the entry points. If you damage them, the AI can't even understand what you're saying. They are critical and hard to fix.
  • The "Brain" (Layers 8–11): This is the deep reasoning center. It does the heavy lifting. If you mess with these, the AI goes completely crazy. One of these layers (Layer 11) is so important that it is 1 million times more critical than some other layers.
  • The "Connective Tissue" (Layers 3–7, 12–22): These are the hallways and support beams. They help a little, but if you remove them or make them smaller, the building still stands. They are "redundant."
  • The "Anti-Layers" (Layers 14 & 17): This is the most shocking discovery. These layers are like a bad appendix. They are actually hurting the AI. When Wietrzykowski removed them or replaced them with random noise, the AI actually got smarter. They were actively working against the model.
  • The "Motor Cortex" (Layers 23–28): These prepare the final answer. They are important, but they are very flexible and can recover quickly if messed up.

2. The "Oscillating Wave" Secret

The researcher noticed a strange pattern in how the weights (the numbers inside the AI) change from floor to floor. It's like a standing wave in a pool.

If Floor 5 pushes the water in one direction, Floor 6 pushes it back the other way, and Floor 7 pushes it forward again. They are constantly compensating for each other. This means you can't just copy-paste a floor from one part of the building to another; the "push and pull" would break the whole structure.

3. The "Magic Scale" Trick

The team tried many ways to fix or replace the "useless" floors:

  • Zeroing them out: The building collapsed.
  • Copying neighbors: The building got confused.
  • Blending them: The building fell apart.

The only thing that worked was gently turning down the volume (scaling the weights by 0.9). It's like telling a redundant floor, "You don't need to work as hard, just whisper your part." This kept the AI working perfectly while saving resources.

4. The New Way to Build: "Growth Training"

The biggest takeaway is how we should train these AIs in the future.

The Old Way (Uniform Training):
Imagine training a choir by making every singer practice the same song for the same amount of time, regardless of whether they are the lead soprano or the guy in the back row who just hums. It's inefficient.

The New Way (Growth Training):
This mimics how a baby grows.

  1. First, build the skeleton and brain: Train the most critical layers (the "Core") first.
  2. Then, grow the limbs: Once the brain is solid, add the next layers, using the brain's patterns as a blueprint.
  3. Finally, add the skin: Train the minor, redundant layers last.

The Result:
In a test, this "Growth" method built a model that was 4.7 times better than the standard method, using the same amount of time and money. Even more impressively, a model trained with only half the budget using this method still outperformed the standard model trained with full resources.

The Bottom Line

AI models aren't uniform machines; they are complex, living-like structures with specialized parts. By treating them like biological organisms—giving the "brain" more attention, removing the "bad appendix," and building them in stages—we can make them smarter, faster, and cheaper to train.

We don't need to build every floor of the skyscraper the same way; we just need to build the right floors, in the right order, with the right amount of effort.

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 →