TL;DR
This paper introduces Rewarped, a high-performance, parallel differentiable simulator for multiphysics (rigid bodies, fluids, and deformables), alongside Soft Analytic Policy Optimization (SAPO), a novel reinforcement learning algorithm. By adding entropy regularization to first-order analytic gradients, SAPO stabilizes training in complex physics environments, significantly outperforming existing methods in both sample efficiency and final performance.
The Challenge of Soft Robotics Simulation
Reinforcement Learning (RL) has mastered rigid-body robotics—such as walking robots or simple grippers—thanks to fast, GPU-accelerated simulators. However, "soft" robotics, which involves manipulating cloth, liquids, or deformable dough, remains a massive challenge.
Standard simulators for these materials are agonizingly slow, making the millions of samples required by model-free RL (like PPO) impractical. While "differentiable" simulators exist—providing exact gradients to show the policy exactly how to improve—they suffer from a "spiky" optimization landscape. Because physics involves sudden contacts and complex deformations, these gradients often lead RL agents into poor local optima or cause training to diverge. The authors aim to bridge this gap by providing both the speed of parallel simulation and a way to smooth out the mathematical "noise" of differentiable physics.
Methods: Rewarped and SAPO
The authors contribute two major components to solve these challenges:
1. Rewarped Simulation Platform Built on NVIDIA Warp, Rewarped is a parallel, differentiable multiphysics engine. It uses the Material Point Method (MPM) for fluids and plastic materials (like dough) and the Finite Element Method (FEM) for elastic solids. Crucially, it allows these different materials to interact with articulated rigid bodies (like robot hands) in a single, GPU-accelerated framework.
2. Soft Analytic Policy Optimization (SAPO) SAPO is a first-order, model-based actor-critic algorithm. It builds on prior methods but introduces Maximum Entropy RL principles (similar to Soft Actor-Critic).
- The "Soft" Part: By encouraging the agent to be "stochastic" (exploratory) through an entropy term, the algorithm effectively smooths the optimization landscape.
- The "Analytic" Part: It uses the exact gradients from the simulator to update the policy, which is far more efficient than the "guess-and-check" method used by standard model-free RL.
Benchmark Tasks
The authors implemented a suite of six challenging tasks in Rewarped to benchmark their approach. These tasks represent a significant step up in complexity from previous differentiable simulation benchmarks, which were often limited to single-material types.
- AntRun: A standard rigid-body locomotion task.
- HandReorient: Using an Allegro hand to manipulate a rigid cube.
- RollingFlat: Using a rolling pin to flatten a piece of dough (plasticine).
- SoftJumper: Controlling an elastic, deformable quadruped to jump forward.
- HandFlip: A robot hand flipping a piece of dough in its palm.
- FluidMove: Moving a container of liquid to a target without spilling.
Key Insights
- Entropy as a Smoother: The core insight is that analytic gradients from physics are often too "sharp" or discontinuous due to contact dynamics. Adding an entropy requirement forces the optimizer to look for "wider," more stable peaks in the reward landscape rather than getting stuck in narrow, brittle local optima.
- Parallelism is Non-Negotiable: Even with efficient gradients, soft-body simulation is computationally heavy. Rewarped demonstrates that by parallelizing MPM and FEM on the GPU, we can achieve a 20x speedup over previous state-of-the-art soft-body simulators.
- First-Order > Zeroth-Order: The results confirm that using the simulator's internal math (first-order gradients) allows agents to learn complex behaviors (like flipping dough) that model-free "sampling" methods (zeroth-order) struggle to even begin to solve within the same time budget.
Key Results
- Performance: SAPO outperformed all baselines (PPO, SAC, APG, and SHAC) across all tasks. In the "HandFlip" dough task, SAPO achieved a return of 90.0, while the next best model-based baseline (SHAC) only reached 32.7.
- Stability: Visualizations of the "loss surfaces" showed that SAPO’s optimization landscape was significantly flatter and smoother than its predecessors, explaining why it converges more reliably.
- Scaling: Rewarped showed excellent GPU scaling, reaching over 1,500 FPS for the HandFlip task when running 128 environments in parallel on a single RTX 4090.
Limitations and Future Work
- The Particle Gap: Currently, the policy observes the exact positions of all particles in the simulation. In the real world, a robot only sees pixels or depth maps. This "sim-to-real" gap is a major hurdle.
- Visual Encoders: While the authors experimented with PointNet-like encoders for particle data, they acknowledge that integrating differentiable rendering (to learn directly from images) is the next logical step.
- Occlusion: The current model assumes the robot can "see" through objects to know where every particle of dough or water is, which is physically impossible for real-world sensors. Future work will need to address learning from partial or occluded observations.
Summary updated