mlsanityData to 7 Oct 2026

AgSpec: Pushing the Limits of Retrieval-Based Speculative Decoding in Coding Agent Pipelines

arXiv 2610.01108 ↗First posted 1 Oct 2026cs.CLcited by 0

On the map: LLM agents and tool use → Software engineering coding agents also fits: Web, search, and research agents

also in 1 more
Abstract (arXiv)

Retrieval-based speculative decoding (SD) drafts tokens by copying continuations from existing text, which suits coding agents that repeatedly reproduce code, logs, and earlier attempts. Yet existing methods fall short in agent pipelines: much of the reusable text is missing from their corpora or stored in a form that differs from what the agent emits, and their draft lengths ignore that accept length varies across agents and drifts over turns. We present AgSpec, a framework that supplies the corpus and draft-length policies that existing retrieval engines lack in coding-agent pipelines. AgSpec retrieves from session, workspace, and global corpora, retaining the ongoing session trajectory and indexing opened files in the agent's emission format. It bounds each agent's draft length with an offline-profiled cap and adapts the length online from verification feedback. On two repository-level multi-agent coding benchmarks, AgSpec outperforms five retrieval-based drafters and EAGLE-3 in most evaluated settings, raising generation throughput over autoregressive decoding up to 4.37× at batch size 1 and 4.76× at batch size 16. AgSpec also remains effective on benchmarks without a repository or a multi-agent pipeline, showing that its gains generalize to coding agents broadly.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 30 of its 38 references that are in the map. First posted on arXiv 1 Oct 2026.

Builds on

30 of 38 references.

Closest ancestors · 7

Same direction, newest first

  1. 2026Dive into Claude Code: The Design Space of Today's and Future AI Agent Systems14 Apr
  2. 2025Devstral: Fine-tuning Language Models for Coding Agent Applications8 Aug
  3. 2024SuffixDecoding: Extreme Speculative Decoding for Emerging AI Applications7 Nov
  4. 2024HyperAgent: Generalist Software Engineering Agents to Solve Coding Tasks at Scale9 Sep
  5. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
  6. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May
  7. 2023ChatDev: Communicative Agents for Software Development16 Jul

Other references · 23

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  3. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  4. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
  5. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  6. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
  7. 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,761
  8. 2022Fast Inference from Transformers via Speculative Decodingcited by 1,615
  9. 2023Accelerating Large Language Model Decoding with Speculative Samplingcited by 975
  10. 2026Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfacescited by 515
  11. 2024EAGLE-2: Faster Inference of Language Models with Dynamic Draft Treescited by 362
  12. 2025EAGLE-3: Scaling up Inference Acceleration of Large Language Models via Training-Time Testcited by 318
11 more
  1. 2023REST: Retrieval-Based Speculative Decodingcited by 148
  2. 2024MagicDec: Breaking the Latency-Throughput Tradeoff for Long Context Generation with Speculative Decodingcited by 87
  3. 2024SpecDec++: Boosting Speculative Decoding via Adaptive Candidate Lengthscited by 73
  4. 2024SAM Decoding: Speculative Decoding via Suffix Automatoncited by 38
  5. 2024Dynamic Speculation Lookahead Accelerates Speculative Decoding of Large Language Modelscited by 29
  6. 2024AdaEDL: Early Draft Stopping for Speculative Decoding of Large Language Models via an Entropy-based Lower Bound on Token Acceptance Probabilitycited by 24
  7. 2024Draft Model Knows When to Stop: Self-Verification Speculative Decoding for Long-Form Generationcited by 15
  8. 2025Speculative Decoding: Performance or Illusion?cited by 13
  9. 2026TeamBench: Evaluating Agent Coordination under Enforced Role Separationcited by 8
  10. 2026CacheWise: Understanding Workloads and Optimizing KVCache Management for Efficiently Serving LLM Coding Agentscited by 8
  11. 2025FastCoder: Accelerating Repository-level Code Generation via Efficient Retrieval and Verificationcited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026AsymSpec: Context-Asymmetric Speculative Decoding for Agentic LLMs
  2. 2026AgentSpec: Speculative Decoding for Batch Inference of LLM Agents
  3. 2026Agent Retrieval Bench: Evaluating Repository Context Retrieval for Coding Agents
  4. 2025SpecAgent: A Speculative Retrieval and Forecasting Agent for Code Completion
  5. 2026CodeGrep: An RL-Trained Retrieval Agent for LLM Coding Agents
  6. 2026Hybrid Verified Decoding: Learning to Allocate Verification in Speculative Decoding
  7. 2025ARCS: Agentic Retrieval-Augmented Code Synthesis with Iterative Refinement
  8. 2026RACER: Retrieval-Augmented Contextual Rapid Speculative Decoding