{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/medrax-medical-reasoning-agent-for-chest-x","title":"MedRAX: Medical Reasoning Agent for Chest X-ray","arxiv_id":"2502.02673","date":"2025-02-04","proceeding":null,"authors":["Adibvafa Fallahpour","Jun Ma","Alif Munim","Hongwei Lyu","Bo wang"],"abstract":"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","url_abs":"https://arxiv.org/abs/2502.02673v2","url_pdf":"https://arxiv.org/pdf/2502.02673v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"medrax-medical-reasoning-agent-for-chest-x","repo_url":"https://github.com/bowang-lab/medrax","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"ai-agent","task_name":"AI Agent"},{"task_slug":"management","task_name":"Management"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2502.02673","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2502.02673"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/bowang-lab/medrax","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran":7,"ran_draft_wrong":2,"unverified":4},"by_repo_kind":{"official":{"samples":13,"ran":9,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"fcb74c8a86642376","entry":"compare_messages_gen","repo":"bowang-lab/medrax","repo_kind":"official","path":"medrax/llava/eval/eval_multimodal_chat_gpt_score.py","file_url":"https://github.com/bowang-lab/medrax/blob/HEAD/medrax/llava/eval/eval_multimodal_chat_gpt_score.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"fcb74c8a86642376"}},{"code_sha256_prefix":"c7eacf8297119313","entry":"conv_to_str","repo":"bowang-lab/medrax","repo_kind":"official","path":"medrax/llava/eval/eval_multimodal_chat_gpt_score.py","file_url":"https://github.com/bowang-lab/medrax/blob/HEAD/medrax/llava/eval/eval_multimodal_chat_gpt_score.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c7eacf8297119313"}},{"code_sha256_prefix":"908505ed68ff4871","entry":"expand2square","repo":"bowang-lab/medrax","repo_kind":"official","path":"medrax/llava/mm_utils.py","file_url":"https://github.com/bowang-lab/medrax/blob/HEAD/medrax/llava/mm_utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"908505ed68ff4871"}},{"code_sha256_prefix":"42a46570620cd9fa","entry":"get_chunk","repo":"bowang-lab/medrax","repo_kind":"official","path":"medrax/llava/eval/model_vqa.py","file_url":"https://github.com/bowang-lab/medrax/blob/HEAD/medrax/llava/eval/model_vqa.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"42a46570620cd9fa"}},{"code_sha256_prefix":"c3ee9d07c900dd55","entry":"load_image_from_base64","repo":"bowang-lab/medrax","repo_kind":"official","path":"medrax/llava/mm_utils.py","file_url":"https://github.com/bowang-lab/medrax/blob/HEAD/medrax/llava/mm_utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c3ee9d07c900dd55"}},{"code_sha256_prefix":"f0f8c9c5a77c9b5b","entry":"process_images","repo":"bowang-lab/medrax","repo_kind":"official","path":"medrax/llava/mm_utils.py","file_url":"https://github.com/bowang-lab/medrax/blob/HEAD/medrax/llava/mm_utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f0f8c9c5a77c9b5b"}},{"code_sha256_prefix":"076c252c52cbb161","entry":"split_list","repo":"bowang-lab/medrax","repo_kind":"official","path":"medrax/llava/eval/model_vqa.py","file_url":"https://github.com/bowang-lab/medrax/blob/HEAD/medrax/llava/eval/model_vqa.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"076c252c52cbb161"}},{"code_sha256_prefix":"90719ea4ae0ed586","entry":"sum_list_list","repo":"bowang-lab/medrax","repo_kind":"official","path":"medrax/llava/eval/eval_multimodal_chat_gpt_score.py","file_url":"https://github.com/bowang-lab/medrax/blob/HEAD/medrax/llava/eval/eval_multimodal_chat_gpt_score.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"90719ea4ae0ed586"}},{"code_sha256_prefix":"d4ba997957e75202","entry":"violates_moderation","repo":"bowang-lab/medrax","repo_kind":"official","path":"medrax/llava/utils.py","file_url":"https://github.com/bowang-lab/medrax/blob/HEAD/medrax/llava/utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d4ba997957e75202"}},{"code_sha256_prefix":"ac5d4e8611111ae8","entry":"load_prompts_from_file","repo":"bowang-lab/medrax","repo_kind":"official","path":"medrax/utils/utils.py","file_url":"https://github.com/bowang-lab/medrax/blob/HEAD/medrax/utils/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ac5d4e8611111ae8"}},{"code_sha256_prefix":"a76ec818e2e53ab4","entry":"load_system_prompt","repo":"bowang-lab/medrax","repo_kind":"official","path":"medrax/utils/utils.py","file_url":"https://github.com/bowang-lab/medrax/blob/HEAD/medrax/utils/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"a76ec818e2e53ab4"}},{"code_sha256_prefix":"c097d8eeb37f0b88","entry":"load_tool_prompts","repo":"bowang-lab/medrax","repo_kind":"official","path":"medrax/utils/utils.py","file_url":"https://github.com/bowang-lab/medrax/blob/HEAD/medrax/utils/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c097d8eeb37f0b88"}},{"code_sha256_prefix":"37899f22fb191b37","entry":"pretty_print_semaphore","repo":"bowang-lab/medrax","repo_kind":"official","path":"medrax/llava/utils.py","file_url":"https://github.com/bowang-lab/medrax/blob/HEAD/medrax/llava/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"37899f22fb191b37"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}