MDocAgent: A Multi-Modal Multi-Agent Framework for Document Understanding
Siwei Han, Peng Xia, Ruiyi Zhang, Tong Sun, Yun Li, Hongtu Zhu, Huaxiu Yao
TL;DR
This paper introduces MDocAgent, a multi-modal, multi-agent framework for Document Question Answering (DocQA) that integrates text and image modalities through two parallel RAG pipelines and five specialized agents. By combining a general agent, a critical information extractor, text and image processing agents, and a summarizing agent, the approach enables refined cross-modal reasoning and robust final answers for long and visually rich documents. Extensive experiments on five benchmarks show consistent performance gains over state-of-the-art LVLM and RAG methods, with ablations confirming the value of each agent and the cross-modal synthesis mechanism. The work demonstrates the practicality of collaborative multi-agent architectures in complex DocQA tasks and points toward broader adoption in robust document understanding tasks.
Abstract
Document Question Answering (DocQA) is a very common task. Existing methods using Large Language Models (LLMs) or Large Vision Language Models (LVLMs) and Retrieval Augmented Generation (RAG) often prioritize information from a single modal, failing to effectively integrate textual and visual cues. These approaches struggle with complex multi-modal reasoning, limiting their performance on real-world documents. We present MDocAgent (A Multi-Modal Multi-Agent Framework for Document Understanding), a novel RAG and multi-agent framework that leverages both text and image. Our system employs five specialized agents: a general agent, a critical agent, a text agent, an image agent and a summarizing agent. These agents engage in multi-modal context retrieval, combining their individual insights to achieve a more comprehensive understanding of the document's content. This collaborative approach enables the system to synthesize information from both textual and visual components, leading to improved accuracy in question answering. Preliminary experiments on five benchmarks like MMLongBench, LongDocURL demonstrate the effectiveness of our MDocAgent, achieve an average improvement of 12.1% compared to current state-of-the-art method. This work contributes to the development of more robust and comprehensive DocQA systems capable of handling the complexities of real-world documents containing rich textual and visual information. Our data and code are available at https://github.com/aiming-lab/MDocAgent.
