VGGT-Prime

Compute-Adaptive Mixture-of-Heads
for Efficient Visual Geometry Transformers

Abteen Arab1,2,* Guile Wu1 Chengjie Huang1 Dongfeng Bai1

1Huawei Noah’s Ark Lab2University of British Columbia

*Abteen Arab contributed to this work during an internship at Huawei Canada.

VGGT-Prime reconstructs a resampled 1,000-image Mount Rushmore sequence in 45.2 seconds. Charts compare ScanNet-500 Chamfer Distance versus runtime and inference scaling from 100 to 1,000 frames.
Efficient geometry, from attention heads to long sequences. VGGT-Prime reconstructs a 1,000-view sequence formed by resampling the Mount Rushmore photo-tourism image set (left). The charts show point-cloud quality versus runtime on ScanNet-500 (top right) and inference scaling with and without token merging (bottom right).

Abstract

Feed-forward visual geometry models such as the Visual Geometry Grounded Transformer (VGGT) have recently enabled direct 3D reconstruction from multi-view images. Despite their promising performance, these models scale quadratically with the number of input views due to their global attention mechanism, resulting in substantial latency for long sequence inputs. There have been some recent efforts to accelerate VGGT, but they primarily focus on reducing token redundancy through token merging or key/value sparsification. Our work resolves this bottleneck from a different perspective by investigating architectural redundancy in visual geometry transformers.

We show that the multi-head attention modules in VGGT’s global-attention layers contain substantial architectural redundancy, with only a subset of heads carrying critical geometric information. In light of this observation, we propose VGGT-Prime, a compute-adaptive mixture-of-heads model that resolves this redundancy to accelerate visual geometry transformers while maintaining competitive reconstruction quality. The key idea of VGGT-Prime is to estimate the appropriate computation level for each global-attention head using a lightweight router and then dynamically assign each head to different computation modes, including mean pooling approximation, linear complexity surrogate attention, or exact softmax attention.

Extensive experiments on multiple datasets demonstrate that VGGT-Prime can achieve an 8× inference speedup over VGGT while maintaining competitive performance on camera pose, depth, and point-cloud predictions. We further show that VGGT-Prime is complementary to existing acceleration methods, such as token merging, further improving inference speed by up to 14× over VGGT.

Key Takeaways

  • A new axis of efficiency.
    Address architectural redundancy by adapting the computation of individual attention heads.

  • The right computation for each head.
    A lightweight router selects mean pooling, learned surrogate attention, or exact attention.

  • Up to faster inference.
    Scale to 1,000-frame inputs while maintaining competitive reconstruction quality.

  • Complementary to token merging.
    Combine both approaches for up to 13.8× speedup in the scaling experiment.

Architectural Redundancy

VGGT’s global-attention modules contain 384 heads across 24 layers. Their contributions to geometry are far from uniform: a small subset carries the most important information. This creates an opportunity to allocate computation according to each head’s role.

Integrated-gradient and maximum-attention heatmaps show sparse saliency across 24 layers and 16 heads. Saliency-guided head retention outperforms random selection, and the two importance rankings are strongly correlated.
Attention heads have different importance. Both saliency measures reveal sparse, heterogeneous patterns (left). Retaining heads according to saliency preserves pose performance better than random selection (center; Top-K heads kept). The rankings agree strongly, with Spearman ρ = 0.741 (right).

Different heads, different attention patterns

High-saliency heads produce focused, query-dependent attention. Medium-saliency heads share selective patterns across queries, while low-saliency heads distribute attention almost uniformly. These patterns motivate three levels of computation.

Attention maps from high-, medium-, and low-saliency heads become progressively more diffuse. Across 384 ranked heads, attention entropy increases and query diversity decreases as saliency falls.
Saliency reveals a computational hierarchy. The example maps use within-layer ranks 1, 8, and 16 in layer 15, with five queries attending to the first view (left). The entropy and query-diversity plots rank all 384 global-attention heads (center and right).

Compute-adaptive mixture-of-heads

A lightweight, input-dependent router estimates head saliency and selects the appropriate computation mode for each global-attention head:

  1. Mean pooling approximates diffuse, low-saliency attention.
  2. Learned surrogate attention approximates selective, largely shared attention with linear complexity. A pooled context and a token-dependent residual correction preserve useful variation.
  3. Exact softmax attention preserves the focused, query-dependent interactions of highly salient heads.
VGGT-Prime replaces global attention with a routed mixture of full attention, surrogate attention, and mean pooling. Detail panels show the saliency router and the surrogate’s pooled context and token-wise residual correction.
Spend computation where geometry needs it. Prime adapts the computation of global-attention heads while retaining the surrounding VGGT pipeline. With the selected routing thresholds, more than 90% of heads use the cheaper mean-pooling or surrogate paths. Token merging can be applied alongside this mechanism.

Reconstruction Quality and Efficiency

VGGT-Prime maintains competitive reconstruction quality while reducing inference time. On ScanNet with 500 frames, it reduces runtime from 90.1 s to 19.2 s with comparable Chamfer Distance. On dense 7-Scenes, it matches VGGT’s reported CD; on ETH3D, it achieves the best CD among these methods.

7-Scenes Sparse

MethodCD ↓Time (s) ↓Speedup ↑
VGGT0.1184.51.00×
FastVGGT0.1092.71.67×
SparseVGGT0.1342.61.73×
HTTM0.1213.81.18×
HeSS0.1262.81.61×
VGGT-Prime0.1211.92.37×

7-Scenes Dense

MethodCD ↓Time (s) ↓Speedup ↑
VGGT0.11538.11.00×
FastVGGT0.11514.22.68×
SparseVGGT0.13916.22.35×
HTTM0.11712.13.15×
HeSS0.16818.42.07×
VGGT-Prime0.1159.83.89×

ScanNet 100

MethodCD ↓Time (s) ↓Speedup ↑
VGGT0.4214.91.00×
FastVGGT0.4162.81.75×
SparseVGGT0.4252.61.88×
HTTM0.4204.01.23×
HeSS0.4182.91.69×
VGGT-Prime0.4222.02.45×

ScanNet 500

MethodCD ↓Time (s) ↓Speedup ↑
VGGT0.44290.11.00×
FastVGGT0.43728.43.17×
SparseVGGT0.44134.22.63×
HTTM0.43322.83.95×
HeSS0.43537.42.41×
VGGT-Prime0.44119.24.69×

ETH3D

MethodCD ↓Time (s) ↓Speedup ↑
VGGT1.070.391.00×
FastVGGT1.240.420.93×
SparseVGGT1.890.510.76×
HTTM1.410.730.53×
HeSS1.670.570.68×
VGGT-Prime0.990.381.03×

Reading the tables. Summed Chamfer Distance (CD ↓); lower is better. Speedup is VGGT runtime divided by each method’s runtime, calculated from the reported values and rounded to two decimals. Bold denotes the lowest runtime within each dataset, including ties; plum shading identifies VGGT-Prime.

Evaluation. Timings measure synchronized full-model inference, including the encoder, aggregator, and prediction heads, using the median after three warmup iterations. All methods use the same hardware and input resolution, BF16, and batch size 1. The VGGT baseline uses the accelerated implementation introduced by MapAnything. HTTM and HeSS are PyTorch reimplementations.

Backbones and Scaling with Token Merging

Across visual geometry backbones

Prime also applies to VGGT-Ω, π³, and Depth Anything 3 (DA3). On sparse 7-Scenes, the Prime variants preserve the reported CD while providing approximately 2× faster inference.

BackboneCD ↓Time (s) ↓Speedup ↑
Baseline+ PrimeBaseline+ Prime
VGGT-Ω0.100.102.91.61.81×
π³0.110.113.31.52.20×
DA30.100.103.51.52.33×

Sparse 7-Scenes evaluation. Speedup is relative to each original backbone, calculated from the reported runtimes. The teaser’s backbone plot reports a separate ScanNet-500 evaluation.

Architectural efficiency meets token efficiency

Prime adapts how attention heads compute; token merging reduces token redundancy. Combining the two improves long-sequence scaling further. At 1,000 frames, the reported speedup over VGGT rises from 8.0× for Prime to 11.2× and 13.8× with 75% and 90% token-merging ratios, respectively.

VGGT-Prime
8.0×
Prime + ToMe, 75%
11.2×
Prime + ToMe, 90%
13.8×
Full forward-pass runtime on ScanNet for 100, 300, 500, and 1,000 frames. At 1,000 frames, Prime is 8.0× faster than VGGT; adding 75% and 90% token merging yields 11.2× and 13.8× speedups.
Complementary gains as sequence length grows. Full forward-pass runtime across increasing view counts on ScanNet. All annotated speedups are relative to VGGT. ToMe labels indicate token-merging ratios; the 13.8× result is the nearly 14× speedup summarized in the abstract.

BibTeX

If you find this work useful, please cite our paper:

@article{arab2026vggtprime,
  title   = {{VGGT-Prime}: Compute-Adaptive Mixture-of-Heads for Efficient Visual Geometry Transformers},
  author  = {Arab, Abteen and Wu, Guile and Huang, Chengjie and Bai, Dongfeng},
  journal = {arXiv preprint (forthcoming)},
  year    = {2026}
}