The Replay Gap: Static Evaluation of Model Switching in LLM Agents Scores the Wrong World
This paper demonstrates that static replay-based evaluation methods fundamentally fail to assess LLM agent routers because substituting model outputs in logged trajectories ignores the cascading divergence of subsequent agent actions, leading to misleading performance metrics that do not reflect real-world outcomes.
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 the captain of a spaceship navigating a treacherous asteroid field. You have a fleet of different AI pilots: some are fast and cheap but make small mistakes, while others are slow, expensive, and incredibly precise. To save fuel, you decide to switch pilots mid-journey based on what's happening right now. If the path is clear, you use the cheap pilot; if a massive asteroid appears, you swap to the expert. This is the dream of "agentic routing" in the world of Large Language Models (LLMs). These models are the brains behind AI agents that can write code, solve math problems, or play games by taking a series of steps. The big question for engineers is: How do we know our pilot-switching strategy actually works?
Traditionally, scientists have tested these strategies like a movie director reviewing a script. They look at a recorded journey (a "trajectory") where one pilot flew the whole way. Then, they pretend, "What if we had swapped the pilot at step 10?" They simply paste the new pilot's recorded answers into the old script and see if the ending looks good. This is called "replay evaluation." It's cheap, fast, and assumes that if you change the pilot at step 10, the rest of the ship's journey would have stayed exactly the same as the original recording. But in the real world, a spaceship is a closed loop: the pilot's action at step 10 changes the view at step 11, which changes the decision at step 12, and so on. If the new pilot sees a different asteroid field because of their own earlier move, the whole script changes. This paper asks a simple, terrifying question: Is our "movie script" method of testing actually measuring the wrong reality?
The researchers at Carnegie Mellon University decided to stop guessing and start testing. Instead of editing a movie script, they built a time-travel machine. They took real AI agents solving software engineering problems and, at specific moments, "forked" the timeline. They created two parallel universes: one where the original pilot continued, and another where they swapped in a different model. Crucially, they didn't just paste new answers into the old story; they let the new pilot actually take control, interact with the computer environment, and see what actually happened next. They ran about 900 of these parallel experiments to see how much the stories diverged.
The results were a shock to the system. The assumption that the rest of the journey stays the same was completely wrong. When they swapped models, the new pilot didn't just take over the existing path; they rewrote the entire future. In the early stages of a task, swapping models caused the agent to change its mind on 74% to 77% of its very next action. By the time the researchers looked at the whole journey, the new pilot had rewritten 61% to 94% of all the steps that followed the swap. To put it in perspective, if you swapped a pilot in a video game, the game world would change so drastically that the "script" you were trying to read would be describing a level that no longer exists.
The study also found that the "replay" method is dangerously blind to success. In their experiments, they saw five specific moments where swapping a pilot actually changed the outcome of the mission—saving a failed task or losing a solved one. The old "movie script" method missed every single one of these critical moments. It predicted failure when the new pilot actually succeeded, and it predicted success when the new pilot actually failed. The patch of code the new pilot actually wrote looked nothing like the patch the replay method predicted; they were essentially unrelated.
Furthermore, the researchers discovered that the "noise" in the system depends heavily on how the models are run. Even when using the exact same model twice, the results weren't always identical. If the model was served using one type of hardware compression (FP8), the "control" runs (where no swap happened) diverged 90% of the time. But with a different compression method (AWQ), the runs stayed nearly identical. This means that even the baseline for comparison is shaky, making the "replay" method even less reliable.
The paper concludes that the current way we test AI routing is scoring the wrong world. The "replay" method is like judging a chef by reading a recipe they wrote yesterday, ignoring the fact that the ingredients in the kitchen have changed. The author suggests that to truly understand how to route AI agents, we need to stop pretending the future is fixed and start testing by actually running the agents in branching, parallel realities. They have released their tools and data so others can stop guessing and start seeing the true, chaotic, and fascinating way these AI agents actually behave when the rules of the game change.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.