Skip to main content
QUICK REVIEW

[Paper Review] DiffMimic: Efficient Motion Mimicking with Differentiable Physics

Jiawei Ren, Cunjun Yu|arXiv (Cornell University)|Apr 6, 2023
Human Motion and AnimationEngineering3 citations
TL;DR

DiffMimic proposes a differentiable physics-based approach to motion mimicking that reformulates policy learning as a state-matching problem, enabling fast and stable training via analytical gradients. It achieves high-fidelity motion imitation—such as backflips—in under 10 minutes on a single GPU, significantly outperforming RL-based methods in sample and time efficiency.

ABSTRACT

Motion mimicking is a foundational task in physics-based character animation. However, most existing motion mimicking methods are built upon reinforcement learning (RL) and suffer from heavy reward engineering, high variance, and slow convergence with hard explorations. Specifically, they usually take tens of hours or even days of training to mimic a simple motion sequence, resulting in poor scalability. In this work, we leverage differentiable physics simulators (DPS) and propose an efficient motion mimicking method dubbed DiffMimic. Our key insight is that DPS casts a complex policy learning task to a much simpler state matching problem. In particular, DPS learns a stable policy by analytical gradients with ground-truth physical priors hence leading to significantly faster and stabler convergence than RL-based methods. Moreover, to escape from local optima, we utilize a Demonstration Replay mechanism to enable stable gradient backpropagation in a long horizon. Extensive experiments on standard benchmarks show that DiffMimic has a better sample efficiency and time efficiency than existing methods (e.g., DeepMimic). Notably, DiffMimic allows a physically simulated character to learn Backflip after 10 minutes of training and be able to cycle it after 3 hours of training, while the existing approach may require about a day of training to cycle Backflip. More importantly, we hope DiffMimic can benefit more differentiable animation systems with techniques like differentiable clothes simulation in future research.

Motivation & Objective

  • Address the high sample and training cost of reinforcement learning (RL)-based motion mimicking methods, which often require days to learn complex motions.
  • Overcome the challenges of reward engineering, high variance, and slow convergence in RL-based approaches for physics-based character animation.
  • Leverage differentiable physics simulators (DPS) to transform motion mimicking into a direct state-matching optimization problem with analytical gradients.
  • Stabilize training in long-horizon, contact-rich tasks by introducing a Demonstration Replay mechanism to mitigate error accumulation and local optima.
  • Enable fast, scalable, and accurate motion imitation for complex skills like backflips and cartwheels using off-the-shelf differentiable physics environments.

Proposed method

  • Reformulate motion mimicking as a state-matching problem by minimizing the L2 distance between the policy rollout trajectory and the expert demonstration trajectory.
  • Utilize differentiable physics simulators (DPS) to compute analytical gradients of the trajectory loss with respect to the policy parameters, enabling end-to-end optimization without reward shaping.
  • Introduce Demonstration Replay, a training strategy that randomly or threshold-based inserts expert demonstration states into the rollout to stabilize gradient flow and reduce distributional shift.
  • Apply the Demonstration Replay mechanism with a pose-error threshold to selectively replace simulated states when deviation exceeds a predefined limit, improving per-frame tracking fidelity.
  • Optimize the policy using first-order gradient descent on the differentiable loss, avoiding the need for reward function design or trial-and-error reward engineering.
  • Use off-the-shelf differentiable physics simulators (e.g., differentiable MuJoCo) to enable plug-and-play integration with existing animation and control pipelines.

Experimental results

Research questions

  • RQ1Can differentiable physics simulators be used to significantly accelerate motion mimicking compared to traditional RL-based methods?
  • RQ2How does state-matching via analytical gradients compare to reward-based RL in terms of training stability, convergence speed, and sample efficiency?
  • RQ3Can Demonstration Replay effectively stabilize policy learning in long-horizon, contact-rich motion sequences prone to error accumulation?
  • RQ4To what extent can DiffMimic achieve high-fidelity imitation of complex, dynamic motions such as backflips and cartwheels with minimal training time?
  • RQ5Does the proposed method generalize across diverse motion types and enable faster convergence than state-of-the-art RL-based motion mimicking baselines?

Key findings

  • DiffMimic learns a backflip motion in just 10 minutes of training on a single V100 GPU, whereas existing RL-based methods require approximately one day to achieve the same.
  • The method achieves a pose error of less than 0.15 meters using fewer than 2×10⁷ training samples, demonstrating high sample efficiency.
  • Demonstration Replay significantly stabilizes training: policies trained with this mechanism avoid local optima and successfully learn to backflip, unlike the baseline full-horizon gradient method which fails to learn the motion.
  • The Demonstration Replay (Threshold) variant achieves lower maximum per-frame pose error compared to random replay, indicating more faithful frame-by-frame motion recovery.
  • DiffMimic outperforms state-of-the-art RL-based methods in both time efficiency and convergence stability across multiple benchmarks, including backflips and cartwheels.
  • The method enables physically plausible, high-fidelity motion imitation without reward engineering, demonstrating the feasibility of direct state matching in differentiable physics environments.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.