EmbodiedSAM: Online Segment Any 3D Thing in Real Time

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

TL;DR

EmbodiedSAM (ESAM) brings the zero-shot segmentation power of 2D Vision Foundation Models into the 3D world for real-time, online applications. By lifting 2D masks into 3D-aware queries and using efficient parallel matrix operations for cross-frame instance merging, it achieves state-of-the-art accuracy while running over 20× faster than previous methods.

What Problem Does This Paper Address?

For autonomous robots to interact with the world, they must understand their 3D surroundings on the fly. This requires an instance segmentation model that is:

  1. Online: It must process a continuous stream of RGB-D frames without looking into the future.
  2. Real-Time: It needs to be fast enough to feed into robot planning and control loops.
  3. Highly Generalized: It should recognize unseen objects in novel environments.

While 2D Vision Foundation Models (VFMs) like the Segment Anything Model (SAM) are incredible at segmenting any object in an image, adapting them to streaming 3D data is notoriously difficult. Previous attempts project 2D masks into 3D point clouds frame-by-frame and use hand-crafted geometric heuristics to merge them. This process is incredibly slow, computationally heavy, and highly sensitive to camera noise and viewpoint changes.

Figure 1: Different from previous 3D SAM methods Yang et al. (2023); Xu et al. (2023); Yin et al. (2024) that project 2D masks to 3D and merge them with hand-crafted strategies, ESAM lifts 2D masks to 3D queries and iteratively refine them to predict accurate 3D masks. With 3D queries, ESAM is also able to fastly merge 3D masks in different frames with simple matrix operations. Take SAM3D Yang et al. (2023) for comparison, our ESAM surpasses its performance by 23.2% AP with a more than 20× faster speed.

Methods

EmbodiedSAM circumvents the bottlenecks of traditional 3D mask merging through a learnable, query-based pipeline divided into three main stages:

  • Geometric-Aware Query Lifting: Instead of directly projecting raw pixels to 3D points, ESAM groups point clouds into "superpoints" guided by SAM's 2D masks. Features are extracted using a 3D sparse U-Net, and a specialized geometric pooling module aggregates these point-level features into robust 3D instance queries ($Q_t$).
  • Dual-Level Query Decoder: To keep the transformer architecture lightweight, cross-attention is performed at the superpoint level (where the number of masks $M$ is much smaller than the number of points $N$). The final mask generation, however, happens at the point level to preserve fine-grained object boundaries.
  • Efficient Online Query Merging: To track objects across frames, ESAM avoids slow point-by-point geometric comparisons (like Chamfer Distance). Instead, the network is trained on three auxiliary tasks: predicting 3D bounding boxes, contrastive instance identities, and semantic categories. This compresses each 3D mask into a compact, fixed-size vector, turning cross-frame association into a highly parallelizable matrix multiplication problem.

Datasets

The authors evaluated EmbodiedSAM across four prominent 3D indoor datasets:

  • ScanNet / ScanNet200: Large-scale indoor spaces. ScanNet200 is particularly challenging as it contains fine-grained annotations for over 200 distinct object categories.
  • SceneNN & 3RScan: Used primarily for zero-shot dataset transfer evaluations. 3RScan is notoriously difficult due to fast-moving cameras, motion blur, and noisy sensor data.

Key Insights and Ideas

  • The Power of Vectorization: The primary insight is that tracking 3D objects across video frames doesn't require comparing raw point clouds. By forcing the network to learn representative embedding vectors (via bounding boxes and contrastive features), tracking simplifies into a fast dot-product similarity matrix.
  • Curriculum Mask Attention: Processing millions of points in a transformer decoder is too slow for robotics. Doing attention on superpoints and decoding on points elegantly balances real-time constraints with high spatial resolution.
  • Data Efficiency via 2D Priors: Because the model inherits strong visual segmentation priors from 2D SAM, the 3D network requires very little data to generalize. Training on just 10% of the ScanNet data still beats fully-trained traditional 3D models.

Key Results

  • Speedup: ESAM processes a single frame in just ~80ms (~10 FPS when paired with FastSAM), making it fully compatible with real-time robotic deployment.
  • Accuracy: On the class-agnostic ScanNet200 benchmark, ESAM achieves 43.4 AP, vastly outperforming its closest online competitor, SAM3D (20.2 AP), and even outperforming top offline methods.
  • Robustness to Blur: When transferred zero-shot to the challenging 3RScan dataset, ESAM achieves 14.1 AP. Offline methods fail here because they rely on pristine, globally reconstructed 3D meshes, whereas ESAM gracefully handles partial and noisy streaming observations.

Limitations and Future Work

  • VFM Bottleneck: While the 3D component of ESAM is incredibly fast, the overall pipeline speed is still bounded by the choice of the 2D VFM. Standard SAM is too slow for real-time use, forcing a reliance on lighter alternatives like FastSAM.
  • Heavy 3D Backbone: The 3D sparse U-Net and its memory adapters consume the majority of the 3D processing budget (~69ms out of the 80ms total). The authors note that applying network pruning or knowledge distillation to this backbone is a necessary next step to unlock even higher frame rates.

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