Trajectory-Derived Confidence for Reliable, Resource-Aware Clinical Text-to-SQL Agents

Mincheol Daniel Song, Joshua Ward, Jake Jung, Guang Cheng
10/2/2026
cs.CLcs.AIcs.LG

No confident code implementation found for this paper.

Abstract

LLM agents for clinical text-to-SQL applications reason autonomously over multiple steps but cannot assess whether their own reasoning or outputs can be trusted. In high leverage applications such as healthcare, this presents a critical risk where system mistakes can be costly.

Show full abstract

These reliability failures are also resource failures: an incorrect reasoning trajectory spends computation budget on outputs that must be discarded. We introduce Sentinel, a trajectory-derived, classifier-based confidence layer that analyzes an agent's reasoning, code and database outputs to decide at three points whether to stop: refusing unanswerable questions before the agent runs, halting doomed trajectories mid-run, and withholding untrustworthy answers at delivery. Here, utilizing Chow's rule, we optimize decisions under the EHRSQL shared task's Reliability Score, which penalizes incorrect answers given a utility weighting, and find on the benchmark EHRSQL that Sentinel raises this score from +0.08 to +0.24 when mistakes have a low utility weighting, well above the +0.03 earned by refusing every question, with delivered-answer accuracy rising from 54% to 69% as coverage falls from 84% to 55%. At higher stakes the agents we test rarely answer reliably enough to deliver, and Sentinel detects this on its own, abstaining to that same +0.03 where the unmonitored agent scores -3.02. The same stopping decisions cut computation: at low stakes, where the system still answers, Sentinel eliminates 13-28% of agent steps at little or no reliability cost.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{song2026trajectoryderived,
  title  = {Trajectory-Derived Confidence for Reliable, Resource-Aware Clinical Text-to-SQL Agents},
  author = {Mincheol Daniel Song and Joshua Ward and Jake Jung and Guang Cheng},
  year   = {2026},
  eprint = {2610.04156},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.04156v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.04156.svg)](https://codeofpaper.com/paper/2610.04156)

Discussion