Teaching LLMs to Update Beliefs for Efficient Long-Horizon Interaction

As LLMs tackle longer tasks, retaining complete interaction histories becomes contextually and computationally expensive. The ABBEL framework addresses this by isolating summaries into natural-language 'belief states' and supervising them via belief grading, recovering accuracy while significantly cutting memory usage.
Overview of ABBEL compared to traditional recursive summarization. Beliefs replace the full interaction history as the agent's working context, and belief grading improves performance by supervising the contents of each belief state..
As task horizons grow, LLM contexts can't scale forever. Self-summarization enables concise, interpretable contexts, but at a significant performance cost, especially for human assistance domains where high quality data is scarce, e.g., collaborative code generation. We address this with ABBEL: a framework that isolates and supervises the information content of summaries in the form of natural-language belief states.
Motivation: the cost of recursive summarization
For language models to effectively assist with increasingly complex tasks such as software development, they must be able to interact with us over hundreds or even thousands of steps. For such long tasks, it is impractical to keep the history of the entire interaction in context. The heuristic approach used so far has been summary generation, sometimes called context compaction. For example, Cursor's latest model composer 2.5 uses compaction during training for improved performance (Cassano et al., 2026). Alongside composer, Grandcode (DeepReinforce et al., 2026), the first system to consistently beat all human competitors in online coding competitions, despite using one of the newest efficient attention models (Qwen 3.5-397B), still found it necessary to employ context summarization.
But compaction has a problem. Despite seemingly low performance gaps in benchmarks, model servers like Cursor continue to recommend that users avoid compaction with their coding assistants in the middle of a task (Heule et al., 2026).
To understand why, see below the performance over RL fine-tuning of a Context summary model compared to full context models in Combination Lock, a Wordle-like game that allows up to 16 guesses. Though both model types improve over the course of training, the summary model never closes the gap.
Making models self-summarize while completing a task increases the complexity of the learning problem. While this could typically be addressed by training with more data, the performance degradation observed in real world interactive settings likely arises from the difficulty we have in creating and using human simulators effectively to generate high quality training environments (Lin et al., 2025, Tomlin et al., 2025). Thus, the better you can learn to summarize on the limited and messy multiturn interaction trajectories you can collect, the better off your model will be for downstream users.
ABBEL: acting through belief bottlenecks
To address poor learning efficiency, we isolate the summary generation task. Drawing inspiration from recursive Bayesian estimation, we formulate summaries as belief states, which we periodically prompt the model to update based on new information.
Belief grading
We then extract and supervise the contents of the belief states. Belief grading can be thought of as adding an auxiliary RL task, using heuristics designed to capture what makes a good belief as the reward. An example heuristic for coding could be shorter is better, but closer to being able to reconstruct the git diff is also better, so balancing these would yield a good belief. In domains where good heuristics are hard to define, we propose a general autoencoding-inspired grading function, which treats the current language model as both encoder and decoder of information from the history, and the belief states as the codes. We grade each belief by how well it can be used by the current model to reconstruct the most recent observation.
What do we gain by grading beliefs?
Collaborative coding on CollabBench
We demonstrate the utility of belief grading in our motivating domain of human-driven assistive coding, with the CollabBench environment from Sweet-RL (Zhou et al., 2025). We see that with the general reconstruction-based belief grading function we reduce the performance gap from full context models by about 50%, and train in 50% fewer steps compared to training models to summarize without belief grading. After training, ABBEL still uses significantly less memory than the full context setting.
Combination Lock
Additionally, in CombinationLock, we demonstrate that ABBEL with a belief grader which leverages domain knowledge enables even higher learning efficiency than full context models.
Multi-objective question answering
In a third environment, multi-objective question answering, we demonstrate the utility of isolating belief states from reasoning, by showing that a Peak Belief Length Penalty significantly reduces memory usage with minimal performance degradation.
Related work
Alternative solutions to managing long contexts involve different tradeoffs, such as context compression into dense representations or hand-designed summarization prompts and pruning strategies.
Source: Berkeley AI Research (BAIR) Blog















