TL;DR
This paper introduces GENFLOWRL, a novel framework that uses generative object-centric flow (2D keypoint trajectories) to shape rewards for visual reinforcement learning in robotics. By leveraging this flow as a task motion prior, GENFLOWRL enables more robust, efficient, and generalizable policy learning, outperforming existing methods on challenging manipulation tasks.
What Problem Does This Paper Address?
Recent advances in robot learning have explored using video generation models to derive robot actions through inverse dynamics. While promising, these "video generation models" often produce artifacts and struggle with fine-grained manipulation due to a lack of environmental feedback. Reinforcement Learning (RL) offers robustness through interaction, but integrating it with video generation is hampered by the cost of collecting large-scale robot datasets and the inherent uncertainty in video generation quality. This paper addresses the challenge of learning robust and generalizable robot policies for fine-grained manipulation by bridging the gap between generative models and RL, specifically by using a more compact and informative representation derived from object-centric flow for reward shaping.
Methods
GENFLOWRL's core innovation lies in its use of object-centric flow and a novel flow-derived reward model.
- Object-Centric Flow Generation: The framework adapts pre-trained diffusion-based video generative models (like AnimateDiff) to generate object-centric flows. This involves:
- Dataset Construction: Converting offline trajectory videos into object-centric flow datasets by detecting object bounding boxes and tracking keypoints.
- Model Adaptation: Fine-tuning the generative model's decoder and latent motion module to better handle flow generation.
- Post-processing: Applying motion and semantic filters to refine the generated flows.
- $\delta$-Flow Representation: To overcome the noise and trajectory inaccuracies in raw object-centric flows, the paper proposes a condensed representation called $\delta$-flow. This representation captures key statistical estimates of keypoint motion (centroid, translation, rotation) at each timestep, making it more robust and suitable for RL.
- Hybrid Reward Model: GENFLOWRL employs a hybrid reward model that combines:
- Dense Flow-Matching Reward: This reward incentivizes the robot's executed flow to match the generated $\delta$-flow prior, providing dense, continuous guidance.
- Sparse State-Aware Reward: This reward is derived from environmental feedback and task completion, providing a traditional sparse reward signal.
- Flow-Conditioned Policy: The RL policy is designed to accept the generated $\delta$-flow as a conditional input, along with robot state and keypoint information. This allows the policy to learn from the expert motion priors encoded in the flow.
Datasets
- Cross-embodiment datasets: Used for training the flow generative model. These datasets contain trajectories from different embodiments (sphere robot, UR5, Sawyar).
- Im2Flow2Act benchmark: Used for training and evaluation, featuring tasks like PickNPlace, Pouring, Opening, and Folding.
- MetaWorld benchmark: Used for evaluation, featuring tasks like Assembly, Close Door, Coffee Push, Lever Pull, and Stick Pull.
- Newly implemented task: A novel contact-rich task, Pivoting, was implemented in the Im2Flow2Act environment.
Key Insights and Ideas
- Object-centric flow is a powerful representation for RL: Unlike raw video frames, object-centric flow provides a lower-dimensional, more informative representation that is easier to generate and better captures manipulation-relevant features.
- $\delta$-flow enhances robustness: The proposed $\delta$-flow representation effectively filters out noise from generated flows, leading to more reliable reward signals and improved RL training stability.
- Hybrid reward model balances prior knowledge and exploration: Combining dense flow-matching rewards with sparse state-aware rewards allows the framework to leverage expert motion priors while still benefiting from environmental feedback and exploration.
- Cross-embodiment transfer is feasible: The framework demonstrates effective transfer of learned policies across different robot embodiments, facilitated by the object-centric nature of the flow representation.
- Real-world validation: The study includes a real-world case study showing that human hand demonstrations can be used to generate effective reward shaping for robot manipulation.
Key Results
- GENFLOWRL consistently outperforms baseline methods (flow-based imitation learning and other video-guided RL methods) on 10 challenging manipulation tasks.
- In demonstration-conditioned and language-conditioned evaluations on 5 simulation tasks, GENFLOWRL achieved higher success rates, particularly on complex tasks like Folding and Pivoting. For example, in language-conditioned execution, GENFLOWRL achieved 95% success on Folding and 95% on Pivoting, compared to 35% and 45% for Im2Flow2Act, respectively.
- The $\delta$-flow representation shows superior performance compared to other object-centric representations (6D object poses, 3D keypoints) in RL reward shaping.
- Ablation studies confirm the benefits of using $\delta$-flow as policy input and the importance of initial 3D keypoints for spatial understanding.
- The real-world evaluation on an XArm7 robot arm demonstrated effective cross-embodiment human-to-robot transfer, with the flow-derived reward producing a monotonic increasing reward signal.
Limitations and Future Work
- 2D Flow Limitations: The paper acknowledges that the current 2D flow might struggle with tasks involving out-of-plane rotations (e.g., twist-off).
- Future Work: The authors suggest exploring whether full 3D flow can overcome the limitations of 2D flow for more complex tasks.
Summary updated