NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DuCo: Exploiting Dual Cross-Layer Consistency for Sparse Geometric Attention

Liangyu Xiang, Junyu Gao, Xiaofeng Wang, Changsheng XuarXiv 2026

TL;DR

Reconstructing 3D worlds from hundreds of 2D images in a single pass usually grinds GPUs to a halt because every image patch tries to talk to every other patch. DuCo breaks this quadratic bottleneck without requiring a single step of retraining. By noticing that consecutive Transformer layers largely pay attention to the same things and group visual features in nearly identical ways, DuCo recycles calculations across layers to deliver over 5× faster 3D reconstructions while preserving—and occasionally improving—geometric accuracy.

What Problem Does This Paper Address?

Modern "visual geometry foundation models" (like VGGT and $\pi^3$) can look at a pile of uncalibrated photos and instantly predict camera poses and 3D point clouds in one feed-forward pass. Their secret sauce is dense global self-attention, which lets tokens from all images compare notes to figure out 3D geometry. The catch? Global attention scales quadratically with token count. Feed the model 1,000 video frames, and your GPU either stalls or runs out of memory (OOM).

Existing sparse attention fixes try to trim the fat by keeping only high-probability attention entries, evaluating each layer from scratch. This misses two major opportunities:

  1. Value Redundancy: Self-attention computes a probability-weighted sum of values. If ten patches on a blank wall have high attention scores, attending to all ten is wasteful if their value vectors say the exact same thing.
  2. Layer Amnesia: Treating every layer independently ignores the rich structural work the previous layer just finished computing.

Methods

DuCo (Dual Cross-Layer Consistency) is a training-free drop-in module that sparsifies global attention (retaining just 10% of entries) by passing "historical priors" from one layer to the next.

Figure 2. Overview of DuCo. Historical attention information and value clusters from the preceding global attention layer guide current- layer dense attention probability estimation and local cluster refinement. The resulting probabilities and clusters are jointly used to optimize cluster representation states based on probability-weighted value distortion, constructing sparse attention masks. Updated attention infor- mation and value clusters are propagated to subsequent layers as historical priors.

It works in three coordinated steps:

  • History-Guided Probability Estimation: You can't blindly reuse sparse attention scores from layer $\ell-1$ because missing entries skew the softmax denominator, and attention shifts slightly as depth increases. DuCo groups keys into coarse regions (256 keys each) to approximate unobserved logits, and computes a cross-layer consistency score to blend historical fine-grained probabilities with current regional estimates.
  • Local Refinement of Value Clusters: Instead of clustering value vectors from scratch at every layer to find redundant tokens, DuCo inherits the previous layer's clusters. Because token features evolve smoothly, it only checks if tokens want to jump to neighboring clusters—a cheap local update.
  • Budget-Constrained State Optimization: Armed with estimated probabilities and value clusters, DuCo plays an economic game. Under a strict compute budget (10% retention), it assigns each cluster one of four states to minimize probability-weighted value distortion: Drop (ignore all), Representative (keep just one central token), History (keep the representative plus previously evaluated tokens), or Exact (keep everything). It finds the optimal mix via a fast bisection search over a shared resource price.

Datasets

Because DuCo is training-free, no training datasets are used. It is evaluated across five standard 3D vision benchmarks:

  • ScanNet (50 test sequences): Tested on densely sampled long sequences of 100, 300, 500, and 1,000 frames.
  • 7Scenes, ETH3D, NRGBD, and DTU: Tested under sparsely sampled multi-view settings (up to 128 frames). No new benchmarks are introduced.

Key Insights and Ideas

Dual cross-layer consistency in VGGT

Dual cross-layer consistency in VGGT
  • Dual Cross-Layer Consistency: Because all layers are ultimately reasoning about the same underlying 3D scene geometry, consecutive layers exhibit remarkable stability. High-probability attention entries heavily overlap from layer to layer, and when value tokens change clusters, 70.78% of those transitions simply hop to an immediate neighboring cluster.
  • Probabilities Alone Are Half the Story: In ablations, switching from standard top-probability selection to value-aware cluster states boosts pose estimation (AUC@3) from 11.18 to 19.76. Summarizing redundant background patches with a single representative frees up the attention budget for intricate geometric details.
  • Query-Independent Math Saves Time: While attention probabilities change for every query, how much a value vector deviates from its cluster center does not. DuCo precomputes value distortions once per layer and shares them across queries, keeping algorithmic overhead tiny.

Key Results

Tested on a single NVIDIA H800 GPU across three backbones (VGGT, $\pi^3$, and VGGT-$\Omega$):

  • Major Speedups without OOMs: At 1,000 frames on ScanNet, DuCo accelerates VGGT by 5.26×, $\pi^3$ by 5.51×, and VGGT-$\Omega$ by 4.47×, whereas competing sparse attention baselines (SparseVGGT and SAF3R) crash with OOM errors. At 500 frames on VGGT, end-to-end latency drops from 91.43s to 20.17s (4.53× speedup).
Inference latency and overhead breakdown
  • Preserved (or Better) Geometry: On 1,000-frame ScanNet with VGGT, DuCo matches dense pose accuracy (74.12 vs. 74.08 AUC@30) and actually improves point-cloud Chamfer Distance from 0.284 to 0.279. On 7Scenes (128 views), full DuCo beats dense VGGT on both pose AUC@3 (20.68 vs. 20.32) and Chamfer Distance (0.137 vs. 0.140) while cutting runtime from 7.97s to 2.69s.

Limitations and Future Work

  • Architectural Gaps Weaken Priors: In models like VGGT-$\Omega$, where some global attention layers are replaced by register-only layers, the larger gap between consecutive global layers makes historical priors slightly less reliable (causing a minor Chamfer Distance bump from 0.367 to 0.384 at 1,000 frames) and leaves fewer layers to accelerate.
  • Growing Optimization Overhead: Profiling reveals that as sequence lengths grow from 100 to 500 frames, the share of overhead spent on cluster-state optimization expands noticeably due to the sheer number of cluster-state decisions.
  • Dataset Sensitivity: Under sparse views on NRGBD, a noticeable pose accuracy gap remains compared to dense VGGT (52.19 vs. 58.20 AUC@3). (Note: Explicit directions for future work are not discussed in the paper.)

Summary updated

BibTeX
@misc{xiang2026duco,
  author = {Liangyu Xiang and Junyu Gao and Xiaofeng Wang and Changsheng Xu},
  title = {{DuCo: Exploiting Dual Cross-Layer Consistency for Sparse Geometric Attention}},
  year = {2026},
  eprint = {2611.34608},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.34608},
}
Figure