arXiv:2608.30163cs.IRAug 2026

Manuscript Offprint

arXiv:2608.30163

Doc-REFRAG: Rethinking Multimodal Document Retrieval-Augmented Generation

Ruofan Hu, Shengyang Xu, Minjie Hong, Xiaoda Yang, Sashuai Zhou, Ke Lei, Tao Jin, Zhou Zhao

Abstract

Real-world knowledge resides in multimodal documents, necessitating retrieval-augmented generation (RAG) for accurate question answering. However, existing multimodal RAG models are primarily designed for single-image or closed-document settings and exhibit limited accuracy in realistic multi-image scenarios. Moreover, processing numerous retrieved images incurs substantial computational overhead from irrelevant visual tokens. To address these challenges, we introduce DocLongRAG, a large-scale dataset of 343K question-answer pairs, each associated with an average of 37.4 retrieved images to reflect authentic RAG workflows. Building on this dataset, we propose Doc-REFRAG, a question-guided framework that compresses visual tokens into coarse chunks and selectively expands question-relevant ones via a lightweight RL-based selector. Experiments on six benchmarks show that Doc-REFRAG outperforms eleven strong baselines, achieving state-of-the-art accuracy with significantly lower inference latency. Our resources are available at https://github.com/Collab-Gen/Doc-REFRAG.

1 Introduction

Multimodal large language models (MLLMs) have rapidly developed, achieving remarkable performance in various visual understanding tasks (Lu et al., 2024; Bai et al., 2025; Chen et al., 2024b; Yao et al., 2024; Li et al., 2024a). Despite these advances, current MLLMs remain limited by static parametric knowledge. To address this limitation, RAG enhances MLLMs with retrieved evidence from external corpora, thereby expanding factual coverage and mitigating hallucination (Arslan et al., 2024). Crucially, a significant portion of real-world knowledge resides in visually rich documents, which often contain textual passages, charts,

Figure

Figure 1: Doc-REFRAG achieves the best accuracy-efficiency trade-off among MLLMs.

and figures. However, existing MLLMs trained on individual images struggle with multi-image reasoning (Ma et al., 2024; Dong et al., 2025a; Tito et al., 2023). Moreover, substantial visual tokens from retrieved images impose significant computational overhead (Ye et al., 2023; Liu et al., 2024a).

To handle multi-image inputs, recent works construct long-document training corpora (Van Landeghem et al., 2023; Hu et al., 2024a; Tanaka et al., 2025; Duan et al., 2025) and apply curriculum learning to extend capacity from single to multi-image layouts (Hu et al., 2024b; Duan et al., 2025). However, these works generally assume a closed-domain setting where all images belong to a single, coherent document. RAG, however, retrieves images across diverse documents that are heterogeneous, redundant, and contradictory. As shown in (Dong et al., 2025b; Cuconasu et al., 2024), this distribution shift severely degrades MLLM generalization to the fragmented and noisy images encountered during RAG inference.

Orthogonal to the reasoning challenge, existing compression methods fall into two types. Training-free approaches typically rely on either token importance (Chen et al., 2024a; He et al., 2024) or redundancy estimation (Tan et al., 2025; Wang et al., 2025) to prune visual tokens. In contrast, training-aware methods introduce a linear projector to refine

*Equal contribution. †Corresponding author.

the limited coarse tokens with fine-grained visual details (Li et al., 2025; Hu et al., 2024b). Both categories prioritize visually complex patches, assuming such regions are more informative for downstream tasks. This assumption fails in RAG scenarios, where visually complex patches are often question-irrelevant. Consequently, processing multiple retrieved images still incurs numerous redundant visual tokens and substantial prefill latency (Li et al., 2024b).

To address these problems, we introduce DocLongRAG, a new multimodal document dataset. Compared to existing work (Hu et al., 2024a; Tanaka et al., 2025; Duan et al., 2025; Luo et al., 2025), this dataset has the following features. (1) High-Quality Retrieval Contexts: semantically similar images are explicitly interleaved with hard negative distractors to simulate real-world RAG inputs. (2) Long-Range Reasoning: each question is associated with an average of 37.4 images, enabling training on substantially longer sequences. (3) Broad Format Coverage: 343,474 question-answer pairs grounded in 3.3M document images spanning PDFs, slides, and posters, supporting robust generalization across document formats.

Building on DocLongRAG, we propose DocREFRAG, a framework for efficient multimodal RAG decoding. Unlike pruning-based methods, Doc-REFRAG adopts a “compress-and-expand” strategy: visual tokens are first compressed into non-overlapping chunks. A lightweight question-conditioned selector then re-expands only the most relevant chunks into full-resolution tokens, recovering fine-grained semantics precisely where needed without the context loss of static pruning.

Integrating mixed sequences of chunked and original tokens requires a specialized training strategy. Doc-REFRAG adopts a three-stage framework: single-image reconstruction for chunk semantic fidelity, multi-image continual pretraining for mixed-sequence processing, and RL-based selector training using accuracy as reward. As shown in Fig. 1, this cuts response time while improving accuracy over prior work.

The contributions are summarized as follows:

  • We introduce DocLongRAG, a large-scale multimodal dataset reflecting the noisy, long-context nature of real-world retrieval.

  • We propose Doc-REFRAG, which rethinks visual token compression as dynamic, question-guided selective expansion, via a three-stage cur-

riculum with an RL-based selector.

  • Experiments on six benchmarks show that our method outperforms eleven existing approaches.