TL;DR
When using LLMs to optimize other LLM agents, the underlying reasons why an edit might work usually remain trapped implicitly within the optimizer's latent reasoning. This paper introduces Belief-Calibrated Optimization (BCO), a method that forces the optimizer to maintain an explicit, persistent "world model" document of its beliefs. By validating and updating these beliefs via a structured predict-observe-correct loop, BCO significantly improves the performance and generalization of the resulting agent scaffolds across multiple benchmarks.
What Problem Does This Paper Address?
Building effective LLM agents requires designing a "scaffold"—the prompts, control loops, and tool integrations surrounding the core model. Because state-of-the-art models are typically served as frozen APIs, researchers increasingly use "agentic optimization," where a coding LLM acts as an optimizer to iteratively edit the scaffold code based on execution traces and scores.
However, when the coding LLM makes an edit, its hypothesis about why the change should help remains implicit. In subsequent rounds, the optimizer only sees raw scores and traces, completely losing the context of its previous beliefs. This lack of continuity makes it difficult to distinguish true structural improvements from random evaluation noise, leading to the "optimizer's curse" (overfitting to the training tasks).
Methods
BCO introduces a structured, persistent Markdown document (world_model_calibration.md) into the optimizer's workspace. This document serves as an explicit world model, tracking atomic execution and evaluation beliefs.
Instead of a simple mutate-and-evaluate loop, BCO implements a three-step Predict-Observe-Correct cycle:
- Predict: Before running a new scaffold edit, the optimizer must write down a falsifiable prediction (
prediction.md) detailing which task types will improve or regress and why. - Observe: The candidate scaffold is executed in the environment to gather raw scores and traces.
- Correct: The optimizer grades its previous prediction against the actual outcome. It then updates the world model document using explicit operations: Add new beliefs, Revise existing ones, Merge overlapping concepts, or Remove refuted hypotheses.
The authors compare BCO against a Vanilla baseline that receives the exact same raw data (diffs, traces, scores) but lacks the persistent world model document to record its explicit conclusions.
Datasets
The authors evaluated BCO across five benchmarks spanning four distinct agent task families:
- Memory QA: LongMemEval-s and LoCoMo (testing long-term, multi-session conversation reasoning).
- Tool-use QA: GAIA (real-world multimodal questions requiring web browsing and tool use).
- Code-as-action agents: AppWorld (writing Python code to interact with simulated everyday app APIs).
- Terminal agents: Terminal-Bench 2.0 (realistic command-line tasks executed in a sandboxed container).
Key Insights and Ideas
- Beliefs as Regularizers: Forcing the LLM to state a falsifiable hypothesis before running an experiment prevents it from blindly chasing noisy improvements, effectively mitigating the optimizer's curse.
- Content Over Form: Through an offline ablation study—where they scrambled the text of the world model but kept its format—the authors proved that the actual information written down drives the performance gains, not just the structural formatting.
- Token Efficiency: BCO can actually reduce total token usage (up to 27% on memory tasks). By summarizing lessons learned into a compact belief document, it prevents the optimizer from needing to re-read massive, raw execution traces in later iterations.
Key Results
BCO consistently outperformed the Vanilla baseline on both training and held-out test sets across all five benchmarks.
- On GAIA, BCO boosted the held-out pass rate to 0.495 compared to Vanilla's 0.343.
- On LongMemEval-s, BCO reached a held-out pass rate of 0.608 vs Vanilla's 0.533.
- Model Transferability: When the underlying target model was swapped out for an unseen model (
gpt-5.6-luna), scaffolds optimized via BCO maintained their performance edge on completed tasks, demonstrating that the learned strategies generalize beyond the specific model they were trained on.
Limitations and Future Work
- Heuristic World Models: The world model is written in natural language and managed by an LLM; it is a heuristic summary rather than a statistically rigorous Bayesian posterior.
- Static Environment Assumption: BCO assumes the environment and target model remain fixed during the optimization run. It cannot dynamically adapt if the target model drifts or external tools change mid-stream.
- Context Window Overruns: Scaffolds optimized with BCO sometimes generated long natural-language scratchpads. When transferred to more verbose target models, this led to context window overruns and uncompleted tasks in some benchmarks (like AppWorld). The authors suggest that future variants should explicitly score a candidate's resource envelope alongside its pass rate.
Summary updated