Laser: Governing Long-Horizon Agentic Search via Structured Protocol and Context Register

Shuting Wang, Qiaolin Xia, Vich Wang, Herberttli, Bobsimons, Zhicheng DouarXiv 2025 · DOI

Abstract

Agentic search systems using Large Language Models (LLMs) often suffer from reasoning drift and context overflow during complex, multi-step tasks. We present Laser, a framework that governs long-horizon agentic search through a structured symbolic protocol and a compact Context Register. By replacing free-form natural language reasoning with standardized action spaces and a slot-based memory system, Laser maintains a clean context window and prevents repetitive loops. Experimental results on multi-hop benchmarks like Bamboogle and MuSiQue demonstrate that Laser significantly outperforms traditional ReAct-style agents in both accuracy and computational efficiency.

Introduction

Current AI search agents, such as those utilizing the ReAct framework, typically interleave free-form natural language (NL) reasoning with tool calls. While flexible, this approach faces two major bottlenecks as tasks scale in complexity. First, NL reasoning is inherently brittle; without structural guidance, agents often fall into repetitive loops or reach premature, incorrect conclusions. Second, the accumulation of raw interaction logs and retrieved documents leads to context overflow and "pollution," degrading model performance over long horizons. Laser addresses these challenges by introducing a symbolic blueprint for reasoning and a deterministic method for context management.

Comparison of Retrieval-Augmented Generation, NL-based Agentic Search, and the proposed Laser framework.

The Laser Framework

Laser governs the agent through two primary architectural innovations: a structured action protocol and a dedicated context register.

1. Structured Action Protocol

Instead of unconstrained text generation, Laser mandates that the LLM operate within three functional "spaces" using a standardized JSON/XML format. This structure ensures that every model output serves a specific, parseable purpose:

  • Planning Space: Involves Intent Refinement to clarify user goals and Problem-Framing to decompose tasks into a Directed Acyclic Graph (DAG).
  • Task-Solving Space: Includes standard operations like Tool Calling, Document Extraction (summarizing key facts), and Task Answering.
  • Retrospection Space: Enables error correction through Re-planning or Revisiting sub-tasks if previous answers are deemed insufficient.

2. Context Register

To prevent context pollution, Laser maintains a "Context Register"—a slot-based storage system. Rather than feeding the entire interaction history back to the model, the register stores only essential state information: the refined intent, discarded plans, and the current DAG execution state. This register is updated via deterministic code based on the agent's structured output, keeping the context window focused and efficient.

Detailed workflow of the Laser agent, illustrating global planning, task-solving via proactive actions, and the structured action space.

Experimental Evaluation

The framework was evaluated on several challenging multi-hop Question Answering (QA) benchmarks, including BrowseComp-ZH, WebDancer, Bamboogle, and MuSiQue. These datasets require connecting disparate facts across multiple search steps.

Methodology

The researchers tested Laser in prompting-only modes and also fine-tuned a Qwen2.5-7B model using Rejection Sampling Fine-Tuning (RFT). Trajectories from a high-capacity teacher model (DeepSeek-V3.1) were used to train the student model to adhere to the Laser protocol.

Key Results and Insights

Laser consistently outperformed baselines like ReAct and Search-R1 across various model sizes (Qwen 8B to 32B).

  • Superior Accuracy: On the Bamboogle dataset (Qwen3-32B), Laser achieved a 59.20 ACC, compared to 48.80 for ReAct and 53.60 for Search-R1.
  • Context Stability: While ReAct's context window often saturated within 20 steps, Laser maintained a stable, low token count even beyond 60 turns. This led to a prefix cache ratio of approximately 90%, making the system significantly faster and more cost-effective.
  • The Value of Retrospection: Ablation studies highlighted that the ability to re-plan and revisit tasks is vital for robustness, as complex multi-hop queries rarely follow a perfect linear path on the first attempt.

Conclusion

Laser demonstrates that governing LLM agents with symbolic protocols and structured memory is a viable path toward stabilizing long-horizon reasoning. By decoupling reasoning from raw history and utilizing a DAG-based planning approach, Laser overcomes the primary limitations of current NL-based agents. Future work will explore extending this framework to more diverse domains, such as complex software engineering and multi-modal reasoning.

Summary updated

Abstract

Recent advances in Large Language Models (LLMs) and Large Reasoning Models (LRMs) have enabled agentic search systems that interleave multi-step reasoning with external tool use. However, existing frameworks largely rely on unstructured natural-language reasoning and accumulate raw intermediate traces in the context, which often leads to unstable reasoning trajectories, context overflow, and degraded performance on complex multi-hop queries. In this study, we introduce Laser, a general framework for stabilizing and scaling agentic search. Laser defines a symbolic action protocol that organizes agent behaviors into three spaces: planning, task-solving, and retrospection. Each action is specified with explicit semantics and a deterministic execution format, enabling structured and logical reasoning processes and reliable action parsing. This design makes intermediate decisions interpretable and traceable, enhancing explicit retrospection and fine-grained control over reasoning trajectories. In coordination with parsable actions, Laser further maintains a compact context register that stores only essential states of the reasoning process, allowing the agent to reason over long horizons without uncontrolled context expansion. Experiments on Qwen2.5/3-series models across challenging multi-hop QA datasets show that Laser consistently outperforms existing agentic search baselines under both prompting-only and fine-tuning settings, demonstrating that Laser provides a principled and effective foundation for robust, scalable agentic search.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
BrowseComp-ZHLaser (Qwen2.5-7B-base, RFT fine-tuned)ACC3.46+0.69 vs baselinefine-tuned · params=7B · backbone=Qwen2.5-7B-base · context-length=32000 tokens · retrieval-top-k=3
Source quote
L216: Laser{} │ 9.69 │ 9.34 │ 3.46 │ {61.60} │ {65.60} │ {56.80} │ 23.60 │ 27.20 │ {19.20}
Web DancerLaser (Qwen2.5-7B-base, RFT fine-tuned)ACC38.07+4.06 vs baselinefine-tuned · params=7B · backbone=Qwen2.5-7B-base · context-length=32000 tokens · retrieval-top-k=3
Source quote
L224: Laser{} │ 47.72 │ 54.31 │ 38.07 │ 35.65 │ +5.84% │ 39.11 │ ++6.40% │ 29.38 │ ++4.40%
MuSiQueLaser (Qwen2.5-7B-base, RFT fine-tuned)ACC19.20+0.4 vs baselinefine-tuned · params=7B · subset=random sample of 500 examples · backbone=Qwen2.5-7B-base · context-length=32000 tokens · retrieval-top-k=3 · retrieval-corpus=2018 Wikipedia dump
Source quote
L216: Laser{} │ 9.69 │ 9.34 │ 3.46 │ {61.60} │ {65.60} │ {56.80} │ 23.60 │ 27.20 │ {19.20}
Reported baseline / comparator measurements (3)
BenchmarkMethodMetricScoreProtocol / Evidence
BrowseComp-ZHSimpleDeepSearcher baselineACC2.77fine-tuned · context-length=32000 tokens · retrieval-top-k=3
Source quote
L215: SimpleDeepSearcher │ 7.27 │ 6.92 │ 2.77 │ {61.60} │ {65.60} │ {57.60} │ {21.20} │ {25.80} │ {{18.20}}
Web DancerSimpleDeepSearcher baselineACC34.01fine-tuned · context-length=32000 tokens · retrieval-top-k=3
Source quote
L223: SimpleDeepSearcher │ 44.67 │ 48.73 │ 34.01 │ 33.68 │ 36.76 │ 28.14
MuSiQueR1-Searcher baselineACC18.80fine-tuned · subset=random sample of 500 examples · context-length=32000 tokens · retrieval-top-k=3 · retrieval-corpus=2018 Wikipedia dump
Source quote
L214: R1-Searcher │ 3.46 │ 3.81 │ 0.35 │ {{56.80}} │ {56.80} │ {48.80} │ 22.40 │ {28.80} │ {18.80}
BibTeX
@misc{wang2025laser,
  author = {Shuting Wang and Qiaolin Xia and Vich Wang and Herberttli and Bobsimons and Zhicheng Dou},
  title = {{Laser: Governing Long-Horizon Agentic Search via Structured Protocol and Context Register}},
  year = {2025},
  eprint = {2512.20458},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.20458},
}
Figure