Lemon: Evidence-Risk-Aware Adaptive Organization for Long-Horizon LLM Agents

Zimo Yin, Haipeng Jiang, Kailong Ren, Zhetao Sun, Guangyi Lv, Congli Yin, Likang Wu, Hongke Zhao, Ming He, Peng Wang, Jianping FanNeurIPS 2026

TL;DR

Even the sharpest AI models fumble long, multi-step tasks when their outer workflows lose track of crucial facts—a failure mode the authors call evidence risk. Lemon fixes this by turning evidence management into the central nervous system of an AI agent, dynamically deciding when to search, compress context without losing raw data, or consult specialized peers. The result? Top-tier benchmark accuracy using up to 88% fewer tokens than competing agent frameworks.

What Problem Does This Paper Address?

Picture a brilliant detective surrounded by a chaotic desk. Even with genius-level reasoning, if key witness statements get buried under coffee-stained summaries or two detectives chase the exact same dead-end lead, the case goes cold.

Modern Large Language Model (LLM) agents face this exact organizational bottleneck. While underlying models have grown remarkably capable, the outer loops orchestrating their tools, memory, and sub-agents are usually governed by rigid, disconnected rules. Over long horizons, agents suffer from evidence risk: they waste compute on redundant searches, accidentally erase decisive details through repeated text summarization ("summaries of summaries"), and fail to reuse hard-earned procedural lessons across tasks. When multiple personalized agents (each with unique tools and histories) try to collaborate, they lack a principled way to expose what they actually know and hold each other's claims accountable.

Figure 1: Overview of Lemon. (a) Schematic of evidence-risk-guided organization versus a static workflow. (b) GAIA accuracy–token profile, measured as described in Section 6.2.

Methods

Named after the segmented fruit—distinct modules operating as one cohesive whole—Lemon reorganizes standard agent primitives around a shared view of what evidence is missing, contradictory, or at risk of being lost. It operates at two scales:

  1. Intra-instance (Inside a Single Agent): Instead of a static pipeline, a single prompt-based controller evaluates the current "evidence-risk state" at every turn to route tasks, spawn parallel workers, or invoke specialized Model Context Protocol (MCP) tools (like Street View navigation or localized image refinement). Two memory mechanisms prevent amnesia:
  2. Anchored Context Compression: When a tool output exceeds 100,000 characters, Lemon doesn't just summarize and discard it. It stores the raw output externally and leaves a compact "truncation anchor" in the prompt, allowing the agent to reach back and re-read the original text if later clues change what matters.
  3. Self-Evolving Semantic Memory (SES-Memory): Rather than hoarding entire past transcripts, Lemon extracts bite-sized, reusable process fragments—like tool-selection heuristics and failure-repair notes—even from partially successful runs.
Figure 2: Intra-instance execution structure of Lemon. The controller coordinates task routing, hierarchical scheduling, context management, memory evolution, and tool use in a single agent. The “Token Threshold” in the figure corresponds to the character-count thresholds that trigger compression.
  1. Inter-instance (Across Personalized Agents): When a task requires a team of heterogeneous agents (differing in tools, memories, and histories), Lemon skips generic role-play. Agents broadcast mathematical "expertise visibility" scores so a greedy router can assemble a complementary team. They then exchange structured proposals, critique unsupported peer claims, score consensus over atomic claim fragments (de-duplicating repeated sources so echoing the same webpage doesn't count as independent proof), and save verified insights back into their individual memories.

Datasets

Because Lemon relies on a prompt-based controller rather than model training, datasets are used strictly for evaluation:

  • GAIA: A benchmark testing general-purpose AI assistants across web retrieval, multi-step reasoning, multimodal perception, and file handling (301 test tasks, 165 validation tasks).
  • xbench-DeepSearch-2510: A 100-task deep-search benchmark evaluated in-house using its official harness.
  • Collaboration Stress Set: A curated 165-task GAIA-style subset specifically filtered to stress-test multi-source synthesis, entity disambiguation, and visual/geospatial verification across multiple agents.

Key Insights and Ideas

  • Summaries decay, anchors endure: Repeatedly summarizing long contexts acts like a game of telephone—if retaining a crucial fact has probability $p < 1$ per step, it vanishes exponentially fast over long horizons. Storing raw outputs behind lightweight anchors decouples evidence survival from task length.
  • More workers $\neq$ faster answers: Forcing two sub-agents to search in parallel actually increased task time by 125.4% and token usage by 40.7% compared to a single worker due to redundant effort and coordination bloat. Letting the controller expand workers adaptively based on separable evidence needs cut tokens nearly in half (49.2%).
  • Debate claims, not final answers: Aggregating multi-agent outputs by voting on final answers hides flawed reasoning. Breaking proposals into atomic claims with source provenance lets agents surgically critique weak links while merging valid discoveries.

Key Results

  • Benchmark Accuracy: Lemon achieved 91.36% (275/301 tasks) on the public GAIA test leaderboard (as of Feb 6, 2026) and 80% (80/100) in an in-house xbench-DeepSearch-2510 run.
  • Massive Token Efficiency: Tested head-to-head on GAIA with a shared GPT-5 backbone, Lemon averaged just 0.25M tokens per task—using 50% to 88% fewer tokens than open-source systems Skywork (0.50M), Co-Sight (1.15M), and MiroFlow (2.17M), translating to 2.2$\times$–10.1$\times$ fewer tokens per correct answer.
  • Targeted Ablations: Stripping away context recovery dropped accuracy by 13.2 percentage points on long-output tasks; disabling SES-Memory cost 9.8 points on procedural-reuse tasks (while increasing token spend as the agent scrambled to re-search forgotten steps).
  • Collective Boost: On the 165-task collaboration stress set, full inter-instance organization lifted accuracy from 80.6% (isolated agent) to 90.9%, though at a higher compute cost of roughly 3.4$\times$ the tokens per correct answer.

Limitations and Future Work

The authors candidly note three main boundaries. First, Lemon's controller is driven by hand-crafted prompts and programmatic character caps rather than a learned policy, and its theoretical design contracts rely on calibration assumptions not empirically verified. Second, public leaderboard entries vary in backbones, tools, and compute budgets, and evaluations were limited to two benchmarks and one stress set with modest repetition. Finally, allowing personalized agents to share and internalize collaboration artifacts introduces privacy, provenance, and over-reliance risks. Future work aims to explore learned control policies, broader multilingual and interactive evaluations, and strict permission and artifact-filtering safeguards.

Summary updated

Abstract

Large language model agents now combine tools, long context, memory, and multi-step workflows, yet they still fail when execution loses track of the evidence required for a reliable answer. Common failure modes include missing support, unresolved contradictions, and evidence lost under context pressure. We present Lemon, an evidence-risk-aware framework that uses evidence risk to guide execution-time organization. At the intra-instance level, a prompt-based, state-conditioned controller coordinates reasoning, tool invocation, worker expansion, and verification, while a recoverable evidence substrate pairs anchored context compression with reusable semantic memory, preserving raw tool outputs while storing transferable process fragments. We further extend Lemon to an inter-instance setting in which heterogeneous personalized agents expose expertise, exchange evidence-bearing proposals, critique unsupported claims, and internalize useful collaboration artifacts. Empirically, Lemon reaches 91.36% on the GAIA test leaderboard and 80% in an in-house xbench-DeepSearch-2510 evaluation. With a shared GPT-5 backbone, it uses 50–88% fewer tokens per task than three open-source agent systems, and on a 165-task collaboration stress set, inter-instance organization raises accuracy from 80.6% to 90.9% at about 3.4× the tokens per correct answer.
BibTeX
@inproceedings{yin2026lemon,
  author = {Zimo Yin and Haipeng Jiang and Kailong Ren and Zhetao Sun and Guangyi Lv and Congli Yin and Likang Wu and Hongke Zhao and Ming He and Peng Wang and Jianping Fan},
  title = {{Lemon: Evidence-Risk-Aware Adaptive Organization for Long-Horizon LLM Agents}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=7o5pnYxP9x},
}
Figure