TL;DR
While Proximal Policy Optimization (PPO) dominates legged locomotion training due to its stability in parallel simulations, its on-policy nature makes it too sample-inefficient for real-world hardware fine-tuning. This paper identifies the root causes behind why the off-policy Soft Actor-Critic (SAC) algorithm historically fails in parallel simulators and introduces a suite of targeted modifications—including tight action bounds, low-variance actor initialization, and timeout-aware bootstrapping—to completely close the performance gap with PPO across seven different robot platforms.
What Problem Does This Paper Address?
For legged robots to operate robustly in the wild, they must continuously adapt to novel terrains and physical perturbations. While training control policies in massively parallel simulators (like IsaacLab) has become standard practice, deploying these policies directly to physical hardware often requires online fine-tuning to bridge the sim-to-real gap.
Currently, PPO is the default choice for simulation because it scales reliably across thousands of parallel environments. However, PPO is an on-policy algorithm: it discards all collected data after a single gradient update. This sample inefficiency is acceptable in a simulator where data is cheap, but it represents a massive bottleneck on physical hardware where rollouts are slow, costly, and wear down the machine.
An off-policy algorithm like Soft Actor-Critic (SAC) can reuse past experience from a replay buffer, making it a much better candidate for hardware deployment and continuous learning. Unfortunately, standard SAC has consistently failed to match PPO's performance in massively parallel simulation regimes. This paper investigates the root causes of this instability and provides a principled framework to fix it.
Methods
The authors identify three core failure modes of standard SAC in parallel simulation settings and introduce targeted modifications to resolve them:
- Action Bounds Setting: Standard simulation wrappers often leave action spaces unscaled or arbitrarily large. Because SAC utilizes a squashed Gaussian distribution, overly wide bounds cause it to saturate the action limits, leading to erratic initial exploration. The authors derive tight, physics-based action bounds directly from each robot's joint limits.
- Actor Initialization: Standard initialization strategies spread exploration uniformly across the action range. By initializing the actor's log-standard-deviation head with a constant bias corresponding to a small standard deviation ($\sigma_0 = 0.15$), the initial exploration is safely concentrated around the robot's default joint configuration.
- Timeout-Aware Bootstrapping: In parallel simulations, episodes are frequently cut short due to artificial time limits (timeouts) rather than actual task failures. Treating these timeouts as failures biases the critic. While PPO handles this easily because its data is consumed immediately, SAC stores transitions in a replay buffer where precomputed value estimates quickly become stale. The authors modify the environment wrapper to store the true pre-reset state, allowing SAC to correctly recompute value estimates at training time.
- N-step Returns: To accelerate reward propagation across sparse or rough-terrain environments, the framework constructs $n$-step returns on-the-fly within the replay buffer.
The complete architecture, dubbed RSL-RL-SAC, integrates these components into a unified pipeline:
Datasets
The approach was evaluated inside the IsaacLab simulation framework. Rather than utilizing a synthetic benchmark, the authors validated their algorithm across seven distinct, widely used physical robot platforms:
- Quadrupeds: ANYmal B, ANYmal D, Unitree A1, Unitree Go1, and Unitree Go2.
- Humanoids: Unitree H1 and Unitree G1.
Crucially, the tasks consisted of velocity tracking over rough terrain using the exact, unmodified reward functions originally designed and tuned for PPO, ensuring a rigorous and fair baseline comparison.
Key Insights and Ideas
- The Action Space Mismatch is Lethal for Off-Policy RL: PPO is inherently protected from poorly calibrated action spaces due to its step-size clipping mechanisms. SAC enjoys no such protection; without tight, physics-based action bounds, its exploratory forces drive the joints to their physical limits immediately, destabilizing early training.
- Stale Bootstrapping Destabilizes the Replay Buffer: Storing a precomputed bootstrap value at collection time introduces severe off-policy bias as the critic and policy evolve. Storing the pre-reset observation instead ensures that value estimates are always calculated using the most up-to-date networks.
- Entropy Maximization Wins on Humanoids: On humanoid platforms (H1 and G1), the modified SAC actually outperformed PPO. Humanoid locomotion tasks typically feature dense, highly structured reward functions; in this setting, SAC's maximum-entropy objective provides an exploration advantage that prevents the policy from getting stuck in suboptimal local minima.
Key Results
- Closing the Gap: Across all five quadruped tasks, SAC converged to PPO-level performance while utilizing a single, shared hyperparameter configuration.
- Humanoid Superiority: On the Unitree H1 and G1 humanoids, SAC achieved faster convergence and higher final cumulative rewards than PPO.
- The Wall-Clock Catch: While SAC successfully matched or exceeded PPO's sample efficiency (rewards vs. iterations), a significant wall-clock time gap remains. Because SAC requires larger network architectures, multiple optimizers, and a high update-to-data (UTD) ratio, it demands more raw computational overhead per unit of time than PPO.
Limitations and Future Work
The primary limitation of this approach is its computational wall-clock time, driven by the high UTD ratio required to keep off-policy learning stable. Future algorithmic work is needed to reduce the number of gradient updates required per environment step. Additionally, the authors noted that entropy-driven exploration introduced higher performance variability across random seeds compared to PPO, and occasionally resulted in unnatural-looking gaits on the G1 humanoid, suggesting that reward functions may still need to be subtly adapted to fully exploit off-policy objectives.
Summary updated