LanguageRefer: Spatial-Language Model for 3D Visual Grounding

Junha Roh, Karthik Desingh, Ali Farhadi, Dieter Fox

Abstract

For robots to understand human instructions and perform meaningful tasks in the near future, it is important to develop learned models that comprehend referential language to identify common objects in real-world 3D scenes. In this paper, we introduce a spatial-language model for a 3D visual grounding problem. Specifically, given a reconstructed 3D scene in the form of point clouds with 3D bounding boxes of potential object candidates, and a language utterance referring to a target object in the scene, our model successfully identifies the target object from a set of potential candidates. Specifically, LanguageRefer uses a transformer-based architecture that combines spatial embedding from bounding boxes with fine-tuned language embeddings from DistilBert to predict the target object. We show that it performs competitively on visio-linguistic datasets proposed by ReferIt3D. Further, we analyze its spatial reasoning task performance decoupled from perception noise, the accuracy of view-dependent utterances, and viewpoint annotations for potential robotics applications.

Introduction

Enabling robots to operate autonomously in human environments requires the ability to ground natural language instructions into physical 3D space. Tasks such as "Pick up the mug on the left side of the table" require the system to resolve linguistic ambiguity, handle noisy sensor data, and account for viewpoint-dependent spatial relationships. This challenge, known as 3D visual grounding, involves identifying a specific target object within a complex 3D point cloud based on a textual description.

LanguageRefer identifies a target object in a 3D scene by processing language descriptions alongside 3D point cloud data.

LanguageRefer addresses this by decoupling the perception of objects from the reasoning about their spatial layout. By leveraging pre-trained language models and explicit spatial embeddings, the model achieves state-of-the-art performance on 3D-only benchmarks.

Methodology

The LanguageRefer pipeline is a modular architecture designed to fuse geometric and linguistic information. The process begins with Semantic Classification, where a PointNet++ model processes 3D bounding boxes to predict object labels (e.g., "chair," "bed").

Spatial-Language Transformer

The core of the system is a transformer-based model built on the DistilBert architecture. Unlike standard language models, LanguageRefer incorporates 3D spatial data directly into the transformer's input. The coordinates and dimensions of each bounding box are processed through a sinusoidal positional encoder. These spatial embeddings are then added to the language embeddings of the corresponding object tokens.

The LanguageRefer architecture integrates a semantic classifier, spatial positional encoding, and a DistilBert-based transformer for multi-task learning.

Multi-task Learning

To ensure robust grounding, the model is trained using three joint loss functions:

  1. Reference Loss: Optimizes for the correct identification of the target object among candidates.
  2. Classification Loss: Ensures the model correctly identifies the semantic class of the target object.
  3. Masked Language Modeling: Encourages the model to learn deep linguistic context by predicting masked words in the input instruction.

Experiments and Results

The model was evaluated on the ReferIt3D benchmark, utilizing the Nr3D (Natural Reference) and Sr3D (Spatial Reference) datasets derived from ScanNet. LanguageRefer demonstrated significant improvements over existing 3D-only baselines:

  • Nr3D Accuracy: 43.9% (vs. 35.6% baseline).
  • Sr3D Accuracy: 56.0% (vs. 40.8% baseline).

Notably, the model performs comparably to complex systems that utilize auxiliary 2D image features, despite relying solely on 3D point cloud data.

Discussion: The Perception-Reasoning Gap

A key finding of this research is the "perception bottleneck." When the model was provided with ground-truth semantic labels instead of predicted ones, accuracy on the Sr3D dataset surged from 56% to 91.1%. This suggests that while current spatial reasoning capabilities are advanced, the primary limiting factor remains the accuracy of 3D object recognition in noisy, real-world environments.

Furthermore, the study highlights the importance of perspective. Human instructions are often view-dependent (e.g., "on the right"). By incorporating manual orientation annotations to resolve these ambiguities, the authors observed a 12.7% improvement in accuracy for view-dependent utterances, underscoring the need for robots to infer a speaker's viewpoint.

Conclusion

LanguageRefer provides a powerful framework for 3D visual grounding by effectively combining spatial and linguistic embeddings within a transformer architecture. While the current two-stage pipeline relies on pre-defined bounding boxes, it sets a strong foundation for future end-to-end systems capable of autonomous viewpoint inference and robust object grounding in dynamic human environments.

Summary updated

BibTeX
@inproceedings{roh2021languagerefer,
  author = {Junha Roh and Karthik Desingh and Ali Farhadi and Dieter Fox},
  title = {{LanguageRefer: Spatial-Language Model for 3D Visual Grounding}},
  booktitle = {CoRL},
  year = {2021},
  url = {https://openreview.net/forum?id=dgQdvPZnH-t},
}
Figure