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
Compute level
Resources
What the paper used
Prerequisites
Scope
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.”
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.
- Partition LongDocURL and MMLongBench-Doc questions into adjacent, non-adjacent, and retrieval-filtered top-k evaluation splits to establish baseline scores with standard DocSEAM.
- 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.
- 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.
- 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?
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 UnderstandingHoang-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
- Evaluating and Training Long-Horizon Parsers on Real Cross-Page Structural DependenciesUnlimited OCR Works🟡Fairly easy
- Long-Context Hierarchical Heads and Retrieval Wrappers for Fixed-Length Pretrained ModelsHuggingFace's Transformers: State-of-the-art Natural Language Processing🟡Fairly easy
- Dynamic Working-Memory Pruning for Search Agents to Overcome Reinforcement Learning SaturationK2-Horizon: A Frontier Fleet of Open Source Language Models🟡Fairly easy
- Semantic Compressive Memory for Long-Horizon ContextMiroThinker: Pushing the Performance Boundaries of Open-Source Research Agents via Model, Context, and Interactive Scaling🟠Medium
- Importance-Weighted Semantic Memory Compaction for Ultra-Long Horizon TasksGamer: A Generalist Vision-Language-Action Foundation Model for Long-Horizon Real-Time Game Agent🟡Fairly easy