∇Mimic:基于可微仿真的超高效类人机器人控制
$\nabla$Mimic: Ultra-Efficient Humanoid Control with Differentiable Simulation
AI总结:
本文提出∇Mimic方法,结合自研可微GPU仿真引擎NablaEngine,解决类人机器人一阶策略学习的梯度爆炸与效率问题,使全身跟踪任务的速度较现有方法提升数倍,达到更优性能并开源相关工具。
摘要:
机器人策略学习目前主要由零阶方法(如PPO)主导,这类方法将仿真器视为黑箱,需要大量样本作为代价。一阶策略学习通过动力学求导,但在接触丰富的全身控制场景中极少奏效,因为其梯度会发生爆炸。近期一种世界模型方法表明,导数信息可通过学习模型的代理梯度大幅提升类人机器人运动跟踪的效率。本文指出,只要消除两个障碍,仿真器本身的精确梯度会表现更优:一是精确梯度包含罕见的无界样本,原因是接触动力学并非处处可微,且在部分事件附近导数会发散;二是精确梯度成本高昂,因为仿真器的伴随需重放接触求解过程。∇Mimic在反向传播的每一步采用中位数相对的逐样本梯度裁剪来约束这些样本,并通过多步回归到梯度衍生的动作目标来复用每个高成本仿真窗口,该方法可独立于梯度尺度约束每个动作目标。NablaEngine是针对Unitree G1的可微GPU仿真引擎,它通过融合每世界内核将MuJoCo的完整接触动力学与整个控制步的伴随计算为单个巨内核,其解析梯度与float64有限差分匹配,比现有MuJoCo Warp伴随快11.5倍。在单GPU上用单个策略对全部40个LAFAN1片段进行全身跟踪时,∇Mimic在20分钟内达到了最先进世界模型方法的分数0.82,1.8小时内达到0.874;而标准一阶基线SHAC在数分钟内就因梯度爆炸而终止。本文将NablaEngine和∇Mimic作为一阶类人机器人策略学习的开源基础设施发布。
英文摘要:
Robot policy learning is dominated by zeroth-order methods such as PPO, which treat the simulator as a black box and pay for it with enormous sample counts. First-order policy learning differentiates through the dynamics, but on contact-rich whole-body control it has rarely worked: its gradients explode. A recent world-model method showed that derivative information can make humanoid motion tracking far more efficient, using surrogate gradients of a learned model. We show that exact gradients of the simulator itself do better, once two obstacles are removed. Exact gradients contain rare unbounded samples, because contact dynamics is not differentiable everywhere and its derivative diverges near some events; and they are expensive, because the simulator's adjoint has to replay the contact solve. $\nabla$Mimic bounds these samples with median-relative per-sample gradient clipping at every step of the backward pass, and reuses each costly simulated window by multistep regression onto gradient-derived action targets, which bounds every action target independently of the gradient scale. NablaEngine, a differentiable GPU simulation engine for the Unitree G1, removes the cost: it computes MuJoCo's full contact dynamics with fused per-world kernels and the adjoint of a whole control step as a single megakernel, with analytic gradients that match float64 finite differences, $11.5\times$ faster than the available MuJoCo Warp adjoint. On whole-body tracking of all 40 LAFAN1 clips with one policy on one GPU, $\nabla$Mimic reaches the score reported by the state-of-the-art world-model method, 0.82, in 20 minutes instead of 1.2 h, and 0.874 in 1.8 h. SHAC, the standard first-order baseline, stops on exploding gradients within minutes. We release NablaEngine and $\nabla$Mimic as open-source infrastructure for first-order humanoid policy learning.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。