← Latest papers
🤖 machine learning

A Mechanistic Analysis of Transformers for Dynamical Systems

This paper analyzes single-layer Transformers from a dynamical systems perspective, revealing that while softmax attention restricts linear system modeling through oversmoothing, it functions as an effective adaptive delay-embedding mechanism for reconstructing states in nonlinear, partially observable systems.

Original authors: Gregory Duthé, Nikolaos Evangelou, Wei Liu, Ioannis G. Kevrekidis, Eleni Chatzi

Published 2026-08-06
📖 5 min read🧠 Deep dive

Original authors: Gregory Duthé, Nikolaos Evangelou, Wei Liu, Ioannis G. Kevrekidis, Eleni Chatzi

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 predict the future. Maybe you're guessing where a bouncing ball will land next, or trying to forecast the weather. For a long time, scientists have had a set of reliable tools for this, like looking at how a system has moved in the past few seconds to guess where it goes next. These tools are like a strict recipe: if you know the rules of physics, you can write down a math equation that tells you exactly what happens. But recently, a new kind of "super-brain" called a Transformer has become famous for predicting things, from writing stories to guessing stock prices. These Transformers are like a magical black box that looks at a whole history of events at once and makes a guess. The big question is: does this black box actually understand the physics of how things move, or is it just a really good guesser that might fail when things get tricky? This paper dives into the engine room of these Transformers to see if they really know what they are doing when they try to predict the motion of physical systems.

The researchers, led by Gregory Duthé and his team, decided to stop treating the Transformer as a mysterious black box and instead take it apart to see how it works on simple, moving systems. They focused on a specific type of Transformer that is very thin and simple—just one layer deep—to make it easier to understand. They asked: "If we feed this machine data about a swinging pendulum or a flowing river, what is it actually learning?"

Here is what they found, and it's a mix of "it works great" and "it hits a hard wall."

First, they looked at simple, straight-line movements (linear systems), like a spring bouncing up and down. They discovered that the Transformer has a weird blind spot. The way the Transformer pays attention to the past is like a chef who can only add ingredients, never take them away. It can mix past moments together, but it can't subtract them. If a system needs to subtract a past moment to create a wobble (like a spring that bounces back and forth), a single-headed Transformer gets confused. It tries to smooth everything out, making the bouncy spring look like a sluggish, slow-moving blob. It's like trying to draw a zigzag line using only a brush that can only move forward; you end up with a straight line. The paper shows that if you give the Transformer two "heads" (two different ways of paying attention) instead of one, it can fix this and finally draw the zigzag correctly.

Next, they moved to more complicated, wiggly movements (nonlinear systems), like a chaotic pendulum or fluid swirling around a cylinder. Here, the Transformer shines, but only under specific conditions. When the researchers gave the Transformer the full picture of the system (knowing both the position and speed of the object), it didn't do much better than a simple calculator. It was like giving a detective a full map when they only needed a compass.

However, when the researchers hid part of the information—giving the Transformer only the position but hiding the speed—the Transformer became a superhero. It started acting like a time-traveling detective. By looking at a sequence of past positions, it could figure out the hidden speed and reconstruct the full state of the system. It was essentially building a "delayed memory" to fill in the missing pieces, just like how you can guess a car's speed by looking at where it was a few seconds ago. The paper suggests that this is how the Transformer works best: by stitching together a history of observations to create a complete picture of the present.

But there's a catch. The researchers found that the Transformer needs enough "room" in its brain to do this. If they forced it to compress all that complex history into a tiny space, the picture got messy and folded in on itself, like trying to stuff a large map into a tiny envelope. The paper shows that if the system is complex, the Transformer needs a larger internal space to keep the different possibilities separate. Also, they found that if the system changes based on a hidden setting (like the speed of the wind), the Transformer might get confused unless you explicitly tell it what that setting is. Without that extra clue, it might mix up two different scenarios that look similar in the short term but behave very differently later.

In the end, the paper doesn't say Transformers are broken, but it does say they aren't magic. They are powerful tools that can learn to predict physical systems, but they have specific rules they must follow. They struggle with simple subtraction in their memory, they need enough space to unfold complex shapes, and they sometimes need a little help from us to understand the hidden settings of the world they are watching. By understanding these rules, scientists can stop treating these models as mysterious black boxes and start building them to be more reliable for predicting the real, moving world around us.

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 →