DoG: Sniffing Out Overconfidence in LLM Agents via Post-hoc Trajectory Restructuring

Hyunjun Jeon, Dongha Lim, Kunwoong Kim, Daewon Choi, Jinwoo ShinNeurIPS 2026

TL;DR

Autonomous LLM agents are famously overconfident, cheerfully delivering wrong answers after wandering down dead-end search paths and broken tool calls. DAG of Grounds (DoG) fixes this by asking the agent to pause after finishing a task and map its messy, chronological execution log into a clean logical graph of what actually supported its final conclusion. With just one extra API call and a tiny 9-parameter regression model, DoG "sniffs out" flimsy reasoning on black-box models without needing internal token probabilities or expensive repeated runs.

What Problem Does This Paper Address?

When a human solves a complex problem, we hit paywalls, try bad search terms, double back, and eventually piece together an answer. LLM agents (using frameworks like ReAct) do the exact same thing. Yet, when we try to estimate how confident an agent should be in its final answer—a process called confidence calibration—existing methods treat the agent’s history as a flat, chronological receipt.

This creates two major headaches:

  1. Signal dilution: In a flat timeline, a failed web search at step 3 weighs into the overall vibe just as much as a crucial breakthrough at step 4. Linear sequences can't separate exploratory dead-ends from the actual load-bearing pillars of the final answer.
  2. White-box and budget barriers: Many calibration methods require access to internal token log-probabilities (which closed commercial APIs increasingly hide), external embedding models, or running the entire agent loop multiple times to check for self-consistency (prohibitively expensive and risky when tools have real-world side effects).

Methods

DoG operates completely post-hoc—after the black-box agent has finished its job—in a two-stage pipeline:

Figure 1: Overview of DoG on a real GAIA trajectory of GPT-5.4-nano with a wrong answer. DAG construction makes one post-hoc call to the same LLM to turn the trajectory into a DAG of grounds; the answer rests on the Answer Chain (blue), while the premises that identify the song are orphans (gray). Then, without any LLM call, a 9-parameter logistic regression on eight features extracted from the DAG gives an out-of-fold confidence of only 0.39. All contents are real; texts are shortened.
  1. Trajectory Restructuring (1 LLM Call): DoG hands the completed execution log back to the same LLM (with tools disabled) and prompts it to reorganize its history into a Directed Acyclic Graph (DAG). Nodes represent discrete pieces of evidence or claims (Constraints, Retrieved Facts, Failed Retrievals, Inferences, and the final Answer), while directed edges map how they relate (Supports, Refutes, or Derives). Crucially, this separates the Answer Chain (nodes with a directed path leading to the final answer) from Orphans (discarded detours or disconnected premises).
  2. Lightweight Calibration (0 LLM Calls): From this graph, DoG extracts eight features—five node-level signals (e.g., hedged language, low-plausibility logical leaps, whether query constraints were met) and three graph-level structural signals (e.g., orphan counts and the "weakest link" bottleneck along the Answer Chain). These eight numbers feed into a simple 9-parameter logistic regression model (fit on labeled trajectories from the target setting) to output a calibrated probability between 0 and 1.

Datasets

No new benchmarks are introduced. The authors evaluate DoG on three existing, complementary benchmarks:

  • GAIA: Long-horizon, tool-heavy tasks where failures usually come from messy web retrieval and evidence synthesis.
  • GPQA: PhD-level science questions where errors stem from deep domain reasoning rather than broken tools.
  • HLE-Verified (Humanity’s Last Exam): Frontier-level questions across diverse domains where agents tend to hallucinate plausible-sounding answers on thin ice.

Key Insights and Ideas

  • Semantics calibrate, topology discriminates: In ablation studies, node-level semantic features (like spotting low-plausibility inferences or hedging) do the heavy lifting for overall calibration error. Meanwhile, the graph topology—specifically finding the "weakest link" along the Answer Chain—is the single biggest driver for ranking right answers above wrong ones (AUROC). Dropping that one graph feature degrades AUROC three to four times more than any other feature.
  • Beware of "cowardly" calibration: Existing linear trajectory methods like TRACER achieve decent calibration error simply by capping their predictions at medium confidence (~0.6), avoiding bold claims rather than actually distinguishing good runs from bad ones. DoG’s structural map allows it to be confident when the grounding is genuinely solid.
Figure 2: Reliability diagrams on GPQA (HLE and GAIA in Appendix D). DoG is shown for Run 2 in Table 7, since per-bin accuracies cannot be averaged across runs.
  • Zero-shot ranking transfers across worlds: If you train DoG's 9-parameter calibrator on one LLM or benchmark and drop it untouched onto another, its ranking ability (AUROC) barely budges—even though raw probabilities shift due to different base accuracies. Structural reasoning health looks remarkably similar whether the agent is powered by GPT, Claude, Gemini, or Qwen.

Key Results

  • Consistent top-tier calibration: Across all 9 (benchmark × metric) combinations, DoG ranks 1st or 2nd in every single one. On GAIA, it achieves an Expected Calibration Error (ECE, lower is better) of 0.041 and an AUROC (higher is better) of 0.727, beating static Verbalized Confidence (0.150 ECE / 0.655 AUROC) and agent-specific TRACER (0.054 ECE / 0.547 AUROC).
  • Smarter test-time scaling: When running an agent 4 times per GAIA task, weighting each rollout's vote by its DoG confidence reaches 53.3% accuracy—beating plain majority voting (50.4%) by breaking ties intelligently, recovering 41% of the gap to an oracle.
  • Tiny overhead: Adding one post-hoc call costs a bounded ~$0.0023 per task (under 10% of the rollout cost on GAIA).
  • Broad compatibility: Across 7 LLM backbones (GPT-5.4, Claude-opus-4.7, Gemini-3.1-pro, Qwen-3.5-35B-A3B, etc.) and 3 tool regimes, ECE stays below 0.09 and AUROC stays above 0.67.

Limitations and Future Work

  • Imperfect graph builders: Because an LLM builds the DAG, it occasionally hallucinates structure—human evaluation found 8.0% of sampled edges were unsupported.
  • Target labels needed for exact probabilities: While trajectory ranking transfers zero-shot across models and tasks, absolute probability calibration does not; shifting to a much harder dataset requires labeled target examples to refit the regression intercept.
  • Latency: Although cheap, DoG requires waiting for one sequential LLM call after the agent finishes.

For future work, the authors suggest exploring label-free calibration under distribution shift, replacing simple logistic regression with Graph Neural Networks (GNNs) to capture richer topological patterns, and bringing DoG online—letting agents inspect their own reasoning graphs mid-flight to stop early or reallocate tool budgets.

Summary updated

Abstract

The overconfidence of Large Language Model (LLM) agents poses a critical challenge to their reliable deployment for complex, high-stakes tasks. Current confidence estimation methods predominantly treat agent execution as a flat, time-ordered sequence. This oversimplification fundamentally fails to capture the complex logical dependencies, branching paths, error propagation, and tool interactions inherent in agentic reasoning. To address this, we introduce **DAG of Grounds (DoG)**, a novel method for agent confidence estimation via post-hoc trajectory restructuring. By transforming linear trajectories into Directed Acyclic Graphs (DAGs), DoG explicitly maps the grounding of an agent's final answer to its intermediate reasoning steps and tool outputs. We evaluate DoG on three benchmarks (GAIA, GPQA, and HLE), which involve long-horizon reasoning and iterative tool use. DoG outperforms existing calibration methods designed for general LLM outputs, performs comparably to or better than methods specifically designed for agent trajectories, and remains well calibrated across different LLM backbones and tool settings when its calibrator is fit on each. Without refitting, its ranking of trajectories also transfers across benchmarks, backbones, and tool settings. Furthermore, we release an interactive diagnostic tool that offers interpretability for analyzing opaque failure modes. Together, these contributions establish a structured, graph-based paradigm for confidence estimation that "sniffs out" overconfidence in autonomous systems.
BibTeX
@inproceedings{jeon2026dog,
  author = {Hyunjun Jeon and Dongha Lim and Kunwoong Kim and Daewon Choi and Jinwoo Shin},
  title = {{DoG: Sniffing Out Overconfidence in LLM Agents via Post-hoc Trajectory Restructuring}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=UNOK2zAeoF},
}
Figure