# MedRAX: Medical Reasoning Agent for Chest X-ray

MedRAX: 흉부 X선을 위한 의료 추론 에이전트

Adibvafa Fallahpour, Jun Ma, Alif Munim, Hongwei Lyu, Bo Wang · arXiv · 2025년 2월 4일

- **연구 문제** 흉부 X선 해석은 방사선과 의사의 많은 시간을 요구하며, 과제 특화 모델은 각각 따로 작동해 임상 통합이 어렵습니다.
- **연구 방법** MedRAX는 추가 학습 없이 여러 CXR 분석 도구를 LLM 기반 ReAct 루프에 연결하여 복잡한 질의를 단계별로 해결합니다.
- **주요 결과** ChestAgentBench 전체 정확도에서 MedRAX는 63.1%를 기록해 GPT-4o의 56.4%보다 높았으며, SLAKE 평가에서도 높은 정확도와 재현율을 보고했습니다.

## 흉부 X선 해석의 문제와 기존 모델의 한계

흉부 X선(CXR)은 질병 진단과 치료 결정에 널리 쓰이지만, 영상의 여러 해부학적 구조를 체계적으로 검토하려면 방사선과 의사가 많은 시간을 들여야 합니다. 이 부담을 줄이기 위해 분류, 분할, 보고서 생성을 맡는 과제 특화 AI 모델이 많이 개발되었지만, 각 모델이 따로 작동하여 실제 임상 워크플로우에 통합되기 어렵다는 문제가 지적됩니다.

한편 GPT-4 같은 대규모 다중모달 모델은 의학적 이해와 추론에서 강점을 보이지만, 환각과 추론의 불일치, 여러 영상 영역을 가로지르는 다단계 추론의 어려움, 그리고 목적 특화 도구에 비해 투명성이 낮은 종단간 구조라는 한계가 있습니다. 이 논문은 이러한 두 흐름의 한계를 함께 다루기 위해, 기반 모델의 유연성과 임상 AI 도구의 신뢰성을 결합하는 도구 기반 접근을 제시합니다.

## MedRAX의 ReAct 루프와 도구 통합 방식

MedRAX는 추가 학습 없이 여러 CXR 분석 도구를 하나의 에이전트 프레임워크로 묶는 시스템입니다. 핵심 추론 엔진은 LLM이며, 이 LLM이 ReAct 루프를 구동합니다. 루프는 관찰, 사고, 행동을 반복하고, 사용자 질의 Q와 입력 영상 집합 I, 도구 집합 T, 메모리 M을 받아 최종 응답을 생성하거나 사용자에게 추가 입력을 요청합니다. 도구 호출 결과는 메모리에 기록되어 다음 단계의 추론에 다시 사용됩니다.

![Figure 2: MedRAX Interaction Flow. An example of how MedRAX handles a multi-turn conversation through its ReAct loop (\<thought\>, \<action\>, \<observation\>) along…](https://refivu.com/papers/73202cd4-6ec5-4155-8644-846b59a4dfa2/figures/figure-589ecfddf75ebacbf8a9cb102d5b1cf9.png?thumb=512)

**Figure 2** . MedRAX Interaction Flow. An example of how MedRAX handles a multi-turn conversation through its ReAct loop (\<thought\>, \<action\>, \<observation\>) along with tool out- puts and final response. For clarity, the production interface shows only tool outputs and agent responses.

[원문](https://arxiv.org/abs/2502.02673v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Adibvafa Fallahpour, Jun Ma, Alif Munim, Hongwei Lyu, Bo Wang · MedRAX: Medical Reasoning Agent for Chest X-ray · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.

도구는 시각 질의응답, 분할, grounding, 보고서 생성, 질환 분류, 영상 생성, 유틸리티로 나뉘며, 각 도구는 입력과 출력 형식 및 기능을 정의하는 클래스로 등록됩니다. 새 도구를 추가할 때 LLM을 재학습하지 않는다는 점이 이 설계의 핵심 특징입니다. 참조 구현은 백본 LLM으로 GPT-4o를 사용하며, 도구 결과를 캐시하여 같은 중간 결과의 중복 계산을 줄입니다.

![Figure 1: Architecture of MedRAX. The framework implements a ReAct loop that processes user queries by integrating short- term memory (LangChain) and specializ…](https://refivu.com/papers/73202cd4-6ec5-4155-8644-846b59a4dfa2/figures/figure-1fa82ac579952845db64f78ea4df8d8d.png?thumb=512)

**Figure 1** . Architecture of MedRAX. The framework implements a ReAct loop that processes user queries by integrating short- term memory (LangChain) and specialized medical tools for vi- sual QA (CheXagent (Chen et al., 2024b), LLaV A-Med (Li et al., 2024b)), segmentation (MedSAM (Ma et al., 2024; Kirillov et al., 2023; Ma et al., 2025), ChestX-Det (Lian et al., 2021; Zhao et al., 2017)), grounding (Maira-2 (Bannur et al., 2024)), report genera- tion (model trained on CheXpert Plus (Irvin et al., 2019; Chambon et al., 2024)), classification (TorchXRayVision (Cohen et al., 2022; 2020)), and image generation (RoentGen (Chambon et al., 2022)).

[원문](https://arxiv.org/abs/2502.02673v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Adibvafa Fallahpour, Jun Ma, Alif Munim, Hongwei Lyu, Bo Wang · MedRAX: Medical Reasoning Agent for Chest X-ray · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.

## ChestAgentBench의 구축과 평가 지표

ChestAgentBench는 MedRAX처럼 여러 단계의 추론이 필요한 CXR 질문을 평가하기 위해 만든 벤치마크입니다. 원천 자료는 유럽방사선학회가 관리하는 동료 심사 방사선 증례 데이터베이스인 Eurorad이며, 그중 흉부 영상 섹션에서 675개의 환자 사례를 골랐습니다. 각 사례에는 임상 설명과 영상 소견, 논의, 최종 진단이 포함되어 있습니다.

![Table 5: Complete Distribution of various Chest X-ray Findings in ChestAgentBench (Frequency % across 675 clinical cases)](https://refivu.com/papers/73202cd4-6ec5-4155-8644-846b59a4dfa2/figures/figure-2a562a16676bcb2e1cfa8833eba7b64c.png?thumb=512)

**Table 5** . Complete Distribution of various Chest X-ray Findings in ChestAgentBench (Frequency % across 675 clinical cases)

[원문](https://arxiv.org/abs/2502.02673v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Adibvafa Fallahpour, Jun Ma, Alif Munim, Hongwei Lyu, Bo Wang · MedRAX: Medical Reasoning Agent for Chest X-ray · 원문 그림 인용 · 원본 PDF 16쪽에서 그림 영역을 추출했습니다.

벤치마크는 탐지, 분류, 위치 파악, 비교, 관계, 진단, 특성 묘사, 추론의 7개 핵심 역량을 기준으로 질문을 만들고, 이를 세부 상세 찾기, 패턴 인식, 공간 이해, 임상 결정, 진단 특성 묘사의 5개 질문 유형으로 묶습니다. GPT-4o가 사례마다 6지선다 질문을 생성한 뒤, 같은 모델로 구조 일관성, 임상 맥락의 근거성, 원본 증례로부터의 검증 가능성을 점검하여 기준에 맞지 않는 질문은 제외합니다. 평가 지표는 정답 비율인 정확도입니다.

![Figure 3: Overview of ChestAgentBench. (a) Benchmark creation pipeline that uses GPT-4o to generate 2,500 six-choice questions from 675 Eurorad clinical cases.…](https://refivu.com/papers/73202cd4-6ec5-4155-8644-846b59a4dfa2/figures/figure-a3272177150a4371bd83403b7235b421.png?thumb=512)

**Figure 3** . Overview of ChestAgentBench. (a) Benchmark creation pipeline that uses GPT-4o to generate 2,500 six-choice questions from 675 Eurorad clinical cases. (b) Gender distribution, showing 55.4% male, 44.1% female, and 0.45% unknown. (c) Age distribution, a bimodal with a mean age of 46.0 years (SD=20.4, median=47.0 years). (d) Distribution of anatomical areas of interest across cases, with lung (51.2%), thorax (42.8%), and mediastinum (15.8%) representing the most frequently examined regions from 53 unique areas.

[원문](https://arxiv.org/abs/2502.02673v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Adibvafa Fallahpour, Jun Ma, Alif Munim, Hongwei Lyu, Bo Wang · MedRAX: Medical Reasoning Agent for Chest X-ray · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

## ChestAgentBench와 CheXbench에서의 비교

ChestAgentBench에서 MedRAX는 전체 정확도 63.1%를 보였고, 같은 표에서 GPT-4o는 56.4%, Llama-3.2-90B는 57.9%, CheXagent는 39.5%, LLaVA-Med는 28.7%를 기록했습니다. 이 비교는 같은 6지선다 벤치마크에서 각 모델이 정답을 고르는 비율을 보여 주며, 저자들은 일반 목적 VLM이 특수 의료 모델보다 여러 범주에서 높게 나타났다고 보고합니다. 응답 파싱이 실패하거나 유효하지 않으면 최대 세 번 재시도하고, 그래도 실패하면 오답으로 처리했습니다.

![Table 1: Model Performance on ChestAgentBench. Accuracy (%) of five vision-language models (LLaV A-Med (Li et al., 2024b), CheXagent (Chen et al., 2024a), Llam…](https://refivu.com/papers/73202cd4-6ec5-4155-8644-846b59a4dfa2/figures/figure-70f7ad85af393524e103d6411e348b80.png?thumb=512)

**Table 1** . Model Performance on ChestAgentBench. Accuracy (%) of five vision-language models (LLaV A-Med (Li et al., 2024b), CheXagent (Chen et al., 2024a), Llama-3.2-90B, GPT-4o, and MedRAX) compared across seven categories of our 2,500-question benchmark. MedRAX significantly outperforms both general-purpose models and specialized biomedical models across all categories.

[원문](https://arxiv.org/abs/2502.02673v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Adibvafa Fallahpour, Jun Ma, Alif Munim, Hongwei Lyu, Bo Wang · MedRAX: Medical Reasoning Agent for Chest X-ray · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

CheXbench에서는 시각 질의응답 238문항(Rad-Restruct와 SLAKE)과 영상-텍스트 추론 380문항(OpenI)을 사용했습니다. MedRAX는 Rad-Restruct에서 68.7%, SLAKE에서 82.9%를 기록했으며, 전체 시각 질의응답 평균은 68.1%였습니다. 영상-텍스트 추론에서는 모든 모델의 성능이 크게 떨어졌고, 최고 성능인 CheXagent도 59.0%에 그쳤습니다. 저자들은 이 결과를 도구 기반 접근이 세밀한 시각 이해에 강점이 있음을 시사하는 것으로 해석하면서도, 영상-텍스트 추론의 어려움은 여전하다고 봅니다.

## MIMIC-CXR 보고서 생성과 SLAKE 평가

MIMIC-CXR 단일 영상 보고서 생성 평가는 테스트 집합의 3,858장을 사용하며, 14개 관찰 라벨에 대한 micro 평균 F1(mF1-14), 5개 주요 소견에 대한 micro 평균 F1(mF1-5), 그리고 macro 평균 F1(MF1-14, MF1-5)로 측정합니다. MedRAX는 mF1-14 79.1%, mF1-5 64.9%로 M4CXR의 60.6%와 61.8%보다 높았습니다. 반면 macro 평균인 MF1-14는 34.2%로 M4CXR의 40.0%보다 낮았고, MF1-5는 Med-PaLM M 84B가 51.6%로 가장 높았습니다. 저자들은 이 차이를 MedRAX가 더 흔한 질환에서 강점을 가진다는 해석으로 제시합니다.

SLAKE 평가는 원본 테스트 집합 2,094개 중 흉부 X선 close-ended 영어 질문 114개를 사용합니다. MedRAX는 정확도 90.35%, 재현율 91.23%를 보고했고, M4CXR의 85.1%와 86.0%, CheXagent의 71.1%와 73.2%보다 높았습니다. 다만 이 수치들은 기준 모델의 점수를 M4CXR 논문에서 가져온 것이므로, 같은 실행 환경에서 직접 측정한 결과와 구분해서 읽어야 합니다.

![Table 4: Medical VQA performance on SLAKE benchmark. Accuracy (%) and recall (%) of vision-language models on 114 chest X-ray visual question answering samples…](https://refivu.com/papers/73202cd4-6ec5-4155-8644-846b59a4dfa2/figures/figure-5dcb9096075ecd3f1b51f5b0a3448ed6.png?thumb=512)

**Table 4** . Medical VQA performance on SLAKE benchmark. Accuracy (%) and recall (%) of vision-language models on 114 chest X-ray visual question answering samples with close-ended English questions. MedRAX achieves state-of-the-art performance compared to RadFM (Wu et al., 2023), CheXagent (Chen et al., 2024b), and M4CXR (Park et al., 2024). Performance values for baseline models obtained from Park et al. (Park et al., 2024).

[원문](https://arxiv.org/abs/2502.02673v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Adibvafa Fallahpour, Jun Ma, Alif Munim, Hongwei Lyu, Bo Wang · MedRAX: Medical Reasoning Agent for Chest X-ray · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

## 한계와 적용 범위

저자들은 MedRAX가 구조화된 추론에는 강하지만 분류 도구와 분할 도구가 서로 다른 해석을 낼 때 모순되는 도구 출력을 해결하는 데 어려움이 있다고 밝힙니다. 여러 특수 도구를 함께 실행하기 때문에 응답 시간이 종단간 모델보다 길어질 수 있으며, 강건한 불확실성 정량화 메커니즘도 부족하다고 명시합니다.

![Figure 4: MedRAX and GPT-4o Case Study. (Case 17576) Correct answer is chest tube. GPT-4o incorrectly identifies as endotracheal tube based on position, while…](https://refivu.com/papers/73202cd4-6ec5-4155-8644-846b59a4dfa2/figures/figure-2dd9d93756499bb73aee32b0d7489bd8.png?thumb=512)

**Figure 4** . MedRAX and GPT-4o Case Study. (Case 17576) Correct answer is chest tube. GPT-4o incorrectly identifies as endotracheal tube based on position, while MedRAX correctly identifies chest tube by integrating multiple tool outputs, even resolving conflicting tool suggestions. (Case 16703) Correct answer is left pneumothorax. GPT-4o misdiagnoses as right-sided pneumonia/edema, while MedRAX correctly identifies left pneumothorax through sequential tool application for disease detection and comparative lung analysis.

[원문](https://arxiv.org/abs/2502.02673v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Adibvafa Fallahpour, Jun Ma, Alif Munim, Hongwei Lyu, Bo Wang · MedRAX: Medical Reasoning Agent for Chest X-ray · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

적용 범위도 함께 봐야 합니다. ChestAgentBench의 정답 여부는 Eurorad 사례의 영상 소견과 논의에 근거해 생성·검증된 질문에 대한 것이며, 실제 임상 검증은 논문의 향후 과제로 남겨져 있습니다. 또한 MIMIC-CXR macro 평균 지표에서 나타난 낮은 값은 저자들이 해석한 방식으로 읽어야 하고, 모든 질환 범주에서 우수하다는 결론으로 확대할 수는 없습니다.

## 논문 정보

- **저자**: Adibvafa Fallahpour, Jun Ma, Alif Munim, Hongwei Lyu, Bo Wang
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2025년 2월 4일
- **등록일**: 2026년 10월 29일
- **수정일**: 2025년 5월 29일
- **버전**: v2
- **arXiv**: 2502.02673
- **분류**: cs.LG · cs.AI · cs.MA
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2502.02673v2) · [원문 PDF ↗](https://arxiv.org/pdf/2502.02673v2)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Chest X-rays (CXRs) play an integral role in driving critical decisions in disease management and patient care. While recent innovations have led to specialized models for various CXR interpretation tasks, these solutions often operate in isolation, limiting their practical utility in clinical practice. We present MedRAX, the first versatile AI agent that seamlessly integrates state-of-the-art CXR analysis tools and multimodal large language models into a unified framework. MedRAX dynamically leverages these models to address complex medical queries without requiring additional training. To rigorously evaluate its capabilities, we introduce ChestAgentBench, a comprehensive benchmark containing 2,500 complex medical queries across 7 diverse categories. Our experiments demonstrate that MedRAX achieves state-of-the-art performance compared to both open-source and proprietary models, representing a significant step toward the practical deployment of automated CXR interpretation systems. Data and code have been publicly available at https://github.com/bowang-lab/MedRAX

## 원문 인용

Adibvafa Fallahpour, Jun Ma, Alif Munim, Hongwei Lyu, Bo Wang (2025). MedRAX: Medical Reasoning Agent for Chest X-ray. arXiv:2502.02673v2. https://arxiv.org/abs/2502.02673v2

**BibTeX**

```
@misc{fallahpour2025medrax,
  title = {{MedRAX: Medical Reasoning Agent for Chest X-ray}},
  author = {Adibvafa Fallahpour and Jun Ma and Alif Munim and Hongwei Lyu and Bo Wang},
  year = {2025},
  eprint = {2502.02673},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.02673v2}
}
```

## 이 논문의 용어

- [accuracy](https://refivu.com/terms/1995c0cd6282-accuracy)
- [recall](https://refivu.com/terms/3774987267f3-recall)
- [ReAct](https://refivu.com/terms/420780a0fd8c-react)
- [MIMIC-CXR](https://refivu.com/terms/10c899189327-mimic-cxr)
- [PSPNet](https://refivu.com/terms/4b8472ef213d-pspnet)
- [micro-averaged F1](https://refivu.com/terms/a75487fb2d98-micro-averaged-f1)
- [micro-averaged F1 scores](https://refivu.com/terms/a9a390c371bf-micro-averaged-f1-scores)
- [LLaV A-Rad](https://refivu.com/terms/ad28e33a14d1-llav-a-rad)
- [Maira-2](https://refivu.com/terms/7ecdcd6255c3-maira-2)
- [OpenI](https://refivu.com/terms/59c740891db3-openi)

## 다른 논문 해설

- [Your Policy Is Secretly a Harness: The Decision Geometry of Agent Interfaces](https://refivu.com/papers/335ccc31-27a9-48cb-97b0-140ea87383c8-your-policy-is-secretly-a-harness-the-decision.md)
- [Understanding Communication Failures in Multi-Agent LLM Systems](https://refivu.com/papers/cf44283b-cef0-4d8e-8e8c-befb61351e13-understanding-communication-failures-in-multi-agent-llm.md)
- [Tev: Scaling Long-Horizon Agentic Environments with Dense Progress Rewards](https://refivu.com/papers/a3400663-a27f-4475-aed5-b4ce645ad373-tev-scaling-long-horizon-agentic-environments-with-dense.md)
- [BizBench: Unveiling Hidden Challenges in Deploying Long-Horizon Agents for Real-World Business](https://refivu.com/papers/3c6abddf-f10a-43f5-a528-95410fcf6097-bizbench-unveiling-hidden-challenges-in-deploying-long.md)
- [Mid-Harness: Scaling Actions Between Model and Harness for Terminal Agents](https://refivu.com/papers/a8cd1722-6f10-4363-8b57-f6a7d08b68c6-mid-harness-scaling-actions-between-model-and-harness.md)
- [SoftwareGym: Scaling Computer-Use Agent Training with Diverse Synthesized Software Environments](https://refivu.com/papers/a1913591-3d69-4027-ba2c-e0e9005a5135-softwaregym-scaling-computer-use-agent-training-with-diverse.md)
- [SWE-Lancer: Can Frontier LLMs Earn $1 Million from Real-World Freelance Software Engineering?](https://refivu.com/papers/a2f97f02-0e25-4600-9ab4-dbca1070183e-swe-lancer-can-frontier-llms-earn-1-million.md)
- [Boost-and-Skip: A Simple Guidance-Free Diffusion for Minority Generation](https://refivu.com/papers/ed45cca8-952f-4987-9e5f-8a9bfae3233b-boost-and-skip-a-simple-guidance-free-diffusion.md)
- [Chameleon: A Flexible Data-mixing Framework for Language Model Pretraining and Finetuning](https://refivu.com/papers/49701f89-df6c-487a-9e82-3cbcb5b34832-chameleon-a-flexible-data-mixing-framework-for-language.md)
- [Flow-of-Options: Diversified and Improved LLM Reasoning by Thinking Through Options](https://refivu.com/papers/d4c532f4-f07b-4e9c-a655-c8c5d37b9b0c-flow-of-options-diversified-and-improved-llm-reasoning.md)
- [TMetaNet: Topological Meta-Learning Framework for Dynamic Link Prediction](https://refivu.com/papers/553865f3-e9d9-407e-a51a-a5caae5dfe78-tmetanet-topological-meta-learning-framework-for-dynamic.md)
- [Earley-Driven Dynamic Pruning for Efficient Structured Decoding](https://refivu.com/papers/77982696-2b06-4b7d-9e4e-546fb563c078-earley-driven-dynamic-pruning-for-efficient-structured.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/73202cd4-6ec5-4155-8644-846b59a4dfa2-medrax-medical-reasoning-agent-for-chest-x-ray)
