NS3D: Neuro-Symbolic Grounding of 3D Objects and Relations

Joy Hsu, Jiayuan Mao, Jiajun Wu

TL;DR

NS3D is a neuro-symbolic framework that tackles 3D object grounding by parsing natural language into hierarchical programs using large language models (Codex) and executing them via modular neural networks. By explicitly modeling high-arity (multi-object) spatial relations, it achieves state-of-the-art view-dependent accuracy while demonstrating remarkable data efficiency and zero-shot transfer capabilities.

What Problem Does This Paper Address?

Grounding language in 3D scenes—such as instructing a robot to "pick up the mug to the right of the laptop when facing the desk"—is a foundational challenge for embodied AI and robotics.

Two major hurdles block progress in this area:

  1. Annotation Expense: Labeling 3D point clouds and pairing them with complex language descriptions is incredibly time-consuming and costly.
  2. Language Complexity: 3D spatial descriptions are inherently complex, frequently requiring viewpoint anchoring (e.g., "from the front of the couch") and references to multiple objects simultaneously.

Existing end-to-end deep learning methods (like standard Transformers) are highly data-hungry, prone to exploiting dataset biases (like object co-occurrences), and struggle with complex view-dependent reasoning because they typically reduce spatial relationships to simple binary pairs.

Methods

NS3D addresses these challenges by decoupling language understanding from visual perception through a three-part neuro-symbolic architecture:

  1. Semantic Parser: Instead of training a semantic parser from scratch, NS3D leverages a large language-to-code model (Codex) constrained by the Synchromesh framework. With just a few examples in the prompt, it translates natural language utterances into structured, domain-specific language (DSL) programs.
  2. 3D Object-Centric Encoder: Individual object features are extracted from point clouds using a PointNet++ backbone. Crucially, the model separates object geometry from spatial relations. It utilizes distinct multi-layer perceptrons (MLPs) to compute binary relations and ternary relations (high-arity relations involving three objects) to handle complex multi-object anchoring.
  3. Neural Program Executor: The executor recursively runs the parsed DSL program steps (such as filter or relate) using the learned neural features, ultimately outputting a probability score for each object in the scene to identify the target.
Figure 2. NS3D is composed of three main components. a) A semantic parser parses the input language into a symbolic program. b) A 3D object-centric encoder takes input objects and learns object, relation, and ternary relation features. c) A neural program executor executes the symbolic program with the learned features to retrieve the target referred object.

Datasets

The authors evaluated NS3D using several configurations and benchmarks:

  • ReferIt3D (SR3D and NR3D): Standard benchmarks for 3D referring expression comprehension (3D-REC).
  • Data-Efficiency Splits: Randomly sampled subsets of the training data ranging from 0.5% to 10% to test low-data regimes.
  • PAIRS & SCENE Generalization Splits: Custom dataset splits designed to test performance on unseen object-relation-object combinations (PAIRS) and entirely novel room environments (SCENE, e.g., training on all rooms except living rooms, then testing exclusively on living rooms).
  • 3D-QA Evaluation Set: A manually curated 50-question dataset spanning four question types (exist, count, object, relation) to evaluate zero-shot transfer performance.

Key Insights and Ideas

  • High-Arity Relations are Essential: Forcing 3D spatial reasoning into binary relations limits a model's capacity to understand perspective. By introducing ternary modules (e.g., "Object A is to the right of Object B relative to perspective anchor C"), NS3D mirrors human spatial communication.
  • LLMs as Zero-Shot Parsers: Utilizing Codex for semantic parsing completely bypasses the need for a large, annotated language-parsing dataset. It also allows the system to seamlessly adapt to entirely new tasks (like question answering) without retraining any visual modules.
  • Disentangling Perception from Logic: Separating object classification features from spatial relation features prevents the neural networks from relying on dataset shortcuts, forcing the model to learn true spatial mechanics.

Key Results

  • State-of-the-Art View-Dependence: NS3D achieves a state-of-the-art view-dependent accuracy of 62.0% on the SR3D dataset, outperforming all previous object-centric methods.
  • Unprecedented Data Efficiency: When trained on just 1.5% of the data (987 examples), NS3D achieves 52.0% accuracy, outperforming competing baselines by more than 24 percentage points under the same constraints.
  • Zero-Shot Task Transfer: Without any additional fine-tuning or neural network training, NS3D successfully transfers from the 3D-REC task to the 3D-QA task, achieving 68% overall accuracy.
Figure 1. NS3D achieves grounding of 3D objects and relations in complex scenes, while showing state-of-the-art results in data efficiency, generalization, and zero-shot transfer.

Limitations and Future Work

  • The Perception Bottleneck: Oracle experiments using ground-truth object classifications reveal that NS3D's relational reasoning is nearly flawless (96.9% accuracy). The primary bottleneck remains the 3D object classifier itself.
  • Dependence on Pre-segmented Objects: Currently, NS3D assumes the 3D scene has already been segmented into individual object point clouds.
  • Future Directions: A promising next step is combining NS3D with open-world 3D object detectors to enable end-to-end reasoning directly from raw, unsegmented 3D scenes.

Summary updated

BibTeX
@inproceedings{hsu2023ns,
  author = {Joy Hsu and Jiayuan Mao and Jiajun Wu},
  title = {{NS3D: Neuro-Symbolic Grounding of 3D Objects and Relations}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
}
Figure