Constructing and Evaluating Clinical Reasoning Trajectories for Medical Agent
Organizations: Guangzhou University, Guangzhou, China · Institute of Automation, Chinese Academy of Sciences, Beijing, China
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 reasoning chains from medical reasoning 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 CECMed, 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 of reasoning steps carry most of the quality signal, and that extending chains beyond four steps yields diminishing returns.
Figures & tables
| Type | Description |
|---|---|
| Points Only | Clinical observations with no reasoning or conclusion |
| Points+Reasoning | Observations and reasoning but no conclusion |
| Reasoning+Result | A reasoning chain without explicit point extraction |
| Points+Reasoning+Result | The complete observation-to-conclusion chain |
| Points+Evidence+Reasoning+Result | Observation-to-conclusion chain with explicit evidence citations |
| Points+Reasoning+Subreasoning | Hierarchical chain with nested sub-inferences |
| Mode | Description | Error type |
|---|---|---|
| Inject irrelevant | Insert steps from another question’s trajectory at a random position | Redundant reasoning |
| Swap steps | Shuffle the order of selected reasoning steps | Structural disruption |
| Flip numeric | Multiply numerical values by a random factor uniformly drawn from 2 to 10 | Factual / hallucination |
| Remove key point | Delete critical steps (retaining ) | Incompleteness |
| Replace unrelated | Replace steps with another question’s reasoning | Causal contradiction |
| Wrong-then-correct | Prepend erroneous steps before the correct chain | Positional: bad prefix |
| CareQA (Open-Ended) | PubMedQA (Open-Ended) | CECMed (Severity) | ||||||||||
| Method | Corr. | Coh. | Evi. | Hal. | Corr. | Coh. | Evi. | Hal. | Corr. | Coh. | Evi. | Hal. |
| NC | .229 | .538 | .430 | .523 | .656 | .812 | .800 | .140 | .390 | .734 | .692 | .189 |
| QA | .232 | .540 | .429 | .546 | .651 | .809 | .798 | .147 | .436 | .745 | .705 | .176 |
| TC | .244 | .567 | .450 | .510 | .708 | .853 | .851 | .104 | .642 | .773 | .767 | .063 |
| QWC | .246 | .576 | .459 | .507 | .730 | .853 | .851 | .104 | .738 | .799 | .797 | .025 |
| SFT | .220 | .549 | .437 | .515 | .656 | .820 | .814 | .145 | .408 | .748 | .704 | .175 |
| Cluster | Proportion | Traj. Value | Match Score | Hal. |
|---|---|---|---|---|
| High-quality effective | 82.0% | 0.999 | 0.979 | 0.029 |
| Coherent but wrong | 12.4% | 0.942 | 0.371 | 0.425 |
| Low-quality invalid | 5.5% | 0.131 | 0.175 | 0.826 |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.