Eliminating Post-Encoder Representation Leakage for Self-Supervised Cross-Page Pre-Training
Replace supervised boundary labels with pixel-masked cross-page latent prediction so post-encoder cross-page adapters learn without same-page representation shortcuts or manual annotations.
Time
Compute level
Resources
What the paper used
Prerequisites
Scope
The Gap
In Stage A (Section 3.4 and Appendix A), DocSEAM is warmed up on 74k supervised cross-page parsing and lookup examples from MP-DocStruct1M while keeping the vision encoder and LLM frozen. When the authors tested self-supervised boundary reconstruction by masking post-encoder visual tokens near margins, performance dropped sharply from 58.3/62.9 to 47.3/48.9 on MMLongBench-Doc/LongDocURL (Table 7) and receive gates collapsed near zero (Figure 5).
“Self-supervised boundary reconstruction was discarded as it led to gate collapse: global self-attention within each page allows masked tokens to be reconstructed without cross-page context (Appendix I).”
Limitation
Because the frozen NaViT/ViT vision tower applies global intra-page self-attention across all patches of a page, interior tokens leak context into boundary visual tokens prior to DocSEAM. This post-encoder representation leakage lets the module reconstruct masked boundary features from the same page without attending to neighbors, forcing Stage A to depend on labeled cross-page datasets.
Proposed Solution
Replace post-encoder feature reconstruction with a shortcut-free cross-page self-supervised objective: either mask the top or bottom 20% ink bands at the input pixel level before running the frozen vision encoder so boundary tokens cannot absorb same-page cues, or adopt a JEPA-style cross-page predictive loss where bottom-frontier tokens of page p must predict stop-gradient representations of top-frontier tokens on page p+1 via InfoNCE or cosine regression. Pair this with the existing weak geometric frontier and margin regularizers in Stage A so directional gates stay active without requiring MP-DocStruct1M cross-page text annotations.
Why This Matters
If successful, this could eliminate the need for large-scale supervised cross-page span annotations and allow DocSEAM-style adapters to pre-train on arbitrary unlabeled multi-page PDF corpora across languages and domains.
How to Get Started
How to test it: Test the hypothesis that input-pixel boundary masking or cross-page JEPA prediction prevents receive-gate collapse and matches supervised Stage A accuracy. Compare against the paper's post-encoder boundary reconstruction (47.3%/48.9%) and supervised Stage A (58.3%/62.9%) on MMLongBench-Doc and LongDocURL, stopping if mean directional gate asymmetry drops below 2.0x or downstream accuracy fails to surpass the no-Stage-A baseline (52.7%/56.1%).
- Reproduce the Qwen3.5-9B Stage A and Stage B pipeline on MP-DocStruct1M and the Stage B VQA mixture, verifying the supervised baseline scores on MMLongBench-Doc and LongDocURL.
- Implement input-image pixel masking of the top and bottom 20% ink bands prior to the frozen vision encoder so masked boundary visual tokens contain no leaked interior page features.
- Implement a cross-page stop-gradient predictive loss (InfoNCE between bottom-frontier tokens of page p and top-frontier tokens of page p+1) alongside the existing L_gate regularizer.
- Run 500-step Stage A pre-training followed by identical Stage B LoRA fine-tuning, measuring gate activation asymmetry as in Table 13 and VQA accuracy against Table 7 controls.
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 cover cross-page self-supervised pre-training objectives for vision encoders with pixel-level masking or JEPA-style predictions designed to eliminate post-encoder representation leakage. Works like LinkBERT or ColPali explore document-level modeling or retrieval, but do not address this specific self-supervised mechanism.
We searched OpenAlex and arXiv for “self-supervised cross-page pretraining document vision-language model boundary” and “Eliminating Post-Encoder Representation Leakage for Self-Supervised Cross-Page Pre-Training” 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
- Learned Dynamic Prefill Chunk Fetching for Unbounded Multi-Page Document ParsingUnlimited OCR Works🔴Hard
- Evaluating and Training Long-Horizon Parsers on Real Cross-Page Structural DependenciesUnlimited OCR Works🟡Fairly easy
- Cached Depth-Cluster Indexing and Adaptive Traversal Horizons for Low-Overhead Volumetric SupervisionThe Mask Is Not the Object: Volumetric Supervision for 3D Gaussian Segmentation🟡Fairly easy
- Adaptive Coarse-to-Fine Visual Token Allocation for Multi-Page Dense Small-Text RecognitionUnlimited OCR Works🟠Medium
- Joint Vision-Language Adaptation with Auxiliary 3D Geometric Supervision for Spatial GUI AgentsTuringSpace: Grounding Spatial Intelligence in Action with Interactive CAPTCHAs🟠Medium