NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

AdaFold: Adapting Folding Trajectories of Cloths via Feedback-Loop Manipulation

Alberta Longhini, Michael C. Welle, Zackory Erickson, Danica Kragic

TL;DR

AdaFold is a model-based feedback-loop framework that enables robots to adapt cloth-folding trajectories in real-time. By augmenting standard point clouds with semantic "upper" and "bottom" layer labels and utilizing Model Predictive Control (MPC), the system successfully generalizes across cloths with diverse physical properties, shapes, and sizes.

What Problem Does This Paper Address?

Manipulating deformable objects like cloth is a "grand challenge" in robotics due to the object's high-dimensional state space and complex, non-linear dynamics. Most existing robotic folding methods rely on open-loop planning—executing a pre-defined "triangular" or linear path. These fail when the cloth's physical properties (like stiffness or friction) differ from the model or when the cloth slips during the process.

The core difficulty in moving to a closed-loop (feedback) system is perception. From a camera's perspective, a point cloud of a partially folded cloth is often ambiguous; it is hard to distinguish between the top layer being moved and the bottom layer resting on the table. Without knowing which points belong to which layer, a robot cannot accurately assess folding progress or "re-plan" its path effectively.

Methods

AdaFold introduces a pipeline that couples semantic perception with data-driven trajectory optimization:

  1. Semantic Cloth Perception:
    • At the start ($t=0$), the system uses Grounding-DINO and Segment Anything (SAM) to mask the cloth.
  2. It fits a geometric polygon to the cloth to identify fold lines and separates the mask into Upper (to be moved) and Bottom (stationary) layers.
  3. To maintain these labels during manipulation, it employs XMEM, a video object tracking model, to track the masks across frames. This allows the robot to "label" every point in a 3D point cloud as either part of the top or bottom layer.
  4. Learned Dynamics Model:
    • The authors use a Graph Neural Network (GNN) with a PointNet++ backbone to predict how the cloth's particles will move.
  5. An adaptation module ($g_\psi$) encodes the recent history of observations into a latent vector ($z_t$) that captures the cloth's specific physical properties (e.g., stiffness), allowing the model to adjust its predictions for different materials.
  6. Trajectory Optimization (MPC):
    • The robot uses Model Predictive Path Integral (MPPI) control. It samples multiple candidate action sequences, simulates them using the learned dynamics model, and evaluates them using a cost function based on the Intersection over Union (IoU) of the two cloth halves.
  7. The best action is executed, and the process repeats at the next time-step (feedback loop).

Datasets

  • Simulation: Training data was collected in PyBullet. The dataset consists of 1,000 pick-and-place trajectories (~15,000 data points) using a single 20cm square cloth.
  • Real-World: Evaluation was performed on a set of 7 distinct cloths including polyester, cotton, and wool, with varying construction (woven, knitted, twill). These cloths varied in size (from 17x25cm to 28x20cm) and physical properties (stiffness and elasticity). One test case even included a pair of pants to test non-rectangular shapes.

Key Insights and Ideas

  • Semantics Solve Ambiguity: The "aha moment" is that raw geometric data (point clouds) isn't enough for cloth. By adding semantic labels (Upper vs. Bottom), the error in estimating the folding state (measured by IoU) dropped from 0.21 to 0.04.
  • Generalization through Latent Encoding: The model doesn't need to be retrained for every new cloth. The adaptation module "senses" the cloth's behavior from the last few frames of movement and adjusts the dynamics model on the fly.
  • Feedback Beats Heuristics: A fixed "triangular" path might work for a stiff cloth but fail for a soft one. AdaFold's ability to re-plan at every step allows it to compensate for the cloth's tendency to bunch up or slip, leading to much tighter, more accurate folds.

Key Results

  • Superior Accuracy: In real-world tests across multiple cloths, AdaFold achieved an average IoU of 0.78, significantly outperforming the standard fixed Triangular trajectory (0.41) and a model-free DDPG baseline (0.48).
  • Robustness to Initial Pose: AdaFold maintained high performance (0.72 IoU) even when the cloth's starting position was randomly rotated by up to ±45°, whereas fixed trajectories are highly sensitive to initial placement.
  • Shape Versatility: The system successfully folded complex items like pants (folding one leg or folding the whole garment in half) without specific training on those shapes, demonstrating the flexibility of the geometric-semantic approach.

Limitations and Future Work

  • Quasi-static Assumption: The framework assumes slow, controlled movements where the cloth is always in static equilibrium. It cannot currently handle dynamic actions like "flinging" or "shaking" a cloth flat.
  • Initial State Requirement: The semantic labeling currently requires the cloth to start in a relatively flat configuration to identify the initial layers and fold lines.
  • Computational Overhead: Running GNN rollouts within an MPC loop is computationally expensive. Future work may look into more efficient model architectures to increase the control frequency.
  • Bimanual Manipulation: The current study uses a single robotic arm; extending this to two-armed (bimanual) coordination would allow for more complex folding tasks (like shirts).

Summary updated

BibTeX
@article{longhini2024adafold,
  author = {Alberta Longhini and Michael C. Welle and Zackory Erickson and Danica Kragic},
  title = {{AdaFold: Adapting Folding Trajectories of Cloths via Feedback-Loop Manipulation}},
  journal = {IEEE Robotics and Automation Letters},
  year = {2024},
  url = {https://openreview.net/forum?id=Ry2mI8K55A},
}
Figure