Skip to content
AI-generated research idea🟠Medium💡Moderate InnovationNo close match found

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

several weeks

Compute level

Multiple GPUs

Resources

8 GPUs (consistent with the paper's Stage A training) and unlabeled multi-page PDF images or MP-DocStruct1M page images without boundary labels

What the paper used

Qwen3.5-9B primary backbone (plus 4B and 7B variants); Stage A trained on 8 GPUs (gradient accumulation 8, batch size 64) for 500 steps on 74k MP-DocStruct1M examples; Stage B trained with batch size 64 for 2 epochs on MP-DocVQA, DUDE, SlideVQA, and MP-Docreason51K.

Prerequisites

vision-language models, self-supervised representation learning (contrastive and JEPA objectives), transformer attention masking

Scope

modify existing Stage A training pipeline and loss function

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).”
From the paper, Section 3.4, page 6. Matched against the PDF text.

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%).

  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.
  2. 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.
  3. 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.
  4. 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?

No close match in 10 results

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 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