Abstract
Traditional deep reinforcement learning for legged robots often struggles with multitask scenarios due to gradient conflicts within monolithic neural networks. This paper introduces MoE-Loco, a framework utilizing a Mixture of Experts (MoE) architecture to enable a single quadruped robot to master diverse locomotion tasks. By routing tasks through specialized expert networks, MoE-Loco achieves high success rates across nine distinct quadrupedal and bipedal gaits. Experimental results in simulation and real-world deployment on a Unitree Go2 robot demonstrate that MoE-Loco significantly outperforms standard Multi-Layer Perceptron (MLP) architectures and state-of-the-art adaptation methods.
1. Introduction
Legged locomotion in complex, unstructured environments remains a significant challenge in robotics. While single-task policies—such as walking on flat ground or climbing stairs—have achieved high levels of proficiency, developing a unified "brain" capable of handling a wide array of diverse tasks remains elusive. Standard monolithic neural networks often fail when tasked with learning multiple behaviors simultaneously, such as switching between four-legged walking and bipedal standing. This paper presents MoE-Loco, a modular approach that leverages the Mixture of Experts (MoE) paradigm to overcome the limitations of traditional multitask reinforcement learning (MTRL).
2. The Challenge of Gradient Conflict
The primary obstacle in MTRL is the phenomenon of gradient conflict. When a single dense network is trained on multiple tasks, the weight updates (gradients) required for one task may contradict those required for another. For instance, the optimal leg movement for crawling under a low obstacle differs fundamentally from the movement required for climbing stairs. In a standard MLP, these competing demands lead to a "tug-of-war" over the network's parameters, resulting in suboptimal performance across all tasks or the "catastrophic forgetting" of previously learned skills.
3. The MoE-Loco Framework
MoE-Loco addresses gradient conflict by replacing the dense MLP with a modular architecture consisting of several smaller "expert" networks and a centralized "gating" network.
3.1 Dynamic Routing
The gating network acts as a dispatcher. For any given state input, it calculates the relevance of each expert and assigns them specific weights. The final control action is a weighted sum of the outputs from the selected experts. This structure allows the model to decouple task-specific parameters, ensuring that updates for one skill do not negatively impact others.
3.2 Two-Stage Training and Shared Gating
The training process follows a "Teacher-Student" paradigm:
- Oracle Stage: The robot is trained in the IsaacGym simulator with access to privileged information, such as ground friction and contact forces.
- Student Stage: Using Probability Annealing Selection (PAS), the robot learns to replicate the Oracle's performance using only onboard proprioceptive sensors (joint positions and IMU data).
To maintain consistency between the policy's actions (Actor) and its value estimations (Critic), both networks share the same gating logic, ensuring that the robot's internal "value judgment" is aligned with its physical execution.
4. Experimental Evaluation
The researchers benchmarked MoE-Loco in a high-fidelity physics simulator against a standard MLP and the Rapid Motor Adaptation (RMA) framework. The test environment consisted of a 100-meter runway featuring obstacles such as bars, pits, baffles, stairs, and slopes.
4.1 Quantitative Results
MoE-Loco achieved a success rate of 87.9% across the mixed-task benchmark. In contrast, the standard MLP policy achieved only 57.1%, while the RMA framework failed to generalize across the diverse task set (0% success). Furthermore, MoE-Loco demonstrated superior sample efficiency, reaching higher reward thresholds faster than its counterparts during the pre-training phase.
4.2 Real-World Deployment
The policy was deployed zero-shot on a Unitree Go2 quadruped. Despite being trained entirely in simulation, the robot successfully navigated real-world obstacles and executed seamless transitions between quadrupedal and bipedal gaits, all while relying solely on internal sensors.
5. Discussion: Emergent Specialization
Analysis of the gating network revealed that experts did not merely map to specific tasks but rather to fundamental motor skills. For example, specific experts emerged for "balancing" and "agility/leg-crossing." This modularity allows for "Zero-Shot Skill Composition," where researchers can manually activate specific experts to generate new behaviors. A notable example is the creation of a "dribbling" gait—walking while kicking a ball—by combining the balancing and leg-crossing experts without any additional training.
6. Conclusion
MoE-Loco demonstrates that modularity is key to achieving robust multitask locomotion in legged robots. By mitigating gradient conflicts, the MoE architecture allows a single policy to handle a vast range of physical challenges. While the current implementation relies on "blind" proprioception, future work will focus on integrating visual perception into the gating network to allow for proactive, rather than reactive, task switching.
Summary updated