Addressing Action Oscillations through Learning Policy Inertia

Chen Chen, Hongyao Tang, Jianye Hao, Wulong Liu, Zhaopeng Meng

Introduction

Deep Reinforcement Learning (DRL) has demonstrated impressive capabilities in complex decision-making tasks. However, a persistent yet often overlooked issue is action oscillation. This phenomenon occurs when an agent rapidly switches between different actions in nearly identical states, such as toggling between acceleration and braking every fraction of a second. While these oscillations might not significantly impact cumulative rewards in simulation, they pose severe risks in real-world applications like autonomous driving and robotics, leading to mechanical wear, passenger discomfort, and safety hazards.

The Policy Inertia Controller (PIC)

To address this, we introduce the Policy Inertia Controller (PIC), a plug-in framework designed to help agents learn "inertia"—the ability to adaptively persist with a previous action. Unlike traditional "frame skipping" methods that repeat actions for a fixed duration, PIC learns when to be persistent and when to react based on the environment's state.

The PIC-augmented policy is a linear combination of a Policy Core ($\pi^{core}$) (a standard DRL policy like SAC or DQN) and an Inertia Component (a Dirac distribution centered on the previous action $a_{t-1}$). A learned scalar controller, $\mu^{pic}$, determines the trade-off: a high value favors inertia, while a low value follows the core policy.

Nested Policy Iteration

Training such a hybrid policy requires a specialized approach. We propose Nested Policy Iteration (NPI), which utilizes an inner loop to optimize the policy core for rewards and an outer loop to train the PIC module for optimal inertia application.

Nested Policy Iteration (NPI) framework for training the PIC module.

This nested structure is theoretically grounded, ensuring monotonically non-decreasing updates. The practical implementation, Nested Soft Actor-Critic (NSAC), leverages the efficiency of the SAC algorithm within this framework.

Experimental Evaluation

We evaluated the PIC framework across two diverse benchmark suites:

  1. Highway Simulator: Testing smoothness in critical driving scenarios like lane changes, merges, and intersections.
  2. Atari Games: Assessing versatility in discrete-action environments such as MsPacman, SpaceInvaders, Qbert, and JamesBond.

Key Results

The experimental results demonstrate that NSAC consistently outperforms standard baselines in terms of behavioral smoothness without sacrificing task performance.

Performance comparison across Highway and Atari benchmarks, showing oscillation rates and average returns.

As shown in the results, the "action oscillation ratio" is significantly reduced across all tasks. Crucially, the cumulative rewards remain comparable to or better than those achieved by standard SAC and DQN. This confirms that there exists a family of smoother policies capable of matching the performance of jittery ones. Furthermore, PIC proved more sample-efficient than simple action-repetition baselines and more robust than reward-shaping "hacks," which often lead to poor local minima in complex environments like intersections.

Conclusion and Future Work

The Policy Inertia Controller provides a robust solution for reducing action oscillations in DRL agents. By learning state-dependent persistence, agents achieve smoother, safer trajectories suitable for real-world deployment. Future research will focus on extending this framework to continuous action spaces and validating performance on physical hardware to measure improvements in mechanical longevity and user comfort.

Summary updated

BibTeX
@inproceedings{chen2021addressing,
  author = {Chen Chen and Hongyao Tang and Jianye Hao and Wulong Liu and Zhaopeng Meng},
  title = {{Addressing Action Oscillations through Learning Policy Inertia}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i8.16864},
}
Figure