Librarian Agents: Training LLMs to Curate Long-Context Workspaces that Anticipate Future Queries
On the map: LLM agents and tool use → Web, search, and research agents
Abstract (arXiv)
Reasoning over long document contexts remains a challenge for large language models (LLMs). Standard retrieval methods are inherently reactive, bottlenecking agents with complex, cross-document reasoning at inference time, while precomputed structures like knowledge graphs often fall short because they rely on rigid heuristics. Instead, can we allow agents to perform anticipatory directed curation: learning to proactively reorganize unstructured corpora prior to inference to efficiently serve diverse future queries. We build on a key asymmetry in modern agentic harnesses (e.g., Claude Code): while LLM agents are adept at navigating existing filesystems to solve an immediate task, they are rarely trained to construct reusable workspaces for future use. To instantiate this capability, we introduce Librarian Agents, a framework in which a builder agent transforms raw documents into a hierarchical filesystem of synthetic files and reference links, which forms a workspace tailored for a downstream answering agent. We formulate workspace construction as a Markov decision process and optimize the builder policy via reinforcement learning to directly maximize downstream answering accuracy. Empirically, Librarian Agents outperforms the strongest retrieval and precomputation baselines by 33 percentage points on BrowseComp-Plus, amortizes upfront construction costs across repeated queries, and generalizes zero-shot to unseen domains on BRIGHT with a 31-point average accuracy improvement.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Web, search, and research agents, one of 16 directions in LLM agents and tool use. Builds on 37 of its 46 references that are in the map. Submitted 15 Oct 2026.
Builds on
37 of 46 references.
Closest ancestors · 4
Same direction, newest first
- 2025TeaRAG: A Token-Efficient Agentic Retrieval-Augmented Generation Framework7 Nov
- 2025DeepDive: Advancing Deep Search Agents with Knowledge Graphs and Multi-Turn RL12 Sep
- 2025BrowseComp-Plus: A More Fair and Transparent Evaluation Benchmark of Deep-Research Agent8 Aug
- 2025Agentic Retrieval-Augmented Generation: A Survey on Agentic RAG15 Jan
Other references · 33
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 10,542
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,845
- 2021Evaluating Large Language Models Trained on Codecited by 8,938
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,340
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 2,069
- 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,978
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,655
- 2024From Local to Global: A Graph RAG Approach to Query-Focused Summarizationcited by 1,566
- 2025Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Modelscited by 1,507
- 2023MemoryBank: Enhancing Large Language Models with Long-Term Memorycited by 630
- 2024RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrievalcited by 589
- 2023Active Retrieval Augmented Generationcited by 554
21 more
- 2024Graph Retrieval-Augmented Generation: A Surveycited by 354
- 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agentcited by 278
- 2025Memory-R1: Enhancing Large Language Model Agents to Manage and Utilize Memories via Reinforcement Learningcited by 263
- 2024Corrective Retrieval Augmented Generationcited by 220
- 2023Augmenting Language Models with Long-Term Memorycited by 204
- 2024BRIGHT: A Realistic and Challenging Benchmark for Reasoning-Intensive Retrievalcited by 179
- 2025Recursive Language Modelscited by 126
- 2025Optimizing Test-Time Compute via Meta Reinforcement Fine-Tuningcited by 124
- 2025Kevin: Multi-Turn RL for Generating CUDA Kernelscited by 96
- 2026Agentic Memory: Learning Unified Long-Term and Short-Term Memory Management for Large Language Model Agentscited by 91
- 2024Simple Is Effective: The Roles of Graphs and Large Language Models in Knowledge-Graph-Based Retrieval-Augmented Generationcited by 89
- 2024Needle In A Multimodal Haystackcited by 63
- 2025Sleep-time Compute: Beyond Inference Scaling at Test-timecited by 50
- 2026From Recall to Forgetting: Benchmarking Long-Term Memory for Personalized Agentscited by 50
- 2025A Systematic Review of Key Retrieval-Augmented Generation (RAG) Systems: Progress, Gaps, and Future Directionscited by 38
- 2025Enhancing Retrieval-Augmented Generation: A Study of Best Practicescited by 25
- 2024Recent Advances in Named Entity Recognition: A Comprehensive Survey and Comparative Studycited by 24
- 2025RLAD: Training LLMs to Discover Abstractions for Solving Reasoning Problemscited by 23
- 2025PyLate: Flexible Training and Retrieval for Late Interaction Modelscited by 19
- 2025Learning on the Job: Test-Time Curricula for Targeted Reinforcement Learningcited by 14
- 2026Reasoning Cache: Continual Improvement Over Long Horizons via Short-Horizon RLcited by 14
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Retrieval as Reasoning: Self-Evolving Agent-Native Retrieval via LLM-Wiki
- 2024Chain of Agents: Large Language Models Collaborating on Long-Context Tasks
- 2026ByteRover: Agent-Native Memory Through LLM-Curated Hierarchical Context
- 2026PARSER: Read in Parallel, Reason in Depth for Long-Context LLM Agents
- 2026Reasoning-Search-Augmented LLMs: An Operational Taxonomy, Benchmark Analysis and Controlled Evidence Synthesis
- 2026Filesystem-Based Memory for LLM Agents: Organization, Evolution, and Sustainability
- 2026Libra: Training the Environment for Agentic Information Retrieval
- 2026AGORA: An Archive-Grounded Benchmark for Agentic Workplace Document Reasoning