Patch4Patch: Restoring Structural Connectivity in Patch-based Vision Encoders

Yaqi Zhang, Shuntian Yao, Niantai Qu, Runguo Chen, Hanyu Lai, Ningxin Su, Li Sun, Sen SuNeurIPS 2026

TL;DR

Modern Multimodal Large Language Models (MLLMs) chop high-resolution images into isolated grids to save compute, inadvertently slicing table rows and chart axes in half. Because these visual sub-regions can't talk to each other, simply changing a table's cell padding can wildly swing a model's accuracy. Patch-for-Patch (P4P) fixes this by dynamically electing a sparse handful of "anchor" tokens to pass notes across grid boundaries—restoring structural continuity without the crippling cost of full global attention.

What Problem Does This Paper Address?

Look at a spreadsheet, adjust the font size slightly, and read it again. To you, nothing meaningful changed. To a modern vision-language model, everything might have just broken.

To process high-resolution images without triggering the $O(L^2)$ quadratic compute explosion of standard Vision Transformer self-attention, mainstream MLLMs rely on spatial decomposition. Whether they use local attention windows (Qwen2.5-VL), image slicing (MiniCPM-V), or dynamic tiling (InternVL3.5), the core trick is the same: chop the image into discrete partitions and compute attention strictly inside each box.

For natural photos, local context is usually plenty—a dog's ear rarely needs to attend directly to a distant tree. For structured documents like tables and charts, however, this creates structural fragmentation.

Illustration of how partitioning severs logical rows in a table.

When a table row spans multiple partitions, cells that logically belong together are severed into non-communicating silos. The authors demonstrate that if you take the exact same table and render it at five different spatial densities (varying only padding and font size), model accuracy fluctuates by over 7 percentage points in Qwen2.5-VL and InternVL3.5. They dub this layout sensitivity.

Methods

Instead of ripping out efficient partition-based encoders, the authors introduce Patch-for-Patch (P4P), a lightweight, plug-and-play module that acts as a parallel communication bridge while leaving standard local attention untouched.

Figure 1: Overview of P4P. (a) The P4P framework operates in three steps: Anchor Detection iden- tifies structurally important tokens as bridging anchors h; Bidirectional Cross-Attention enables two-way communication between anchors h and anchors after WA g; Progressive Gated Fusion controls how much cross-partition information is injected back into the original feature map. (b) Ac- curacy (%) comparison across three architectures and benchmarks against cross-partition baselines Shifted Window Attention (SWA) and SliceRestore Adapter (SRA).

P4P operates in three steps:

  1. Bridging Anchor Detection: A tiny neural detector (a linear layer or 2-layer MLP) scores visual tokens on their "structural saliency." For window-based models (Qwen), it selects top-scoring tokens near window edges; for slice/tile models (MiniCPM, InternVL), it picks the top-$K$ salient tokens globally. Remarkably, this requires no special labels—it learns purely from the standard language-modeling loss.
  2. Cross-Partition Attention: Only this sparse set of anchors communicates across partitions. Depending on the backbone's native design, anchors either exchange context via bidirectional cross-attention with a global summary (Qwen, MiniCPM) or talk directly via peer-to-peer self-attention across all concatenated tiles (InternVL).
  3. Progressive Gated Fusion: Enhanced anchor features are blended back into the original feature map via a learned gate initialized near zero. Because P4P starts life as an identity operation, it gently weaves in cross-partition cues only where helpful, protecting pre-trained local representations.

Datasets

To avoid training-data leakage, the authors evaluate on three structured-content benchmarks released after June 2025:

  • TReB and TableEval (covering diverse English and Chinese tables).
  • ChartQAPro, tested out-of-distribution to check if table-trained models generalize to complex charts.
  • General Multimodal Benchmarks: MMBench v1.1, MMStar, and MME to ensure fine-tuning doesn't cause catastrophic forgetting on everyday visual tasks.

(Note: Specific fine-tuning training datasets are deferred to Appendix D, which is not included in the main text.)

Key Insights and Ideas

  • Unconditional mixing breaks pre-trained vision encoders: You might wonder why we don't just shift windows (like Swin Transformer's SWA) or stitch slices back together with convolutions (SliceRestore Adapter, SRA). When tested, both SWA and SRA severely degraded performance—sometimes dropping accuracy up to 16% below the untuned base model! Forcing partitions to mix unconditionally scrambles delicate pre-trained local features. P4P succeeds because it is sparse, parallel, and softly gated.
  • Emergent structural tracking: Without any explicit supervision telling it what a "line" or "border" is, P4P's anchor detector learns to trace geometry. By the deepest network layers, anchors automatically snap into neat grid lines along row/column dividers for tables, while hugging curve boundaries and inflection points on charts.
  • More data doesn't fix broken geometry: Standard Supervised Fine-Tuning (Direct SFT) on identical domain data boosts raw accuracy, yet leaves layout sensitivity virtually unchanged. The bottleneck isn't a lack of domain knowledge—it's a physical blind spot in the architecture.

Key Results

Tested across Qwen2.5-VL-7B, MiniCPM-V-4.5, and InternVL3.5-8B, P4P consistently beats Base models, Direct SFT, and cross-partition baselines:

  • Table Parsing: Boosts TableEval accuracy by +9.19% over Direct SFT on Qwen2.5-VL (41.52% $\rightarrow$ 50.71%), and pushes InternVL3.5-8B to 53.61%.
  • Chart Reasoning: Generalizes out-of-distribution to ChartQAPro, shining brightest on multi-step spatial reasoning tasks (e.g., Qwen's Hypothetical score jumps from 37.80% with SFT to 42.88% with P4P).
  • Layout Robustness: Dramatically flattens performance swings across Compact-to-Relaxed table renderings. On MiniCPM-V, maximum layout fluctuation drops by 67% (from 4.41 points down to 1.47).
Figure 3: Layout robustness analysis. Performance fluctuation (Accuracy %) across layout den- sities (Compact to Relaxed) on 500 sampled TReB cases. Max Diff and Avg Diff measure the maximum and the average absolute performance difference between all pairs of layouts — lower values indicate stronger layout invariance.
  • Efficiency: Because it operates on sparse anchors via cross-attention, P4P is 17.5% faster during training than a naive concatenated self-attention ablation, adding only a ~6% speed overhead for its dynamic MLP gate.

Limitations and Future Work

  • Minor general-domain trade-offs: After fine-tuning on table tasks, both Direct SFT and P4P exhibit slight performance dips on some general multimodal metrics relative to the off-the-shelf Base models (though P4P largely preserves or slightly improves upon Direct SFT).
  • Broader architectural limitations or future research directions are not explicitly discussed in the main body of the paper.

Summary updated

Abstract

As Multimodal Large Language Models (MLLMs) continue to advance and find increasingly broad applications, a key challenge persists: the patch-based vision paradigms widely adopted by MLLMs inevitably introduce structural fragmentation when processing information-dense images such as tables and charts. Specifically, when a table row or chart axis spans multiple visual partitions, the lack of cross-partition communication causes the model to lose track of structural continuity, leading to performance fluctuations when layout changes --- a problem we term layout sensitivity. To address this fundamental limitation, we propose Patch-for-Patch (P4P), a lightweight module that can be plugged into existing patch-based vision encoders. P4P dynamically selects a sparse set of tokens as bridging anchors and uses them to establish cross-partition communication through bidirectional attention. Combined with a gated fusion strategy, P4P restores global structural coherence without the quadratic cost of global attention. Extensive experiments across Qwen2.5-VL, MiniCPM-V, and InternVL3.5 demonstrate that P4P consistently improves structured content visual understanding, notably boosting TableEval accuracy by up to 9.19\% and significantly reducing layout sensitivity.
BibTeX
@inproceedings{zhang2026patch,
  author = {Yaqi Zhang and Shuntian Yao and Niantai Qu and Runguo Chen and Hanyu Lai and Ningxin Su and Li Sun and Sen Su},
  title = {{Patch4Patch: Restoring Structural Connectivity in Patch-based Vision Encoders}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=CenzhX8Go9},
}
Figure