Skip to content
AI-generated research idea🟠Medium🔬Significant ResearchNo close match found

Hierarchical Sparse Cross-Page Routing for Non-Adjacent Evidence and Retrieval-Selected Pages

Combine local three-page visual token attention with sparse global page-summary routing so document models connect non-adjacent pages and retrieval subsets.

Time

a couple of months

Compute level

Multiple GPUs

Resources

8 GPUs (consistent with the paper's Stage A/B training) and LongDocURL, MMLongBench-Doc, and MP-DocStruct1M

What the paper used

Qwen3.5-9B backbone; Stage A on 8 GPUs (500 steps, batch size 64); Stage B for 2 epochs (batch size 64); DocSEAM adds <7% forward-pass FLOPs and ~8% wall-clock latency on 20-page documents.

Prerequisites

transformer architectures, sparse or hierarchical attention mechanisms, retrieval-augmented document VQA

Scope

new attention routing branch inside DocSEAM module and Stage A/B retraining

The Gap

DocSEAM forms a rigid three-page triplet (p-1, p, p+1) for every page (Section 3.1) and uses L=2 layers because 4 layers regress due to over-smoothing (Appendix F). On LongDocURL stratified by evidence topology (Table 5), DocSEAM improves adjacent two-page questions by +11.5 points over zero-shot (69.5 vs. 58.0) whereas non-adjacent-only questions improve by only +5.9 points (54.7 vs. 48.8), and retrieval-augmented workflows that select non-contiguous top-k pages violate the consecutive-neighbor assumption.

“Single-page questions show moderate gains (+5.5 over Baseline, +15.5 over SFT), while non-adjacent questions improve modestly (+5.9 over Baseline, +14.7 over SFT), consistent with the local window providing less direct benefit for distant evidence.”
From the paper, Appendix D, page 15. Matched against the PDF text.

Limitation

Restricting visual token interaction to immediate adjacent neighbors prevents visual features from linking long-range cross-page references (such as text citing a chart or table several pages away) and makes the module incompatible with sparse retrieval-selected page sets where pages p-1 and p+1 may not be contiguous.

Proposed Solution

Extend DocSEAM into a local-plus-global cross-page encoder: retain center-anchored dense triplet attention for contiguous pages, and extract a small set of salient summary tokens per page (e.g., via top-k directional gate pooling or learned cross-attention pooling) across all pages in the document or retrieved subset. Allow each center page's visual tokens to cross-attend to this global pool of compressed page-summary tokens with a learned page-distance bias, enabling O(P) visual-level linking across non-adjacent pages while preserving the output visual token count.

Why This Matters

Enabling visual-level interaction across non-adjacent pages and retrieved top-k subsets could substantially improve performance on long multi-hop documents and unify post-encoder enrichment with RAG-based document pipelines.

How to Get Started

How to test it: Test the hypothesis that adding global compressed page-summary tokens to DocSEAM improves non-adjacent multi-page reasoning without hurting adjacent-page gains or exceeding 10% inference overhead. Evaluate on LongDocURL's non-adjacent-only subset (beating 54.7%) and a retrieval-filtered top-k setting on MMLongBench-Doc against standard DocSEAM, stopping if non-adjacent accuracy fails to gain >=2.5 points or adjacent accuracy drops.

  1. Partition LongDocURL and MMLongBench-Doc questions into adjacent, non-adjacent, and retrieval-filtered top-k evaluation splits to establish baseline scores with standard DocSEAM.
  2. Implement a lightweight per-page token pooler (selecting top-m tokens per page via learned scoring) and add a sparse global cross-attention branch inside each DocSEAM layer.
  3. Augment Stage A with non-adjacent figure/table-to-text reference pairs from MP-DocStruct1M or LongDocURL-style synthetic pairs alongside the 74k adjacent boundary tasks.
  4. Train Stage A and Stage B on Qwen3.5-9B and evaluate stratified LongDocURL accuracy and wall-clock latency on 20-page documents.

Code linked to this paper on Hugging Face: github.com/mossbee/DocSEAM

Suggested by AI. Adapt it to your setup.

Has This Been Done?

No close match in 10 results

None of the listed papers present a local-plus-global cross-page encoder with center-anchored dense triplet attention combined with compressed page-summary token cross-attention and learned distance bias. Works like HierDoc explore hierarchical region routing, but do not implement this exact hierarchical sparse cross-page routing mechanism.

We searched OpenAlex and arXiv for “non-adjacent cross-page visual token attention long document VQA” and “Hierarchical Sparse Cross-Page Routing for Non-Adjacent Evidence and Retrieval-Selected Pages” and an AI compared the idea with the top 10 results. A small search can miss relevant work.

Source Paper

DocSEAM: Bidirectional Cross-Page Encoding for Multi-Page Document Understanding

Hoang-Nhat Nguyen, Chen Change Loy · 2026

This paper addresses pagination sensitivity and feature-level discontinuity in multi-page document vision-language models (VLMs), which typically encode each page in isolation before passing visual tokens to the language model. The authors propose DocSEAM, a lightweight post-encoder module trained in two stages that enriches each page's visual tokens with bidirectional context from adjacent pages, achieving state-of-the-art results among open-weight models up to 10B parameters across five multi-page document VQA benchmarks while reducing sensitivity to where page breaks fall.

Related Ideas

Is this a good idea?

Share onXLinkedIn