scimeatlas

Research map / Large language models / Retrieval and knowledge

SpecAgent: A Speculative Retrieval and Forecasting Agent for Code Completion

George Ma, Anurag Koul, Qi Chen, Yawen Wu, Sachit Kuhar, Yu Yu, Aritra Sengupta, Varun Kumar, Murali Krishna Ramanathan

ACL 2026Large language models › Retrieval and knowledgeapproach: Retrieval-augmented reasoningopen problems in this approach4 citations (OpenAlex)

University of California, Berkeley · Amazon

Read the paperPlace an idea next to itCheck your own paper ↗

12measured effects
8improved
4hurt

AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add speculative prediction blocks (Forecaster) to retrieval blocks (ablation)SpecAgent · REPOCOD, pass@1pass@1 (%): Qwen3-8B 20.92 -> 27.86; Qwen3-30B-A3B 23.27 -> 27.96Improved
add retrieval blocks to prediction blocks (ablation)SpecAgent · REPOCOD, pass@1pass@1 (%): Qwen3-8B 22.35 -> 27.86; Qwen3-30B-A3B 23.67 -> 27.96Improved
use SpecAgent context instead of no cross-file contextQwen3-8B · REPOCOD, pass@1pass@1 (%): 16.22 -> 27.86Improved
use SpecAgent context instead of BM25Qwen3-30B-A3B · REPOCOD, pass@1pass@1 (%): 18.88 -> 27.96Improved
add BM25 blocks to SpecAgent contexts (ablation)SpecAgent (Qwen3-8B) · REPOCOD, pass@1pass@1 (%): 27.86 -> 25.10Hurt
add UniXcoder dense blocks to SpecAgent contexts (ablation)SpecAgent (Qwen3-8B) · REPOCOD, pass@1pass@1 (%): 27.86 -> 25.31Hurt
add dense (UniXcoder) retrieval to SpecAgent with Qwen3-Coder as agent (ablation)SpecAgent (Qwen3-Coder agent) · REPOCOD, pass@1pass@1 (%): 20.20 -> 20.97Improved
use 3 prediction blocks instead of 0 (ablation)SpecAgent (Qwen3-8B) · REPOCOD, pass@1pass@1 (%): 20.92 -> 27.86Improved
increase prediction blocks from 3 to 12 (ablation)SpecAgent (Qwen3-8B) · REPOCOD, pass@1pass@1 (%): 27.86 -> 22.35Hurt
run SpecAgent at inference time with leakage instead of indexing time (ablation)SpecAgent (Qwen3-30B-A3B) · REPOCOD, pass@1pass@1 (%): 27.96 -> 34.29Improved
use dense retrieval (CodeSage v2 large) instead of no contextQwen3-8B · REPOCOD, pass@1pass@1 (%): 16.22 -> 15.41Hurt
use SpecAgent instead of dense CodeSage retrievalQwen3-30B-A3B · REPOCOD, inference latencylatency (s): 14.84 -> 5.89Improved

Open problems in retrieval-augmented reasoning

How can retrieval-augmented reasoning cut its extra LLM calls, storage and dependence on retrieval and LLM-built structures?

All 5 open problems and what was already tried →

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy