CLIP-Fields: Weakly Supervised Semantic Fields for Robotic Memory

Nur Muhammad Mahi Shafiullah, Chris Paxton, Lerrel Pinto, Soumith Chintala, Arthur Szlam

Abstract

We propose CLIP-Fields, an implicit scene model that can be used for a variety of tasks, such as segmentation, instance identification, semantic search over space, and view localization. CLIP-Fields learns a mapping from spatial locations to semantic embedding vectors. Importantly, we show that this mapping can be trained with supervision coming only from web-image and web-text trained models such as CLIP, Detic, and Sentence-BERT; and thus uses no direct human supervision. When compared to baselines like Mask-RCNN, our method outperforms on few-shot instance identification or semantic segmentation on the HM3D dataset with only a fraction of the examples. Finally, we show that using CLIP-Fields as a scene memory, robots can perform semantic navigation in real-world environments.

Introduction

For a robot to be truly useful in complex human environments like homes or offices, it requires a spatial memory that goes beyond simple occupancy maps. It must understand the semantic properties of its surroundings—knowing not just where an obstacle is, but that it is a "latte macchiato machine" or a "place to wash dishes."

Current robotic mapping solutions often suffer from two primary limitations: a reliance on fixed vocabularies and the need for heavy human supervision. Fixed-vocabulary models fail when encountering objects outside their training set, while supervised models require labor-intensive labeling of 3D scans or thousands of 2D images for every new environment. CLIP-Fields addresses these challenges by creating a 3D memory that is both open-vocabulary and weakly supervised, leveraging the latent knowledge of large-scale web-trained models.

Methodology

CLIP-Fields is structured as a neural network that learns a mapping $g(x, y, z) \to \text{embedding}$. The architecture utilizes a Multi-resolution Hash Encoding (MHE) backbone, derived from the Instant-NGP framework, which enables efficient representation of 3D space and rapid training.

The model features two specialized output heads:

  1. Semantic Head: Maps 3D coordinates to a vector space shared with Sentence-BERT, capturing linguistic meaning.
  2. Visual Head: Maps coordinates to the CLIP image embedding space, capturing visual appearance from multiple perspectives.

Training Pipeline

The training process requires no manual labeling. A robot or handheld device captures an RGB-D video of the environment. An off-the-shelf detector, Detic, identifies objects in the 2D frames. These 2D pixels are then back-projected into 3D coordinates using depth data and camera poses.

The training pipeline integrates 2D detections from multiple viewpoints into a consistent 3D semantic field.

The model is trained using a contrastive loss, ensuring that a specific 3D point's embedding aligns with the CLIP features and text labels associated with the 2D images that observed that point. This multi-view integration allows the 3D field to act as a noise filter; while a 2D detector might misidentify an object in a single frame due to lighting or occlusion, the consensus across hundreds of viewpoints in 3D space typically yields the correct identification.

Results and Discussion

The effectiveness of CLIP-Fields was evaluated using the Habitat-Matterport 3D (HM3D) dataset and real-world data collected in lab and lounge environments.

Performance and Semantic Reasoning

In few-shot instance identification tasks, CLIP-Fields outperformed supervised Mask-RCNN baselines while requiring significantly fewer labeled examples. Furthermore, the model demonstrated strong zero-shot capabilities. By enforcing 3D consistency, CLIP-Fields achieved an Average Precision (AP) of ~0.18 in contexts where the raw 2D Detic model alone struggled to provide meaningful 3D localization.

A key advantage of mapping to Sentence-BERT space is the inheritance of "semantic common sense." The model can resolve queries that are not literal object names. For example, a robot can successfully navigate to a microwave when asked to "warm up lunch" because the embeddings for the query and the object are semantically proximal.

A robot uses CLIP-Fields to retrieve the location of a microwave in response to the semantic query "Warm up my lunch."

Real-World Navigation

The system was deployed on a Hello Robot Stretch, where it successfully performed semantic navigation based on literal ("Go to the sink"), visual ("Go to the red fruit bowl"), and high-level semantic queries. Because CLIP-Fields learns the underlying 3D structure, the robot can "remember" and locate objects even when they are occluded from its current field of view.

Conclusion

CLIP-Fields provides a robust, weakly supervised method for building semantic robotic memory. By distilling knowledge from web-scale models into a 3D spatial field, it enables open-vocabulary interaction without environment-specific human labeling. Future research will focus on adapting the model for dynamic environments where objects move and developing generalizable fields that can operate across different scenes without per-scene retraining.

Summary updated

BibTeX
@inproceedings{shafiullah2023clip,
  author = {Nur Muhammad Mahi Shafiullah and Chris Paxton and Lerrel Pinto and Soumith Chintala and Arthur Szlam},
  title = {{CLIP-Fields: Weakly Supervised Semantic Fields for Robotic Memory}},
  booktitle = {Pretraining4Robotics @ ICRA},
  year = {2023},
  url = {https://openreview.net/forum?id=lRBc_5mGBQ},
}
Figure