Manuscript Offprint

arXiv:2610.16811

X-Ragent: Tool-Augmented Reinforcement Learning for Evidence-Grounded Chest X-Ray Reasoning

Yi Wang, Zhenlong Yuan, Yuchan Guo, Maolei Huang, Zijian Song, Dapeng Zhang, Rongbin Tan, Jiyuan Wang, Zhiyuan Wang, Fangfang Lin, Shuhan Song, Huawei Cao

ABSTRACT

Chest X-ray (CXR) interpretation often requires integrating visual findings with task-specific evidence rather than relying on direct visual recognition alone. While tool-augmented medical agents can supply such evidence via external modules, they often lack explicit mechanisms for learning when auxiliary evidence is needed and for preventing inapplicable quantitative evidence from entering diagnostic reasoning. To address this, we propose X-Ragent, a post-training framework for tool-augmented reinforcement learning that decouples learned auxiliary-evidence seeking from validity-gated quantitative measurement acquisition for evidence-grounded CXR reasoning. We construct Rad-CoT, a 7.7K-sample corpus combining causally ordered tool-augmented trajectories with report-style diagnostic reasoning, and use it to initialize Qwen3-VL-8B via agentic supervised fine-tuning (SFT). We then optimize the policy with Group Relative Policy Optimization (GRPO) using an accuracy-gated reward that applies process-level terms for measurement consistency and auxiliary-tool cost only to correct trajectories, preventing plausible process behavior from compensating for an incorrect diagnosis. Across three CXR benchmarks, X-Ragent achieves the strongest results, including an 8.6-point improvement on the fully held-out ChestAgentBench. By seeking evidence selectively and admitting only valid measurements, X-Ragent supports more faithful and evidence-grounded CXR reasoning.

1 INTRODUCTION

Chest X-ray (CXR) is the most frequently ordered imaging examination, supporting clinical tasks from thoracic disease detection to postoperative monitoring (Yang et al., 2025). Automated CXR analysis has progressed from closed-set disease classification (Ma et al., 2025) to report generation (Jin et al., 2024; Liu et al., 2025b) and visual question answering (Hu et al., 2024), and is now moving toward open-ended interpretation with explanations (Chen et al., 2024; Liu et al., 2025a). However, reliable CXR reasoning hinges on localized and quantitative evidence, which current vision-language models still handle poorly. They struggle to ground diagnostic criteria in the relevant anatomy (Lee et al., 2025) and frequently hallucinate measurements (Heiman et al., 2025).

Recent advances make such evidence-grounded reasoning increasingly feasible. General and medical multimodal large language models (MLLMs) (Bai et al., 2025; Park et al., 2025) provide strong vision-language backbones, and GRPO-based reinforcement learning effectively elicits multi-step

Figure

Question:

Which finding best explains this CXR, given weight loss, hemoptysis, dyspnea, and edema?

A. Right upper lobe pneumonia with reactive pleural effusion

B. Right mid-zone mass with pleural effusion and cardiomegaly, indicative of advanced lung cancer(6T)

(C, D, E omitted)

F. Primary cardiac tumor extending into the pulmonary vein

(a) Single-shot MLLM

Global perception,

no evidence acquisition

<think> Patchy opacity in the right mid/lower lung...A global reading favors pneumonia with effusion. </think>

<answer> A </answer>

Figure

Missed

localized and

quantitative

evidence

(eg. right mid-

zone mass:

cardiomegaly)

Visual-Diagnostic Gap

(b) Prompt-Orchestrated Agent

Tools available, evidence misused

Lung

Segmentation

Lesion

Detection

lung

mask

mass

localized

think: The cardiac silhouette is within normal limits ... </think>

answer> A </answer>

Evidence overridden by prior belief

Evidence-Diagnosis

Inconsistency

CTR

Measurement

Output

CTR = 0.81

Invalid view

(lateral)

<think> The CTR is 0.81, indicating an enlarged cardiac silhouette ...</think>

<answer> cardiomegaly </answer>

Applied despite incompatible projection

Inapplicable Measurement

(c) X-Ragent (Ours)

Triage & Gate → integrate

Which tools to use?

Turn1: Tools Triage

Measurement applicable?

Validity Gate

ROI Crop

Evidence

Lookup

View check

Frontal

Lateral

Turn2: Evidence Integration & Diagnosis

Evidence Lookup

"Lung cancer:

irregular mass"

Measurement

<think> ROI confirms a right mid-zone mass with right-sided effusion, the valid CTR of 0.68 indicates cardiomegaly... </think>

<answer> B </answer>

Selective tool use, consistent diagnosis and validity-gated measurement

Evidence-Grounded Diagnosis

Performance

All tests

Figure

7 capabilities test on ChestAgentBench

detection

characterization

classification

diagnosis

localization

relationship

comparison

GPT-4o

LlAVA-Med

MedRAX

Llama-3.2-90B-Vision

CheXagent

X-Ragent (ours)

Figure 1: Evidence-grounded CXR reasoning with X-Ragent. (a) Single-shot MLLMs read the radiograph globally and miss localized evidence, leaving a visual–diagnostic gap. (b) Tool-augmented agents invoke tools but override the returned evidence with textual priors (top), or apply a measurement under incompatible acquisition conditions (bottom). (c) X-Ragent routes task-specific evidence on demand and integrates it with validity-gated quantitative measurements for evidence-grounded diagnosis.

reasoning, including in CXR (Shao et al., 2024; Fan et al., 2025). Meanwhile, specialized models supply fine-grained visual evidence through anatomical segmentation (Seibold et al., 2023) and text-prompted lesion localization (Zhao et al., 2025), which tool-augmented agents compose into diagnostic workflows (Fallahpour et al., 2025; Li et al., 2024a).

Despite these advances, three gaps remain when current approaches are applied to complex CXR diagnostic tasks: ① Visual-Diagnostic Gap: MLLMs globally perceive radiographs but struggle to link broad visual cues with localized, fine-grained anatomical evidence or quantitative metrics. This stems from a lack of structured cognitive mapping connecting perception to diagnostic hypotheses, leading to fragmented reasoning. ② Evidence–Diagnosis Inconsistency: Existing medical agents may invoke external tools but frequently ignore or misinterpret their objective outputs. Driven by textual priors rather than grounded evidence, they generate plausible-sounding but unsupported diagnoses, suffering from imprecise alignment between visual findings and semantic conclusions. ③ Inapplicable Measurement: Deterministic measurements are meaningful only under their intended acquisition conditions. Without an explicit applicability check, inapplicable quantitative evidence can enter the reasoning process and mislead the final diagnosis.

To resolve these limitations, we argue that an effective CXR diagnostic agent requires three synergistic capabilities: ① Evidence-Triage Planning: The capability to assess whether auxiliary evidence is needed and selectively route task-specific evidence accordingly. Conditioned on the clinical query and initial radiographic assessment, the policy invokes visual refinement or condition-specific radiographic knowledge only when additional evidence is needed, alleviating the visual-diagnostic gap. ② Faithful-Evidence Integration: The capability to reason over heterogeneous tool observations and reconcile them with visual findings. This evidence-grounded process helps the agent resolve visual-semantic ambiguities rather than blindly trusting tool outputs, thereby mitigating cross-modal hallucination. ③ Applicability-Gated Measurement: A validity gate that automatically provides basic CXR measurements only when acquisition conditions are satisfied, preventing incompatible quantitative evidence from entering diagnostic reasoning.

To realize these capabilities, we introduce X-Ragent, a post-training framework for evidence-grounded CXR reasoning. As shown in Fig. 1, X-Ragent selectively acquires task-relevant evidence, gates quantitative measurements by clinical applicability, and integrates the resulting evidence into diagnostic reasoning. First, we construct the Rad-CoT dataset for supervised fine-tuning (SFT), comprising structured diagnostic trajectories that teach the policy when to invoke optional visual-refinement and knowledge-lookup tools and how to integrate their observations into diagnostic reasoning. Second, quantitative CXR evidence is supplied through a deterministic, validity-gated path-

Figure

Figure 2: Overview of X-Ragent. (i) Rad-CoT constructs structured CXR reasoning data through evidence triage and gating, evidence integration, and filtering. (ii) Agentic SFT cold-starts Qwen3-VL-8B on Rad-CoT, masking injected observations from the language-modeling loss. (iii) GRPO optimizes the policy with accuracy and format supervision, while tool-use cost and radiographic evidence consistency are gated by answer correctness. (iv) At inference, the policy selectively routes auxiliary tools, while an independent validity gate decides whether quantitative measurements are exposed; both are integrated in the second turn.

way: measurements such as the cardiothoracic ratio are exposed only when the applicability check succeeds. Finally, we optimize the policy with Group Relative Policy Optimization (GRPO) using a composite gated reward that prioritizes diagnostic correctness while encouraging selective auxiliary-tool use and faithful interpretation of valid quantitative evidence. This design decouples learned evidence seeking from validity-constrained measurement acquisition: X-Ragent decides which optional evidence to seek, while the validity gate determines whether quantitative measurements are admitted into reasoning. Our contributions are summarized as follows:

• Evidence-Grounded CXR Reasoning. We propose X-Ragent, a post-training framework that decouples learned auxiliary-evidence seeking from validity-gated quantitative measurement, enabling selective and evidence-grounded CXR reasoning.

• Structured Agentic Post-Training. We construct Rad-CoT, a 7.7K-sample dataset of structured diagnostic trajectories, and develop a two-stage SFT–GRPO training scheme with an accuracy-gated reward that promotes selective tool use and faithful interpretation of verifiable radiographic measurements.

• Empirical Effectiveness. X-Ragent achieves state-of-the-art performance across three CXR benchmarks, raising accuracy on the fully held-out ChestAgentBench from 63.1% to 71.7% over the strongest baseline, with consistent gains across all seven CXR interpretation capabilities.

References (87)