Programmatically Grounded, Compositionally Generalizable Robotic Manipulation

Renhao Wang, Jiayuan Mao, Joy Hsu, Hang Zhao, Jiajun Wu, Yang Gao

Robots operating in the real world require both rich manipulation skills and the ability to semantically reason about when and how to apply those skills. While recent works have integrated semantic representations from large-scale pretrained vision-language (VL) models to impart reasoning capabilities, they often fall short when faced with novel combinations of objects and actions.

PROGRAMPORT is a modular framework designed to address this by enabling robots to follow complex language instructions through executable programs. By disentangling visual perception (grounding) from motor skills (action), the model achieves superior zero-shot and compositional generalization, outperforming monolithic baselines with up to 10x less training data.

The Entanglement Problem in Robotic Manipulation

Current state-of-the-art robotic manipulation models typically rely on a "pretraining-finetuning" pipeline. They take a massive VL model, such as CLIP, and finetune it on specific robotic tasks. While effective for familiar scenarios, this approach suffers from entanglement: the robot’s understanding of what an object looks like (perception) becomes inseparable from what it is supposed to do with it (action).

A simulated robot arm executing a compositional instruction.

For example, if a robot only sees "packing a red cube" during training, it might fail to "push a red cube" because it hasn't learned "red cube" as a general visual concept independent of the "packing" motion. This entanglement leads to poor data efficiency and an inability to handle novel combinations of objects and actions at test time.

The ProgramPort Approach

To overcome these limitations, PROGRAMPORT replaces the monolithic "black box" architecture with a modular, program-based paradigm. The framework operates through three core mechanisms:

  1. Semantic Parsing: When given a natural language instruction (e.g., "Pack the blue hexagon in the orange box"), the system uses a Combinatory Categorial Grammar (CCG) parser to translate the sentence into a structured program based on a Domain-Specific Language (DSL).
  2. Modular Execution: The parsed program consists of a hierarchy of functional modules:
  3. Visual Grounding Modules: These utilize frozen, pretrained CLIP weights (specifically a modified version of MASKCLIP) to generate spatial attention masks for specific concepts like "blue," "hexagon," or "orange box."
  4. Action Modules: Modules such as goal and do take the spatial masks from the grounding modules as input. Instead of processing the entire image, they focus exclusively on the regions identified by the program to produce control parameters (e.g., pick and place coordinates).
  5. Disentangled Learning: Because the visual grounding is handled by a frozen VL model, the imitation learning process only needs to focus on training the action modules. This structure prevents the model from taking "shortcuts" and forces it to use the provided visual masks to decide its actions.

Experimental Setup

The researchers evaluated PROGRAMPORT on an extended version of the CLIPort/Ravens benchmark, a PyBullet-based simulation environment featuring 10 diverse tasks, including packing boxes, assembling kits, and aligning ropes.

To rigorously test the model, they utilized "unseen" generalization splits where the test set included objects, colors, and household items (from the Google Scanned Objects dataset) not present during training. Furthermore, they introduced four new compositional tasks specifically designed to test the combination of previously seen unary concepts in novel ways.

Key Findings and Results

By forcing the robot to follow a program, PROGRAMPORT effectively bakes "common sense" into the architecture. The robot is architecturally prevented from confusing the "what" (perception) with the "how" (action). This structure acts as a powerful regularizer, leading to several breakthrough results:

  • Superior Zero-Shot Generalization: By leveraging CLIP as a frozen module within a program, the robot can ground words it has never seen in a manipulation context as long as the underlying VL model understands them. In zero-shot tests with unseen objects and properties, PROGRAMPORT consistently outperformed the CLIPort baseline, beating it by 25 points in a "packing shapes" task.
  • Compositional Success: On tasks requiring the combination of independent concepts (e.g., "packing-location-box"), PROGRAMPORT achieved a remarkable success rate of 67.1%, compared to CLIPort’s 8.3%.
  • Data Efficiency: Because the model doesn't have to "re-learn" visual concepts for every new task, it learns much faster. PROGRAMPORT trained on just 100 demonstrations often outperformed baselines trained on 1,000.
Generalizing to a pushing action.
  • Pushing the Limits: The model successfully generalized to a completely new action—pushing—even when the training data was dominated by pick-and-place tasks, provided the "push" primitive was defined in the DSL.
  • Real-World Validation: The authors successfully deployed the model on a physical Franka Panda robot arm, demonstrating that the simulated results translate effectively to real-world household objects.

Limitations and Future Work

While PROGRAMPORT represents a significant step forward, it has limitations. The CCG parser currently relies on a predefined lexicon, operating within a relatively rigid linguistic framework. Additionally, the model struggles with abstract spatial concepts like "front" and "back," which is likely a limitation inherited from the underlying CLIP model's known weaknesses with spatial relationships.

Currently, the work focuses on 2D top-down orthographic projections. Future iterations aim to extend this modular, program-based approach to 3D environments and more complex, articulated objects, further bridging the gap between high-level semantic reasoning and low-level robotic control.

Summary updated

BibTeX
@inproceedings{wang2023programmatically,
  author = {Renhao Wang and Jiayuan Mao and Joy Hsu and Hang Zhao and Jiajun Wu and Yang Gao},
  title = {{Programmatically Grounded, Compositionally Generalizable Robotic Manipulation}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=rZ-wylY5VI},
}
Figure