Regularizing Action Policies for Smooth Control with Reinforcement Learning

Siddharth Mysore, Bassel Mabsout, Renato Mancuso, Kate Saenko

Abstract

A critical problem with the practical utility of controllers trained with deep Reinforcement Learning (RL) is the notable lack of smoothness in the actions learned by the RL policies. This trend often presents itself in the form of control signal oscillation and can result in poor control, high power consumption, and undue system wear. We introduce Conditioning for Action Policy Smoothness (CAPS), an effective yet intuitive regularization on action policies, which offers consistent improvement in the smoothness of the learned state-to-action mappings of neural network controllers, reflected in the elimination of high-frequency components in the control signal. Tested on a real system, improvements in controller smoothness on a quadrotor drone resulted in an almost 80% reduction in power consumption while consistently training flight-worthy controllers.

Introduction

Deep Reinforcement Learning (RL) has demonstrated remarkable success in solving complex control tasks in simulation. However, a significant barrier to real-world deployment is the "jittery" nature of the resulting policies. Standard RL algorithms typically optimize for a cumulative reward signal, often leading to aggressive, high-frequency "bang-bang" control strategies. While these oscillations may be ignored in a simulator, they cause severe issues in physical hardware, including mechanical vibration, motor overheating, and excessive power consumption.

A comparison of noisy motor signals from a standard RL controller (top) versus the smooth signals produced by CAPS (bottom).

Traditional approaches to mitigate this involve "reward engineering"—manually adding penalties for high-frequency actions. This process is often tedious, requires extensive trial and error, and can lead to "lazy" agents that fail to perform the primary task. Furthermore, post-hoc solutions like low-pass filtering can introduce delays that destabilize the system.

Conditioning for Action Policy Smoothness (CAPS)

We propose CAPS, a regularization technique that directly conditions the action policy for smoothness during training. CAPS introduces two primary terms to the loss function:

  1. Temporal Smoothness ($L_T$): This term penalizes abrupt changes in actions between consecutive time steps. By minimizing the difference between the action at the current state $s_t$ and the predicted action for the subsequent state $s_{t+1}$, the policy is encouraged to produce a continuous control signal.
  2. Spatial Smoothness ($L_S$): This term ensures that similar states result in similar actions. By penalizing action differences for states within a small Gaussian neighborhood of the current state, the policy becomes more robust to sensor noise and the "domain gap" between simulation and reality.

Mathematically, these terms effectively minimize the Lipschitz constant of the policy, ensuring the mapping from state space to action space is smooth and well-behaved.

Experimental Evaluation

CAPS was evaluated across three distinct environments: a 1D goal-tracking toy problem, standard OpenAI Gym benchmarks (e.g., Pendulum, LunarLander, Ant), and a real-world quadrotor drone using the Neuroflight framework for high-performance attitude control.

Results and Discussion

The application of CAPS yielded significant improvements in both efficiency and reliability. On the physical quadrotor, CAPS-trained controllers achieved an 80% reduction in power consumption compared to standard RL baselines. Policy smoothness improved by up to 96% across various tasks without a substantial loss in tracking accuracy.

Flight data showing that CAPS maintains excellent tracking (top) while drastically reducing the amplitude and frequency of motor commands (bottom).

A key insight is the role of spatial smoothness in sim-to-real transfer. While temporal smoothness reduces high-frequency jitter, spatial smoothness ensures that minor measurement errors in the real world do not lead to catastrophic motor commands. Furthermore, CAPS enabled 100% repeatability in training flight-worthy controllers, eliminating the need to "cherry-pick" successful agents from a pool of potentially unstable ones.

Conclusion

CAPS provides a simple yet powerful method for training smooth, hardware-friendly RL policies. By regularizing the policy directly rather than relying on complex reward functions, we achieve dramatic improvements in power efficiency and mechanical longevity. Future work will explore the application of CAPS to higher-dimensional robotic systems and automated hyperparameter tuning for specific hardware constraints.

Summary updated

BibTeX
@inproceedings{mysore2021regularizing,
  author = {Siddharth Mysore and Bassel Mabsout and Renato Mancuso and Kate Saenko},
  title = {{Regularizing Action Policies for Smooth Control with Reinforcement Learning}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2021},
  url = {https://openreview.net/forum?id=eAsQHT4SBbW},
}
Figure