arXiv:2609.05090cs.AISep 2026

Manuscript Offprint

arXiv:2609.05090

Constructing and Evaluating Clinical Reasoning Trajectories for Medical Agent

Yunqi Zhu, Wensheng Zhang, Xuebing Yang

Yunqi Zhu 1,2^{1,2} Wensheng Zhang 1,2^{1,2} Xuebing Yang 1,2,∗^{1,2,*}

1^{1}Guangzhou University, Guangzhou, China

2^{2}Institute of Automation, Chinese Academy of Sciences, Beijing, China

zhuyunqi96@163.com

zhangwenshengia@hotmail.com

yangxuebing2013@ia.ac.cn

Abstract—Evaluation of medical artificial intelligence agents remains predominantly answer-centric, assessing only the correctness of final outputs while overlooking the quality of intermediate reasoning. In clinical settings, however, a correct answer reached through fabricated evidence or incoherent logic is as dangerous as an incorrect one. We propose MedTraj, a framework that treats reasoning trajectories as critical objects for construction, evaluation, and optimization. The pipeline generates structured multi-step clinical reasoning chains from medical diagnosis sources. Each trajectory is then parsed into clinical observations, evidence, numbered reasoning steps, and a final conclusion, and scored across five quality dimensions: coherence, evidence support, hallucination, completeness, and traceability. Controlled error injection introduces targeted faults into otherwise correct trajectories to establish causal links between specific reasoning failures and measurable quality degradation. Building on this, step-level filtering based on marginal contribution identifies which individual reasoning steps drive or undermine trajectory quality. Finally, quality-weighted context learning feeds trajectory evaluations back into the model at inference time, allowing it to learn from both strong and weak reasoning demonstrations. Experiments across CareQA, PubMedQA, and CECMed demonstrate that trajectory context consistently improves reasoning coherence, with gains of +0.029 to +0.041 over a zero-shot baseline. On the CECMed severity assessment task, quality-weighted context nearly doubles the correctness over the zero-shot baseline while cutting the hallucination ratio by 87%. Marginal-contribution analysis further shows that a small minority (15.3%) of reasoning steps carry most of the quality signal, and that extending chains beyond four steps yields diminishing returns.

Index Terms—Medical Question Answering, Reasoning Trajectory, Context Learning, Medical Agent, Large Language Models

I. INTRODUCTION

Large language model (LLM)-based Agents have shown remarkable promise in medical question answering, clinical diagnosis support, and documentation tasks [1], [2], [3], [4]. As these models are increasingly considered for deployment in clinical workflows, the focus has shifted from whether they can produce correct answers to whether their reasoning processes are trustworthy [5], [6], [7]. In practice, the reasoning behind a conclusion matters as much as the conclusion itself. A diagnosis reached through fabricated evidence or incoherent logic is clinically dangerous even when the final answer happens to be correct, because verifying such reasoning requires substantial expert effort [8], [9].

Currently, the evaluation paradigm in medical artificial intelligence is answer-centric. Benchmarks such as MedQA [10], MedMCQA [11], and PubMedQA [12] measure whether a model selects the right option, while more recent suites such as MedHELM [3] and MedXpertQA [6] expand coverage to broader clinical competencies, yet the unit of evaluation is still the final answer. Chain of thought [5] partially addresses this gap by making intermediate reasoning steps visible, and a family of reasoning enhancement methods has since emerged. Furthermore, Self-Discover [13] constructs reasoning structures by letting models compose primitive reasoning modules, while retrieval augmented generation methods could ground the model outputs in external medical literature, reducing hallucination at the knowledge level [14], [15]. Moreover, Self consistency [16] and tree of thought [17] strategies improve robustness by aggregating over multiple reasoning paths. In addition, primarily concentrated in mathematics and code generation, process reward models and step level verification methods [18], [19] provide fine-grained supervision over intermediate steps. More recently, MediEval [20] introduces a multi-dimensional benchmark that evaluates patient contextual and knowledge grounded reasoning, yet its evaluation granularity still targets aggregated scores rather than individual reasoning steps.

A parallel line of work has explored LLM-based agents and multi-agent frameworks for clinical decision support. General purpose agent architectures such as ReAct [21], which interleaves reasoning traces with action execution, have established foundational design patterns adopted by downstream medical systems, and Voyager [22], which learns open ended skills through continuous exploration and self verification. Agent systems that interleave retrieval, tool use, and reflective self critique can generate extended reasoning trajectories that resemble the deliberative process of clinical reasoning [23], [24], [25]. However, evaluating such agents remains challenging: benchmarks like AgentBench [26] show that LLM agents have large performance gaps across environments, and existing medical benchmarks lack the granularity to assess individual reasoning steps within a trajectory. Furthermore, an agent may generate a reasoning chain that is logically coherent in surface form yet grounded in fabricated medical claims,

∗^{*}Corresponding author.

or retrieve context that is topically relevant but clinically misleading. Therefore, Recent studies have begun to shift focus from answer correctness alone toward the quality of reasoning trajectories, with growing interest in constructing and evaluating high quality trajectory datasets [27].

Self-reflection has emerged as a promising direction for improving medical reasoning quality. MedReflect [28] enables LLMs to generate single-pass reflection chains for self-verified medical problem-solving, while Med-REFL [29] leverages tree-of-thoughts exploration with automated preference learning to train fine-grained self-correction. However, the effectiveness of self-reflective reasoning in medical settings remains dataset- and model-dependent [30], indicating a gap between reasoning transparency and reasoning correctness. Multi-turn evaluation further reveals that LLMs tend to commit to diagnoses prematurely before accumulating sufficient evidence, and that strategically deferring the diagnostic question to later turns can substantially improve accuracy [31].

Inspired by these advances, we propose MedTraj, a framework that treats reasoning trajectories as critical objects for construction, evaluation, and optimization. The pipeline has five stages. First, structured trajectory generation produces multi step clinical reasoning chains from three medical QA sources spanning open ended diagnosis, evidence based judgment, and geriatric severity assessment. Second, each trajectory is parsed into clinical observations, evidences, numbered reasoning steps, and a final conclusion, then scored on five quality dimensions: coherence, evidence support, hallucination, completeness, and traceability. Third, controlled error injection introduces targeted faults into otherwise correct trajectories to establish causal links between specific reasoning failures and measurable quality degradation. Fourth, step level filtering based on marginal contribution identifies which individual steps drive or undermine trajectory quality. Fifth, quality weighted context learning feeds trajectory evaluations back into the model at inference time, allowing the model to learn from both strong and weak reasoning demonstrations.

Experiments across three medical datasets (CareQA [32], PubMedQA [12] and CECMed [33]) show that trajectory context consistently improves reasoning quality, with coherence gains of +0.029 to +0.041 over a zero shot baseline. Quality weighted context achieves 73.8% correctness on the CECMed severity assessment task while reducing hallucination by 87% relative to the baseline. Step level analysis reveals that only 15.3% of reasoning steps act as key drivers that disproportionately determine whether a trajectory succeeds, and that four steps may form a practical upper bound for medical reasoning length.

The main contributions are:

  • A pipeline for constructing structured medical reasoning trajectories with controlled error injection, enabling causal analysis of how specific fault types degrade reasoning quality.

  • A multi dimensional trajectory evaluation scheme with a composite trajectory value metric and a step level filtering mechanism that classifies each reasoning step by its marginal contribution.

• An empirical study across three medical benchmarks

showing that quality weighted trajectory context improves coherence, correctness, and hallucination control, with detailed analysis of optimal reasoning length and step level quality dynamics.

References (53)