mlsanityData to 7 Oct 2026

How to Speculate about Uncertainty in Agentic Coding? A Draft-Model Gate Method

arXiv 2609.05274 ↗First posted 4 Sep 2026cs.LGcited by 1

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

LLM agents deployed for software engineering fail expensively: they act confidently wrong, and bad actions are recognized only after costly execution and retry. We present Speculative Uncertainty (SU), a method that recovers a predictive failure signal for a black-box agent from its output tokens alone, with no access to logits, weights, activations, or repeated sampling. Inverting speculative decoding, a small open-weight draft model scores the agent's already-generated trajectory in a single forward pass. From these speculative cross-likelihoods we extract phase-aware features by separating the reasoning and action spans, and calibrate them against a verifiable objective. SU produces a failure-likelihood score that any downstream policy, such as routing, human intervention, or extra test-time compute, can consume directly. To show the signal is actionable, we instantiate one such policy, a pre-execution veto gate, on software engineering agents Qwen3-Coder-480B and closed-source Claude 3.5 Sonnet, cutting execution error rate by 6-8 percentage points and token cost by 14-19% in deployment, transferring to out-of-distribution benchmarks without retraining, and generalizing across agent models.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 17 of its 22 references that are in the map. First posted on arXiv 4 Sep 2026.

Builds on

17 of 22 references.

Closest ancestors · 3

Same direction, newest first

  1. 2025SWE-rebench: An Automated Pipeline for Task Collection and Decontaminated Evaluation of Software Engineering Agents26 May
  2. 2025SWE-smith: Scaling Data for Software Engineering Agents30 Apr
  3. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul

Other references · 14

  1. 2017On Calibration of Modern Neural Networkscited by 4,860
  2. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  3. 2022Fast Inference from Transformers via Speculative Decodingcited by 1,615
  4. 2023Accelerating Large Language Model Decoding with Speculative Samplingcited by 975
  5. 2023Just Ask for Calibration: Strategies for Eliciting Calibrated Confidence Scores from Language Models Fine-Tuned with Human Feedbackcited by 788
  6. 2024Unlocking Efficiency in Large Language Model Inference: A Comprehensive Survey of Speculative Decodingcited by 266
  7. 2023A Survey of Confidence Estimation and Calibration in Large Language Modelscited by 253
  8. 2025UProp: Investigating the Uncertainty Propagation of LLMs in Multi-Step Agentic Decision-Makingcited by 36
  9. 2026Internal Representations as Indicators of Hallucinations in Agent Tool Selectioncited by 18
  10. 2025MICE for CATs: Model-Internal Confidence Estimation for Calibrating Agents with Toolscited by 15
  11. 2024SAUP: Situation Awareness Uncertainty Propagation on LLM Agentcited by 14
  12. 2026The Confidence Dichotomy: Analyzing and Mitigating Miscalibration in Tool-Use Agentscited by 14
2 more
  1. 2025The Reasoning Trap: How Enhancing LLM Reasoning Amplifies Tool Hallucinationcited by 12
  2. 2026Agentic Confidence Calibrationcited by 12

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026ClayBuddy: A Framework, Evaluation, & Mitigation of Coding Agent Failures
  2. 2026Bayesian control for coding agents
  3. 2025Speculative Actions: A Lossless Framework for Faster Agentic Systems
  4. 2026Proxy Confidence: Auditing Black-Box LLM Agents with a Surrogate's Log-Probabilities
  5. 2026Speculate with Memory: Lossless Acceleration for LLM Agents
  6. 2026An Empirical Study of Speculative Decoding on Software Engineering Tasks ↗
  7. 2026Agentic Fuzzing: Opportunities and Challenges
  8. 2026Engineering Reliable Coding Agents: Evaluating and Operating the System Around the Model