← Latest papers
🤖 machine learning

Feed-Forward Steering in Transformer Residual Dynamics

This paper extends attention-only dynamical theories of Transformers by modeling feed-forward networks as local steering fields, demonstrating that their tangential components are essential for residual motion and model performance while identifying commutator defects as a key metric for determining the feasibility of parallelizing attention and FFN blocks.

Original authors: Timur Mudarisov, Mikhail Burtsev, Radu State

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

Original authors: Timur Mudarisov, Mikhail Burtsev, Radu State

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 watching a massive, invisible dance party inside a computer brain. This isn't a party with music and flashing lights, but with words and numbers. In the world of artificial intelligence, specifically the "Transformers" that power chatbots and search engines, there is a constant flow of information called a "residual stream." Think of this stream as a river carrying tiny boats (tokens) representing words. For a long time, scientists believed the only thing steering these boats was a mechanism called "Attention." You can picture Attention as a giant, invisible magnet that pulls boats toward each other if they are talking about similar things. If a boat says "king," the magnet might pull it closer to a boat saying "queen." This pulling force is called "aggregation," and it's why words that belong together start to clump up in the same direction.

However, there's another part of the dance floor: the Feed-Forward Network, or FFN. If Attention is the magnet pulling boats together, the FFN is like a local DJ or a personal coach standing right next to each boat, nudging it in a specific direction based on what that specific boat is saying. For years, researchers thought the FFN was just a sidekick, maybe just adjusting the speed of the boats or fixing their volume. But a new paper asks a big question: Is the FFN just a volume knob, or is it actually the steering wheel that decides where the boats go? Understanding this matters because if we know exactly how these boats move, we can make AI faster, smarter, and easier to fix when it makes mistakes.

The Paper's Big Discovery: The DJ is the Captain

This paper, titled "Feed-Forward Steering in Transformer Residual Dynamics," suggests that the old view was missing a crucial piece of the puzzle. The authors propose a new way to look at the dance floor: Attention is the "aggregation" that pulls everyone toward a shared group, but the FFN is a "steering field" that actively pushes individual boats in new directions. They treat the movement of these word-boats as a physics problem, where the boats are particles moving on a sphere (like the surface of a globe).

The researchers found that the FFN doesn't just push the boats forward or backward (which would just change their speed or size). Instead, the most important part of the FFN's job is to push them sideways, or "tangentially." Imagine a boat on a globe; pushing it toward the North Pole changes its size relative to the center, but pushing it sideways changes its actual direction on the map. The paper shows that this sideways push is what actually changes the meaning and path of the word.

What They Did and What They Found

To prove this, the team ran a series of experiments on several famous AI models, including GPT-2, Pythia, Mistral, and Llama-3. They treated the AI like a science lab where they could turn parts on and off or change how they worked.

First, they checked if Attention alone could explain where the boats went. They found a huge "angular-alignment deficit." In plain English, if they only let the Attention magnet work, the boats ended up pointing in the wrong direction compared to where the real AI sent them. This deficit grew larger in bigger, newer models, going from about 0.41 in GPT-2 to 0.63 in Llama-3-8B. This suggests that without the FFN's steering, the AI would be lost.

Next, they performed a "surgery" on the FFN. They split the FFN's push into two parts: the "radial" part (pushing forward/backward) and the "tangential" part (pushing sideways).

  • When they kept only the radial part, the AI's performance collapsed completely, just as if they had removed the FFN entirely.
  • When they kept only the tangential part, the AI kept working almost perfectly, with only a tiny drop in quality.

This was a smoking gun. It proved that the FFN's main job is to steer the direction of the words, not just adjust their size.

They also looked at what happens when the Attention magnet pulls too hard, trying to squish all the boats into one tiny clump (a problem called "rank collapse"). They found that the FFN acts like a counter-force. While Attention tries to squeeze the boats together, the FFN pushes them apart, keeping the group diverse and preventing them from all becoming the same word. It's like a DJ who notices everyone is crowding the center and starts playing a beat that makes people spread out again.

A Practical Trick: Speeding Up the Dance

The most exciting part of the paper is a practical trick they discovered. In a standard AI, the boats first get pulled by the Attention magnet, and then the FFN coach gives them a nudge. This happens one after the other (sequentially). The researchers asked: "What if we let the magnet and the coach work at the same time (in parallel)?"

Usually, you can't do this because the coach needs to see where the magnet pulled the boat first. But the team measured a "defect score" to see how much the order mattered for each layer of the AI. They found that for some layers, the order didn't matter much. By identifying these "low-defect" layers, they could run the Attention and FFN parts at the same time.

  • In GPT-2-large, they managed to speed up the process by about 1.24 times with almost no loss in quality (only +0.02 loss).
  • In Mistral, they got a 1.10 times speedup with a tiny loss of +0.009.

However, if they tried to do this on layers where the order did matter (high-defect layers), the AI's performance crashed. This suggests that while we can't just make the whole AI run in parallel instantly, we can speed up specific parts of it by knowing exactly how the steering works.

What This Means

The paper doesn't claim to have solved everything about AI, but it changes how we see the engine. It suggests that the FFN isn't just a helper; it's a directional steering field that shapes the geometry of the AI's thoughts. It keeps the AI from getting stuck in a single direction and allows it to navigate complex ideas. By understanding that the FFN is the "steering wheel" and not just the "gas pedal," researchers might be able to build faster, more efficient AI models that don't lose their way. The findings are based on careful measurements and simulations across multiple models, suggesting that this "aggregation-steering" view is a robust way to understand how these digital brains move.

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 →