Abstract
Artificial intelligence (AI)-based chest X-ray (CXR) interpretation assistants have demonstrated significant progress and are increasingly being applied in clinical settings. However, contemporary medical AI models often adhere to a simplistic input-to-output paradigm, directly processing an image and an instruction to generate a result, where the instructions may be integral to the model's architecture. This approach overlooks the modeling of the inherent diagnostic reasoning in chest X-ray interpretation. Such reasoning is typically sequential, where each interpretive stage considers the images, the current task, and the contextual information from previous stages. This oversight leads to several shortcomings, including misalignment with clinical scenarios, contextless reasoning, and untraceable errors. To fill this gap, we construct CXRTrek, a new multi-stage visual question answering (VQA) dataset for CXR interpretation. The dataset is designed to explicitly simulate the diagnostic reasoning process employed by radiologists in real-world clinical settings for the first time. CXRTrek covers 8 sequential diagnostic stages, comprising 428,966 samples and over 11 million question-answer (Q&A) pairs, with an average of 26.29 Q&A pairs per sample. Building on the CXRTrek dataset, we propose a new vision-language large model (VLLM), CXRTrekNet, specifically designed to incorporate the clinical reasoning flow into the VLLM framework. CXRTrekNet effectively models the dependencies between diagnostic stages and captures reasoning patterns within the radiological context. Trained on our dataset, the model consistently outperforms existing medical VLLMs on the CXRTrek benchmarks and demonstrates superior generalization across multiple tasks on five diverse external datasets.
Introduction: Moving Beyond the Black Box
Most contemporary medical AI models follow a "black box" input-to-output paradigm: an image and a prompt are processed to generate a diagnosis or report. While often accurate, this approach ignores the clinical reasoning flow—the step-by-step process where a radiologist first validates image quality, identifies abnormalities, describes their attributes, compares them with prior scans, and finally offers a synthesis.
Current models suffer from three main issues:
- Misalignment: They do not follow real-world clinical workflows.
- Contextless Reasoning: They treat every question as an isolated task rather than building on previous findings.
- Untraceable Errors: If a model fails, it is difficult to determine if the error occurred during perception (not seeing the lesion) or interpretation (misunderstanding the relationship between findings).
The CXRTrek Dataset and Clinical Reasoning Flow
To address these gaps, the authors developed CXRTrek, a massive multi-stage Visual Question Answering (VQA) dataset. CXRTrek structures CXR interpretation into eight sequential diagnostic stages that mirror a radiologist's workflow.
The eight stages include:
- X-ray Validation: Checking view orientation and quality.
- Findings Recognition: Identifying abnormalities or foreign bodies.
- Attributes Recognition: Detailing severity, location, and morphology.
- Relationships Questions: Modeling spatial or causal links between findings.
- Image Comparisons: Temporal reasoning comparing current scans with previous ones.
- Future Risk Questions: Predicting disease trajectory.
- Diagnosis Advice: Recommending clinical follow-ups (e.g., "get a CT").
- Summarizing: Generating the final diagnostic report.
CXRTrek contains 428,966 samples and over 11 million Q&A pairs, with an average of 26.29 pairs per sample. The dataset's composition ensures a wide variety of instructions and responses across the diagnostic stages, as shown in the distribution of word pairs and stage-specific Q&A counts.
CXRTrekNet: A Context-Aware VLLM
Building on this dataset, the authors proposed CXRTrekNet. This vision-language large model (VLLM) uses frozen visual and textual encoders (based on CheXagent) and a fine-tuned Large Language Model (LLM) backbone. Crucially, the model is context-aware: the input for any given stage includes the image, the current question, and the history of all previous questions and answers in that session. This allows the model to "accumulate" knowledge as it progresses through the diagnostic stages.
Key Insights and Results
The study yielded several critical insights into medical AI reasoning:
- Reasoning is Cumulative: Ablation studies showed that "Sequential" training (maintaining context) is significantly superior to "Joint" training (treating Q&A pairs as independent). In Stage 8 (Summarizing), the sequential model achieved a BERTScore of 45.86, nearly 17 points higher than the joint model.
- Improved Temporal Reasoning: Stages 5 (Image Comparisons) and 6 (Future Risk) are traditionally difficult for AI. By forcing the model to first identify and describe findings (Stages 2-4), CXRTrekNet achieves much higher scores in these complex tasks.
- State-of-the-Art Performance: CXRTrekNet achieved an average score of 69.66% across all stages, vastly outperforming baselines like CheXagent (33.38%) and general-purpose models like Qwen2-VL (35.20%).
- Generalization: The model demonstrated superior performance on five external benchmarks, including 96.06% accuracy on VinDr-CXR for abnormality classification and leading scores in report generation on MIMIC-CXR and IU-Xray.
Conclusion and Future Directions
CXRTrekNet represents a shift toward more transparent and clinically aligned medical AI. By modeling the reasoning process, the model provides traceability, allowing clinicians to see exactly where a chain of reasoning might have broken down. While highly effective for Chest X-rays, future work aims to integrate Electronic Health Records (EHRs) to provide even deeper clinical context and to conduct real-world clinical trials to evaluate the model's utility in practice.
The dataset and model can be found at the CXRTrek repository.
Summary updated