[Paper Review] Evaluation of Constrained Reinforcement Learning Algorithms for Legged Locomotion
This paper evaluates constrained reinforcement learning (CRL) algorithms for legged locomotion using the Constrained Markov Decision Process (CMDP) framework to enforce physical constraints like joint velocity and torque limits. By decoupling constraints from rewards, the approach reduces constraint violations and improves sim-to-real transfer, with N-P3O showing superior performance and stability in real-world robot experiments.
Shifting from traditional control strategies to Deep Reinforcement Learning (RL) for legged robots poses inherent challenges, especially when addressing real-world physical constraints during training. While high-fidelity simulations provide significant benefits, they often bypass these essential physical limitations. In this paper, we experiment with the Constrained Markov Decision Process (CMDP) framework instead of the conventional unconstrained RL for robotic applications. We perform a comparative study of different constrained policy optimization algorithms to identify suitable methods for practical implementation. Our robot experiments demonstrate the critical role of incorporating physical constraints, yielding successful sim-to-real transfers, and reducing operational errors on physical systems. The CMDP formulation streamlines the training process by separately handling constraints from rewards. Our findings underscore the potential of constrained RL for the effective development and deployment of learned controllers in robotics.
Motivation & Objective
- Address the gap in existing RL research that overlooks physical constraints during policy training for legged robots.
- Improve sim-to-real transfer by incorporating hard physical constraints (e.g., torque, velocity limits) directly into the learning process.
- Evaluate and compare first-order constrained policy optimization algorithms for their ability to maintain constraint compliance while achieving high locomotion performance.
- Demonstrate that separating constraints from rewards reduces the need for complex reward shaping and enhances policy robustness.
- Develop and validate a practical CRL pipeline for real-world deployment on a wheeled-legged robot.
Proposed method
- Formulate legged locomotion as a Constrained Markov Decision Process (CMDP), explicitly modeling physical constraints via cost functions and thresholds.
- Apply three first-order CRL algorithms—N-P3O, PPO-Lagrangian, and CRPO—each using different optimization strategies to enforce constraints.
- Introduce a softplus output layer to the cost critic network to ensure non-negative cost value estimation, improving training stability.
- Implement a dynamic scheduling of the constraint penalty coefficient (κ) to delay constraint enforcement and encourage exploration early in training.
- Use entropy regularization with decaying coefficient to improve policy smoothness and generalization.
- Apply domain randomization and proprioceptive state observations (velocity, joint states, gravity) to enhance policy robustness.
Experimental results
Research questions
- RQ1How do different constrained policy optimization algorithms compare in terms of constraint violation and final performance for legged locomotion?
- RQ2Can enforcing physical constraints during training reduce the need for extensive reward shaping in simulation?
- RQ3Does the CMDP formulation improve sim-to-real transfer and operational reliability on real-world legged robots?
- RQ4What impact do different cost function designs (e.g., indicator, squared ReLU) have on constraint violation frequency and deviation?
- RQ5How does non-negative cost critic training (via softplus) affect learning stability and constraint satisfaction?
Key findings
- The N-P3O algorithm achieved the lowest constraint violations (0.05 per episode) and highest performance (72.83 average reward) among evaluated methods.
- Using an indicator function as the cost function resulted in the fewest constraint violations, followed by the number-of-joints cost function.
- The softplus-activated cost critic reduced variance in cost return estimation and improved training stability compared to a standard linear critic.
- The CMDP framework successfully reduced constraint violations in real-world deployment, demonstrating effective sim-to-real transfer on a wheeled-legged robot.
- Dynamic scheduling of the constraint penalty coefficient (κ) prevented premature convergence and enhanced exploration, improving final policy quality.
- The approach reduced reliance on reward shaping for physical limits, streamlining policy design and improving generalization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.