Manuscript Offprint

arXiv:2610.01013

VASC: Value-Aware Sparse Attention with Cross-Layer Memory for Efficient 3D Reconstruction

Junyi Wu, Fanqing Kong, Leyang Chen, Shaoqiu Zhang, Yulun Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Junyi Wu, ∗^{*} Fanqing Kong, ∗^{*} Leyang Chen, ∗^{*} Shaoqiu Zhang, Yulun Zhang †^{\dagger}

Shanghai Jiao Tong University

(a) Reconstruction

Figure

(b) Geometry quality

Dense ★ FasterVGGT ★ VASC 7Scenes

Figure

NRGBD

Figure 1: Reconstruction quality with sparse attention. Left: RGB references and aligned stride-10 reconstructions; red boxes mark shared regions. For each scene, FasterVGGT and VASC use the same sparsity. RGB and rendered views are not pixel-aligned. Right: dataset-level metrics normalized to dense VGGT. Higher values indicate lower errors or higher normal consistency (NC).

ABSTRACT

Feed-forward 3D vision models such as VGGT have achieved remarkable progress, unifying camera estimation and dense scene reconstruction in a single pass. However, their quadratic global attention makes long image sequences expensive, while existing sparse methods may favor highly attended yet value-redundant regions. To address these limitations, we introduce VASC, a training-free sparse attention method combining value-aware block selection and execution-aware cross-layer memory. Our value-aware block selection integrates pooled query-key relevance with neighboring value contrast, reducing redundancy while preserving query-relevant and distinctive content. Cross-layer memory tracks unserved demand across layers and updates this state according to actual execution, enabling previously underserved blocks to compete under a fixed computation budget. Experiments on 7Scenes and NeuralRGB-D with VGGT and π3\pi^{3} demonstrate improved pose estimation and reconstruction quality compared with FasterVGGT, together with up to 2.29×2.29\times faster inference than dense VGGT. Code is available at https://github.com/kosakayamahoo-design/VASC.

1 INTRODUCTION

Recovering three-dimensional geometry from images is increasingly becoming a problem of learned, feed-forward inference. Building on transformer representations (Vaswani et al., 2017; Dosovitskiy et al., 2021), DUST3R casts pairwise geometry as pointmap regression, while MAST3R connects

∗^{*}Equal contribution.

†^{\dagger}Corresponding author: Yulun Zhang, yulun100@gmail.com this representation to dense matching (Wang et al., 2024; Leroy et al., 2024). VGGT jointly predicts cameras, depth, point maps, and tracks, and π3\pi^{3} develops permutation-equivariant geometry prediction (Wang et al., 2025a; 2026b). Scaling these models requires both accurate predictions and efficient processing of long inputs.

Global cross-view attention is a central obstacle to this scalability: its interactions grow quadratically with the number of visual tokens. Efficient exact-attention kernels reduce memory traffic and improve hardware utilization (Dao et al., 2022; Dao, 2024), but do not decide which interactions can be omitted. Recurrent and streaming models address long inputs through spatial memory, persistent state, or causal processing (Wang & Agapito, 2025; Wang et al., 2025b; Wu et al., 2025b; Zhuo et al., 2026); TTT3R and InfiniteVGGT further study long-term memory (Chen et al., 2026b; Yuan et al., 2026). We consider a complementary setting: accelerating an existing backbone's global attention without retraining or replacing its prediction architecture.

Training-free acceleration offers several ways to reduce this cost. Token merging consolidates similar representations (Bolya et al., 2022; Shen et al., 2025); sparse global attention retains selected block interactions (Wang et al., 2026a); layer scheduling changes where cross-view computation is spent (Sun et al., 2026) (see also geometry quantization and video-generation caching; Feng et al., 2026; Wu et al., 2025a). For sparse execution, a key question remains: which interactions should receive a fixed computation budget? Selection must protect geometry prediction without an overhead that erases the savings.

Pooled query-key scores provide a natural relevance estimate, but sparse selection faces two linked limitations in content and execution history. Attention weights describe query-dependent relevance, whereas value vectors supply the aggregated content, a distinction also explored in value-aware approximation (Gupta & Berant, 2021). Strong attention can coincide with locally similar values, so relevance alone does not indicate how distinct the selected content is. Under a tight budget, relevant but distinctive interactions may consequently be omitted, as illustrated by the attention ranking in Figure 3. This limitation also extends across network depth: independent selection at each layer does not account for whether previously assigned demand was actually served. Historical scores and reusable sparse indices provide useful context (Zhang et al., 2023; Bai et al., 2026; Han et al., 2026), but do not by themselves encode the gap between requested and executed computation. The challenge is therefore to account for both value content and unmet computational demand while preserving the efficiency of fixed-budget sparse attention. Sparse attention must account for both what deserves computation and whether previously assigned demand was actually served.

We introduce VASC, Value-Aware Sparse Attention with Cross-Layer Memory, to address these two aspects jointly. Value-aware selection combines pooled query-key relevance with the RMS contrast of adjacent pooled value blocks, distinguishing content at native sparse-block granularity. Cross-layer memory maintains one scalar balance per block pair, accumulating unserved demand and subtracting actual execution. This computational deficit participates in subsequent ranking alongside current demand. Both components preserve per-query capacity, the native sparse kernel, special-token handling, and geometry heads.

Experiments on 7Scenes and NeuralRGB-D evaluate VGGT and π3\pi^{3} across sparsity levels and input strides. VASC improves all six pose and reconstruction metrics over the corresponding sparse baselines at S75 in the main comparisons, while retaining up to 2.29×2.29\times speedup over dense VGGT. Figures 1 and 2 summarize quality and efficiency. Component ablations, denser inputs, ScanNet transfer, and scheduler adaptations further examine effectiveness and generality.

Our contributions are fourfold:

• Observation. We illustrate a mismatch between attention priority and local value variation in a geometry transformer, motivating their complementary use.

• Value-aware selection. We combine pooled query-key relevance with adjacent-value contrast for training-free selection of distinctive, query-relevant blocks.

• Cross-layer memory. An execution-updated pair-level state carries unserved demand across layers to compete with current demand under an unchanged budget.

• Effectiveness and efficiency. Across two geometry backbones, VASC improves sparse reconstruction and pose estimation, with controlled ablations and up to 2.29×2.29\times faster inference than dense VGGT.

2 RELATED WORK

Figure

NeuralRGB-D

Figure 2: Quality-latency comparison. VGGT at stride 10. Higher NC and lower latency are better.

Feed-forward and streaming visual geometry. DUST3R predicts pairwise pointmaps and aligns them across views; MAST3R augments this geometry-based formulation with dense matching (Wang et al., 2024; Leroy et al., 2024). VGGT and π3\pi^{3} advance joint multi-view geometry prediction through global attention (Wang et al., 2025a; 2026b). Spann3R, CUT3R, and Point3R instead maintain spatial or recurrent state for incremental reconstruction (Wang & Agapito, 2025; Wang et al., 2025b; Wu et al., 2025b). StreamVGGT adapts geometry prediction to streaming inputs, while TTT3R and InfiniteVGGT address the maintenance of long-term state (Zhuo et al., 2026; Chen et al., 2026b; Yuan et al., 2026; Wu et al., 2026). VASC targets interaction selection inside the global attention of pretrained, multi-view geometry backbones.

Efficient attention and token reduction. FlashAttention improves exact-attention execution through IO-aware computation and parallelism (Dao et al., 2022; Dao, 2024). Structured sparsity reduces the interaction set through local, factorized, or mixed connectivity (Child et al., 2019; Beltagy et al., 2020; Zaheer et al., 2020). DynamicViT, EViT, and TokenLearner learn to prune, reorganize, or aggregate visual tokens (Rao et al., 2021; Liang et al., 2022; Ryoo et al., 2021); ToMe merges similar representations (Bolya et al., 2022). For language models, MInference identifies sparse attention patterns for prefill and Quest makes sparse access query-dependent (Jiang et al., 2024; Tang et al., 2024). These works motivate efficient selection but operate at different training, token, or inference interfaces. VASC preserves child-block identity and changes the support passed to the existing sparse attention kernel.

Training-free acceleration of geometry models. FastVGGT adapts token merging to visual geometry, FasterVGGT uses pooled-QK proposals and block-sparse execution, and AVGGT changes the allocation of global-attention computation (Shen et al., 2025; Wang et al., 2026a; Sun et al., 2026). QuantVGGT addresses model compression through post-training quantization (Feng et al., 2026). GHOST exploits predicted geometry for online KV-token eviction in streaming reconstruction (Chen et al., 2026a). VASC focuses on selecting value-sensitive block interactions and accounting for their execution across depth.

Value-aware and history-aware selection. Value-aware Approximate Attention incorporates values when approximating attention outputs (Gupta & Berant, 2021). VASC uses adjacent-value contrast to refine pooled relevance at low cost. H2OH_{2}O and SnapKV compress language-model KV state using attention-derived importance, and StreamingLLM preserves attention sinks with a recent-context window (Zhang et al., 2023; Li et al., 2024; Xiao et al., 2024). IndexCache reuses sparse indices across layers, while EvoSparse exploits token-importance dynamics (Bai et al., 2026; Han et al., 2026). Our memory instead records the gap between assigned demand and actual execution. Its nonnegative recurrence follows classical queue accounting (Lindley, 1952; Neely, 2010), providing an execution-aware summary of allocation history.

3 ANALYZING ATTENTION AND VALUE IN VGGT

Reconstruction under attention-only selection. Which connections should be preserved when only a small fraction of attention can be retained? We investigate this question through reconstruction experiments on scenes from NeuralRGB-D and 7Scenes. Starting from pretrained VGGT, we compare dense attention with an attention-only setting that retains the highest-ranked 25% of patch-key connections for each patch query and head in the global attention layers. The retained weights are renormalized, while frame attention, special-token handling, and model parameters remain unchanged. As shown in Figure 3(a), retaining the strongest attention responses alone can still degrade reconstruction quality. This motivates examining both the relevance and the value content of selected connections.

(a) Breakfast Room reconstruction

Dense

Figure

Attention-only (25% retained)

Figure

(b) Attention and value | Layer 7, head 10

Query view 58

Key view 87

Figure

Figure

Attention percentile

Neighbor V cosine similarity

Figure

Top 25%

Figure

0.50 0.75 1.00

Figure 3: Attention priority and local value variation. (a) Dense and attention-only reconstruction with 25% of connections retained. (b) Attention and neighboring-value similarity reveal different spatial patterns; lower similarity indicates greater directional variation.

Attention relevance and value variation. We compare attention priorities with local value variation, visualized using each value vector's mean cosine similarity to its four spatial neighbors. Lower similarity indicates greater directional variation. Figure 3(b) illustrates that the two maps need not agree: highly attended connections can carry locally similar values, while lower-ranked connections can contain more distinct content. Attention-only selection can therefore favor redundant content under a tight budget. Visualization details are given in Appendix B.

Competition under a fixed budget. Retaining a connection consumes capacity that could otherwise serve another candidate. A high attention rank therefore does not, by itself, indicate how much distinct content is preserved by that choice. Conversely, falling below the selection threshold does not imply irrelevance to the query. The resulting trade-off concerns not only how much attention is retained, but also which value content is represented within the available capacity.

Implications for sparse selection. In an attention output oi=∑jaijvjo_i = \sum_j a_{ij} v_j, the weights describe query-key relevance, while the values supply the aggregated content. Ranking solely by aija_{ij} does not account for similarity among values. This motivates joint QKV-informed ranking: query-key relevance identifies relevant interactions, and value variation helps distinguish their content. Such a ranking expresses which interactions deserve computation; the fixed budget still determines which can actually be executed. This distinction between demand and execution underlies VASC's selection and feedback mechanism.

Figure

Figure 4: VASC overview. Value contrast and cross-layer memory jointly guide block selection within a fixed budget. Actual execution updates memory for the next layer.

References (61)