Skip to content

Add a SuperMimic agent for G1 motion tracking - #9151

Draft
lgulich wants to merge 24 commits into
isaac-sim:mainfrom
lgulich:lgulich/g1-motion-tracking-supermimic
Draft

lgulich wants to merge 24 commits into
isaac-sim:mainfrom
lgulich:lgulich/g1-motion-tracking-supermimic

Conversation

@lgulich

@lgulich lgulich commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Isaac Lab's G1 motion tracking task (#8878) trains with PPO. This adds a second agent for it that trains with RSL-RL's SuperMimic (leggedrobotics/rsl_rl#255), the model-based algorithm that fits a world model and optimizes the policy through imagined rollouts. On this task it reaches PPO's best reward in about 11 minutes on one L40S, where PPO needs most of an hour.

The task's rewards, terminations, commands and events are unchanged and shared with the PPO agent. An opt-in state_obs preset adds the noise-free state, goal, context and label groups SuperMimic reads; the default observations stay as they are.

MotionTrackingTask is the differentiable side of the task. Its world-model state is the root pose and velocities plus joint positions and velocities. It computes body poses with forward kinematics read from the Newton model, the nine reward terms with the weights and scales from the reward manager, and smooth versions of the terminations for imagined rollouts. The kinematics and tracking objectives follow Octi's G1 tracking work in #8826; his separate learner is not used. Tests check the kinematics against simulated body poses and every reward and termination against the env's managers.

The G1 agent uses the BlinkMimic recipe (arXiv 2611.16422): Muon on the actor and world model, a 4× actor learning rate that decays after 1400 learner iterations, a policy that corrects the reference joint targets, mirrored world-model batches, and BlinkMimic's smaller world model and batches. These come from optional settings that are now part of leggedrobotics/rsl_rl#255. Both SuperMimic variants run their learner and collection in CUDA graphs.

On 3 seeds of 60 minutes each on one L40S, against the Isaac Lab PPO agent on the same task:

  • PPO reaches an episode reward of 10.3 and a body position error of 0.064 m.
  • SuperMimic with its original recipe reaches 12.2 and 0.052 m, passing PPO after about 25 minutes.
  • SuperMimic with the BlinkMimic recipe reaches 13.3 and 0.036 m, passing PPO within 10 minutes.

Curves and videos: https://linkify.nvidia.com/s/rsl-rl-ppo-supermimic-motion-tracking/ (NVIDIA internal).

Stacked on #8867, so the diff includes its commits until it merges; the motion tracking changes alone: lgulich/IsaacLab@d8b70d4...lgulich/g1-motion-tracking-supermimic. It needs an rsl-rl-lib release with leggedrobotics/rsl_rl#255 before CI can import SuperMimic.

Open points: the forward kinematics and the reference action read private attributes (the articulation's _root_view, the action term's _scale and _offset), as assemble_trocar already does, and the kinematics need the Newton backend.

To train it:

uv run isaaclab train --rl_library rsl_rl --task Isaac-Motion-Tracking-G1 \
    --agent rsl_rl_supermimic_cfg_entry_point presets=state_obs

and to run the tests:

./isaaclab.sh -p -m pytest source/isaaclab_tasks/test/core/test_motion_tracking_supermimic.py

🤖 Generated with Claude Code

rafaelcathomen and others added 14 commits November 21, 2026 16:16
RSL-RL aligned SuperMimic's parameter names with SAC and PPO and added
CUDA graph capture. The replay capacity key also has to match, since
RSL-RL consumes it while building the replay buffer.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Per-term joint and body indices are device tensors built once, and
products over feet and contact bodies multiply explicitly, since the
backward of prod synchronizes with the host.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The velocity task's heads now run inside captured graphs, and graphed
learner iterations match eager ones.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added isaac-lab Related to Isaac Lab team infrastructure labels Nov 22, 2026
@lgulich lgulich mentioned this pull request Nov 22, 2026
7 tasks done
The every-step extras key is now cleared beside the final_obs key it
pairs with in reset and reset_to. The physical observation groups rely
on the group default for corruption, the velocity task resolves its
contact sensor name once, and the docs and docstrings drop references to
the parity test and to G1 being the first consumer.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@lgulich
lgulich force-pushed the lgulich/g1-motion-tracking-supermimic branch from 82bd0bb to fb80dbe Compare November 23, 2026 10:31
The typed SuperMimic configurations covered only part of the RSL-RL
constructor options, so the constructor-tracking test failed against
the current SuperMimic. Add the remaining actor, world-model and
algorithm options: the BlinkMimic settings (reference-action actor,
mirrored world-model batches, Muon and the actor learning-rate
multiplier with its decay triggers), the reference recipe's schedule,
replay-window and critic switches, and the actor and world-model
network options. The environment's maximum episode length is injected
by construct_algorithm.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@lgulich

lgulich commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto #8867: the BlinkMimic config fields moved there, and the motion tracking task uses the new per-component mirror hooks of leggedrobotics/rsl_rl#255. #9173 (G1 velocity) is stacked on this.

The use_cuda_graph docstring named only learner iterations, while RSL-RL
also captures the collection calls act and process_env_step. It now says
so, and notes that Python values read inside the captured calls, such as
the reward weights the differentiable velocity task reads from the
reward manager, are fixed at capture time.

Signed-off-by: Rafael Cathomen <[email protected]>
RSL-RL's SuperMimic now passes the applied policy actions and the
privileged context to post_dynamics, and the actor observation history
to critic_obs, for tasks whose analytic state or critic depends on
them. The differentiable velocity task needs neither: its contact
clocks advance from the predicted contact events alone and its critic
keeps its privileged inputs. It accepts the new arguments so that the
learner can call it.

Signed-off-by: Rafael Cathomen <[email protected]>
ClemensSchwarke and others added 4 commits November 24, 2026 21:48
Isaac-Motion-Tracking-G1 gets an rsl_rl_supermimic_cfg_entry_point agent
that trains with RSL-RL's SuperMimic. The task's rewards, terminations,
commands and events are unchanged and shared with the PPO agent; an
opt-in state_obs preset adds the physical state, goal, context and label
groups SuperMimic reads.

MotionTrackingTask provides the world-model state (root pose and
velocities, joint positions and velocities), forward kinematics from the
Newton model, the nine reward terms and soft versions of the
terminations. The kinematics and tracking objectives follow Octi's G1
tracking work. Tests check the kinematics against simulated body poses
and every reward and termination against the env's managers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The G1 agent uses BlinkMimic's sizes and settings: Muon, a raised actor
learning rate with a decay start, a policy that corrects the task's
reference action, and mirrored world-model batches. The motion tracking
task provides the reference joint targets, and the G1 task mirrors
states, actions, body masses and self-collision labels across the
sagittal plane. Its forward kinematics run per tree depth instead of
per joint.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The physical observation groups rely on the group default for
corruption, the G1 agent leaves the warm-up steps and actor learning-rate
decay length at their defaults, and the task looks up its action term
once.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
rafaelcathomen and others added 2 commits November 24, 2026 21:48
RSL-RL's SuperMimic now passes the actor observation history to
DifferentiableTask.critic_obs as a fifth argument (rsl_rl#255). The
motion-tracking critic does not use it. The parameter defaults to None, so
the task works with RSL-RL revisions from before and after that change.

Signed-off-by: Rafael Cathomen <[email protected]>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants