Get Started
Home
Topics
Search
Library
6 min read · Agents · Multimodal · Added Oct 18 · Paper published Oct 12, 2026

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

Source: research paper via Hugging Face Daily Papers
Chest X-ray agents hallucinate measurements like cardiothoracic ratio on views where those numbers are meaningless. The fix splits evidence into learned tool-routing plus a deterministic validity gate the model can’t override, with RL process rewards multiplicatively gated by answer correctness — +8.6 points on ChestAgentBench.

TL;DR

X-Ragent trains a chest X-ray reasoning agent that learns when to call auxiliary vision tools, while a separate deterministic gate blocks numerical measurements like heart-to-chest ratio from entering reasoning unless the X-ray view actually supports them.

Why It Matters

If you point a general vision-language model at a chest X-ray and ask a diagnostic question, two bad things tend to happen. It misses small localized findings because it reads the image globally, and it hallucinates quantitative claims (“the cardiothoracic ratio is 0.6”) that aren’t actually measurable from what it sees.
Recent medical agents like MedRAX fix part of this by wiring in specialist tools: anatomy segmenters, lesion locators, knowledge lookups. But the authors argue these agents have two residual failures. They often ignore what the tool returned and fall back on text priors, and they’ll happily apply a measurement (like a heart-width ratio) to an image where that measurement is meaningless, such as a side-view or non-standard X-ray. A number the model trusts but shouldn’t is worse than no number.

How It Works

The core design choice: split evidence acquisition into two tracks that are governed differently.
Track 1, learned auxiliary tools. The policy (an 8B vision-language model, Qwen3-VL-8B) decides per-question whether to call roi_crop (zoom a region), region_parse (segment an anatomical structure), or evidence_lookup (query a local LLM for condition-specific radiology knowledge). These are optional and chosen by the model.
Track 2, validity-gated measurements. A deterministic backend computes three numbers (cardiothoracic ratio, lung-field asymmetry, thoracic shift) but only exposes them when a separate view_check classifier confirms the X-ray is a standard frontal PA view with usable anatomical masks. The policy doesn’t get to decide this. If the gate fails, the measurement bundle is simply absent, and absence means “not applicable,” not “normal.”
Training is two stages. First, agentic supervised fine-tuning on Rad-CoT, a 7.7K-example corpus the authors built using a larger local Qwen3.5-122B to synthesize two-turn reasoning traces (first turn: assess image, pick tools; second turn: integrate returned evidence, answer). Tool outputs are masked from the loss so the model learns to use evidence, not imitate tool text.
Second, Group Relative Policy Optimization (GRPO) reinforcement learning with a gated reward. The key trick is multiplicative gating: process-level rewards for measurement consistency and tool-cost efficiency are multiplied by whether the answer was correct. If you got the diagnosis wrong, polished process behavior earns you nothing.
# Per trajectory tau: R = R_format(tau) if R_acc(tau) == 1: # answer correct R += 1 + lambda_m * R_CXR(tau) - lambda_t * R_tool(tau) # else: no process-level credit, only format penalty
Without this gate, an incorrect trajectory could still bank reward for “looking thoughtful,” letting process quality paper over wrong diagnoses.

What They Found

On three chest X-ray benchmarks, X-Ragent beats the strongest prior reported numbers by +8.6 points on ChestAgentBench (71.7% vs 63.1%), +9.2 on CheXbench, and +2.6 on SLAKE. ChestAgentBench is fully held out, no overlap with training, and gains are consistent across all seven of its diagnostic capability subsets.
Ablations give the mechanism-level evidence:
•
The accuracy gate matters. Adding evidence-consistency reward or tool-cost penalty each helps individually, but combining them without the correctness gate underperforms either alone. Gating both by answer correctness is best on all three benchmarks.
•
Tool use is selective, not reflexive. On ChestAgentBench, the model invokes auxiliary tools on 64.9% of questions its base model gets wrong, versus 43.6% of questions it already answers correctly. Corrections outnumber regressions roughly 3-to-1.
•
Forcing all tools on every question is 0.7 points worse than learned routing, so selectivity isn’t just saving compute.
•
The validity gate’s effect is small but clean. On the 613 non-frontal or atypical X-rays in ChestAgentBench, gating lifts accuracy from 69.17% to 70.15%. All net corrections come from the subset the gate actually affects. A worked example: an ungated lung-asymmetry measurement flips the model from the right answer to the wrong one; withholding it preserves the correct visually-grounded answer.
•
SFT alone contributes the biggest single jump (+10.8); RL on top mostly helps held-out transfer rather than in-domain scores.

What’s Useful

If you’re building a tool-using agent where some tools return unreliable outputs under certain inputs, the paper’s architectural separation is worth copying: route which evidence to seek through the learned policy, but gate whether a particular tool’s output is admissible through deterministic rules the model can’t override. The validity check runs independently; the model can’t “decide” the measurement is fine.
The multiplicative accuracy gate on process rewards is a cheap, general trick for any RL setup where you want to shape how the model solves problems without letting process rewards compensate for task failure. Worth testing on your own agent whenever you notice the reward model preferring well-formatted wrong answers.
For medical imaging specifically, the result is a research prototype, not a deployable system. The authors are explicit about this. The gains on standalone SLAKE are small (near 93% saturation), and the Rad-ReStruct subset of CheXbench showed no improvement over the base model, so advantages concentrate on tasks that actually require multi-step or fine-grained reasoning.
The Rad-CoT trajectories were synthesized by a larger teacher model and filtered; the paper doesn’t release code or weights in the supplied text, and MIMIC-CXR data requires credentialed PhysioNet access, so reproducing this isn’t a weekend project.

Caveats

The quantitative measurement path is narrow: three measurements, applicable only to standard frontal PA views, and the gate withholds the bundle on ~31% of inputs. The isolated contribution of the measurement module in the module-ablation is only ~0.9 points, so most of X-Ragent’s gain comes from learned tool routing plus SFT structure, not from the validity-gated measurements themselves. The validity gate’s value is really about preventing a specific failure mode (bad numbers derailing correct visual reasoning), which shows up more in qualitative cases than in headline accuracy.
Training data (Rad-CoT) is synthesized by Qwen3.5-122B rather than annotated by radiologists, so reasoning quality is bounded by what that teacher produces. The paper filters aggressively, but this is distillation of a general LLM’s radiology reasoning, not clinician ground truth.
Baseline comparisons mix model scales (8B X-Ragent vs larger VLMs and a GPT-4o-based MedRAX), so the comparison is “best available system” rather than controlled-for-compute.
Topics
Agents
Multimodal
Reinforcement Learning
Computer Vision
Agents
Multimodal
Reinforcement Learning
Computer Vision
Up next in Agents
Self-Evolving Coding Agents via Harness-Policy Optimization
Interlock: From Local Correctness to Task Completion in Long-Horizon Agents
Don't miss new content
Log in to follow topics and personalize your feed.
Related topics you might like
Agents310 episodes
Multimodal163 episodes
Reinforcement Learning157 episodes