arXiv:2611.26493cs.CVNov 2026

Manuscript Offprint

arXiv:2611.26493

SGAR: Feed-Forward 3D Reconstruction via Sparse Geometry-Guided Attention

Aoxiang Fan, Maria Pilligua, Corentin Dumery, Oliver Heinimann, Pascal Fua

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

Abstract

Feed-forward models have been very successful in 3D reconstruction with ad hoc attention designs that relate all view patches densely. However, the cost of this dense global attention grows quadratically with the number of views, preventing the model from applying to larger-scale reconstruction settings. In this paper, we argue that most dense attention computations are unnecessary from a classical structure-from-motion perspective: 3D structures stem from geometrically matching regions in 2D. We bring this principle to learning-based feed-forward reconstruction with our Sparse Geometric Attention Reconstruction (SGAR) method. In SGAR, each patch token attends to only a small set of patch tokens from other views, chosen by a lightweight learned key selection module trained to predict cross-view 3D proximity of tokens. Thus, dense global attention is replaced by much more efficient geometric-similarity-guided sparse attention. SGAR is a general method that can be applied to different feed-forward models by fine-tuning. In our experiments, we show that SGAR is the fastest among both state-of-the-art dense and sparse methods and the most accurate sparse one. It runs up to 12× faster than dense attention at 1,000 views with stable pose accuracy where existing sparse methods fail, and shows the best performance in reconstructing more complete geometries on the same time budget.

Figure

Figure 1: SGAR replaces the dense global attention of feed-forward reconstruction with a sparse one: besides a few special tokens, each token attends only to the tokens that the model predicts to lie near it in 3D, which makes inference fast. Three tokens of the query view are marked in color, and the other views show the patches the model predicts for them. On this scene with 1,0001{,}000 views, SGAR takes 26.126.1 s against 319.6319.6 s for DejaView on one Nvidia A100 GPU, at an AUC@30 of 84.684.6 against 86.586.5.

1 Introduction

Figure 2: Dense attention is redundant. By selecting oracle top-k keys based on ground-truth geometry, most of the pose accuracy can be retained even when 99% of attention weights are zeroed out. Evaluating DejaView [8] on an NRGBD [3] scene.

Multi-view scene reconstruction is a long-standing problem in computer vision. Classical Structure-from-Motion (SfM) solutions treat this as a geometric estimation problem and solve it with a multi-stage pipeline built on projective geometry and robust optimization. Although effective, SfM methods are based on complex pipelines and produce only sparse reconstructions [36, 34, 53, 38, 46, 37]. Recent feed-forward models such as VGGT [60] and DejaView [8] replace it by a single network that predicts cameras and geometry for all views in a single forward pass, matching or even surpassing the earlier methods in a fraction of the time when the views overlap substantially. At the core of these methods is global attention: The tokens of all views are processed jointly, so that every view is interpreted in the context of every other. This is what makes these approaches so powerful, but also what makes them expensive as the cost of global attention grows quadratically with the total number of views. For example, in DejaView [8], the time cost grows from a few seconds in 100100 views to more than 300300 s in 1,0001{,}000 views on one Nvidia A100 GPU. This severely restricts the applicability of feed-forward models to time-sensitive applications, such as robot navigation, and to providing a fast initialization for optimization-based reconstruction pipelines.

However, much of this computation is redundant. As shown in Fig. 2, global attention is highly sparse even in densely trained models: When each query of DejaView attends only to a small fraction of the oracle keys determined based on ground truth geometry, the model retains most of the pose accuracy without any retraining. Many recent works leverage this observation to accelerate VGGT-style models, mostly without retraining. The strategies include merging similar tokens [48, 11], compressing each view into a few descriptors [66], test-time training [20, 23], or estimating the attention map at a coarse resolution and keeping only its strongest blocks [58, 16, 52, 41]. These methods infer the relevant keys from an approximation of the attention itself, rather than from the geometric relations between views on which reconstruction depends. As a consequence, their accuracy degrades significantly compared to dense methods, or they run out of memory on long sequences.

In this work, we revisit this problem from the perspective of classical Structure-from-Motion, in which views are related through sparse 2D correspondences. We hypothesize that, apart from a few tokens that anchor the global coordinate frame, the keys a patch token requires are the tokens that observe the same 3D surface region in other views. Key selection then becomes a geometric-feature retrieval problem, which can be supervised directly with ground-truth geometry and solved without computing dense attention.

Building on this insight, we propose SGAR, which replaces the dense global attention of feed-forward reconstruction models with geometry-guided sparse attention (Fig. 1). A lightweight projection, trained with a contrastive loss on ground-truth geometry, maps patch tokens into an embedding space in which tokens observing the same surface lie close together. At inference, these embeddings are clustered, and each patch token attends only to the patches of its nearest clusters, together with a small set of tokens that provide global context. Since the number of keys per token grows much more slowly than the total number of tokens, the cost of global attention becomes sub-quadratic in the number of views. SGAR can be applied to different dense attention models such as DejaView [8] and VGGT-Ω\Omega [61] by fine-tuning pretrained weights and requires no ground-truth geometry at inference.

Experiments on six datasets show that SGAR is the fastest among state-of-the-art dense and sparse methods, running up to 12×12\times faster than dense models at 1,0001{,}000 views and keeping accuracy comparable to dense models in all scenarios. Because of its high efficiency, we also show that SGAR can handle many more images and cover much more extended scenes for a given computational budget.

In summary, our contributions are as follows.

  • We show that global attention in feed-forward reconstruction is highly sparse, and that the keys a query token requires can be predicted by their geometric similarities.
  • We propose SGAR, a geometry-guided sparse attention mechanism whose keys are selected by a contrastively learned embedding, obtained by fine-tuning a pretrained dense model.
  • We demonstrate that SGAR achieves the best trade-off between efficiency and accuracy, scaling to 1,0001{,}000 views on a single GPU, and reconstructing the most complete geometries at the same given time budget.

Code and models will be released.

References (69)