mlsanityData to 7 Oct 2026

GrepSeek: Training Search Agents for Direct Corpus Interaction

arXiv 2605.29307 ↗First posted 28 May 2026cs.CL cs.AI cs.IRcited by 10

On the map: LLM agents and tool use → Web, search, and research agents

Abstract (arXiv)

Large Language Model (LLM) search agents have shown strong promise on knowledge-intensive tasks through iterative reasoning and retrieval. Most existing systems rely on retrievers that return ranked documents from a pre-built index. We explore a complementary paradigm in which the agent treats the corpus as the search environment and finds evidence through executable shell commands. We introduce GrepSeek, an optimized direct corpus interaction (DCI) agent that learns to find, filter, and compose evidence over large text corpora. To stabilize reinforcement learning (RL) over large corpora, we train in two stages: first, we initialize the policy using verified, causally grounded search trajectories generated by an answer-aware Tutor and an answer-blind Planner; then, we refine the policy using Group Relative Policy Optimization (GRPO). To make DCI practical at scale, we introduce two semantics-preserving execution optimizations: Pruned Adaptive Command Execution, which reduces shell-based search latency by up to 77× on a 14GB corpus with 21 million documents using a compact auxiliary structure, and Sharded-Parallel Corpus Search, which achieves up to 7.6× speedup without additional preprocessing; both preserve equivalence with sequential execution. Across eight open-domain QA benchmarks, GrepSeek achieves the strongest overall performance, with a statistically significant relative improvement of 5.7% over the best baseline. Our analysis shows how DCI-optimized agents conduct flexible and effective compositional search through direct corpus interaction.

Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Placed in Web, search, and research agents, one of 16 directions in LLM agents and tool use. Builds on 34 of its 78 references that are in the map. First posted on arXiv 28 May 2026.

Builds on

34 of 78 references.

Closest ancestors · 9

Same direction, newest first

  1. 2026Is Grep All You Need? How Agent Harnesses Reshape Agentic Search14 May
  2. 2026Beyond Semantic Similarity: Rethinking Retrieval for Agentic Search via Direct Corpus Interaction3 May
  3. 2026CoSearch: Joint Training of Reasoning and Document Ranking via Reinforcement Learning for Agentic Search19 Apr
  4. 2026Total Recall QA: A Verifiable Evaluation Suite for Deep Research Agents19 Mar
  5. 2026Beyond Monolithic Architectures: A Multi-Agent Search and Knowledge Optimization Framework for Agentic Search8 Jan
  6. 2025Keyword search is all you need: Achieving RAG-Level Performance without vector databases using agentic tool use19 Dec
  7. 2025Beneficial Reasoning Behaviors in Agentic Search and Effective Post-training to Obtain Them8 Oct
  8. 2025BrowseComp-Plus: A More Fair and Transparent Evaluation Benchmark of Deep-Research Agent8 Aug
  9. 2025Search-o1: Agentic Search-Enhanced Large Reasoning Models9 Jan

Other references · 25

  1. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  2. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
  3. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  4. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
  5. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
  6. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
  7. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
  8. 2019The Curious Case of Neural Text Degenerationcited by 2,881
  9. 2025Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learningcited by 1,371
  10. 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,259
  11. 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,216
  12. 2025Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Modelscited by 1,175
13 more
  1. 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,103
  2. 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,054
  3. 2022Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step Questionscited by 911
  4. 2021MuSiQue: Multihop Questions via Single-hop Question Compositioncited by 893
  5. 2016Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphscited by 853
  6. 2025BrowseComp: A Simple Yet Challenging Benchmark for Browsing Agentscited by 616
  7. 2021SPLADE: Sparse Lexical and Expansion Model for First Stage Rankingcited by 283
  8. 2024FlashRAG: A Modular Toolkit for Efficient Retrieval-Augmented Generation Researchcited by 165
  9. 2025SimpleDeepSearcher: Deep Information Seeking via Web-Powered Reasoning Trajectory Synthesiscited by 55
  10. 2022Retrieval-Enhanced Machine Learningcited by 46
  11. 2022Code Search: A Survey of Techniques for Finding Codecited by 18
  12. 2026Better Call Grep: Evaluating and Improving Grep-Like Lexical Retrieval for Repository-Level Code Completioncited by 4
  13. 2025STARQA: A Question Answering Dataset for Complex Analytical Reasoning over Structured Databasescited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 10.

10 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025SEM: Reinforcement Learning for Search-Efficient Large Language Models
  2. 2026Enhancing LLM-based Search Agents via Contribution Weighted Group Relative Policy Optimization
  3. 2025Search Wisely: Mitigating Sub-optimal Agentic Searches By Reducing Uncertainty
  4. 2025WebSeer: Training Deeper Search Agents through Reinforcement Learning with Self-Reflection
  5. 2025Reinforcement Fine-Tuning for Reasoning towards Multi-Step Multi-Source Search in Large Language Models
  6. 2026Retrieval, Reward, and Training Protocols: What Matters in Training Search Agents?
  7. 2026SearchArt: Training Long-Horizon Search Agent with Scalable Synthetic and Verified Task
  8. 2026Search-GRT: Guided Retrieval Training of Search Agents to Optimize for Complex Question Answering