TL;DR
Deploying Large Language Model (LLM) agents in high-stakes environments like healthcare requires reliable, well-calibrated verification methods to prevent catastrophic errors. This paper introduces GLEAN, a framework that verifies agent decisions by sequentially accumulating step-by-step alignment scores against expert-curated domain guidelines. By combining Bayesian calibration with uncertainty-triggered active verification, GLEAN significantly improves both diagnostic accuracy and risk control, outperforming traditional verifiers on clinical benchmarks.
What Problem Does This Paper Address?
As LLMs transition from simple chatbots to autonomous agents capable of multi-step reasoning and tool use, they are increasingly being considered for high-stakes domains like clinical diagnosis. However, a single reasoning error in a medical deployment can lead to severe real-world consequences.
Verifying these agents presents a fundamental asymmetry: generating a trajectory is computationally cheap, but verifying it requires deep domain expertise. Existing verification methods—such as using an ungrounded LLM-as-a-Judge or checking output consensus via self-consistency—frequently fail. They rely too heavily on the model's implicit internal knowledge, leading to poorly calibrated confidence scores, and they typically evaluate only the final output rather than the intermediate steps where errors actually originate.
Methods
The authors propose GLEAN (GuideLine-grounded Evidence AccumulatioN), a framework that reframes agent verification as a process of sequential evidence accumulation grounded in explicit domain knowledge.
The core architecture consists of four main stages:
- Step-wise Guideline Alignment: At each step of an agent's trajectory, an LLM judge evaluates how well the agent's actions and observations align with retrieved clinical protocols, generating a token-probability-based alignment score.
- Multi-Guideline Aggregation & Accumulation: To reduce noise and variance, GLEAN aggregates scores from multiple relevant guidelines into robust step-level features. These features are accumulated along the trajectory using a $\beta$-discounted sum to form a prefix-level surrogate evidence signal ($S_t$).
- Bayesian Calibration: Using a small dataset of labeled trajectories, GLEAN applies Bayesian logistic regression to map the accumulated surrogate evidence into a well-calibrated posterior probability of correctness ($p_t$).
- Uncertainty-Triggered Active Verification: When the verifier's uncertainty (entropy) exceeds a predefined threshold, it triggers two test-time scaling strategies:
- Guideline Expansion: Retrieving additional guidelines to broaden knowledge coverage.
- Differential Checks: Evaluating the trajectory against guidelines for competing alternative diagnoses to penalize false support and prevent overconfidence.
Datasets
The framework was empirically validated using agentic clinical diagnosis trajectories across three distinct diseases: diverticulitis, cholecystitis, and pancreatitis.
- Trajectories were generated using patient data from the widely used MIMIC-IV electronic health record dataset.
- External Expert Knowledge was sourced from a high-quality clinical practice guideline dataset compiled from medical pretraining literature.
Key Insights and Ideas
- The Power of Explicit Grounding: The authors discovered that ungrounded model-based ratings show almost no statistical separation between correct and incorrect trajectories. Grounding the evaluation in explicit guidelines, however, reveals a strong, near-linear relationship between the accumulated surrogate evidence and the true correctness logit ($R^2 = 0.943$).
- Dynamic Process Awareness: Tracking evidence sequentially allows the verifier to capture dynamic shifts in confidence as the clinical picture evolves. For instance, a misleading physical exam might temporarily drop the verifier's confidence, which is later recovered by definitive lab tests or imaging.
- Active Verification as Test-Time Scaling: Instead of wasting compute uniformly across all cases, GLEAN selectively scales verification effort (via guideline expansion and differential checks) only on highly uncertain cases, achieving a highly efficient performance-cost trade-off.
Key Results
- Superior Discrimination and Calibration: GLEAN significantly outperformed all baselines (including Self-Consistency, LLM-as-a-Judge, and Med-PRM). With active verification enabled, it achieved an AUROC over 0.94 and reduced the Brier score (a measure of calibration error) by up to 50% compared to the best baseline.
- Enhanced Agent Performance: When used as a ranking mechanism for Best-of-N selection (picking the best out of 16 sampled trajectories), GLEAN boosted the final diagnostic accuracy of a Qwen3-30B agent from 58.94% to 78.33%.
- Clinical Validation: An expert study with three certified clinicians gave GLEAN an overall usefulness rating of 4.67/5, confirming that its confidence metrics align well with human expert judgment and provide clear, interpretable signals for clinical review.
Limitations and Future Work
- Guideline Retrieval Dependency: GLEAN relies heavily on the quality and relevance of the retrieved guidelines. If the initial keyword matching or embedding-based retrieval fails to fetch the correct protocols, the verification quality degrades.
- Agent-Specific Calibration: The authors noted that while guideline-grounded signals generalize well across different models, the calibration step remains partially agent-specific due to unique behavioral patterns in different LLMs.
- Extension to Other Domains: While highly successful in clinical diagnosis, future work is needed to validate how well this framework generalizes to other high-stakes, protocol-driven domains like legal analysis, financial auditing, or safety-critical software engineering.
Summary updated