ClothPPO: A Proximal Policy Optimization Enhancing Framework for Robotic Cloth Manipulation with Observation-Aligned Action Spaces

Libing Yang, Yang Li, Long Chen · DOI

Abstract

Robotic manipulation of deformable objects, such as cloth, presents significant challenges due to complex dynamics and high-dimensional state spaces. We present ClothPPO, a two-stage reinforcement learning framework that optimizes robotic cloth unfolding. By integrating self-supervised pre-training with Proximal Policy Optimization (PPO), ClothPPO effectively manages a massive $10^6$ pixel-aligned action space. Central to our approach is an Observation-Aligned Policy (OBAP) and a dynamic Spatial Policy Mask (SPM) that filters non-viable actions. Evaluated in the custom Cloth Action Gym, ClothPPO achieves state-of-the-art coverage and demonstrates robust zero-shot generalization across diverse, unseen garment types.

Introduction

The task of unfolding or folding fabrics is notoriously difficult for robots because flexible objects possess practically infinite degrees of freedom. Traditional approaches have struggled with various bottlenecks. Supervised learning requires prohibitively expensive labeled datasets and often fails to generalize to novel wrinkles. Value-based reinforcement learning (RL) often falters in multi-step planning. Conversely, policy-based RL typically relies on low-dimensional action vectors that discard vital spatial information. When mapping actions directly to image pixels to preserve this information, the action space explodes to over $10^6$ possibilities, making standard policy gradient exploration inefficient. ClothPPO addresses this by enabling efficient PPO-based optimization directly on high-dimensional, pixel-level action spaces.

Methods

The ClothPPO framework utilizes a two-stage training pipeline, drawing parallels to the fine-tuning processes used in Large Language Models.

Two-Stage Training Framework

As illustrated in Figure 1, the process begins with Self-Supervised Pre-training (Phase 1). The model is trained offline using a supervised regression approach to learn fundamental cloth manipulation heuristics from a dataset of successful interactions. In PPO Training (Phase 2), this pre-trained model serves as the actor-critic baseline. PPO then fine-tunes the policy to optimize for long-term multi-step rewards, specifically maximizing surface area coverage.

The two-stage training framework of ClothPPO, featuring self-supervised pre-training followed by PPO fine-tuning.

Observation-Aligned Policy and Spatial Masking

The core of the architecture is the Observation-Aligned Policy (OBAP). Instead of a coordinate vector, the policy network (a U-Net) generates 3D spatial policy maps aligned with the visual input. To manage the resulting $10^6$ action space, we introduce the Spatial Policy Mask (SPM). This dynamic mask filters out invalid actions—such as grasping empty space—before the softmax step, as shown in Figure 2. This pruning forces the agent to sample only from physically viable actions, significantly improving exploration efficiency.

Additionally, we employ Reward Scaling to stabilize training. Because cloth unfolding often results in sparse, abrupt jumps in coverage, normalizing rewards by their standard deviation prevents the critic network from diverging.

Experimental Setup and Results

Experiments were conducted in Cloth Action Gym, a custom environment built on PyFleX and SoftGym. Training was performed exclusively on T-shirts from the Cloth3D dataset. Evaluation focused on zero-shot generalization across five unseen categories: Shirts, Pants, Jumpsuits, Skirts, and Dresses.

ClothPPO demonstrated superior performance compared to baselines like Flingbot and Cloth Funnels. Notably, on the "Dress" task, ClothPPO achieved 86.56% final coverage, a significant improvement over Cloth Funnels (79.15%) and Flingbot (66.38%). The ablation of the PPO stage revealed its critical role: the pre-trained baseline alone reached only 76.44% coverage on dresses, indicating that PPO fine-tuning provided a 10% absolute performance boost.

Conclusion

ClothPPO successfully bridges the gap between high-dimensional spatial actions and policy-based reinforcement learning for deformable object manipulation. By bootstrapping PPO with self-supervised heuristics and employing spatial masking, the framework achieves high-performance unfolding that generalizes across garment types. While currently limited to simulation, the scalability of the Cloth Action Gym and the robustness of the reward-based approach provide a strong foundation for future work in complex household robotic tasks and real-world deployment.

Summary updated

BibTeX
@inproceedings{yang2024clothppo,
  author = {Libing Yang and Yang Li and Long Chen},
  title = {{ClothPPO: A Proximal Policy Optimization Enhancing Framework for Robotic Cloth Manipulation with Observation-Aligned Action Spaces}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2024},
}
Figure