Imitation Learning (IL) has emerged as a powerful paradigm for robotic control, allowing agents to acquire complex behaviors by observing demonstrations rather than through the manual engineering of reward functions. However, the advancement of IL in the domain of locomotion has been hindered by a lack of standardized, high-fidelity benchmarks. Researchers frequently rely on custom, non-standardized environments and private datasets, which prevents fair algorithmic comparison and reproducible research.
To address these challenges, researchers from TU Darmstadt and DFKI introduced LocoMuJoCo, a standardized benchmark specifically designed for imitation learning in agile and realistic locomotion.
Addressing the Gaps in Locomotion Benchmarking
The development of LocoMuJoCo was motivated by three primary deficiencies in existing reinforcement learning (RL) and IL benchmarks:
- Lack of Standardization: The absence of common expert datasets makes performance comparisons across different IL studies nearly impossible.
- Oversimplified Dynamics: Many current benchmarks utilize low-dimensional 2D models that fail to capture the physical complexities of real-world humanoid or quadrupedal movement.
- Data Homogeneity: Real-world demonstrations are often noisy or sub-optimal. Most benchmarks only provide "perfect" expert trajectories, ignoring the challenges of learning from imperfect data.
The LocoMuJoCo Framework
LocoMuJoCo is a Python-based framework integrated with the MuJoCo physics engine, designed for compatibility with standard libraries like Gymnasium and Mushroom-RL. It encompasses 12 diverse environments and 27 distinct tasks.
Diverse Embodiments and Realism
The benchmark includes a wide array of models, such as the Talos and Atlas humanoids, the Unitree H1 humanoid, the Unitree A1 quadruped, and sophisticated human models. A standout feature is the inclusion of both torque-actuated and muscle-actuated musculoskeletal systems. The latter introduces biological realism through redundant actuators and non-linear dynamics, significantly increasing the complexity of the control task.
Biomechanical Scaling and Randomization
To support research into generalization and robustness, LocoMuJoCo allows for biomechanical scaling of human models across four life stages: infant, child, teenager, and adult. This scaling adheres to physical principles, adjusting link lengths linearly, masses cubically, and torques quadratically. Furthermore, the framework supports dynamics randomization—varying joint properties, inertia, and friction—to facilitate studies on the sim-to-real gap.
Dataset Diversity and Task Design
LocoMuJoCo provides three tiers of demonstration data to test different aspects of IL algorithms:
- Realistic Noisy MoCap: Human motion capture data retargeted to various models. This introduces "embodiment mismatch," where the agent must learn to mimic a teacher with different physical proportions.
- Ground Truth Expert Data: High-quality trajectories containing the precise actions required for the movement.
- Sub-optimal Data: Demonstrations that are functional but not perfect, useful for preference-based IL or offline Inverse Reinforcement Learning (IRL).
The tasks are structured as Partially Observable Markov Decision Processes (POMDPs). For instance, an agent might need to carry an object of unknown weight or control a humanoid of an unknown "age" (size), requiring it to infer hidden states from its own movement dynamics.
Evaluation and Insights
The benchmark includes pre-tuned baselines for state-of-the-art IL algorithms, including GAIL, IQ-Learn, and SQIL. Initial evaluations demonstrate that while simple tasks like walking can be addressed with Behavioral Cloning, more complex behaviors like running or carrying heavy loads necessitate advanced adversarial or IRL techniques. The researchers also validated that handcrafted metrics, such as Center of Mass velocity error, correlate strongly with perceived gait quality.
Conclusion and Future Directions
LocoMuJoCo provides a much-needed "one-stop-shop" for locomotion IL research, offering standardized environments, diverse datasets, and rigorous evaluation metrics. Future work aims to expand the task library and develop more sophisticated evaluation metrics grounded in biomechanical principles, such as metabolic cost and joint stress, to further bridge the gap between simulated agents and biological realism.
The code and environments for LocoMuJoCo are open-source and available at https://github.com/robfiras/loco-mujoco.
Summary updated