← Latest papers
💻 computer science

Testing History Dependence Between In-Context and In-Weights Learning

This study demonstrates that while the order of training (approaching a balanced mixture from different directions) creates a transient, measurable difference in the strength of in-context versus in-weights learning mechanisms, it does not result in persistent hysteresis or fundamentally different causal circuit organizations in small transformers.

Original authors: Zuo Yuchen

Published 2026-08-06
📖 4 min read☕ Coffee break read

Original authors: Zuo Yuchen

Original paper licensed under CC BY 4.0 (https://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 teaching a robot to tell jokes. You can teach it in two ways. First, you can show it a few examples right before it speaks, like a reference sheet on the table. The robot reads the reference sheet and figures out the punchline based on what it sees right now. This is called In-Context Learning. It's like the robot is thinking on its feet. Second, you can practice with the robot for hours until it memorizes the jokes so well that it doesn't need the reference sheet anymore. The jokes are now hard-wired into its brain. This is In-Weights Learning.

For a long time, scientists wondered: if you give the robot the exact same mix of reference sheets and practice, does it always solve the problem the exact same way? Or does it matter how it got there? Did it start by memorizing and then learn to read the reference sheet? Or did it start by reading the reference sheet and then memorize the jokes? This question is about history dependence. In the world of physics, this is similar to hysteresis—like a magnet that remembers which way it was pulled, even after you stop pulling it. If a robot's brain has hysteresis, its current state isn't just about what it's seeing now; it's also about the path it took to get there. This matters because if AI models are like this, we might not be able to predict their behavior just by looking at their current data; we'd need to know their entire training history.

This paper takes a small, controlled robot (a tiny AI model) and puts it through a specific test to see if it has this kind of "memory of the path." The researchers set up a game where the robot has to guess a secret code. Sometimes the code depends on a clue given in the current sentence (the reference sheet), and sometimes it depends on a rule the robot learned long ago (the hard-wired memory). They trained two identical copies of the robot to reach the exact same point in the game, but they took them there via different routes. One copy started by focusing on the hard-wired rules and slowly shifted to the reference sheets. The other copy started with the reference sheets and slowly shifted to the hard-wired rules.

The researchers found that when both robots arrived at the exact same spot, they didn't act exactly the same. The one that came from the "hard-wired" side was slightly more likely to use the reference sheet than the one that came from the "reference sheet" side. It was as if the robot that started with rules was still a little bit "stuck" in that mindset, even though it was now looking at the same clues as the other robot. This difference was real and measurable: the gap in their behavior was about 0.098 points on a specific scale, and this happened in all five of the different training experiments they ran.

However, this memory of the path was very short-lived. The researchers kept the robots training at that same spot for a little while longer. After just 25 more steps, the difference started to flip and then disappear. By the time they took 100 steps, the two robots were acting almost identically. The "ghost" of the path they took had faded away.

To understand why this happened, the scientists looked inside the robot's brain. They found that both robots were using the exact same internal parts to solve the problem. They didn't switch to a different "circuit" or a new way of thinking. Instead, the robot that came from the "hard-wired" side just turned up the volume slightly on the part of its brain that reads the reference sheet. It was a temporary volume boost, not a permanent change in the wiring.

So, the paper suggests that while AI models can briefly remember how they got to a certain point, this isn't a permanent "hysteresis" loop where they get stuck in different states forever. It's more like a momentary lag, a quick overshoot that settles down as the model continues to learn. The study shows that to truly understand an AI's behavior, you have to look at its immediate history, but you don't need to worry that it will stay stuck in a weird state forever just because of how it was trained. The model eventually catches up and forgets the path, focusing only on the destination.

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 →