Manuscript Offprint

arXiv:2610.06813

Less Context, Better Geometry: Masked Geometric Encoder for Robust 3D Foundation Models

Zhimin Shao, Xijun Liu, Zhaoliang Zhang, Yutao Tang, Abhay Yadav, Rama Chellappa, Cheng Peng

ABSTRACT

Recent progress in 3D foundation models has enabled rapid 3D reconstruction and camera calibration by leveraging learned 3D priors from vast amount of spatial data. However, the all-to-all global attention design leads to quadratic complexity and limits long-sequence inference; unconstrained cross-view interactions also can propagate unreliable evidence from occluded or visually similar but geometrically distant views. In this paper, We introduce a Masked Geometric Encoder (MGE), which promotes the learning of robust geometric representations under incomplete cross-view context. During training, MGE strategically drops frame tokens from global attention and distills from a pretrained full-context teacher model. This allows the model to learn an intrinsically richer per-frame representation while providing sufficient intermediate supervision to avoid performance degradation. Through extensive experiments, we show that MGE leads to much stronger performance under occlusion and doppelganger views while retaining high performance on standard benchmarks. Such a richer frame representation also leads to more effective token reduction during inference. To this end, we develop a novel Anchor-Guided Adaptive token merging technique that preserves representative anchor frames while jointly merging redundant tokens from the remaining views. Compared to other efficient inference approaches, we can achieve inference speedup while consistently maintaining higher reconstruction quality, particularly in limited-view settings.

1 INTRODUCTION

Extracting 3D concepts from images is a fundamental research problem in computer vision, with various applications in autonomous driving, geo-localization, augmented and virtual reality, and robotics (Geiger et al., 2013; Arandjelovic et al., 2016; Newcombe et al., 2011; Mur-Artal et al., 2015). Recent feedforward 3D foundation models (Wang et al., 2024; 2025a; 2026b) have substantially advanced this capability. These models jointly estimate camera parameters and dense scene geometry from multiple images in one forward pass. By encoding geometric priors learned from large-scale 3D data, these models produce scene-level predictions without requiring the iterative, scene-specific optimization conventionally used in Structure-from-Motion (SfM) pipelines.

Despite impressive progress, scalability and robustness remain important challenges for current 3D foundation models. Conventional encoder design aggregates multi-view information through dense global attention. However, additional observations do not always provide reliable geometric evidence. For example, visually similar but geometrically distinct structures, often referred to as Doppelgangers (Cai et al., 2023), can induce incorrect associations across views. Furthermore, the com-putation grows quadratically with the total number of frames, making long sequences increasingly expensive to process.

Conventional SfM pipelines provide explicit mechanisms for dealing with these challenges. COLMAP (Schönberger & Frahm, 2016) constructs a view graph from selected image pairs and geometrically verified correspondences. As such, we can remove redundant or ambiguous matching pairs in the view graph through additional prior (Schönberger & Frahm, 2016; Arandjelovic et al., 2016; Berton & Masone, 2025; Xiangli et al., 2025), leading to speedup or improved accuracy in calibration. Current 3D foundation models compute all-to-all attention across all frames. Naively removing or sparsifying these global interactions can lead to substantial performance degradation (Wang et al., 2026a; Sun et al., 2026), suggesting that the pretrained representations are highly dependent on dense cross-view connectivity. By drawing an analogy between a calibration view graph and global attention, we know that not every frame-to-frame relationship is required or can even hurt in bundle adjustment. This prompts our question: Can 3D foundation models learn a more robust representation to missing frames?

To this end, we introduce Masked Geometric Encoder (MGE), a flexible framework for learning robust geometric representations in feed-forward 3D foundation models. MGE draws inspiration from masked representation learning (He et al., 2022) and teacher-student learning (Caron et al., 2021; Oquab et al., 2023). Instead of masking image content, we randomly remove frame-to-frame connections during global attention, restricting the available cross-view information to the geometric encoder to simulate sparse calibration view graph. Importantly, the underlying scene geometry remains unchanged: the network must still recover consistent 3D structure from the remaining cross-view interactions. Training under varying connectivity patterns therefore discourages excessive reliance on particular view pairs and encourages each frame representation to retain more geometrically informative context.

To supervise learning under incomplete context, we employ a self-distillation strategy that maintains geometric knowledge from the pretrained base model to MGE. Instead of relying on direct ground-truth supervision, which can be sparse (as shown in the Appendix A.1), we align the masked student with the teacher at two complementary levels: intermediate geometric features and predicted geometry. The feature-level objective encourages the student to preserve the teacher's geometric representation despite reduced cross-view access, while the output-level objective constrains its resulting 3D predictions including point maps and camera poses. Consequently, MGE learns to recover the same underlying geometry from different subsets of cross-view evidence, promoting representations that remain stable when individual view relations are missing or unreliable.

Finally, we connect this robust representation learning objective to efficient long-sequence inference through an Anchor-Guided Adaptive (AGA) token-merging strategy. Token merging (Bolya et al., 2022) reduces inference cost by combining similar or redundant tokens before global attention. Since MGE learns richer and more independent per-frame representations, it enables more effective merging than standard token-merging strategies (Shen et al., 2025). During inference, AGA uniformly selects a sparse set of full-resolution anchor frames and use their features to estimate the redundancy of the remaining views. Non-anchor frames are then assigned adaptive merging ratios according to their similarity to the anchor context, such that highly redundant views are compressed more aggressively while complementary views retain more tokens. Compared to standard token merging, our approach leads to significant performance improvement. The advantage is especially pronounced when neighboring views are farther apart, where uniform token reduction (Shen et al., 2025) can discard geometric information and cause severe reconstruction degradation, whereas our method better preserves full-token performance.

To summarize, our contributions are as follows:

  1. We introduce MGE, which uses random frame-feature dropping within global attention to train feedforward 3D multi-view encoders under incomplete cross-view context.

  2. During MGE training, we apply a self-distillation design from a pretrained base model through intermediate-feature and geometry alignment, providing supervision beyond sparse geometric ground truth that degrades performance.

  3. Building on the robust representations learned by MGE, we propose AGA token merging, achieving better reconstruction quality than existing token-merging methods at a comparable computational cost, particularly in limited-view regimes.

  4. We perform large scale experiments and demonstrate that MGE is significantly more robust and accurate in challenging evaluation settings such as occlusions, and doppelgangers compared to previous SoTA, while retaining top performance in conventional evaluations.

References (100)

Couldn't load all references. Reload the page to try again.