A Dynamic Agent Framework for Large Language Model Reasoning for Medical and Visual Question Answering

Ziyan Xiao, Ruiyang Zhang, Yushi Feng, Lingting Zhu, Liang Peng, Lequan YuCVAMD @ ICCV 2025

Abstract

Eliciting the reasoning capability of Large Language Models (LLMs) for medical Visual Question Answering (VQA) remains essential yet challenging. First, the entanglement of question comprehension, knowledge retrieval, and inference processes makes it difficult to isolate and analyze individual reasoning components. Second, addressing different medical questions requires various reasoning paradigms, while the traditional static prompt paradigm does not take full advantage of the diverse instructions that LLMs can provide. These limitations are compounded by current medical VQA benchmarks, which lack granular metrics to evaluate context-specific reasoning patterns beyond overall accuracy. To address those challenges, in this paper, we propose a reward-based Dynamic Agent Framework (MedDAF) to improve the reasoning in medical VQA. Our framework explicitly disentangles the reasoning pipeline into three components: (1) a question-agent latent space module for experience accumulation, (2) a planning module for optimal agent selection, and (3) a judgment and inference module with reward scoring and final answer generation. Through this iterative process, our framework forms a temporal dynamic agent framework to enhance accuracy and efficiency for medical VQA. Experiments on VQA-RAD and SLAKE have shown that our approach is effective in improving the accuracy and efficiency of zero-shot performance in medical VQA tasks. The implementation code is publicly available on https://github.com/Ziyan-Xiao/MedDAF/.
BibTeX
@inproceedings{xiao2025dynamic,
  author = {Ziyan Xiao and Ruiyang Zhang and Yushi Feng and Lingting Zhu and Liang Peng and Lequan Yu},
  title = {{A Dynamic Agent Framework for Large Language Model Reasoning for Medical and Visual Question Answering}},
  booktitle = {CVAMD @ ICCV},
  year = {2025},
  url = {https://openreview.net/forum?id=0SGx6mPfax},
}

Loading related content...

Figure