RPG: Robust Policy Gating for Smooth Multi-Skill Transitions in Humanoid Fighting

Yucheng Xin, Jiacheng Bao, Yubo Dong, Xueqian Wang, Bin Zhao, Xuelong Li, Junbo Tan, Dong WangarXiv 2026 · arXiv

TL;DR

RPG (Robust Policy Gating) is a new framework that allows humanoid robots to perform fluid, high-agility fighting sequences by seamlessly transitioning between skills like punching, kicking, and jumping. By combining a novel randomization training strategy with a lightweight gating network, the authors achieved stable, "game-like" control on the Unitree G1 humanoid, significantly reducing the instability typically seen during abrupt motion changes.

What Problem Does This Paper Address?

Teaching a humanoid robot to fight is a nightmare for control engineers. Unlike steady-state walking, fighting requires extreme agility, rapid whole-body coordination, and—most difficult of all—the ability to switch between vastly different motions (e.g., from a high jump to a low kick) at any moment.

Existing approaches usually fall into two camps: switching between specialized single-skill policies or using one massive "generalist" policy. Both struggle with transitions. If a robot is mid-punch and suddenly told to kick, the "terminal state" of the punch rarely matches the "initial state" required for the kick. This mismatch creates "out-of-domain" disturbances, leading to jerky movements, foot sliding, or the robot simply falling over. The authors aim to bridge this gap, creating a controller that feels as responsive and fluid as a character in an Action RPG.

Methods

The RPG framework consists of three main stages:

  1. Expert Policy Training with Randomization: The authors first train individual expert policies (using PPO) for specific skills: punching, jumping, sword swinging, and kicking. The "secret sauce" here is two-fold:
  2. Policy-Transition Randomization: During training, the system stochastically forces a switch to a different skill mid-motion. This compels each expert to learn how to recover and start from a wide variety of "messy" initial states.
  3. Temporal Randomization: The reference motion frames are occasionally skipped or jumped, teaching the policy to handle timing misalignments.
  4. Robust Policy Gating: Once experts are trained, their parameters are frozen. A lightweight Gating Network is then trained to output weighted combinations of these experts' actions. Crucially, the gating network provides separate weights for the upper and lower body, allowing for more nuanced coordination.
  5. Smoothness Regularization: To prevent the robot from vibrating or twitching during transitions, the gating network is optimized with rewards that penalize high torque changes and encourage contact smoothness.
The RPG framework: from data processing to expert training and gating policy fusion.

Datasets

The researchers didn't rely on a single pre-existing robotics dataset. Instead, they built a pipeline to leverage human motion data:

  • Public Motion Datasets: They used existing SMPL-format human motion data.
  • Custom Video Data: They recorded monocular videos of fighting moves and used the GVHMR framework to extract 3D human motions.
  • Retargeting: All motions were processed via the PHC retargeting method to adapt human kinematics to the specific dimensions and joint limits of the Unitree G1 humanoid robot.

Key Insights and Ideas

  • Anticipating Interruption: The most important insight is that robustness isn't just about mastering a skill; it's about mastering the transition into and out of that skill. By explicitly simulating "abrupt truncations" during training, the experts become inherently more stable.
  • Decoupled Body Control: The gating network treats the upper and lower body differently. This is vital for fighting; for example, a robot might need to maintain a stable stance (lower body) while blending different striking techniques (upper body).
  • Game-like Interface: The authors integrated their fighting controller with a standard locomotion policy. This allows a user to control the robot with a joystick: it walks normally until a button is pressed, at which point it seamlessly executes a combat move and then returns to walking.
Fig. 2. Recovery Tests. Due to the short duration of the Jumping motion, it was excluded from consideration. For the other motions, the robot demonstrated the ability to avoid foot sliding and resume a stable, human-like standing posture from any interrupted state during execution.

Key Results

The RPG framework was tested both in MuJoCo simulations and on the physical Unitree G1 hardware.

  • Success Rates: In the most difficult transitions (e.g., Jumping to Kicking), the baseline method failed almost entirely (5% success rate). RPG improved this to 75%. For easier transitions like Sword Swing to Punching, RPG achieved a near-perfect 95% success rate.
  • Smoothness: Using the Mean Acceleration of Joints ($E_{maccj}$) as a metric, RPG showed significantly lower values than the baseline, indicating much more fluid, human-like motion.
  • Ablation Study: The authors proved that the Gating Network is essential. Without it (using a simple hard switch), the joint acceleration spiked, leading to the "jerky" behavior they sought to avoid.
Gating weight variations during a complex Jump-Punch-Sword-Kick sequence, showing how the network blends experts over time.

Limitations and Future Work

While RPG handles the execution of skills brilliantly, it currently lacks perception. The robot can perform a beautiful kick, but it doesn't "see" an opponent or adjust its aim based on external targets.

The authors note that future work will focus on integrating vision and recognition capabilities. This would allow the robot to autonomously track and engage targets, moving from a "joystick-controlled" system to a fully autonomous combat agent. Additionally, while the Unitree G1 handled the motions well, the authors noted that lower-body dominant motions still face higher disturbances, suggesting room for even more robust balance controllers.

Summary updated

Abstract

Humanoid robots have demonstrated impressive motor skills in a wide range of tasks, yet whole-body control for humanlike long-time, dynamic fighting remains particularly challenging due to the stringent requirements on agility and stability. While imitation learning enables robots to execute human-like fighting skills, existing approaches often rely on switching among multiple single-skill policies or employing a general policy to imitate input reference motions. These strategies suffer from instability when transitioning between skills, as the mismatch of initial and terminal states across skills or reference motions introduces out-of-domain disturbances, resulting in unsmooth or unstable behaviors. In this work, we propose RPG, a hybrid expert policy framework, for smooth and stable humanoid multi-skills transition. Our approach incorporates motion transition randomization and temporal randomization to train a unified policy that generates agile fighting actions with stability and smoothness during skill transitions. Furthermore, we design a control pipeline that integrates walking/running locomotion with fighting skills, allowing humanlike long-time combat of arbitrary duration that can be seamlessly interrupted or transit action policies at any time. Extensive experiments in simulation demonstrate the effectiveness of the proposed framework, and real-world deployment on the Unitree G1 humanoid robot further validates its robustness and applicability.
BibTeX
@misc{xin2026rpg,
  author = {Yucheng Xin and Jiacheng Bao and Yubo Dong and Xueqian Wang and Bin Zhao and Xuelong Li and Junbo Tan and Dong Wang},
  title = {{RPG: Robust Policy Gating for Smooth Multi-Skill Transitions in Humanoid Fighting}},
  year = {2026},
  eprint = {2604.21355},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.21355},
}

Loading related content...

Figure