Learning Neuro-symbolic Programs for Language Guided Robot Manipulation

Namasivayam Kalithasan, Himanshu Singh, Vishal Bindal, Arnav Tuli, Vishwajeet Agrawal, Rahul Jain, Parag Singla, Rohan Paul

TL;DR

This paper introduces a neuro-symbolic framework that translates natural language instructions into executable robot manipulation programs using only initial and final scene images as supervision. By executing symbolic reasoning constructs over latent object representations, the model achieves exceptional compositional generalization to longer instruction horizons and denser environments without requiring intermediate sub-goal annotations.

What Problem Does This Paper Address?

For robots to operate effectively in human-centric environments, they must map high-level, multi-step natural language instructions (e.g., "put the block which is behind the green dice to the right of the red cube") into precise physical actions.

Current approaches generally fall into three traps:

  1. Rigid Symbolism: Relying on hand-coded symbols, which limits their ability to generalize to unseen concepts.
  2. Heavy Supervision: Requiring dense, step-by-step intermediate sub-goal annotations, which are expensive and tedious to collect.
  3. Purely End-to-End Neural Models: Lacking the explicit, structured semantics needed to resolve complex, multi-hop spatial relationships.

The authors address these gaps by developing an end-to-end trainable model that learns visual attributes, spatial relations, and action semantics simultaneously from distant supervision (i.e., only the start state, the end state, and the text instruction).

Methods

The proposed architecture bridges the gap between connectionist perception and symbolic reasoning through four modular components:

Overview of the proposed neuro-symbolic model architecture.
  • Language Reasoner (LR): An LSTM-based sentence splitter breaks down multi-step instructions into sub-instructions. A hierarchical sequence-to-tree parser then translates each sub-instruction into a program based on a Domain Specific Language (DSL). The LR is trained using reinforcement learning (REINFORCE).
  • Visual Extractor (VE): Uses a pre-trained object detector to generate bounding boxes and a ResNet backbone to extract dense, object-centric feature embeddings.
  • Visual Reasoner (VR): Executes the parsed symbolic program over the visual features in a differentiable, probabilistic manner. It resolves spatial and attribute queries (like Filter or Relate) to ground the specific objects involved.
  • Action Simulator (AS): Takes the grounded object representations and predicts the target 2D bounding box and depth of the manipulated object. These 2D coordinates are subsequently mapped to 3D workspace coordinates via a learned MLP for the robot's low-level motion planner.
Detailed look at the quasi-symbolic program execution flow.

The entire pipeline is trained using a curriculum learning strategy: starting with simple individual object features, moving to spatial relations, and finally fine-tuning the multi-step sentence splitter.

Datasets

The model was evaluated in a simulated PyBullet tabletop environment featuring a 7-DOF Franka Emika Panda robot arm.

  • Size: Approximately 5,000 synthetically generated scenes and natural language pairings (split 80:20 for training/testing).
  • Composition: Each scene contained 3 to 5 blocks of randomized shapes, colors, and orientations.
  • Complexity: The dataset included both single-step and double-step instructions, split into "simple" tasks (focusing on individual object attributes) and "complex" tasks (requiring multi-hop spatial reasoning).

Key Insights and Ideas

  • Learning Actions via Distant Supervision: A key innovation is the ability to learn action semantics (how an action alters the world) without intermediate state labels. The model uses the final scene's loss to backpropagate gradients all the way through the action simulator and visual modules.
  • The Power of a Latent Program Space: By routing natural language through a structured Domain Specific Language (DSL), the model gains a strong inductive bias. The symbols themselves don't have hardcoded meanings; their semantics are learned entirely from data, combining neural flexibility with symbolic structure.
  • Robust Out-of-Distribution Generalization: Because the symbolic programs are inherently compositional, the model can gracefully scale to longer task horizons and more crowded scenes than it encountered during training.

Key Results

The neuro-symbolic model was compared against NMN+ (an augmented Neural Module Network baseline using language-guided attention) and CLIPort (a state-of-the-art end-to-end imitation learning baseline).

  • Complex Reasoning Superiority: On complex instructions involving spatial relations, the proposed model outperformed NMN+ by 33 points in the IOU-M metric (Mean Intersection over Union for moved objects) when using gold bounding boxes.
  • Combinatorial Generalization: When tested on out-of-distribution scenes containing up to 10 objects (having only trained on up to 5), the model maintained stable performance, whereas the NMN+ baseline degraded rapidly.
  • Long-Horizon Execution: The model successfully executed plans up to 7 steps long, despite only being trained on instructions translating to a maximum of 2 steps.
Performance comparison showing generalization capabilities across varying object and step counts.

Limitations and Future Work

While the framework demonstrates impressive generalization, the authors note several limitations:

  • Closed-World Assumption: The model assumes that environment changes are solely caused by the robot manipulator.
  • DSL Constraints: The current language space lacks advanced programming constructs like looping or conditional branching.
  • Open-Loop Execution: The system lacks real-time error recovery mechanisms if a low-level physical execution fails.
  • Simulation Only: The approach has yet to be validated on physical hardware with real-world sensor noise and workspace variations.

Summary updated

BibTeX
@inproceedings{kalithasan2023learning,
  author = {Namasivayam Kalithasan and Himanshu Singh and Vishal Bindal and Arnav Tuli and Vishwajeet Agrawal and Rahul Jain and Parag Singla and Rohan Paul},
  title = {{Learning Neuro-symbolic Programs for Language Guided Robot Manipulation}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2023},
  doi = {10.1109/icra48891.2023.10160545},
}
Figure