Value function based Reward shaping for safety in quadrupeds
Organizations: Department of Engineering Design, Indian Institute of Technology, Madras. · Center for Cyber-Physical Systems, Indian Institute of Science (IISc), Bengaluru.
Abstract
Reinforcement Learning (RL) has progressed from simple control tasks to complex real-world challenges with large state spaces. While RL excels in these tasks, training time remains a limitation. Reward shaping is a popular solution, but existing methods often rely on value functions, which face scalability issues. This paper presents a novel safety-oriented reward-shaping framework inspired by barrier functions, offering simplicity and ease of implementation across various environments and tasks. To evaluate the effectiveness of the proposed reward formulations, we conduct simulation experiments on the Unitree Go1 quadruped robot in Isaacgym. The policy was better than the existing baselines and reduced safety violations from 27% to 0.1% without almost any compromise on the performance.
Figures & tables
| Reward | Equation | Weight |
|---|---|---|
| Linear velocity tracking | 1 | |
| Angular velocity tracking | 0.5 | |
| Linear velocity ( | -2 | |
| Angular velocity ( | -0.05 | |
| Orientation | -0.2 | |
| Joint power | -0.00002 |
| Reward | Safety violation (%) | Performance |
|---|---|---|
| Only clipping | 27 | 168 |
| Sum CBF (baseline) | 14 | 163 |
| Softmin CBF | 2 | 170 |
| Value function CBF | 0.1 | 160 |
Reward Shaping
Reward shaping designs intermediate or modified feedback to make reinforcement learning more informative, efficient, and aligned with task goals.
See all 153 papers