TL;DR
The paper introduces Sampling-Guided Policy Search (SGPS), a framework that drastically accelerates the training of visual control policies for complex robot locomotion and manipulation. By combining sampling-based Model Predictive Control (MPC) with first-order policy gradients (FoPG), SGPS avoids local optimization traps and enables direct learning from depth images without requiring a separate teacher policy. The resulting unified policy achieves a 196x reduction in sample complexity compared to PPO and transfers zero-shot to a real quadruped robot for autonomous obstacle traversal.
What Problem Does This Paper Address?
Training robots to navigate complex environments using visual inputs (like depth cameras) is notoriously difficult and computationally expensive. Traditional reinforcement learning (RL) methods like PPO require millions or billions of simulation steps. To speed things up, researchers often use differentiable simulators to compute first-order policy gradients (FoPG). However, FoPG is prone to getting stuck in local minima, resulting in awkward, unintended contact patterns (e.g., a robot shuffling instead of trotting).
To bypass this, standard pipelines first train a "teacher" policy with full access to privileged simulation states, then distill it into a "student" visual policy. This multi-stage process adds significant complexity and overhead. This paper addresses the challenge of directly and efficiently learning robust visual policies from scratch without needing a separate teacher policy.
Methods
The core innovation is Sampling-Guided Policy Search (SGPS), which elegantly marries derivative-free sampling with gradient-based optimization:
- Reference Generation: A sampling-based MPC (using annealed sampling) generates dynamically feasible reference trajectories based on a high-level task objective.
- Behavior Cloning (BC) Initialization: The policy is initialized by cloning the actions from these sampled reference trajectories.
- Recurring Action-Target Refinement: During training, the framework alternates between sampling-based MPC refinement (which refreshes and provides high-quality action targets) and short-horizon Decoupled FoPG updates under randomized dynamics.
- Decoupled FoPG: To avoid backpropagating gradients through the non-differentiable rendering process, SGPS uses a stop-gradient on the visual observations. This allows the policy to learn directly from egocentric depth images while still exploiting analytical gradients through the robot's physics and actions.
- Policy Distillation: Finally, multiple specialist policies (e.g., trotting, crawling, hurdling) are distilled into a single, unified visual generalist policy using DAgger.
Datasets
The method was evaluated using simulated environments built in MuJoCo MJX on a single NVIDIA RTX 4080 GPU. The embodiments and tasks include:
- Unitree Go2 (Quadruped): Flat-ground trotting, crawling under an overhead beam, and hurdling over a bar.
- Unitree G1 (Humanoid): Whole-body crate pushing (18 kg crate) and bimanual box carrying (4 kg box).
No standard external datasets were used, as all training data was generated online via simulation.
Key Insights and Ideas
- Global Guidance for Local Gradients: Sampling-based MPC acts as a global guide. While pure gradient methods get trapped in poor local gaits, the derivative-free sampling exploration constantly "refreshes" the target behaviors, keeping the policy on the right track.
- Ditch the Teacher: By decoupling the renderer from the gradient computation graph, the authors prove that you don't need a privileged state-policy teacher to guide a visual student. The visual encoder can be trained directly alongside the control policy using sampling-based targets.
- Refinement Matters Beyond Initialization: A key ablation study showed that simply initializing a policy with MPC trajectories isn't enough. Continuously refining the action targets during training under randomized dynamics is crucial for achieving high performance in visual tasks.
Key Results
- Massive Efficiency Gains: For state-based locomotion, SGPS achieved high-return trotting gaits using 196x fewer environment interactions than Model-Free PPO.
- Direct Visual Learning: SGPS successfully trained visual policies directly from depth images, outperforming variants without recurring refinement.
- Zero-Shot Hardware Deployment: The distilled visual policy was deployed directly onto a real Unitree Go2 robot without any hardware fine-tuning. Running entirely on an onboard NVIDIA Jetson Orin module, the robot successfully used its depth camera to autonomously switch behaviors—trotting, crawling under obstacles, and climbing/clearing hurdles based purely on visual perception.
Limitations and Future Work
- Dependence on Differentiable Physics: SGPS relies on the availability of a differentiable simulator (like MuJoCo MJX) for its FoPG updates.
- Task-Specific Engineering: The initial reference generation still requires carefully designed task-specific reward functions and successful MPC sampling.
- Simplified Manipulation: For the humanoid tasks (G1), object motions and hand-object interactions were highly simplified (e.g., using soft constraints for grasping). Complex, dexterous manipulation remains an open challenge.
- Future Directions: The authors point toward exploring more realistic object interactions, long-horizon manipulation tasks, and deploying the visual policies on real humanoid hardware.
Summary updated