The Horizon Gap: Planning, Memory, Execution, Training, and Evaluation for Long-Horizon LLM Agents
This paper defines the "horizon gap" as the failure of frontier language models in multi-step tasks, surveys 1,547 recent studies to distinguish between task, model, and system properties, and argues that the field's shift toward denser step-level signals is a necessary response to the diminishing informativeness of outcome-only feedback as task horizons lengthen.
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
The Long-Haul Problem: When AI Gets Lost on the Way
Imagine you are teaching a brilliant, hyper-fast robot to write a story. If you ask it to write one sentence, it might do it perfectly in a split second. But what happens if you ask it to write a whole novel, or to manage a complex project that takes hours? This is the world of AI agents. Unlike a simple chatbot that just answers one question, an agent is a robot that can think, take actions (like clicking buttons or writing code), see what happens, and then decide what to do next. It's like a digital employee.
The big challenge scientists are facing right now is the "horizon." In everyday terms, the horizon is just how far ahead you need to look. A short horizon is like ordering a pizza: you call, they deliver, you eat. A long horizon is like building a house: you have to lay the foundation, frame the walls, install the roof, and paint, all while remembering what you did three days ago. The problem is that even the smartest AI models, which can solve hard math problems instantly, often get lost when the task gets long. They might forget an earlier decision, declare the job finished when it's only half done, or quietly drift away from the goal. This gap between what an AI can do in one quick step and what it can reliably finish over a long time is called the Horizon Gap. Understanding how to fix this is crucial because if we want AI to help us with real-world jobs that take hours or days, we need to know why they fail and how to stop them from crashing.
The Great AI Road Trip: Fixing the Horizon Gap
In this paper, the authors act like a massive team of detectives who went through over 1,500 research papers published between 2024 and 2026. Their mission? To figure out exactly why AI agents get lost on long trips and what researchers are trying to do to fix it. They call the distance between a model's single-step smarts and its ability to finish a long task the "Horizon Gap."
To make sense of the chaos, the authors first had to untangle three words that people often mix up, like confusing a car's engine with its gas tank:
- Long-Horizon: This is about the task. It means the job requires many steps, like a long road trip.
- Long-Context: This is about the model's brain. It's how much information the AI can hold in its head at one single moment.
- Long-Term Memory: This is about the system's notebook. It's whether the AI can remember things from yesterday to use today, even after the current "conversation" is over.
The paper argues that you can have a super-long notebook (memory) but a short brain (context), or a huge brain but no notebook at all. These are different problems that need different solutions.
The authors organized their findings into six main chapters, tracking the life of a long task from start to finish:
1. Planning: The Map vs. The Compass
When an AI starts a long task, it needs a plan. Some researchers try to make a perfect map of the whole journey before moving a single step. But the paper finds that this often fails because the world is unpredictable. If you plan a whole road trip in advance, you might get stuck in traffic you didn't know about. The trend is shifting toward interleaving: taking one step, looking around, and then planning the next step. It's like driving with a compass instead of a fixed map. You adjust as you go.
2. Memory: The Backpack vs. The Library
As the AI takes more steps, it generates a lot of information. If it tries to keep everything in its immediate brain (the "context"), it eventually runs out of space or forgets the beginning of the story. The paper shows that most researchers are now building external libraries (like a backpack or a filing cabinet) where the AI can store notes and pull them out when needed. However, there's a catch: if the library gets too messy, the AI might pull out the wrong note or forget to update old ones. The paper suggests that "forgetting" might actually be a feature, not a bug, to keep the library useful.
3. Execution: The Safety Net
This is the part where the AI actually does the work. The paper finds that the secret to success isn't just having a smarter AI model; it's having a better harness (the software wrapper around the model). Think of the model as the engine and the harness as the car's suspension and brakes. If the engine stalls, a good harness catches it, fixes it, and keeps the car moving. The research shows that systems with strong "recovery" logic—ways to notice a mistake and fix it immediately—are much better at long tasks than those that just hope the AI never makes a mistake.
4. Training: Learning from Every Step
Usually, we train AI by giving it a grade only at the very end of a task (like getting an A or F on a final exam). But for a long task, waiting until the end to say "you failed" is too late. The paper highlights a shift toward process rewards. Instead of just grading the final result, researchers are trying to give the AI feedback on every single step it takes. It's like a coach giving tips during practice, not just at the end of the season. This helps the AI learn how to get better, not just what the answer is.
5. Evaluation: Are We Measuring the Right Thing?
Here is where the paper gets critical. The authors point out that many of the tests we use to see if AI is good at long tasks are broken. For example, some tests might say an AI "solved" a coding problem just because it found a patch that passed a simple test, even if the code is actually wrong. The paper argues that we need to stop looking only at the final score (Pass/Fail) and start looking at the trajectory—the whole path the AI took. Did it get lost? Did it recover? Did it drift? The paper suggests that many current "success" scores might be illusions caused by weak tests or the AI memorizing answers.
6. The Foundation: Why It All Breaks
Finally, the paper looks at the theory. It suggests that errors don't just add up in a straight line. Sometimes, an AI works fine for a long time and then suddenly crashes in a "meltdown." Other times, it quietly changes its goal (goal drift) without anyone noticing. The authors admit that we don't have a perfect theory yet to predict exactly when or why these failures happen. We know that they happen, but predicting when is still a mystery.
The Big Takeaway
The most important thing this paper suggests is that the "harness" (the tools and safety nets we build around the AI) might be just as important as the AI model itself. A smart model with a bad harness will fail on long tasks, while a decent model with a great harness might succeed.
The authors also warn us about a hidden trap: Correlated Measurement Bias. This is a fancy way of saying that if we use the same kind of "good step" signals to train the AI and to test it, we might be tricking ourselves. It's like a student studying only the practice questions that the teacher uses for the test; they might get a perfect score but still not understand the subject.
In short, the paper doesn't claim we have solved the long-horizon problem. Instead, it maps out the battlefield. It tells us that the future of AI isn't just about making bigger brains; it's about building better backpacks, better maps, better safety nets, and better ways to measure if the AI is actually doing a good job, step by step. The journey is long, and the AI is still learning how to walk it without falling.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.