Hugging Face Unveils Microduck: A $399 Open-Source 25 cm Biped You Train with Reinforcement Learning
Back to Explainers
roboticsExplaineradvanced

Hugging Face Unveils Microduck: A $399 Open-Source 25 cm Biped You Train with Reinforcement Learning

August 28, 20269 views4 min read

This article explains the technical concepts behind Hugging Face's Microduck robot, including reinforcement learning, sim-to-real pipelines, and the role of MuJoCo and ONNX in robotics AI.

Introduction

The release of Microduck by Hugging Face's Pollen Robotics team marks a significant advancement in the field of robotics and machine learning. At $399, this 25 cm bipedal robot is not just a novelty—it's a fully functional platform for training neural policies using reinforcement learning (RL) in a sim-to-real pipeline. This article delves into the technical underpinnings of such systems, exploring how reinforcement learning, simulation environments like MuJoCo, and model export formats like ONNX work together to enable real-world robotic control.

What is Microduck?

Microduck is an open-source, low-cost, bipedal robot designed for research and education in robotics and AI. It features:

  • 15 motors for precise movement control
  • A camera for visual perception
  • A LiDAR sensor for spatial mapping
  • Two inertial measurement units (IMUs) for orientation and motion tracking
  • An Apache-2.0 licensed training stack that allows users to retrain the robot's neural policies

What sets Microduck apart is its accessibility and the completeness of its training pipeline. Unlike traditional robotics platforms that require extensive hardware and software integration, Microduck provides a ready-to-use framework for training and deploying reinforcement learning policies.

How Does It Work?

The core mechanism behind Microduck's operation involves a sim-to-real loop, a common approach in robotics AI where policies are first trained in simulation and then deployed to physical hardware. This process consists of several stages:

1. Simulation Environment (MuJoCo)

MuJoCo (Multi-Joint dynamics with Contact) is a physics engine used for simulating complex robotic systems. In the context of Microduck, researchers create a digital twin of the robot within MuJoCo, where all physical properties, dynamics, and sensor modalities are accurately modeled. This environment is crucial for rapid policy prototyping and testing without risking physical damage.

2. Reinforcement Learning Policy Training

Reinforcement learning agents learn optimal behaviors through trial and error, receiving rewards or penalties based on their actions. In Microduck's case, the agent learns to walk or perform other tasks by interacting with the MuJoCo simulation. The training process typically involves:

  • Defining a reward function that encourages desired behaviors (e.g., walking forward, maintaining balance)
  • Using algorithms like Proximal Policy Optimization (PPO), Soft Actor-Critic (SAC), or Trust Region Policy Optimization (TRPO)
  • Collecting trajectories in simulation to update the policy

3. Policy Export and Deployment

Once trained, the neural policy is exported to the ONNX (Open Neural Network Exchange) format. ONNX is an open standard for representing machine learning models, enabling interoperability across different frameworks. This allows the policy to be deployed on various hardware platforms, including the physical Microduck robot, by converting it into a format compatible with the robot's onboard computing system.

4. Real-World Execution

The exported policy is loaded onto the robot's onboard system, where it controls the motors and sensors in real time. The robot's sensors (camera, LiDAR, IMUs) feed data into the policy, which then outputs control signals to the motors. This process involves bridging the gap between simulation and reality, a challenge known as the reality gap, which requires careful calibration and domain adaptation techniques.

Why Does It Matter?

The significance of Microduck lies in its democratization of robotics research. By providing an affordable, open-source platform, it lowers the barrier to entry for researchers and educators who want to experiment with reinforcement learning in robotics. Key impacts include:

  • Accessibility: The $399 price point makes advanced robotics research accessible to universities, startups, and hobbyists.
  • Reproducibility: Open-source training stacks and model formats like ONNX ensure that experiments are reproducible across different environments.
  • Sim-to-Real Transfer: It exemplifies how simulation-based training can effectively translate to real-world deployment, a critical capability for scalable robotics.
  • Educational Value: It provides a tangible platform for teaching reinforcement learning, control theory, and robotics to students and researchers.

Key Takeaways

  • Microduck is a $399, open-source robot that demonstrates the full sim-to-real reinforcement learning pipeline
  • It uses MuJoCo for simulation and ONNX for model export, enabling seamless deployment of trained policies
  • The platform supports advanced RL algorithms and provides a practical tool for robotics research and education
  • It exemplifies how open-source, low-cost platforms can democratize access to cutting-edge AI and robotics technologies

Source: MarkTechPost