arXiv(opens in a new tab)cs.AIAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.22899

CDEG: Learning Decision-Critical Evidence for Long-Horizon Diagnostic Agents

Xiwei Dai, Zijie Meng, Zhiting Fan, Yixuan Tang, Guanyu Jiang, Ziru Niu, Zuozhu Liu

Abstract

Unlike static medical question answering, long-horizon diagnosis captures the sequential nature of clinical practice: evidence is progressively acquired, integrated, and evaluated over multiple rounds of interaction before reaching a final diagnosis. However, existing doctor agents often fail when critical evidence is either not acquired or not adequately incorporated into diagnostic reasoning. Recent agentic approaches attempt to address these failures by reusing historical trajectories or distilled memories. But their diagnostic gains remain constrained because such experience may contain noisy or incidental information and is typically reused without validating which evidence actually drives diagnostic decisions. To address this limitation, we introduce CDEG, a graph-based framework that learns reusable decision-critical evidence from historical diagnostic trajectories. CDEG contrasts successful and failed trajectories from the same case to identify candidate evidence, validates their diagnostic impact through controlled counterfactual interventions, and organizes the resulting diagnosis–evidence–action relations into a structured graph. During inference, CDEG tracks the evolving patient evidence state to retrieve relevant diagnostic relations and selectively guide missing evidence acquisition or overlooked evidence reappraisal. Across in-domain and out-of-distribution benchmarks with multiple doctor agent backbones, CDEG consistently improves diagnostic performance, achieving up to an 11.5% accuracy gain over vanilla agents. These results demonstrate that reliable long-horizon diagnosis requires moving beyond trajectory-level experience reuse toward evidence-level learning of the factors that truly shape clinical decisions.

Introduction

Recent advances in medical language models have shifted diagnostic agents beyond static medical question answering toward long-horizon interactive diagnosis (Schmidgall et al. 2026; Almansoori, Kumar, and Cholakkal 2025; Li et al. 2024). Under partial observability, a doctor agent must acquire evidence from the patient environment through diagnostic tools, integrate it across turns, and decide when it is sufficient for diagnosis (National Academies of Sciences, Engineering, and Medicine 2015). Yet vanilla agents often fail to acquire relevant evidence or overlook observations already available (Long, Bao, and Wei 2026; Li et al. 2024; Hsu et al. 2026; Fang et al. 2026), as illustrated in Figure 1. Therefore,

Figure

Figure 1: Long-horizon diagnosis with and without CDEG. The vanilla doctor agent may fail when decision-critical evidence is missing or ignored. With CDEG, the doctor agent is prompted to acquire missing evidence or reappraise observed evidence, enabling it to reach the correct diagnosis.

a fundamental challenge in long-horizon diagnosis is how to identify and utilize the evidence that is truly critical for distinguishing diagnoses.

Historical diagnostic trajectories record evidence, actions, and final decisions, offering reusable experience for future interactions. Existing methods retrieve prior trajectories or distill them into reflections, strategies, and structured memories (Shinn et al. 2023; Zhao et al. 2024; Wang et al. 2025; Ren et al. 2026; Shen et al. 2026; Li, Du, and Guo 2026; Han et al. 2026). However, trajectories mix decision-relevant evidence with incidental observations, while outcomes do not reveal which evidence shaped the diagnosis. Recent methods attempt to improve experience reuse through trajectory refinement, applicability-aware retrieval, and memory management but still operate mainly at the trajectory or memory-unit level (Ouyang et al. 2026; Xiong et al. 2026). Thus, individual observations may be reused without establishing their diagnostic relevance.

Counterfactual reasoning offers a potential way to re-

∗^{*}These authors contributed equally.

†^{\dagger}Corresponding author.

solve this ambiguity (Richens, Lee, and Johri 2020; Nagesh et al. 2023; Xu et al. 2022). By changing one observation while keeping the remaining evidence unchanged, it tests whether diagnostic preference changes. We extend this principle to historical diagnostic trajectories and regard evidence as decision-critical only when a controlled intervention on its availability or use consistently changes diagnostic preference. This selects evidence for reuse by its effect on decisions, rather than its co-occurrence with a successful outcome.

Building on this criterion, we introduce CDEG, a graph-based framework for learning reusable decision-critical evidence from historical diagnostic trajectories. CDEG contrasts each failed trajectory with a similar successful trajectory from the same case, uses controlled counterfactual tests to determine whether candidate evidence supports or blocks the corresponding diagnostic revision, and organizes the resulting diagnosis—evidence—action relations into a structured graph. During inference, CDEG matches the patient's evolving evidence state to the graph to guide acquisition of missing evidence or reappraisal of overlooked observations. We evaluate CDEG on the in-domain (ID) MIMIC-IDx and out-of-distribution (OOD) AgentClinic benchmarks across four doctor-agent backbones (Johnson et al. 2023b,a, 2019; Schmidgall et al. 2026; Jin et al. 2021). CDEG improves average accuracy by 7.63% and 8.88% on the two benchmarks, respectively, with gains of up to 11.5%, consistently outperforming the vanilla agent and other experience-reuse methods. These results show that evidence-level learning provides a more reliable basis for experience reuse in long-horizon diagnosis. Our contributions are summarized as follows:

• We formulate trajectory reuse as an evidence-level learning problem and introduce CDEG to extract decision-critical evidence from historical diagnostic trajectories.

• We develop a counterfactual validation method that contrasts successful and failed trajectories from the same case and retains only evidence that demonstrably affects diagnostic preference under controlled interventions.

• We construct a structured graph that uses the patient’s evolving evidence state to guide acquisition of missing evidence or reappraisal of overlooked evidence.

• We evaluate CDEG on ID and OOD benchmarks with various backbones, which consistently improves the vanilla agent and achieves the best diagnostic performance.

References (41)