EmbodiedSAM: Online Segment Any 3D Thing in Real Time

Xiuwei Xu, Huangxing Chen, Linqing Zhao, Ziwei Wang, Jie Zhou, Jiwen Lu

Introduction

For an autonomous agent to navigate a home or interact with objects, it must understand its 3D surroundings simultaneously with its exploration. Ideally, this perception should be online (processing data as a stream), real-time, fine-grained, and highly generalized.

While 2D Vision Foundation Models (VFMs) like the Segment Anything Model (SAM) excel at segmenting "anything" in images, translating this capability to 3D environments is challenging. Existing VFM-assisted 3D perception methods are typically offline—requiring a full recording of the scene before processing—or too slow for practical use due to heavy geometric calculations for matching objects across frames. Furthermore, the scarcity of high-quality 3D training data makes it difficult to train native 3D models that generalize as well as their 2D counterparts.

EmbodiedSAM addresses these challenges by bringing the "Segment Anything" capability to 3D environments in real-time. By lifting 2D masks from SAM into 3D-aware "queries" and using an efficient vector-based merging strategy, it allows robots to segment every object in a scene as they explore it, significantly outperforming previous methods in both accuracy and speed.

Comparison of previous offline 3D SAM methods versus the proposed online EmbodiedSAM framework.

Methodology

EmbodiedSAM bridges the 2D-to-3D gap through three main architectural innovations:

  • Geometric-aware Query Lifting: Instead of simply projecting 2D pixels into 3D space—which often results in noisy representations—the model groups 3D points into "superpoints." It then lifts the 2D masks generated by SAM into 3D-aware queries. This process uses a specialized pooling module that accounts for the geometric shape of the object, ensuring the 3D representation captures meaningful spatial structure.
  • Dual-level Query Decoder: To balance speed and accuracy, the model employs a two-stage refinement process. It first processes features at the faster "superpoint" level to capture the general gist of the object, and then refines them at the fine-grained "point" level to ensure sharp edges and precise 3D mask details.
  • Efficient Online Query Merging: Traditional methods compare 3D masks using slow geometric overlap metrics like Intersection over Union (IoU). EmbodiedSAM instead represents each mask as a fixed-size vector. Matching objects across frames then becomes a lightning-fast matrix multiplication. To make these vectors highly descriptive, the model is trained on auxiliary tasks, including amodal bounding box prediction, contrastive learning (ensuring features from the same object across frames remain similar), and semantic consistency.
Detailed architecture of EmbodiedSAM, highlighting Query Lifting, Refinement, and Merging stages.

Key Insights

  • Queries over Masks: Treating 3D objects as learnable embeddings (queries) rather than raw point clouds allows the model to leverage efficient transformer-based architectures.
  • The Power of Auxiliary Tasks: Forcing the model to predict bounding boxes and semantic labels during training makes the resulting feature vectors much better at identifying the same object across different viewpoints, even under varying geometric appearances.
  • Curriculum Mask Generation: During training, the model starts by analyzing coarse superpoint features and gradually shifts to fine point features. This curriculum helps the model learn to generate accurate masks more reliably.

Datasets and Results

The authors evaluated EmbodiedSAM on four major indoor 3D benchmarks: ScanNet, ScanNet200 (containing over 200 object categories), SceneNN, and 3RScan.

  • Superior Accuracy: On the challenging ScanNet200 "Segment Anything" task, EmbodiedSAM achieved 42.2 AP, crushing the previous online leader (SAM3D at 20.2 AP) and even outperforming many offline models.
  • Massive Speedup: The 3D processing pipeline takes only 80ms per frame. Compared to SAM3D, EmbodiedSAM is over 20x faster, making it truly viable for real-time robotics.
  • Zero-Shot Generalization: When trained on ScanNet and tested on completely different datasets like 3RScan, the model maintained high performance, proving it learns to generalize 3D object representations rather than memorizing specific rooms.
  • Data Efficiency: Thanks to the strong initialization provided by the 2D SAM model, EmbodiedSAM performs remarkably well even when trained on only 10% of the available data.

Limitations and Future Work

While highly effective, the framework has a few limitations. The overall speed is still bottlenecked by the 2D VFM (SAM); using faster variants like FastSAM improves speed to ~10 FPS but incurs a slight accuracy trade-off. Additionally, the 3D U-Net used for feature extraction is relatively heavy, suggesting future work could explore network pruning or knowledge distillation for deployment on low-power edge devices. Finally, extremely fast camera movements or long-term occlusions can still pose challenges for maintaining perfectly consistent object IDs over time.

Summary updated

BibTeX
@inproceedings{xu2025embodiedsam,
  author = {Xiuwei Xu and Huangxing Chen and Linqing Zhao and Ziwei Wang and Jie Zhou and Jiwen Lu},
  title = {{EmbodiedSAM: Online Segment Any 3D Thing in Real Time}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=XFYUwIyTxQ},
}
Figure