ReKep: Spatio-Temporal Reasoning of Relational Keypoint Constraints for Robotic Manipulation

Wenlong Huang, Chen Wang, Yunzhu Li, Ruohan Zhang, Li Fei-Fei

Overview of ReKep: A framework for grounding language into spatio-temporal keypoint constraints for diverse robotic tasks.

Introduction

Robotic manipulation has long struggled to bridge the gap between high-level semantic understanding and low-level motor control. Traditional approaches often rely on rigid-body pose estimation or end-to-end imitation learning, both of which face significant scalability and generalization challenges. ReKep (Relational Keypoint Constraints) introduces a novel framework that represents manipulation tasks as a sequence of 3D keypoint constraints. By leveraging the reasoning capabilities of large vision-language models (VLMs), ReKep enables robots to perform complex, multi-stage, and bimanual tasks in dynamic environments without requiring task-specific training data.

The "Missing Middle" of Manipulation

The authors identify a "missing middle" in current robotic representations. Rigid-body pose estimation is often too restrictive for deformable objects or tasks requiring fine geometric detail. Conversely, end-to-end imitation learning requires massive, task-specific datasets that are difficult to collect and generalize poorly to new environments. ReKep addresses this by providing a representation that is versatile enough for diverse tasks, requires no manual labeling, and can be optimized in real-time. The system grounds high-level instructions, such as "pour the tea," into precise end-effector movements by reasoning about the spatial relationships between objects and the robot.

Methodology: Relational Keypoint Constraints

The core of the ReKep framework is the translation of tasks into a series of cost functions defined over 3D keypoints. The process follows a structured pipeline:

The ReKep pipeline: mapping natural language to executable robot actions via VLM-generated cost functions and hierarchical optimization.

1. Keypoint Proposal and Tracking

The system utilizes DINOv2 for feature extraction and Segment Anything (SAM) for mask generation to identify semantically meaningful 3D points in a scene. These keypoints—such as a teapot handle or a cup rim—serve as the fundamental units for spatial reasoning.

2. Constraint Generation via VLMs

A Vision-Language Model (GPT-4o) analyzes the scene with these keypoints overlaid. Given a natural language instruction, the VLM generates Python functions using NumPy that map 3D coordinates to numerical costs. For instance, a "grasp" constraint calculates the distance between the robot's gripper and the target object's handle.

3. Hierarchical Optimization

ReKep employs a two-tier optimization strategy:

  • Sub-goal Solver: This component determines the target end-effector pose required to satisfy "end-of-stage" constraints.
  • Path Solver: A receding-horizon control problem is solved to find a collision-free trajectory that adheres to "path" constraints, such as maintaining a teapot's upright orientation during a pour.

4. Perception-Action Loop

To handle dynamic environments, the system tracks keypoints at 20Hz and re-solves the optimization at approximately 10Hz. This high-frequency feedback loop allows the robot to be truly reactive; if a human moves a target object mid-task, the robot adjusts its path instantaneously.

Key Insights

  • Code as a Universal Interface: By outputting Python code, VLMs can express complex geometric relationships through simple arithmetic on Cartesian coordinates, bypassing the difficulty models have with direct numerical output.
  • Implicit 3D Reasoning: Defining constraints over multiple keypoints allows the system to reason about 3D orientation ($SO(3)$) without needing explicit, complex rotation representations like quaternions.
  • Automated Backtracking: The system can detect constraint violations (e.g., an object slipping) and automatically revert to a previous task stage to recover.

Experimental Evaluation

ReKep was evaluated across a variety of real-world and simulated tasks, including tea pouring, garment folding, and collaborative human-robot tasks.

  • Performance: In real-world trials, ReKep achieved a 44.3% success rate using automated keypoints, significantly outperforming the VoxPoser baseline (10.0%). When provided with human-annotated keypoints, the success rate climbed to 68.6%.
  • Reactivity and Generalization: ReKep demonstrated superior resilience to external disturbances, maintaining a 26.7% success rate under human interference compared to the baseline's 6.7%. In simulation (OmniGibson), ReKep outperformed monolithic learning baselines on unseen objects by a factor of five (0.72 vs 0.14 success rate).

Limitations and Future Work

While ReKep represents a significant step forward, it faces challenges in perception, particularly regarding point tracking during long-term occlusions. Additionally, the current system assumes a fixed "task skeleton" and does not yet dynamically re-plan high-level logic. Future work aims to integrate physics-based models for better handling of highly deformable objects and to reduce the computational overhead of the VLM pipeline for even faster replanning.

Summary updated

BibTeX
@inproceedings{huang2024rekep,
  author = {Wenlong Huang and Chen Wang and Yunzhu Li and Ruohan Zhang and Li Fei-Fei},
  title = {{ReKep: Spatio-Temporal Reasoning of Relational Keypoint Constraints for Robotic Manipulation}},
  booktitle = {Conference on Robot Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=COsgL8fHQ2},
}
Figure