Deep Reinforcement Learning With Macro-Actions

Ishan P. Durugkar, Clemens Rosenbaum, Stefan Dernbach, Sridhar MahadevanarXiv 2016

Abstract

Deep reinforcement learning has been shown to be a powerful framework for learning policies from complex high-dimensional sensory inputs to actions in complex tasks, such as the Atari domain. In this paper, we explore output representation modeling in the form of temporal abstraction to improve convergence and reliability of deep reinforcement learning approaches. We concentrate on macro-actions, and evaluate these on different Atari 2600 games, where we show that they yield significant improvements in learning speed. Additionally, we show that they can even achieve better scores than DQN. We offer analysis and explanation for both convergence and final results, revealing a problem deep RL approaches have with sparse reward signals.

Introduction

Standard Deep Reinforcement Learning (RL) agents, like the original Deep Q-Network (DQN), typically operate on a frame-by-frame basis. They select a single "primitive" action (e.g., "move up" or "fire") at every decision point. While this allows for fine-grained control, it significantly slows learning in environments with sparse rewards. If an agent only receives a reward every 1,000 frames but makes decisions every 4 frames, it must correlate a massive sequence of actions with a single outcome. This leads to slow convergence and high variance.

The authors address this by exploring temporal abstraction: allowing the agent to choose "macro-actions" that execute a sequence of actions over multiple time steps. This effectively simplifies the search space and accelerates the propagation of reward signals.

Methods

The researchers extend the DQN architecture to handle a Semi-Markov Decision Process (SMDP). Unlike a standard MDP where every transition takes one unit of time, an SMDP allows for actions of variable duration. Two primary methods for generating macro-actions are proposed:

  1. Repetition of Actions: A baseline where a single primitive action is repeated $n$ times.
  2. Execution Frequency: A more sophisticated approach where the agent tracks the most frequent action sequences performed during training and "promotes" them to macro-actions.

The neural network's output layer is expanded to include these macros. To maintain stability, the set of available macros is updated periodically, accompanied by a temporary boost in the exploration rate ($\epsilon$-greedy) to help the agent adapt to its new action "vocabulary."

Key Insights and Ideas

The success of macro-actions is attributed to several factors:

  • The Action Gap: Macros increase the "action gap"—the difference in value between the optimal action and the second-best action. In standard DQN, Q-values for different actions are often similar, making the agent sensitive to approximation errors. Macros result in more distinct state changes, leading to more "confident" decision-making.
Visualization of the increased action gap when using macro-actions compared to primitive actions.
  • Faster Reward Propagation: In a standard MDP, rewards are "pushed back" one step per update. With a macro of length 5, the reward effectively jumps 5 steps back in a single update, drastically reducing the iterations needed to understand early-game contributions to late-game rewards.
  • Neural Network Synergy: Macros cause more noticeable changes in visual input than single primitive actions, helping the convolutional network learn better state representations and differentiate important features more easily.

Key Results

The approach was evaluated on eight Atari 2600 games using the Arcade Learning Environment (ALE). Macro-enabled agents outperformed the baseline DQN on 6 out of 7 games tested.

Learning curves for Pong and Enduro comparing base DQN with repetition and frequency-based macro-actions.
  • Speed of Convergence: Macro-enabled agents often reached high scores in just 50 million frames, significantly faster than the baseline DQN.
  • Higher Scores: In games like Boxing and Enduro, macro-actions helped the agent reach a higher final performance level than standard DQN.
  • Stability: Variance across training runs was generally lower, particularly in Qbert, suggesting that temporal abstraction makes learning more reliable.

Limitations and Future Work

The primary limitation is that these macros are open-loop. Once initiated, the agent follows the sequence without visual feedback until completion. This explains struggles in games like Breakout, which require frame-perfect, reactive control. Future work involves moving toward closed-loop hierarchical models (like "options") and automated "macro discovery" techniques to learn optimal sequence lengths and compositions without human tuning.

Summary updated

BibTeX
@misc{durugkar2016deep,
  author = {Ishan P. Durugkar and Clemens Rosenbaum and Stefan Dernbach and Sridhar Mahadevan},
  title = {{Deep Reinforcement Learning With Macro-Actions}},
  year = {2016},
  eprint = {1606.04615},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1606.04615},
}
Figure