Abstract
Physics-based character animation traditionally relies on Reinforcement Learning (RL), which is computationally expensive and requires complex reward engineering. DiffMimic introduces a framework leveraging Differentiable Physics Simulators (DPS) to transform motion mimicking into a direct optimization problem. By utilizing analytical gradients and a novel Demonstration Replay mechanism, DiffMimic achieves high-quality animations with up to 10x faster training times compared to traditional RL methods.
Introduction
Physics-based character animation—simulating digital humanoids to perform complex tasks like walking or backflipping while adhering to physical laws—has long been a computationally intensive challenge. Traditional approaches primarily utilize Reinforcement Learning (RL), which often necessitates days of training and extensive "reward engineering" to achieve stable results. DiffMimic addresses these inefficiencies by leveraging Differentiable Physics Simulators (DPS), transforming a trial-and-error process into a direct optimization task.
The Challenge of Motion Mimicking
Standard motion mimicking methods, such as DeepMimic, rely on Deep Reinforcement Learning (DRL). In these frameworks, a character explores its environment without prior knowledge, receiving rewards only when its movements align with reference data. This "black box" approach to physics leads to several bottlenecks:
- Slow Convergence: Training can take tens of hours or even days for a single motion sequence.
- Complex Reward Engineering: Designers must meticulously craft reward functions to guide learning.
- High Variance: Training is often unstable and highly sensitive to initial conditions.
DiffMimic aims to "open the box" by providing the learning algorithm with analytical gradients, showing exactly how changes in joint torque influence future poses.
Methodology
The DiffMimic framework is built upon three core pillars:
- Differentiable Physics Simulator (DPS): Unlike standard simulators, a DPS provides analytical gradients. This allows the system to calculate the exact derivative of the motion error with respect to the control policy, providing a clear path toward the target motion.
- State Matching Objective: With access to gradients, the need for complex reward functions is eliminated. DiffMimic employs a simple L2 loss to minimize the distance between simulated joint states ($s_t$) and reference motion states ($\hat{s}_t$).
- Demonstration Replay: To prevent the "exploding gradient" problem caused by accumulating errors in long sequences, this mechanism periodically resets the character's state to the ground-truth reference motion. These stable "anchors" ensure the gradient signal remains informative throughout complex trajectories.
Datasets and Evaluation
The authors evaluated DiffMimic on standard motion-capture benchmarks, including acyclic skills (backflip, cartwheel, spin-kick) and cyclic skills (walk, run, crawl). They also introduced new skills like a "360-degree Jump" and a "Sword and Shield" attack. The simulator has been released as a benchmark to facilitate further research into differentiable physics for animation.
Key Results
DiffMimic demonstrates significant improvements in both training speed and sample efficiency:
- Training Speed: DiffMimic can learn a complex backflip in approximately 10 minutes on a single V100 GPU, whereas traditional RL methods typically require nearly a full day.
- Sample Efficiency: Learning curves indicate that DiffMimic reaches low pose errors (under 0.15m) with far fewer environment interactions than state-of-the-art methods like AMP or DeepMimic.
- Motion Quality: The resulting animations are physically stable and accurately capture the nuances of the original motion-capture data.
Conclusion and Future Work
By treating physics as a differentiable layer, DiffMimic significantly reduces the barrier to creating high-quality, physics-based animations. While current limitations include handling complex object interactions and very long non-convex trajectories, the framework sets a new benchmark for efficiency in the field. Future work aims to integrate DiffMimic with other differentiable systems, such as cloth or fluid simulators, to create comprehensive, physically accurate animation pipelines.
Summary updated