iRaven

Paper · Open models · Version v1

MosaicAttention: Dual-Pooled Sparse Attention for Accelerating Multi-View 3D Geometry Transformers

First published: arXiv, . Original

Copyright the authors. Licensed under Creative Commons Attribution 4.0 International.

This page holds the text of the paper, converted to HTML; figures may be left out.

Feed-forward multi-view geometry Transformers estimate camera poses and scene geometry from input images in a single forward pass, leveraging global attention to integrate information across views. However, the quadratic computational complexity of global attention poses a substantial bottleneck for long-sequence inference. Block-sparse attention naturally alleviates this computational burden by reducing the number of attention interactions. Existing approaches often flatten visual tokens into 1D sequences and represent each block through only average statistics with uniform sparsity across all layers, which neglects the 2D spatial layout, salient variations within each block, and layer-dependent sensitivity to block removal, leading to inaccurate block-importance estimation and potential performance loss. Based on these limitations, we propose MosaicAttention, a sparse attention framework that integrates spatially structured 2D average- and maximum-pooled representations to enable more reliable block routing. Theoretically, average pooling preserves regional mean attention logits, and max pooling captures complementary variations within regions, supporting their combination as coarse-grained proxies for token-level interactions over 2D visual regions. Building upon these proxies, we calibrate block importance through dense value-weighted output to obtain block priorities and allocate compute budgets based on both block importance and layer-wise sparsification sensitivity. Extensive experiments across multiple geometry Transformers and 3D prediction tasks demonstrate that MosaicAttention achieves competitive accuracy-efficiency trade-offs compared with existing approaches. At 128 input views, it achieves up to 2.81$\times$ end-to-end inference speedup with 50% sparsity while maintaining competitive performance.

Abstract

Feed-forward multi-view geometry Transformers estimate camera poses and scene geometry from input images in a single forward pass, leveraging global attention to integrate information across views. However, the quadratic computational complexity of global attention poses a substantial bottleneck for long-sequence inference. Block-sparse attention naturally alleviates this computational burden by reducing the number of attention interactions. Existing approaches often flatten visual tokens into 1D sequences and represent each block through only average statistics with uniform sparsity across all layers, which neglects the 2D spatial layout, salient variations within each block, and layer-dependent sensitivity to block removal, leading to inaccurate block-importance estimation and potential performance loss. Based on these limitations, we propose MosaicAttention, a sparse attention framework that integrates spatially structured 2D average- and maximum-pooled representations to enable more reliable block routing. Theoretically, average pooling preserves regional mean attention logits, and max pooling captures complementary variations within regions, supporting their combination as coarse-grained proxies for token-level interactions over 2D visual regions. Building upon these proxies, we calibrate block importance through dense value-weighted output to obtain block priorities and allocate compute budgets based on both block importance and layer-wise sparsification sensitivity. Extensive experiments across multiple geometry Transformers and 3D prediction tasks demonstrate that MosaicAttention achieves competitive accuracy–efficiency trade-offs compared with existing approaches At 128 input views, it achieves up to 2.81× end-to-end inference speedup with 50% sparsity while maintaining competitive performance. Code is available at https://github.com/DDsacu/MosaicAttention

1 Introduction

Recovering cameras and scene geometry from multiple images constitutes a fundamental problem in 3D vision [10]. Conventional reconstruction pipelines typically adopt a multi-stage paradigm consisting of Structure-from-Motion (SfM) and Multi-View Stereo (MVS), which integrates feature correspondence estimation, camera pose recovery, and dense reconstruction with iterative geometric optimization such as bundle adjustment [1, 17, 18].

Figure

Figure 1: Scaling bottleneck of global attention. The proportion of end-to-end inference latency spent on global attention increases with the number of input views.

Despite their effectiveness, traditional pipelines often incur substantial computational overhead from multi-stage processing and iterative geometric optimization, while remaining sensitive to correspondence errors. Recent learning-based approaches have progressively integrated geometric inference into neural networks, evolving from pairwise geometry prediction and matching in DUSt3R and MASt3R [31, 12] to joint multi-view inference in VGGT [28], π3 [32], and Depth Anything 3 [13]. These feed-forward geometry Transformers enable direct prediction of camera parameters and scene structure from image collections, leveraging global cross-view attention to aggregate geometric information across views.

Figure

Figure 2: Overview of MosaicAttention. (a) Spatial regionalization: Visual tokens are organized into spatially coherent 2D regions within each frame. (b) Dual-pooled draft maps: Average and maximum pooling summarize regional query/key features, whose interactions produce complementary low-resolution draft attention maps. (c) Contribution-calibrated routing: Offline calibration fits a frozen affine calibrator to dense contribution ranks, and profiles layer-wise sparsification sensitivity to fix per-layer budgets Bℓ. During inference, the calibrator predicts block priorities ρ from proxy features ϕb, guiding cross-head selection subject to Bℓ with at least one patch block retained per active query row. (d) Sparse mixed-precision execution: Token-level attention is computed over selected patch blocks and always-retained interactions, with optional mixed-precision execution.

However, the global attention underlying joint multi-view reasoning also poses a significant challenge to scalability. As shown in Figure 1, the token sequence grows linearly with the number of input views, while the computational cost of global attention increases quadratically, making it an increasingly dominant bottleneck in long-sequence inference. Existing token-reduction methods mitigate this overhead by merging visual tokens [4, 21] or compressing them into compact representations [33]. However, these methods modify token representations before subsequent global interactions, potentially discarding fine-grained visual cues essential for accurate geometric prediction.

In contrast, block-sparse attention [5, 3] offers a complementary strategy by preserving the original token representations while selectively computing query–key interactions. This strategy relies on accurate block importance estimation to skip unnecessary computations without compromising model performance. Therefore, an accurate yet lightweight routing mechanism is essential [11, 25]. Existing sparse variants of multi-view geometry Transformers follow two representative strategies. SparseVGGT [27] adopts a 1D frame-major token layout and uses average-pooled block representations to guide sparse routing. SAF3R [7] instead profiles head-specific sparse patterns offline and dynamically selects key indices based on input-dependent cues. Despite these advances, three limitations remain. (i) Flattened 1D token blocks do not preserve the 2D spatial neighborhood of image patches, disrupting spatially coherent regions at sequence boundaries. (ii) Average-pooled proxies overlook salient within-region variations, while approximate interaction scores or predefined sparse patterns do not explicitly account for the actual value-weighted contributions of individual blocks to attention outputs. (iii) Uniform or predefined layer-wise sparsity budgets may fail to account for the heterogeneous sensitivity of attention layers to block removal. These limitations motivate a routing mechanism that preserves spatial structure, captures complementary within-region statistics, calibrates block priorities against actual output contributions, and adapts computational budgets to layer-wise sparsification sensitivity.

Based on the above insights, we introduce MosaicAttention, a dual-pooled block-sparse attention framework for feed-forward multi-view geometry Transformers, as illustrated in Figure 2. Rather than reducing visual tokens or relying on predefined sparse patterns, MosaicAttention selectively preserves geometry-relevant interactions through lightweight, input-adaptive block routing. First, tokens are reorganized into a spatially coherent 2D layout, where average and maximum pooling capture mean regional responses and salient within-region variations, respectively. Interactions between these pooled query and key representations form lightweight dual-pooled proxy maps (i.e., draft maps) that approximate block-level attention scores without computing dense attention. However, these approximate scores may not accurately reflect the actual contributions of blocks to attention outputs. To bridge this gap, we introduce contribution calibration, which aligns the dual-pooled proxy features with dense value-weighted output contributions through a lightweight affine calibrator fitted offline. The resulting calibrated priorities then guide input-adaptive block selection across heads, with computation budgets allocated according to layer-wise sparsification sensitivity. Together, these components enable more reliable identification of important attention interactions under a constrained computational budget. Our theoretical analysis bounds the error of average-pooled logit approximation through regional feature variation and gives a score-gap condition under which calibration preserves block selection. We further bound the sparse-attention output error in terms of the output contributions and attention mass of omitted blocks.

Extensive experiments demonstrate improved geometric accuracy over average-based block routing under matched sparsity and execution precision, alongside competitive accuracy–efficiency trade-offs against existing efficient methods. Especially, on 128-view inputs, it delivers up to 2.81 × end-to-end inference speedup on π3 at 50% sparsity, while maintaining competitive geometric accuracy. Ablation studies further validate the effectiveness of spatial dual pooling, contribution calibration, and sensitivity-aware budget allocation, while disentangling the acceleration from sparsification and low-precision execution. Our contributions are summarized as follows:

  • Spatial dual-pooled block selection. We construct lightweight interaction proxies over compact 2D token regions using average and maximum pooling. Our theoretical analysis demonstrates that they retain complementary statistics for estimating block importance.
  • Contribution-calibrated block routing. We introduce a lightweight affine calibrator that aligns dual-pooled proxy features with dense value-weighted output contributions. These block priorities guide input-adaptive cross-head selection under sensitivity-aware layer budgets and row-wise connectivity constraints.
  • Extensive experiments demonstrate that MosaicAttention consistently pushes the accuracy-efficiency trade-off frontier compared with existing efficient baselines.

2 Related Work

Feed-forward multi-view geometry Transformers.

Traditional multi-view reconstruction relies on multi-stage pipelines involving correspondence estimation, camera recovery, and bundle adjustment [17, 30]. Learning-based approaches such as DUSt3R and MASt3R [31, 12] simplify reconstruction through pairwise geometry prediction and matching, but still require global alignment across multiple views. Recent feed-forward geometry Transformers, including VGGT [28], π3 [32], Depth Anything 3 [13], and VGGT-Ω [29], enable joint multi-view geometry prediction in a single forward pass. Nevertheless, the high computational cost of global cross-view attention remains a major bottleneck for scaling to long image sequences.

Efficient inference for geometry Transformers.

Recent efforts to accelerate multi-view geometry Transformers explore complementary directions. QuantVGGT and QVGGT [8, 15] reduce computation and memory costs through post-training quantization, while FastVGGT [21] exploits token redundancy through geometry-aware token merging. For long-sequence inference, OVGGT [14] compresses streaming KV caches, and FlashVGGT [33] reduces global attention costs via compact descriptor representations. AVGGT [24] further exploits the diverse roles of global-attention layers by replacing selected global layers with frame attention and subsampling keys and values. In contrast, MosaicAttention preserves the visual tokens and selectively computes query–key block interactions through spatially structured, contribution-calibrated routing.

Block-sparse and low-precision attention.

Block-sparse attention [5, 3] reduces computation by selectively retaining query–key block interactions. Recent methods explore lightweight routing through learned importance prediction, low-resolution attention drafts, and training-free block filtering [9, 20, 36]. For multi-view geometry Transformers, SparseVGGT [27] constructs sparse masks using average-pooled proxies over flattened token sequences, while SAF3R [7] profiles head-specific sparse patterns offline and adapts key selection to each input. Low-precision attention kernels such as SageAttention [35, 34] provide complementary acceleration. In contrast, MosaicAttention combines spatially structured dual-pooled proxies with contribution calibration for input-adaptive cross-head block selection under sensitivity-aware layer budgets.

3 MosaicAttention

Global attention [26] incurs quadratic cost as the number of input views grows. Block-sparse attention [5] alleviates this cost by selectively computing query–key block interactions, but requires reliable block importance estimates without evaluating dense attention. MosaicAttention uses spatially pooled features to estimate block priorities and allocates a fixed computation budget according to these priorities and layer-wise sensitivity to sparsification.

3.1 Framework Overview

We propose MosaicAttention, which replaces dense global-attention computation with budgeted block-sparse execution while keeping the pretrained geometry Transformer frozen. Tokens are organized into spatially coherent 2D regions, from which lightweight block priorities are estimated to guide sparse routing. Only selected visual patch–patch interactions are sparsified, while attention involving model-specific special tokens is always retained. The selected blocks are computed using sparse attention kernels, with optional low-precision execution.

Block priority.

We estimate block priority in two stages. First, spatial dual-pooled proxies summarize regional visual interactions using complementary Avg and Max features. Second, block contribution calibration maps these inexpensive proxy features to priorities aligned with dense value-weighted output contributions.

Sparse routing.

With calibrated block priorities, MosaicAttention allocates computation at two levels. Layer-wise sensitivity determines how much budget each layer receives, while blocks across heads compete for the budget in each layer, subject to row-wise connectivity constraints.

Offline calibration.

A small calibration set is used to fit the contribution calibrator and estimate layer-wise sparsification sensitivity. Both the calibrator and sensitivity profiles remain fixed during inference, requiring neither online profiling nor dense-attention computation for routing.

3.2 Spatial Dual-Pooled Proxies

Visual tokens are grouped into spatially coherent regions within each frame and mapped to the blocks consumed by the sparse kernel. Selected blocks retain the original token-level attention computation, whereas unselected blocks are skipped; the exact sparse-attention operator and layout are given in Sec. 6.2. We write token interactions for one head, omitting batch and layer indices; routing candidates retain their head identity and share a layer budget.

Let qt,ks,vs∈ℝd denote query, key, and value vectors, with logits ℓts=qt⊤ks/d, attention probabilities Ats=exp(ℓts)/∑rexp(ℓtr), and dense output Otd=∑sAtsvs. Sparse routing requires useful interaction estimates before dense token-pair computation is available. Thus, we adopt spatial pooling to summarize local visual features at low cost, including average and maximum pooling. Average pooling captures the mean regional response, while maximum pooling retains channel-wise extrema that averaging can suppress. Regions with the same mean can therefore have different maximum descriptors, motivating their use as complementary proxies for block routing.

Definition 3.1 (Dual-Pooled Regional Proxy).

For query and key regions Ri and Rj, define the average descriptors q¯i=|Ri|−1∑t∈Riqt and k¯j=|Rj|−1∑s∈Rjks. Their channel-wise maximum descriptors are qi,rmax=maxt∈Riqt,r and kj,rmax=maxs∈Rjks,r. The corresponding regional interactions are

ℓijavg =q¯i⊤k¯jd, ℓijmax =(qimax)⊤kjmaxd.

Lemma 3.2 (Dual-Pooling Relation).

Let Δqi=qimax−q¯i and Δkj=kjmax−k¯j. Avg preserves the mean token-level logit, while Max adds variation-dependent terms:

ℓijavg =1|Ri||Rj|∑t∈Ri,s∈Rjℓts, ℓijmax−ℓijavg =q¯i⊤Δkj+Δqi⊤k¯j+Δqi⊤Δkjd.

The offsets Δqi and Δkj expose channel-wise extrema that regional means alone do not determine, motivating dual-pooled calibration. To quantify the fidelity of the Avg representation, let riq=maxt∈Ri‖qt−q¯i‖2 and rjk=maxs∈Rj‖ks−k¯j‖2.

Theorem 3.3 (Regional Logit Approximation).

For every t∈Ri and s∈Rj,

|ℓts−ℓijavg|≤‖q¯i‖2rjk+‖k¯j‖2riq+riqrjkd.

When features vary little within each region, Avg closely approximates its token-level logits. This motivates pooling over compact spatial regions, while Max supplies an additional view of within-region variation. Proofs are given in Sec. 6.3. For c∈{avg,max}, row-wise softmax gives the draft map Dijc=exp(ℓijc)/∑j′exp(ℓij′c). Both maps supply the calibration features.

3.3 Block Contribution Calibration

The dual-pooled draft maps characterize regional query–key interactions. Block importance depends on the values aggregated by these interactions. We therefore use dense-output contributions as an offline calibration target, learning to predict block priorities from the inexpensive draft features. For each selectable block b, we construct a compact feature vector ϕb from its relative Avg/Max proxy scores, their agreement, block occupancy, and coarse input- and per-head statistics. All components are obtained from the pooled draft maps and layout metadata and therefore require no dense attention at inference time. Let block b connect query region Ri to key-token block ℬb. We apply contribution calibration to the layers equipped with the spatial calibrated router; see Sec. 6.4 for details.

Definition 3.4 (Block Contribution Calibration).

For block b, define its dense-output contribution as Ib=|Ri|−1∑t∈Ri‖∑s∈ℬbAtsvs‖2. Its calibration target is Yb=PRank(Ib)∈[0,1], the percentile rank among eligible blocks in the same layer and calibration sample. In the multi-head router, this ranking is computed jointly over eligible blocks from all heads.

We standardize each feature dimension using calibration-set statistics and, with a slight abuse of notation, continue to denote the standardized feature by ϕb. Given N calibration blocks, we fit an affine ridge calibrator,

(θ^,β^) =argminθ,β∑n=1N(θ⊤ϕn+β−Yn)2+λ‖θ‖22, ρb =θ^⊤ϕb+β^,

where λ>0 and the intercept is not regularized. At inference time, the normalization is folded into an equivalent affine scorer on the raw features. Percentile ranking removes sample-dependent scale while preserving the ordering relevant to sparse selection. Section 6.4 details the features, normalization, and rank convention, and bounds calibration error from the ridge solution. This bound connects calibration accuracy to routing stability.

3.4 Sensitivity-Aware Sparse Routing

Layer-wise budget allocation.

Block priorities determine where computation is spent within a layer, while the layer-wise budget determines how much computation each layer receives. We measure each layer’s sensitivity by sparsifying that layer alone at a common reference sparsity and evaluating the resulting geometry distortion. As shown in Figure 3, global-attention layers exhibit substantially different tolerance to sparsification.

To convert this sensitivity profile into per-layer computation budgets, we first derive each layer’s budget through an offline calibration dataset. The sensitivity scores are then passed through an automated offline allocator that assigns larger retained fractions to more sensitive layers and smaller fractions to less sensitive ones. The allocation respects a target global sparsity and fixed per-layer bounds, so that the resulting schedule is feasible under the row-wise reservation constraint.

The sensitivity profile and resulting budgets for each model are fixed after calibration and introduce no online profiling cost. The exact sensitivity measurement and allocation procedure are described in Sec. 6.5.

Figure

(a) Layer-wise sensitivity to sparsification.

Figure

(b) Cross-view interactions across network depth.

Figure 3: Layer-wise sparsification behavior. Non-uniform sensitivity motivates different layer budgets, while changing interaction patterns motivate adaptive routing within each layer.

Sparse routing.

Given Bℓ, candidate blocks compete globally across heads according to their calibrated priorities ρb. To guarantee a valid sparse support, the highest-priority patch block is first reserved for every active head/query row. Let 𝒞ℓ denote the eligible patch-block candidates and ℛℓ the resulting reserved set. The allocator guarantees Bℓ≥|ℛℓ|.

For a candidate set 𝒞, let TopKB(ρ;𝒞)⊆𝒞 denote the B blocks with largest priorities ρb. The remaining layer budget is allocated as

𝒮^ℓ=ℛℓ∪TopKBℓ−|ℛℓ|(ρ;𝒞ℓ∖ℛℓ).

For each Top-K stage (𝒞,B), define 𝒮B⋆=TopKB(Y;𝒞) and 𝒮^B=TopKB(ρ;𝒞).

Theorem 3.5 (Top-K Routing Stability).

Suppose 1≤B<|𝒞| and |ρb−Yb|≤ε for all b∈𝒞. Then 𝒮^B=𝒮B⋆ if Y(B)−Y(B+1)>2ε, where Y(r) is the r-th largest target score in 𝒞.

Calibration can shrink a selected–unselected score gap by at most 2ε. The condition applies to row-wise reservations and, once these agree, to the remaining global selection. Section 6.5 proves the result; Lemma 6.1 bounds ε.

Output error.

For one head and query region Ri sharing a sparse support, let 𝒞i be its disjoint selectable key blocks and 𝒮⊆𝒞i the retained set. Define the average dense attention mass Mb=|Ri|−1∑t∈Ri∑s∈ℬbAts. Let Ots be attention renormalized over the retained blocks and all always-retained interactions.

Lemma 3.6 (Blockwise Sparsification Error).

If every query retains a nonempty support and ‖vs‖2≤Vmax for every valid key token, then

1|Ri|∑t∈Ri‖Otd−Ots‖2≤∑b∈𝒞i∖𝒮(Ib+VmaxMb).

These terms bound omitted contributions and renormalization. At each nontrivial ranking stage, Theorem 3.5 ensures that routing recovers the contribution-ranked support, whose omitted mass bounds the error since Ib≤VmaxMb. Section 6.6 gives the proof and combined bound.

Remark 3.7 (Low-Precision Execution).

If reduced-precision execution contributes at most εq under the same region-averaged output metric, the RHS of Equation 11 increases additively by εq.

3.5 Low-Precision Sparse Execution

Block sparsification reduces the number of executed interactions, while low-precision execution reduces the arithmetic cost of each retained interaction. We decouple these two sources of efficiency: the dual-pooled proxies, calibrated priorities, and sparse masks are all computed in FP16, and quantization is applied only to the retained blocks after 𝒮^ℓ has been determined.

Retained blocks are evaluated with hardware-efficient quantized kernels. Bit-widths follow the calibrated priorities: within each layer, the top half of the retained blocks are executed in 8-bit and the remaining half in 4-bit, concentrating quantization error on the least important interactions. By Remark 3.7, this error enters the output bound only as an additive term εq, while the omitted-attention-mass term remains controlled by routing.

4 Experiments

4.1 Experimental Setup

Models and tasks. We evaluate MosaicAttention on three representative feed-forward multi-view geometry Transformers, including VGGT-1B [28], π3 [32], and DA3-Large (Depth Anything 3) [13]. All backbone parameters remain frozen, and MosaicAttention is applied only to their global-attention modules. Each backbone is evaluated on both camera-pose estimation and dense geometry prediction. See Appendix 7 for full details.

Evaluation settings. Camera-pose estimation is evaluated on CO3Dv2 [16] with 10, 30, and 100 input views, reporting AUC@30. Dense geometry prediction is evaluated on 7Scenes [22] (25–50 views), NRGBD [2] (10–42 views), and ETH3D [19] (14–76 views), reporting depth inlier ratio δ1.25, point-cloud accuracy (Acc.), and completeness (Comp.). For camera-pose latency, all methods except SAF3R are evaluated under the same protocol with varying input resolutions. Following its official fixed-shape benchmarking setup, SAF3R latency is measured at a fixed resolution of 392×518 after warm-up, as its implementation incurs substantial overhead under varying input resolutions.

Table 1: Camera pose estimation on CO3Dv2 [16]. Bold values indicate improvements over SparseVGGT [27] at matched sparsity, while highlighted values denote the best results among efficient methods.

ModelSparsityMethod10 Frames30 Frames100 Frames
AUC@30↑Latency (s) (Speedup)AUC@30↑Latency (s) (Speedup)AUC@30↑Latency (s) (Speedup)
VGGT0%Dense90.030.529 (1.000×)90.472.290 (1.000×)90.6712.210 (1.000×)
50%Ours88.660.505 (1.048×)89.211.603(1.429×)89.605.619 (2.173×)
SparseVGGT86.120.478 (1.107×)86.481.626 (1.408×)87.816.566 (1.859×)
75%Ours85.950.502 (1.054×)87.341.511 (1.516×)87.914.937 (2.473×)
SparseVGGT82.500.456 (1.160×)83.641.520 (1.506×)86.236.344 (1.924×)
85%SAF3R88.250.683 (0.775×)89.181.974 (1.161×)89.526.193 (1.971×)
90% (Merge)FastVGGT85.790.656 (0.808×)87.452.066 (1.107×)88.636.618 (1.845×)
π30%Dense90.380.491 (1.000×)90.722.203 (1.000×)91.1012.10 (1.000×)
50%Ours89.590.485 (1.012×)89.971.457 (1.512×)90.595.106 (2.370×)
SparseVGGT86.800.477 (1.029×)87.211.687 (1.306×)87.267.165 (1.689×)
75%Ours80.620.470 (1.045×)83.061.378 (1.599×)84.954.327 (2.796×)
SparseVGGT81.490.467 (1.051×)82.871.491 (1.478×)83.485.478 (2.209×)
85%SAF3R89.480.469 (1.047×)89.371.721 (1.280×)90.385.084 (2.380×)
90% (Merge)FastVGGT85.660.561 (0.875×)88.651.899 (1.160×)89.166.338 (1.909×)
DA30%Dense87.570.383 (1.000×)88.251.287 (1.000×)88.565.439 (1.000×)
50%Ours86.840.366 (1.046×)87.691.087 (1.184×)88.473.677 (1.479×)
SparseVGGT85.420.353 (1.085×)86.401.171 (1.098×)87.594.295 (1.266×)
75%Ours82.440.362 (1.058×)84.921.045 (1.232×)86.803.145 (1.729×)
SparseVGGT81.480.351 (1.091×)84.831.105 (1.165×)86.543.594 (1.513×)
90% (Merge)FastVGGT84.510.389 (0.984×)87.201.234 (1.043×)87.583.961 (1.373×)

Baselines. We compare the dense FP16 models and three efficient inference methods: SparseVGGT [27], building block-sparse masks from 1D average-pooled descriptors; SAF3R [7], selecting head-specific sparse attention policies via offline profiling and online adaptation; and FastVGGT [21], reducing attention cost via token merging. MosaicAttention and SparseVGGT adopt an 8-bit kernel for a fair comparison, while FastVGGT retains FP16 execution and SAF3R retains BF16 execution following their official implementations. FlashAttention-2 [6] is enabled for all supported dense-attention operations.

4.2 Main Results

Camera-pose estimation. We first evaluate MosaicAttention on camera-pose estimation across different backbones, input lengths, and sparsity in Tab. 1. Under matched sparsity and 8-bit execution, MosaicAttention consistently preserves pose accuracy better than SparseVGGT, confirming the benefit of spatial dual-pooled and contribution-calibrated routing. At 50% sparsity, it consistently outperforms SAF3R at 85% sparsity across all VGGT and π3 configurations, with lower latency on longer sequences. Token merging requires an aggressive merge ratio for meaningful end-to-end acceleration, so we compare FastVGGT at its recommended 0.9 merge ratio. Even at this operating point, MosaicAttention (50% sparsity) achieves higher AUC with lower end-to-end latency across all evaluated model–frame configurations. Raising the sparsity to 75% further reduces latency, while the accuracy degradation remains moderate for VGGT and DA3 and becomes more pronounced for π3. Beyond the 8-bit comparison, the retained blocks can be executed with mixed FP4/FP8 sparse kernels for further acceleration, particularly on long input sequences, as shown in Figure 5.

Table 2: Depth estimation and dense reconstruction on 7 Scenes [22], NRGBD [2] and ETH3D [19].

ModelSparsityMethod7ScenesNRGBDETH3D
δ.↑Acc.↓Comp.↓LAT (s)δ.↑Acc.↓Comp.↓LAT (s)δ.↑Acc.↓Comp.↓LAT (s)
VGGT0%Dense95.960.01890.02603.61599.280.01400.01222.07398.470.13960.09902.122
50%Ours95.970.01870.02462.59899.270.01580.01231.78798.940.14650.10871.789
SparseVGGT95.960.01930.02612.70099.190.01970.01531.75598.560.19740.12851.758
75%Ours96.640.01910.02422.45499.210.02250.01621.83398.520.21240.14021.688
SparseVGGT95.010.02050.02712.58999.200.02310.01701.73298.470.26450.21041.679
85%SAF3R96.030.01890.02672.97199.180.01980.01552.53298.580.14970.10483.367
90% (Merge)FastVGGT96.070.01890.02442.90799.230.02520.01731.96898.910.19050.10321.945
π30%Dense98.770.01230.01482.86999.240.01360.01051.61599.780.06800.04551.669
50%Ours98.760.01310.01391.87299.220.02470.01291.33999.760.09660.05001.272
SparseVGGT98.670.01850.01632.10799.180.04130.01931.34899.690.15690.09181.393
75%Ours98.680.02560.01621.76199.170.05860.02521.22799.760.23740.12381.200
SparseVGGT98.680.02820.01841.84899.130.07380.03191.21699.640.25590.12351.186
85%SAF3R98.650.01410.01461.85299.190.01760.01571.70199.710.14750.05522.243
90% (Merge)FastVGGT98.690.01390.01382.30299.200.01970.01231.53699.650.13340.07671.547
DA30%Dense97.730.01970.02171.70999.170.03580.03391.08499.270.13600.06011.091
50%Ours97.760.01870.02101.42199.190.03940.08021.03199.320.14960.07021.284
SparseVGGT97.670.02070.02191.51999.130.05450.08971.04899.210.17030.10351.033
75%Ours97.770.02140.02061.41099.130.03690.05281.47699.190.18040.08740.984
SparseVGGT97.680.02260.02171.39899.120.04650.05650.99299.170.18520.10290.958
90% (Merge)FastVGGT97.590.02030.02211.63399.120.03270.02471.12298.830.15210.07341.090

Dense geometry prediction. We further evaluate depth estimation and point-map reconstruction on the indoor 7 Scenes and NRGBD and the outdoor ETH3D benchmarks in Tab. 2. Under matched sparsity and 8-bit execution, MosaicAttention improves nearly all metrics over SparseVGGT across all three backbones.

Following Tab. 1, FastVGGT and SAF3R are evaluated at their official implementations for comparable acceleration. They remain competitive on selected metrics in 16-bit, notably on NRGBD with π3. Nevertheless, we achieve higher depth accuracy in most configurations and improve more consistently over the matched baseline, indicating that calibrated routing better preserves geometry-relevant interactions under limited attention budgets.

Figure

(a) Confidence-filtered point-cloud reconstruction comparison.

Figure

(b) Qualitative results across sparsity levels.

Figure 4: Qualitative comparison of 3D reconstruction. (a) At 75% sparsity, MosaicAttention better preserves scene geometry compared with existing efficient methods. (b) Our method preserves both scene layout and fine structures as sparsity increases from 50% to 75%.

Visualization results. Qualitative reconstructions in Figure 4 are consistent with these quantitative results. See Appendix 12 for more visualization results.

4.3 Ablation Study

2D Regional routing and contribution calibration. Table 3 ablates the regional proxy and the contribution calibration. Max-only collapses across all tasks, showing that within-region extremes alone cannot characterize block importance, while Avg-only preserves the attention output much better; fusing the two nevertheless improves pose accuracy over Avg-only, confirming that the two statistics are complementary. Naively fusing them—ranking blocks directly by the combination of Avg and Max draft scores without calibration—improves pose accuracy over Avg-only, revealing a misalignment between pooled interaction scores and actual block contributions. Pooling over 2D regions yields a more faithful proxy, yet still fails to convert this faithfulness into better routing. Calibrating the dual-pooled features against dense-output contribution ranks closes this gap, yielding the best pose and reconstruction accuracy together with the lowest attention-output error.

Table 3: Ablation of regional routing proxies and contribution calibration on VGGT-1B with 10 input views at 50% sparsity.

MethodCO3Dv27ScenesNRGBDETH3DAttn. Output
AUC@30 ↑Acc.↓Acc.↓Acc.↓Relative ℓ2↓
Avg-Only86.840.01930.01970.19440.0956
Max-Only75.560.04920.06640.40450.2581
1D Naive Fusion88.120.01920.01730.16610.1165
1D + Calibration88.180.02120.01900.18170.1247
2D Naive Fusion87.790.01920.01790.16990.0936
Ours88.660.01870.01580.14650.0785
MethodCO3Dv27ScenesNRGBDETH3D
AUC@30 ↑Acc.↓Acc.↓Acc.↓
Uniform87.580.01990.01880.1673
Concentration87.710.01970.01900.1698
Sensitivity88.660.01870.01580.1465

Table 4: Ablation of layer-wise budget allocation strategies under an identical total block budget.

Layer-wise budget allocation. Table 4 compares allocation strategies under an identical total block budget. Uniform allocation ignores heterogeneous layer sensitivities, and attention concentration does not reflect a layer’s actual reliance on the retained tokens. Sensitivity-aware allocation directly measures each layer’s tolerance to block removal and consistently outperforms both baselines.

SparsityMetric16-bit8-bitMixed 4/8-bit
0%AUC@30 ↑91.16––
Latency (s)18.635––
50%AUC@30 ↑90.6690.7590.06
Latency (s)10.4356.6205.361
75%AUC@30 ↑85.1285.1285.04
Latency (s)7.6926.1854.545

Table 5: Ablation of sparsity and execution precision on π3 with 128 input views, reporting camera-pose accuracy (AUC@30) on CO3Dv2 [16] and end-to-end inference latency (s).

Execution precision. Table 5 evaluates the effects of sparsification and execution precision with 128 input views. Under FP16 execution, sparsification alone already provides substantial end-to-end acceleration, and increasing sparsity further improves efficiency. At the same sparsity level, 8-bit execution delivers an additional speedup with only negligible accuracy degradation relative to dense FP16, while mixed 4/8-bit execution pushes efficiency further at a small accuracy cost. Overall, these results demonstrate that the proposed sparsity routing strategy achieves competitive performance, and that low-precision execution can further improve system throughput with negligible accuracy degradation. More experimental results are provided in Sec. 10.

4.4 Efficiency analysis

Figure

Figure 5: End-to-end speedup of MosaicAttention with mixed 4/8-bit sparse execution over the dense FP16 backbone at different numbers of input views on RTX 5090.

Figure 5 reports the end-to-end speedup of MosaicAttention over dense FP16 backbones. It combines sparse routing with optimal CUDA kernels that execute selected attention blocks and support mixed 4/8-bit precision. The speedup increases with the number of input views across all evaluated backbones and sparsity levels, as global attention accounts for a growing fraction of the total inference cost (Figure 1). By efficiently mapping irregular sparse interactions to GPU computation, our CUDA kernels translate reduced attention complexity into practical latency savings. These results demonstrate the effectiveness of MosaicAttention for long-sequence multi-view inference.

5 Conclusion

In the present work, we propose MosaicAttention, a block-sparse attention framework for efficient feed-forward multi-view geometry Transformers. By constructing complementary average- and maximum-pooled lightweight routing proxies over compact 2D visual regions, and calibrating these proxy features against value-weighted output contributions, MosaicAttention reliably identifies important attention interactions. Sensitivity-aware layer budgets and input-adaptive cross-head routing further enable effective computation allocation under fixed sparsity budgets. Experiments across multiple geometry Transformers and 3D prediction tasks show that MosaicAttention consistently outperforms average-based routing under matched sparsity and precision, along with favorable accuracy–efficiency trade-offs against existing efficient baselines.

LLM Usage Statement

The authors used AI-based tools to assist with language polishing of the manuscript and with code development tasks such as debugging. All AI-assisted code was reviewed and validated by the authors. The research ideas, method design, experimental protocols, analysis, and conclusions are entirely the authors’ own, and the authors take full responsibility for the content of this paper.

References

  • [1] S. Agarwal, Y. Furukawa, N. Snavely, I. Simon, B. Curless, S. M. Seitz, and R. Szeliski (2011) Building rome in a day. Communications of the ACM.
  • [2] D. Azinović, R. Martin-Brualla, D. B. Goldman, M. Nießner, and J. Thies (2022) Neural rgb-d surface reconstruction. In CVPR,
  • [3] I. Beltagy, M. E. Peters, and A. Cohan (2020) Longformer: the long-document transformer. arXiv:2004.05150.
  • [4] D. Bolya, C. Fu, X. Dai, P. Zhang, C. Feichtenhofer, and J. Hoffman (2023) Token merging: your ViT but faster. In ICLR,
  • [5] R. Child, S. Gray, A. Radford, and I. Sutskever (2019) Generating long sequences with sparse transformers. arXiv preprint arXiv:1904.10509.
  • [6] T. Dao (2024) FlashAttention-2: faster attention with better parallelism and work partitioning. In ICLR,
  • [7] J. Deng, Y. Li, J. Wang, S. Wang, T. Chen, H. Yang, and J. Hu (2026) SAF3R: dynamic sparse attention for feed-forward 3d reconstruction transformers. arXiv preprint arXiv:2607.03612.
  • [8] W. Feng, H. Qin, M. Wu, C. Yang, Y. Li, X. Li, Z. An, L. Huang, Y. Zhang, M. Magno, et al. (2025) Quantized visual geometry grounded transformer. arXiv preprint arXiv:2509.21302.
  • [9] Y. Gao, Z. Zeng, D. Du, S. Cao, H. K. So, T. Cao, F. Yang, and M. Yang (2024) SeerAttention: learning intrinsic sparse attention in your llms. arXiv preprint arXiv:2410.13276.
  • [10] R. Hartley and A. Zisserman (2003) Multiple view geometry in computer vision. Cambridge University Press.
  • [11] H. Jiang, Y. Li, C. Zhang, Q. Wu, X. Luo, S. Ahn, Z. Han, A. H. Abdi, D. Li, C. Lin, Y. Yang, and L. Qiu (2024) MInference 1.0: accelerating pre-filling for long-context LLMs via dynamic sparse attention. In NeurIPS,
  • [12] V. Leroy, Y. Cabon, and J. Revaud (2024) Grounding image matching in 3d with mast3r. In ECCV,
  • [13] H. Lin, S. Chen, J. Liew, D. Y. Chen, Z. Li, G. Shi, J. Feng, and B. Kang (2025) Depth anything 3: recovering the visual space from any views. arXiv preprint arXiv:2511.10647.
  • [14] S. Lu, P. Chen, H. Hsu, S. Jhong, W. Cheng, and Y. Chen (2026) OVGGT: o(1) constant-cost streaming visual geometry transformer. arXiv preprint arXiv:2603.05959.
  • [15] Z. Pan, H. Wang, and H. Wang (2026) QVGGT: post-training quantized visual geometry grounded transformer. In CVPR,
  • [16] J. Reizenstein, R. Shapovalov, P. Henzler, L. Sbordone, P. Labatut, and D. Novotny (2021) Common objects in 3d: large-scale learning and evaluation of real-life 3d category reconstruction. In ICCV,
  • [17] J. L. Schonberger and J. Frahm (2016) Structure-from-motion revisited. In CVPR,
  • [18] J. L. Schönberger, E. Zheng, J. Frahm, and M. Pollefeys (2016) Pixelwise view selection for unstructured multi-view stereo. In ECCV,
  • [19] T. Schops, J. L. Schonberger, S. Galliani, T. Sattler, K. Schindler, M. Pollefeys, and A. Geiger (2017) A multi-view stereo benchmark with high-resolution images and multi-camera videos. In CVPR,
  • [20] X. Shen, C. Han, Y. Zhou, Y. Xie, Y. Gong, Q. Wang, Y. Wang, Y. Wang, P. Zhao, and J. Gu (2025) Draftattention: fast video diffusion via low-resolution attention guidance. arXiv preprint arXiv:2505.14708.
  • [21] Y. Shen, Z. Zhang, Y. Qu, and L. Cao (2025) FastVGGT: training-free acceleration of visual geometry transformer. arXiv preprint arXiv:2509.02560.
  • [22] J. Shotton, B. Glocker, C. Zach, S. Izadi, A. Criminisi, and A. Fitzgibbon (2013) Scene coordinate regression forests for camera relocalization in rgb-d images. In CVPR,
  • [23] J. Sturm, N. Engelhard, F. Endres, W. Burgard, and D. Cremers (2012) A benchmark for the evaluation of rgb-d slam systems. In IROS,
  • [24] X. Sun, Z. Zhu, Z. Lou, B. Yang, J. Tang, L. Zhang, H. Wang, and J. Zhang (2026) Avggt: rethinking global attention for accelerating vggt. In CVPR,
  • [25] J. Tang, Y. Zhao, K. Zhu, G. Xiao, B. Kasikci, and S. Han (2024) Quest: query-aware sparsity for efficient long-context llm inference. In ICML,
  • [26] A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser, and I. Polosukhin (2017) Attention is all you need. In NeurIPS,
  • [27] C. B. Wang, C. Schmidt, J. Piekenbrinck, and B. Leibe (2025) Block-Sparse Global Attention for Efficient Multi-View Geometry Transformers. arXiv preprint arXiv:2509.07120.
  • [28] J. Wang, M. Chen, N. Karaev, A. Vedaldi, C. Rupprecht, and D. Novotny (2025) Vggt: visual geometry grounded transformer. In CVPR,
  • [29] J. Wang, M. Chen, S. Zhang, N. Karaev, J. Schönberger, P. Labatut, P. Bojanowski, D. Novotny, A. Vedaldi, and C. Rupprecht (2026) VGGT-Ω. In CVPR,
  • [30] J. Wang, N. Karaev, C. Rupprecht, and D. Novotny (2024) Vggsfm: visual geometry grounded deep structure from motion. In CVPR,
  • [31] S. Wang, V. Leroy, Y. Cabon, B. Chidlovskii, and J. Revaud (2024) Dust3r: geometric 3d vision made easy. In CVPR,
  • [32] Y. Wang, J. Zhou, H. Zhu, W. Chang, Y. Zhou, Z. Li, J. Chen, J. Pang, C. Shen, and T. He (2026) π3: permutation-equivariant visual geometry learning. In ICLR,
  • [33] Z. Wang and D. Xu (2026) Flashvggt: efficient and scalable visual geometry transformers with compressed descriptor attention. In CVPR,
  • [34] J. Zhang, H. Huang, P. Zhang, J. Wei, J. Zhu, and J. Chen (2025) Sageattention2: efficient attention with thorough outlier smoothing and per-thread int4 quantization. In ICML,
  • [35] J. Zhang, J. Wei, P. Zhang, J. Zhu, and J. Chen (2025) SageAttention: accurate 8-bit attention for plug-and-play inference acceleration. In ICLR,
  • [36] J. Zhang, C. Xiang, H. Huang, J. Wei, H. Xi, J. Zhu, and J. Chen (2025) Spargeattn: accurate sparse attention accelerating any model inference. In ICML,
  • [37] T. Zhou, R. Tucker, J. Flynn, G. Fyffe, and N. Snavely (2018) Stereo magnification: learning view synthesis using multiplane images. arXiv preprint arXiv:1805.09817.

6 Theory and Implementation Details

6.1 Main Symbols

Table 6: Main notation used in the theoretical analysis.

SymbolDescription
qt,ks,vsQuery, key, and value vectors
AtsDense attention probability
Otd,OtsDense and sparse attention outputs
RiSpatial routing region
b,ℬbSelectable block and its key-token support
ψb,ϕbRaw augmented and standardized routing features
ρbCalibrated block priority
IbDense-output contribution score
YbPercentile-ranked calibration target
sℓLayer sparsification sensitivity
BℓLayer block budget
MbDense attention mass assigned to block b
𝒞iSelectable key-block candidates for query region Ri
𝒮Retained selectable-block set

6.2 Block-Sparse Global Attention

The analysis is written for a single attention head and omits batch and layer indices. In the full multi-head implementation, each selectable block additionally carries its head identity, and routing candidates from all heads share the layer budget.

For query token t and key token s, dense attention is

ℓts =qt⊤ksd,Ats=exp(ℓts)∑rexp(ℓtr), Otd =∑sAtsvs.

Given a subset Ωt of the valid key-token support, sparse attention retains the original token-level interactions inside Ωt and renormalizes over the retained support:

Ots=∑s∈Ωtexp(ℓts)∑r∈Ωtexp(ℓtr)vs.

Equation 8 defines the exact-arithmetic sparse operator on the predicted support, using the original token-level logits and values.

Sparse layout.

Visual tokens are partitioned independently within each frame into spatially connected logical regions. Pooling is applied to the same normalized and position-encoded query and key vectors that enter the dense attention logits. Logical regions are then deterministically lowered to the physical blocks consumed by the sparse kernel. When one logical region maps to multiple physical key blocks, its regional proxy statistics are inherited by the corresponding physical candidates before calibration and routing. Padding tokens are excluded from both pooling and attention.

Routing is applied to selectable visual-patch interactions. Model-specific special queries remain dense, and special-key interactions are always retained. These fixed interactions are therefore outside the selectable block family analyzed below.

6.3 Dual-Pooled Regional Approximation

For query and key regions Ri and Rj, let q¯i=|Ri|−1∑t∈Riqt and k¯j=|Rj|−1∑s∈Rjks. Their channel-wise maximum descriptors are qi,rmax=maxt∈Riqt,r and kj,rmax=maxs∈Rjks,r.

Proof of Lemma 3.2.

By bilinearity,

q¯i⊤k¯jd=1|Ri||Rj|∑t∈Ri∑s∈Rjqt⊤ksd,

which proves the first identity in Lemma 3.2.

For the second identity, write qimax=q¯i+Δqi and kjmax=k¯j+Δkj. Expanding their inner product gives

ℓijmax=ℓijavg+q¯i⊤Δkj+Δqi⊤k¯j+Δqi⊤Δkjd,

which proves the second identity in Lemma 3.2. ∎

Proof of Theorem 3.3.

For t∈Ri and s∈Rj, write

qt=q¯i+ϵtq,ks=k¯j+ϵsk.

Then

ℓts−ℓijavg=q¯i⊤ϵsk+(ϵtq)⊤k¯j+(ϵtq)⊤ϵskd.

By definition, ‖ϵtq‖2≤riq and ‖ϵsk‖2≤rjk. Applying Cauchy–Schwarz to the three terms yields

|ℓts−ℓijavg|≤‖q¯i‖2rjk+‖k¯j‖2riq+riqrjkd,

which is Equation 3. ∎

The Avg and Max regional interaction maps are normalized independently over key regions before routing features are constructed. These results explain the roles of the pooled descriptors: Avg preserves the mean interaction, and Max adds information about within-region variation. The resulting draft maps provide the features used by the contribution calibrator.

6.4 Block Contribution Calibration

Routing features.

For each candidate block b, the local block features contain Avg/Max percentile ranks within the query row and within the corresponding head, their agreement and joint rank, and the valid-token occupancy of the physical key block:

fb=[ rbavg,row,rbmax,row,rbavg,head,rbmax,head, abagree,abjoint,abocc]⊤.

where

abagree=1−|rbavg,row−rbmax,row|, abjoint=rbavg,rowrbmax,row.

The contextual features summarize input geometry, block occupancy, and the Avg/Max proxy distributions of the corresponding head. Their dynamic components are

cdyn=[Eavg,Emax,Drank,Tavg,Tmax]⊤,

where Ec denotes normalized proxy entropy, Drank denotes Avg–Max rank disagreement, and Tc measures concentration among the highest-scoring proxy entries. Static context contains normalized input-layout and occupancy statistics.

The conditional scorer is linear in the augmented raw feature

ψb=[fb,c,fb⊗cdyn,onehot(head(b))]⊤.

Feature normalization and fitting.

Let μ and σ denote the calibration-set mean and standard deviation of the augmented features, applied elementwise. Constant feature dimensions can be omitted after centering; we write the normalization for dimensions with σj>0. The feature used by the ridge calibrator is

ϕb=diag(σ)−1(ψb−μ).

Thus the notation ϕb in the main text refers to the standardized calibration feature.

An unregularized intercept is fitted jointly with ridge-regularized feature weights, as in Equation 4. After calibration, the normalization can be folded algebraically into the stored affine scorer. Specifically, if ρb=θ^⊤ϕb+β^, then inference can equivalently evaluate

ρb=w⊤ψb+b0,w=diag(σ)−1θ^, b0=β^−w⊤μ.

Hence feature standardization incurs no additional routing operation at inference.

The spatially calibrated router is applied only to the layers designated by the frozen deployment profile. Other global-attention layers retain their corresponding fixed routing rule under the same sensitivity-derived layer-budget schedule.

Percentile-rank target.

For the eligible candidate set 𝒞 of one layer and calibration sample, including eligible candidates from all heads, let rank↑,𝒞(Ib) denote the ascending rank of Ib under deterministic stable tie-breaking. For |𝒞|>1,

PRank𝒞(Ib)=rank↑,𝒞(Ib)−1|𝒞|−1.

For |𝒞|=1, we set PRank𝒞(Ib)=1.

Thus the smallest contribution receives rank 0, and the largest receives rank 1 whenever |𝒞|>1. With the same deterministic tie-breaking, PRank preserves the induced ordering of Ib exactly.

Ridge formulation.

Let Φ∈ℝN×p denote the standardized calibration design matrix whose n-th row is ϕn⊤. Because each feature dimension is centered during standardization, 𝟏⊤Φ=0. With an unregularized intercept, the optimal fitted intercept is therefore the mean target

Y¯=1N∑n=1NYn.

Define the centered target vector Y~=Y−Y¯𝟏. The feature weights then satisfy

θ^=(Φ⊤Φ+λI)−1Φ⊤Y~.

To characterize the prediction error, write Y~=Φθ⋆+ξ and define Gλ=Φ⊤Φ+λI, with λ>0.

Lemma 6.1 (Calibration Prediction Error).

For any candidate block b, suppose Yb−Y¯=ϕb⊤θ⋆+ξb. Then

|ρb−Yb| ≤‖ϕb‖Gλ−1(‖Φ⊤ξ‖Gλ−1 +λ‖θ⋆‖2)+|ξb|,

where ‖x‖M=x⊤Mx.

Proof of Lemma 6.1.

Write

Y~=Φθ⋆+ξ,Gλ=Φ⊤Φ+λI.

Then

θ^−θ⋆=Gλ−1Φ⊤ξ−λGλ−1θ⋆.

For a candidate block b, suppose

Yb−Y¯=ϕb⊤θ⋆+ξb.

Since ρb=Y¯+ϕb⊤θ^, we have

|ρb−Yb| =|ϕb⊤θ^−(Yb−Y¯)| ≤|ϕb⊤Gλ−1Φ⊤ξ| +λ|ϕb⊤Gλ−1θ⋆|+|ξb| ≤‖ϕb‖Gλ−1‖Φ⊤ξ‖Gλ−1 +λ‖ϕb‖Gλ−1‖θ⋆‖Gλ−1+|ξb|.

Since Gλ⪰λI for λ>0,

‖θ⋆‖Gλ−1≤‖θ⋆‖2λ.

Substituting this relation gives

|ρb−Yb|≤‖ϕb‖Gλ−1(‖Φ⊤ξ‖Gλ−1+λ‖θ⋆‖2)+|ξb|,

which proves Equation 9. ∎

6.5 Layer-Wise Budget Allocation and Global Routing

Layer sensitivity.

Let F denote the dense model and let Fℓref denote the model in which only global-attention layer ℓ is sparsified at a common reference sparsity. On calibration set 𝒟cal, we measure

sℓ=1|𝒟cal|∑x∈𝒟cald(F(x),Fℓref(x)),

where d measures distortion in the geometry predictions. Larger sℓ indicates lower tolerance to sparsification.

A monotone allocator converts the sensitivity profile into retained fractions and integer budgets satisfying ∑ℓBℓ=Btotal. More sensitive layers receive a larger retained fraction. The sensitivity profile and resulting budgets are frozen before deployment.

Constrained global routing.

Within layer ℓ, let 𝒞ℓ denote the eligible patch-block candidates. For every active head/query row, the highest-priority patch block is first reserved; let ℛℓ denote the resulting reserved set. The allocated layer budget satisfies Bℓ≥|ℛℓ|.

For any candidate set 𝒞, TopKB(ρ;𝒞) denotes the B blocks in 𝒞 with largest priorities ρb. The remaining layer budget is allocated globally across heads:

𝒮^ℓ=ℛℓ∪TopKBℓ−|ℛℓ|(ρ;𝒞ℓ∖ℛℓ).

Proof of Theorem 3.5.

Let 𝒞 denote the candidate set of a Top-K stage and assume 1≤B<|𝒞|. For any b∈𝒮B⋆ and c∈𝒞∖𝒮B⋆,

Yb−Yc≥Y(B)−Y(B+1)>2ε.

By assumption, |ρb−Yb|≤ε and |ρc−Yc|≤ε, hence

ρb−ρc≥Yb−Yc−2ε>0.

Every target-selected block therefore remains above every unselected candidate, proving 𝒮^B=𝒮B⋆.

The row-wise reservation is the same argument with B=1 applied independently to each row. Once the reserved sets agree, both routers have the same residual candidates and budget, so the argument applies to the residual global Top-K stage. Stages that select no candidates or all available candidates agree automatically. ∎

6.6 Blockwise Sparse-Attention Error

Fix a query region Ri whose tokens share the selected key blocks, and let 𝒞i denote its selectable key-block candidates. The physical key-token supports {ℬb:b∈𝒞i} are pairwise disjoint. Let 𝒮⊆𝒞i denote the retained selectable blocks. All valid interactions outside this selectable family, including model-specific always-retained interactions, remain in the sparse support.

For b∈𝒞i, recall the dense-output contribution

Ib=1|Ri|∑t∈Ri‖∑s∈ℬbAtsvs‖2

and define its average dense attention mass as

Mb=1|Ri|∑t∈Ri∑s∈ℬbAts.

For t∈Ri, define the omitted dense contribution and omitted probability mass by

Dt=∑b∈𝒞i∖𝒮∑s∈ℬbAtsvs,δt=∑b∈𝒞i∖𝒮∑s∈ℬbAts.

Let Rt=Otd−Dt denote the contribution of the retained dense support. The routing constraints guarantee a nonempty retained support, so δt<1. Since the retained keys carry dense attention mass 1−δt, sparse attention renormalizes them as

Ots=Rt1−δt.

Proof of Lemma 3.6.

From the preceding decomposition,

Otd−Ots=Dt−δt1−δtRt.

Since ‖vs‖2≤Vmax and the retained dense probability mass equals 1−δt,

‖Rt‖2≤(1−δt)Vmax.

Therefore,

‖Otd−Ots‖2≤‖Dt‖2+δtVmax.

By the triangle inequality,

‖Dt‖2≤∑b∈𝒞i∖𝒮‖∑s∈ℬbAtsvs‖2.

Averaging over t∈Ri yields

1|Ri|∑t∈Ri‖Dt‖2≤∑b∈𝒞i∖𝒮Ib,

while

1|Ri|∑t∈Riδt=∑b∈𝒞i∖𝒮Mb.

Combining these inequalities gives

1|Ri|∑t∈Ri‖Otd−Ots‖2≤∑b∈𝒞i∖𝒮(Ib+VmaxMb),

which proves Equation 6. ∎

For every selectable block b∈𝒞i,

Ib≤1|Ri|∑t∈Ri∑s∈ℬbAts‖vs‖2≤VmaxMb.

Theorem 6.2 (Calibrated Sparse-Routing Error).

Consider a layer equipped with the calibrated router and assume ‖vs‖2≤Vmax for every valid key token. Suppose the conditions of Theorem 3.5 hold at every nontrivial constrained ranking stage. Then the predicted and target routers return the same support 𝒮⋆. With a common deterministic tie-breaking convention, the target router based on Yb makes the same decisions as the router based on Ib. For each query region Ri, let 𝒮i⋆=𝒮⋆∩𝒞i. If every query retains a nonempty support, the output satisfies

1|Ri|∑t∈Ri‖Otd−Ots‖2 ≤∑b∈𝒞i∖𝒮i⋆(Ib+VmaxMb) ≤2Vmax∑b∈𝒞i∖𝒮i⋆Mb.

Proof of Theorem 6.2.

Under the conditions of Theorem 3.5, the predicted and target routers make identical decisions at every constrained ranking stage. With the same deterministic tie-breaking, PRank preserves the ordering induced by Ib, so replacing Yb by Ib leaves every target ranking decision unchanged.

Let 𝒮⋆ denote the complete selectable support returned by the target router and 𝒮i⋆=𝒮⋆∩𝒞i its retained selectable blocks for query region Ri. Applying Lemma 3.6 with 𝒮=𝒮i⋆ gives

1|Ri|∑t∈Ri‖Otd−Ots‖2≤∑b∈𝒞i∖𝒮i⋆(Ib+VmaxMb).

Finally, Ib≤VmaxMb for every omitted block, so

1|Ri|∑t∈Ri‖Otd−Ots‖2≤2Vmax∑b∈𝒞i∖𝒮i⋆Mb,

which proves Equation 11. ∎

7 Detailed Experimental Setup

Evaluation protocols.

For camera pose estimation on CO3Dv2 [16], we evaluate with 10, 30, and 100 input frames to assess performance under varying sequence lengths, following [28]. At an angular threshold τ, a camera pair is considered correct when both its relative rotation and translation-direction errors are below τ. AUC@30 integrates this joint pose accuracy over τ∈[0∘,30∘].

For dense geometry prediction, we follow the evaluation protocol of each backbone [28, 32, 13]: on 7 Scenes [22], NRGBD [2], and ETH3D [19], we report the depth accuracy δ1.25 and point-cloud accuracy (Acc.) and completeness (Comp.) following [2]. The standard 7Scenes evaluation uses 18 test sequences (850 views, 25–50 per sequence), retaining every 20th frame. For NRGBD, invalid RGB-D observations and camera poses are discarded before retaining every 40th frame, resulting in 9 sequences (278 views, 10–42 per sequence). For ETH3D, we follow the 11-scene subset and view-filtering protocol used by DA3, with 377 views in total (14–76 per scene). For the 256-view geometry evaluation in Tab. 8, we use a separate long-sequence setting on 7Scenes rather than the standard 25–50-view sampling protocol.

All methods except SAF3R [7] are timed directly under the standard CO3Dv2 evaluation protocol, which incorporates native resolution variations. In our evaluation, the official SAF3R implementation incurs substantial additional overhead when processing sequences with varying resolutions, stemming from dynamic indexing, per-head execution, and memory allocation; no comparable overhead is observed for the remaining methods. We therefore report SAF3R speedups for 10, 30, and 100 frames at a fixed resolution of 392×518 after warm-up, following its fixed-shape benchmarking setup.

Implementation details.

Visual queries and keys are partitioned into blocks of 128 and 64 tokens, respectively. The contribution calibrator and layer-sensitivity profile are fitted on a hold-out calibration set disjoint from the evaluation data and remain fixed at test time, so inference incurs no dense attention or online profiling. End-to-end latency is measured on a single RTX 5090 with batch size 1.

Sparse execution is implemented with our own low-precision sparse-attention kernel, tailored to our block layout and priority-based bit assignment; all routing-related computation remains in FP16.

Calibration dataset.

The contribution calibrator and layer-sensitivity profile are fitted on a subset from the CO3Dv2 [16] training set with at least 16 frames. Evaluation on the geometry benchmarks is thus strictly cross-dataset. All fitted parameters remain frozen at test time.

8 Long-Sequence Accuracy and Efficiency

Table 7: Camera-pose estimation on CO3Dv2 [16] with 128 input views. Bold values indicate improvements over SparseVGGT [27] at matched sparsity.

ModelSparsityMethodAUC@30 ↑Latency (s) (Speedup)
VGGT0%Dense90.6318.624 (1.000×)
50%Ours89.848.175 (2.278×)
SparseVGGT86.839.095 (2.048×)
75%Ours88.096.753 (2.758×)
SparseVGGT83.876.937 (2.685×)
85%SAF3R89.6111.121 (–)
90% (Merge)FastVGGT88.798.943 (2.083×)
π30%Dense91.1618.635 (1.000×)
50%Ours90.756.620 (2.815×)
SparseVGGT87.817.363 (2.530×)
75%Ours85.126.185 (3.013×)
SparseVGGT83.447.035 (2.649×)
85%SAF3R90.458.719 (–)
90% (Merge)FastVGGT89.248.556 (2.178×)
DA30%Dense88.4510.767 (1.000×)
50%Ours87.886.016 (1.790×)
SparseVGGT87.656.689 (1.610×)
75%Ours86.965.264 (2.045×)
SparseVGGT83.645.904 (1.824×)
90% (Merge)FastVGGT88.664.541 (2.371×)

Table 8: Depth estimation and dense reconstruction on 7 Scenes [22] with 256 input views. Bold indicates improvements over SparseVGGT at matched sparsity and execution precision.

ModelSparsityMethod\boldsymbol{\delta}\uparrowAcc.↓Comp.↓Latency (s) (Speedup)
VGGT0%Dense95.6900.015710.0206160.266 (1.000×)
50%Ours95.8910.015590.0215723.779 (2.534×)
SparseVGGT95.6790.017130.0219028.919 (2.084×)
75%Ours96.1760.016320.0210520.384 (2.957×)
SparseVGGT95.9380.018170.0232325.236 (2.388×)
85%SAF3R95.8510.016100.0225220.592 (–)
90% (Merge)FastVGGT95.9530.015640.0235121.991 (2.740×)
π30%Dense98.8050.009010.0116651.300 (1.000×)
50%Ours98.7860.009730.0107917.895 (2.867×)
SparseVGGT98.7850.014190.0116219.813 (2.589×)
75%Ours98.7490.019770.0116513.291 (3.860×)
SparseVGGT98.7120.023870.0124714.902 (3.442×)
85%SAF3R98.7390.010730.0109111.986 (–)
90% (Merge)FastVGGT98.4560.012830.0117213.952 (3.677×)
DA30%Dense97.6620.015490.0159521.036 (1.000×)
50%Ours97.7460.015640.0150111.332 (1.856×)
SparseVGGT97.6800.015850.0153312.746 (1.650×)
75%Ours97.7490.017370.0151110.074 (2.088×)
SparseVGGT97.7020.017540.0158311.365 (1.851×)
90% (Merge)FastVGGT97.5760.016420.0157312.428 (1.693×)

We further evaluate MosaicAttention under longer input sequences to examine its accuracy–efficiency trade-off as the cost of global attention increases. The contribution calibrators and layer-wise sensitivity profiles remain fixed across sequence lengths, without test-time refitting. We consider 128-view camera-pose estimation on CO3Dv2 and 256-view dense geometry prediction on 7Scenes, reporting both task accuracy and end-to-end inference latency.

128-view camera-pose estimation.

As shown in Tab. 7, MosaicAttention consistently achieves higher pose accuracy and lower latency than SparseVGGT across VGGT, π3, and DA3 at matched sparsity levels. Even without re-calibrating for longer sequences, our contribution-aware routing retains geometry-critical cross-view interactions far more faithfully than SparseVGGT. Moving from moderate to higher sparsity yields substantial acceleration across all three architectures, while preserving reliable pose estimation. At moderate sparsity, accuracy stays closely aligned with the dense baseline, whereas higher sparsity offers a steeper efficiency gain for latency-sensitive long-sequence inference.

256-view dense geometry reconstruction.

Table 8 further evaluates depth estimation and point-cloud reconstruction on 7Scenes with 256 input views. At matched sparsity, MosaicAttention consistently improves depth accuracy, point-cloud accuracy, and completeness over SparseVGGT across all three backbones, while achieving lower inference latency. At 50% sparsity, reconstruction quality remains broadly comparable to dense inference, whereas 75% sparsity provides additional acceleration at the cost of increased reconstruction errors in some configurations. These results demonstrate that MosaicAttention remains effective for long-sequence dense geometry prediction, preserving informative attention interactions while substantially reducing computational cost.

9 Cross-Dataset and Dynamic-Scene Generalization

Table 9: Cross-dataset camera-pose estimation on the Re10K [37] with 10 input views. Bold indicates improvements over SparseVGGT at matched sparsity.

SparsityMethodAUC@30 ↑Latency (s) ↓
0%Dense (FP16)75.020.250
50%Ours72.940.325
SparseVGGT69.550.261
75%Ours69.340.332
SparseVGGT64.490.256
90% (Merge)FastVGGT70.940.461
85%SAF3R72.780.576

Table 10: Camera-pose estimation on TUM-dynamics [23] with eight 90-view sequences. MosaicAttention uses the frozen CO3Dv2-calibrated routing profiles without test-time refitting. Bold values indicate improvements over SparseVGGT at matched sparsity.

ModelSparsityMethodATE RMSE (m) ↓RPE Trans. (m) ↓RPE Rot. (∘) ↓Latency (s) (Speedup)
VGGT0%Dense0.011770.009980.30918.205 (1.000×)
50%Ours0.012180.009990.30834.273 (1.920×)
SparseVGGT0.014780.010560.32144.551 (1.803×)
75%Ours0.014510.010740.31503.762 (2.181×)
SparseVGGT0.017860.012320.35393.901 (2.103×)
85%SAF3R0.012290.010210.30984.518 (1.816×)
90% (Merge)FastVGGT0.012890.011440.32025.059 (1.622×)
π30%Dense0.014080.008740.30707.876 (1.000×)
50%Ours0.013700.008810.30774.160 (1.893×)
SparseVGGT0.015050.009560.31304.998 (1.576×)
75%Ours0.016270.010900.32493.601 (2.187×)
SparseVGGT0.017080.010750.32624.009 (1.965×)
85%SAF3R0.014760.008840.30863.689 (2.135×)
90% (Merge)FastVGGT0.014870.009240.31484.756 (1.656×)
DA30%Dense0.015460.012110.31984.117 (1.000×)
50%Ours0.015880.012240.32193.003 (1.371×)
SparseVGGT0.017090.012730.32533.253 (1.266×)
75%Ours0.018430.013350.33482.700 (1.525×)
SparseVGGT0.020310.013750.33942.884 (1.428×)
90% (Merge)FastVGGT0.018500.013270.32503.309 (1.244×)

We further examine how well MosaicAttention generalizes beyond its calibration distribution using frozen CO3Dv2-calibrated routing profiles and sensitivity profiles, with zero test-time adaptation or refitting. We test cross-dataset pose estimation on RealEstate10K [37] and dynamic-scene trajectory estimation on TUM-dynamics [23].

Cross-dataset camera-pose estimation.

As shown in Tab. 9, MosaicAttention consistently outperforms SparseVGGT in pose accuracy at matched sparsity levels, showing that contribution-calibrated block priorities remain effective across shifts in scene and camera-motion distributions. Moderate sparsity stays competitive with the dense backbone, whereas more aggressive pruning introduces greater accuracy degradation. Compared with token-merging baselines, MosaicAttention achieves a stronger balance between accuracy and inference speed without dataset-specific recalibration.

Dynamic-scene generalization.

On TUM-dynamics (Tab. 10), where moving objects challenge geometric consistency, MosaicAttention across VGGT, π3, and DA3 closely matches dense trajectory accuracy at moderate sparsity while substantially cutting inference latency. It also surpasses SparseVGGT across nearly all trajectory metrics at matched sparsity, indicating that contribution-based routing captures reliable cues even under dynamic motion. Higher sparsity accelerates inference further with a predictable rise in trajectory error. Overall, MosaicAttention transfers cleanly to unseen domains and dynamic scenes without altering pretrained backbones or refitting routing profiles.

10 Mixed-Precision Results

Table 11: Mixed-precision camera-pose estimation on CO3Dv2 [16].

ModelSparsity10 Frames30 Frames100 Frames
AUC@30↑Latency (s)AUC@30↑Latency (s)AUC@30↑Latency (s)
VGGT0%90.030.529 (1.000×)90.472.290 (1.000×)90.6712.21 (1.000×)
50%88.450.491 (1.077×)89.031.541 (1.486×)89.425.455 (2.238×)
75%85.770.488 (1.084×)87.161.496 (1.531×)87.735.296 (2.306×)
π30%90.380.491 (1.000×)90.722.203 (1.000×)91.1012.10 (1.000×)
50%88.960.466 (1.054×)89.791.414 (1.558×)90.414.957 (2.441×)
75%80.460.456 (1.077×)82.891.377 (1.600×)84.784.161 (2.908×)
DA30%87.570.383 (1.000×)88.251.287 (1.000×)88.565.439 (1.000×)
50%86.380.358 (1.070×)87.151.055 (1.220×)88.203.569 (1.524×)
75%82.270.351 (1.091×)84.491.025 (1.256×)86.543.024 (1.799×)

Table 12: Mixed-precision depth estimation and dense Reconstruction on 7 Scenes [22], NRGBD [2] and ETH3D [19]

ModelSparsity7ScenesNRGBDETH3D
δ.↑Acc.↓Comp.↓δ.↑Acc.↓Comp.↓δ.↑Acc.↓Comp.↓
VGGT50%95.980.01880.025799.270.01580.013398.470.14680.1213
75%96.640.01910.025199.130.02660.016897.680.21540.1389
π350%98.750.01380.013999.220.02470.012999.760.09650.0507
75%98.670.02680.016799.190.05800.024499.650.25090.1292
DA350%97.750.01990.021299.200.03940.080399.210.16300.0855
75%97.770.02390.020799.150.04310.072798.990.19140.0921

Tabs. 11 and 12 report full-system results under the even mixed 4/8-bit execution used in Figure 5, where the top half of the retained blocks run in 8-bit and the rest in 4-bit. Across all three models and both tasks, the mixed-precision results closely follow their 8-bit counterparts in Tabs. 1 and 2, indicating that the calibrated priority assignment concentrates 4-bit execution on low-contribution blocks and leaves accuracy largely intact. The 0% rows involve no sparse execution and are identical to the dense FP16 reference.

11 Further Analysis of the Block Contribution Calibrator

We provide additional ablations to examine the design of the lightweight contribution calibrator. The effectiveness of spatial pooling and contribution calibration is evaluated in the main paper; here, we focus on contextual conditioning, feature interactions, and the role of value-derived features. All variants are independently fitted under the same calibration protocol and sparse attention budget.

Experimental protocol.

For the context and interaction ablations, each calibrator is independently refitted using the same calibration split and ridge regularization (λ=10−3). All variants follow identical physical block budgets and row-connectivity constraints. We report the relative ℓ2 distortion between sparse and dense attention outputs and the IoU between predicted and utility-oracle masks, macro-averaged over evaluated layers and held-out sequences. The larger all-context calibrator serves only as a diagnostic reference, while the final method adopts a more compact feature representation.

Table 13: Ablation of contextual conditioning and feature interactions. Group ablations use the 111-dimensional all-context calibrator as a diagnostic reference, while the final method adopts 69-dimensional dynamic-only interactions.

ConfigurationRel. ℓ2↓Oracle IoU ↑
Context and head ablations
All-context reference (111D)0.085640.7744
No dynamic context0.088940.7522
No head identity0.092030.7609
No feature–context interactions0.086410.7642
Interaction scope
Dynamic-only interactions (69D)0.085720.7734

Contextual conditioning and interaction design.

As shown in Tab. 13, removing dynamic context or head identity increases output distortion and reduces oracle-mask overlap, indicating that both input-dependent statistics and head-specific information contribute to reliable cross-head block ranking. Feature–context interactions further improve routing fidelity by conditioning block-level evidence on the input distribution. Restricting these interactions to dynamic statistics achieves nearly the same routing fidelity as the larger all-context model, while reducing the feature dimension from 111 to 69. We therefore adopt the lightweight dynamic-only interaction design in the final method.

The final calibrator therefore combines block-level features, static descriptors, dynamic proxy statistics, and head identity, with feature–context interactions restricted to the dynamic statistics:

ψb= [fb;cstatic;chdyn;fb⊗chdyn; onehot(head(b))]⊤∈ℝ69.

The 69 dimensions consist of 7 block-level features, 6 static descriptors, 5 dynamic statistics, 35 feature–dynamic-context interactions, and 16 head-identity indicators.

Value-feature ablation.

Table 14: Ablation of value-derived calibration features on VGGT at 50% sparsity, evaluated on held-out validation data. All variants use the same dense teacher and calibration split.

Calibrator FeaturesRel. ℓ2↓AUC@30 ↑
Q/K only (final)0.0763888.57
Q/K + V RMS0.0763488.56
Q/K + mean-V norm0.0764288.57

The contribution target is defined using value-weighted dense attention outputs, whereas the online calibrator predicts its relative importance from inexpensive Q/K-derived features. To examine whether explicit value information provides additional benefits, we augment the calibrator with block-wise V RMS or mean-V norm statistics. These features yield only marginal improvements in held-out routing fidelity while introducing additional feature-extraction overhead. This supports the use of Q/K-derived proxies as a practical accuracy–efficiency trade-off, without assuming that Q/K fully determines value-weighted contributions.

Together, these analyses support a compact contribution calibrator that translates inexpensive proxy features into reliable block priorities without requiring explicit value-feature extraction during inference.

12 More Qualitative Visualizations

Spatial block selection.

Figure 6 visualizes dense value-weighted contributions and the spatial regions selected by different routing strategies. The 1D-avg baseline exhibits elongated horizontal selection patterns that deviate from the localized contribution structure of dense attention. In contrast, MosaicAttention produces more compact and spatially coherent selections that better reflect the distribution of dense contributions. These observations provide qualitative evidence for the effectiveness of spatially structured routing, complementing the ablations in the main paper.

Qualitative reconstruction results.

Figure 7 presents additional qualitative results on object-centric, indoor, and outdoor scenes. Panel (a) compares confidence-filtered reconstructions at 75% sparsity: SparseVGGT and FastVGGT lose object parts or entire surfaces, whereas MosaicAttention retains substantially more high-confidence geometry and stays closest to the dense reference. Panel (b) shows MosaicAttention at increasing sparsity levels, where both scene layout and fine structures remain stable from 50% to 75%. These observations are consistent with the quantitative results in Table 2.

Figure

Figure 6: From left to right: dense value-weighted attention contributions, block selections from 1D average-pooled routing, and MosaicAttention. Compared with the elongated horizontal selections of 1D-avg, our method identifies more spatially localized regions that better reflect the dense contribution patterns.

Figure

(a) Confidence-filtered point-cloud reconstruction comparison.

Figure

(b) Qualitative results across sparsity levels.

Figure 7: Additional visualization results. (a) Confidence-filtered reconstructions at 75% sparsity on object-centric, indoor, and outdoor scenes. (b) MosaicAttention reconstructions as sparsity increases from 50% to 75%.