M3DocDep: Multi-modal, Multi-page, Multi-document Dependency Chunking with Large Vision-Language Models

Joongmin Shin, Jeongbae Park, Jaehyung Seo, Heuiseok Lim

TL;DR

M3DocDep introduces a novel pipeline for Retrieval-Augmented Generation (RAG) that reconstructs a document's structural hierarchy before breaking it into chunks. By combining Large Vision-Language Models (LVLMs) with global graph decoding, it accurately preserves cross-page dependencies and figure-caption relationships, leading to massive gains in document retrieval and question-answering accuracy.

What Problem Does This Paper Address?

When building RAG systems for long, complex industrial documents (like financial reports, legal contracts, or manuals), the first step is always "chunking"—splitting the document into smaller pieces for an embedding model to index. Traditional chunking methods are text-centric, either splitting blindly by token count or using text-based semantic shifts.

However, real-world documents are inherently multi-modal and highly structured. They contain tables, figures, varying font sizes, and hierarchical headers that often span across page breaks. Text-only chunkers discard these visual cues and frequently sever critical parent-child relationships (e.g., separating a figure from its caption on the next page). While some recent methods use Large Language Models (LLMs) to parse hierarchies, they struggle to maintain global tree constraints over long sequences and lose visual layout information during textualization.

Methods

M3DocDep solves this with a four-stage "parse-then-chunk" pipeline:

  1. SharedDet (DP+OCR): A standardized preprocessing layer that runs document parsing and OCR to extract layout blocks (text, tables, figures, headers) and maps them into a unified, document-level coordinate frame.
  2. LVLM-based Multi-modal Block Embedding: Page images are processed by a frozen LVLM (like Qwen2.5-VL) to extract multi-modal tokens. A novel SoftROI Embedder applies boundary-aware pooling to map these tokens into robust, layout-aware block embeddings.
  3. Global Document Dependency Parsing: Instead of asking an LLM to generate a hierarchy textually, M3DocDep uses a Biaffine Dependency Scoring Head to score candidate parent-child edges between blocks. A Maximum Spanning Tree (MST) decoder then resolves these scores into a globally valid, acyclic document tree.
  4. Structure-Aware Dependency Chunking: The pipeline deterministically traverses the decoded tree to assemble chunks. It groups section subtrees and forces visually bound elements (like figures and captions) to stay in the same chunk, annotating each with its section path and page range.
Figure 1. Overview of M3DOCDEP. (a) SharedDet (DP+OCR) converts multi-page documents into Global Document Blocks V. (b) A frozen LVLM with SoftROI pooling produces multi-modal block embeddings ei. (c) A biaffine scorer and MST decoder recover a global document dependency tree T . (d) Structure-Aware Dependency Chunking deterministically converts T into chunks C with section paths and page spans.

Datasets

The authors evaluated M3DocDep across two distinct tasks:

  • Document Hierarchical Parsing (DHP): Evaluated on DocHieNet, HRDH, and HRDS to measure how well the model reconstructs document trees.
  • RAG-based Visual Question Answering (VQA): Evaluated on corpus-level benchmarks including DUDE, MP-DocVQA, CUAD, and MOAMOB to measure downstream RAG performance.

Key Insights and Ideas

  • Dependency Before Chunking: The core philosophy is that better block dependency recovery leads to a better document tree, which naturally yields cleaner chunk boundaries.
  • Graph Decoding over Autoregression: Standard LLMs often fail to generate valid tree structures autoregressively due to long-range context limits and a lack of structural constraints. Switching to edge-wise biaffine scoring combined with classic MST decoding guarantees a single-rooted, acyclic tree.
  • Visual Cues Matter: Pure text conversion strips away color, font size, and typographic emphasis. Retaining the multi-modal representations from the LVLM is crucial for identifying headers and structural transitions.

Key Results

M3DocDep achieved state-of-the-art performance across the board:

  • Hierarchy Reconstruction: On DHP datasets, it outperformed prior tree-aware models and general-purpose LVLMs, improving tree reconstruction scores (STEDS) by +28.5% to 39.6%.
  • Retrieval & QA Quality: Under a strict shared evaluation protocol (same blocks, same chunk budget), M3DocDep improved retrieval nDCG by +1.1% to 15.3% and downstream QA accuracy (ANLS) by +4.5% to 15.3%.
Figure 2. End-to-end qualitative example of M3DOCDEP. (a) A 5-page industrial document is input. (b) The recovered dependency subtree (cropped from full tree T ): 1:title →17:section-title →19:figure →20:figure-caption shows the figure– caption binding under the governing section. (c) Structure-aware chunking emits a chunk that keeps the figure crop and its caption together, annotated with the section path and page span. The full tree and additional examples are in the Supplementary.

As shown in the qualitative example above, M3DocDep successfully binds a figure on one page to its caption under the correct section path, creating a highly coherent retrieval unit.

Limitations and Future Work

While highly effective, M3DocDep relies on a multi-stage pipeline with a frozen LVLM, which introduces significant computational overhead per page. The authors note that future work will focus on:

  1. Jointly training the LVLM backbone and the dependency head rather than keeping the LVLM frozen.
  2. Developing lower-cost supervision methods for tree induction at scale.
  3. Creating lighter-weight variants optimized for latency-sensitive industrial deployments.

Summary updated

BibTeX
@inproceedings{shin2026m,
  author = {Joongmin Shin and Jeongbae Park and Jaehyung Seo and Heuiseok Lim},
  title = {{M3DocDep: Multi-modal, Multi-page, Multi-document Dependency Chunking with Large Vision-Language Models}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=ncE1zL2mAm},
}
Figure