Lost in the Maze: Overcoming Context Limitations in Long-Horizon Agentic Search
Summary
Slim (Simple Lightweight Information Management), a new framework for long-horizon agentic search, addresses critical context limitations in existing systems. Current frameworks like ReAct and Search-o1 struggle with long trajectories due to accumulating noisy content, hitting context window limits, or exceeding tool budgets. Slim overcomes this by separating retrieval into distinct search and browse tools and periodically summarizing the conversation history. This design keeps context concise, enabling longer, more focused searches. Benchmarking with o3 as the base model, Slim achieved 56% on BrowseComp and 31% on HLE, surpassing all open-source baselines by 8 and 4 absolute points, respectively. Crucially, it incurred 4–6x fewer tool calls and lower overall costs. The framework also includes an automated trajectory analysis pipeline and error taxonomy, showing Slim reduces hallucinations.
Key takeaway
For AI Engineers designing or optimizing long-horizon agentic search systems, you should prioritize efficient context management to overcome limitations. Implement a framework like Slim, which separates search and browse tools and periodically summarizes conversation history, to significantly reduce tool calls and costs while improving performance. This approach helps mitigate issues like context window limits and hallucinations, enabling more robust and cost-effective deep research applications.
Key insights
Slim improves long-horizon agentic search by managing context efficiently through distinct search/browse tools and periodic summarization.
Principles
- Context management is crucial for long-horizon agents.
- Separate search and browse tools for efficiency.
- Periodically summarize trajectories to reduce noise.
Method
Slim uses a search tool for snippets, a browse tool for relevant content sections from URLs, and a summarization module that compresses the entire conversation history every 'n' turns.
In practice
- Implement distinct search and browse tools.
- Periodically summarize conversation history.
Topics
- Long-Horizon Agentic Search
- Context Management
- Large Language Models
- Web Search Agents
- Information Retrieval
- Performance Optimization
- Error Taxonomy
Code references
- howard-yen/SLIM
- unclecode/crawl4ai
- assafelovic/gpt-researcher
- RUC-NLPIR/Search-o1
- huggingface/smolagents
Best for: Research Scientist, AI Architect, AI Scientist, Machine Learning Engineer, AI Engineer
Related on AIssential
See Counsel's argued verdicts on the open AI decisions leaders are weighing →
Editorial summary, takeaway, and curation by AIssential. Original article published by cs.CL updates on arXiv.org.