基於導數之強化學習控制模型動作平滑化
Derivative-based Regularization for Action Smoothness in Deep Reinforcement Learning Robotics Control
摘要
近年來,深度強化學習(DRL)在不同的應用取得了顯著的成果,涵蓋從複雜的電腦遊戲到現實世界應用的廣泛範疇,展示了在動態環境中進行學習與應用的潛力。然而,強化學習於現實場景的應用存在著挑戰,其中包括了動作不平滑的問題,不僅危及系統的安全性,更增加能源消耗並縮短機器人系統的使用壽命。為解決這個問題,一種稱為動作策略平滑性條件(CAPS)的方法被提出,通過對相鄰與相似動作的制約,此方法能有效提升控制策略的穩定性與平滑度。然而,CAPS 對於動作變化量的直接限制,降低了控制策略的表現性,導致機器人系統反應能力下降。建立於 CAPS 的基礎之上,本文進一步提出了一種新的方法,名為基於導數之強化學習控制模型動作平滑化(D-CAPS),它改進了 CAPS 的損失函數設計,通過減少動作梯度的差異,來避免對控制策略動作變化量的直接限制,並使用動作位移正規化,使損失函數能適應不同的動作尺度。綜合以上,我們的方法有效地減少了控制動作序列中無效往返動作所造成的內耗,同時增強了控制策略的反應能力和在不同場景和環境中的適應性。在 OpenAI Gym、Deep Mind Control Suite 等公開 benchmark 環境中,D-CAPS 控制反應能力明顯優於 CAPS,同時保持了相同程度的控制平滑度。與基準 DRL 方法(在我們的案例中為SAC)相比,D-CAPS 也在各環境中獲得更高的累積獎勵,同時實現了更平滑的控制。
In recent years, Deep Reinforcement Learning (DRL) has achieved remarkable success in wide range of applications such as computer games and robotics control. However, applying DRL to real-world robotics control scenarios poses challenges, such as the issue of jerky control problem, which compromise system safety, increase power consumption, and shorten the service life of robotic systems. To address this problem, a method called Conditioning for Action Policy Smoothness (CAPS) was proposed, incorporating regularization terms to reduce abrupt action changes. However, due to the explicit regularization on the action change, CAPS sacrifices the responsiveness of control policies. Based on the idea of CAPS, this thesis introduces a novel approach, Derivative-based Conditioning for Action Policy Smoothness (D-CAPS), which focuses on reducing the slope differences of actions and utilizing displacement normalization to adapt to different action scales. As a result, our method effectively removes the zigzagging pattern in action sequences, while improving policy expressiveness and adaptability across diverse scenarios and environments. Experimental results on OpenAI Gyms and DeepMind Control Suites demonstrate that D-CAPS outperforms CAPS, exhibiting comparable smooth behaviors. Furthermore, when compared to baseline (in our case, SAC), D-CAPS surpasses it with higher accumulated environment rewards while achieving significantly smoother behaviors.