Introduction
In standard Reinforcement Learning (RL), an agent learns a policy that maps a specific state to an action. While effective, this approach struggles with scalability. In large or complex state spaces, an agent might spend an eternity wandering randomly before finding a reward.
Humans, on the other hand, don't just react to isolated states; we use "macro-actions" or habits. When riding a bike, you don't think about every micro-adjustment of the handlebars based on your exact tilt; you execute a learned sequence of movements to maintain balance. Traditionally, these macros had to be hand-coded by researchers with domain expertise. This paper introduces a method for RL agents to automatically discover these "macro-actions"—sequences of actions that work well together—from scratch during the learning process.
By reinforcing successful action sequences, the agent develops habits that can drastically reduce learning time, especially in environments with a high number of possible actions.
Methods: Dual-Value Mapping
The author proposes a dual-value mapping approach. Instead of just maintaining the standard $Q$-values (state-to-action), the agent also learns a second set of values, $Q_a$, which represents the value of performing action $a_t$ immediately after action $a_{t-1}$.
The core of the method is a weighted combination of these two mappings:
$$\bar{Q}(s_t, a_{t-1}, a_t) = \frac{Q_s(s_t, a_t) + \beta Q_a(a_{t-1}, a_t)}{1 + \beta}$$
- $Q_s$: The conventional state-action value.
- $Q_a$: The action-to-action value (the "habit" component).
- $\beta$: A parameter controlling the influence of the action history. If $\beta = 0$, the agent behaves like a standard Sarsa($\lambda$) agent.
The agent uses the Sarsa($\lambda$) algorithm with replacing eligibility traces to update both sets of values. Essentially, if a sequence of actions leads to a reward, the "tendency" to perform those actions in that specific order is reinforced.
Key Insights
- Habit Formation as Exploration: In the early stages of learning, when the agent enters a state it has never seen, the state-to-action mapping ($Q_s$) provides no guidance. However, the action-to-action mapping ($Q_a$) can guide the agent to perform a "sensible" sequence based on past successes elsewhere, leading to more efficient exploration than pure randomness.
- The "More is Better" Rule: The most striking insight is that the method becomes more effective as the number of possible actions increases. In environments with few actions, the overhead of the action-to-action mapping provides no benefit. In environments with many actions, the "information content" of knowing which action came before is much higher.
- Open-Loop Sequences: In "emergency" situations (like a bike beginning to fall), the agent can benefit from ignoring complex state data and simply executing a rapid, learned sequence of actions to recover balance.
Experiments and Key Results
The method was evaluated on several classic RL control problems, including Bicycle Balancing, Car-on-the-Hill (Mountain Car), Race-Track, and various Grid-Worlds.
The results show significant speedups in learning time across most tasks when an optimal $\beta$ is chosen:
- Bicycle & Race-Track: The learning time was approximately halved compared to standard Sarsa($\lambda$).
- Grid-Worlds: In a 5D grid-world, learning time was reduced by a factor of 5.
- Many-Action Task: In a 36-action navigation task, the learning time was reduced by a staggering factor of 147 (from 397 epochs down to 2.7).
- The Failure Case: The method did not work for the Car-on-the-Hill task. The author suggests that for this specific physics-based problem, the action-to-action weights were of no use, likely because the necessary "oscillating" behavior is more strictly tied to specific state thresholds (position and velocity) than to simple action repetition.
Limitations and Future Work
While powerful, the approach has limitations. A value function combining state-action and action-action pairs is not guaranteed to converge. Furthermore, as seen in the performance graphs, for large values of $\beta$, the system becomes unstable, leading to high variance in learning times. The author suggests a "cooling" strategy: starting with a high $\beta$ to encourage exploration and gradually decreasing it to fine-tune the policy.
Finally, maintaining the $Q_a$ table adds memory requirements, though this is usually negligible compared to the state-action table. The results suggest that techniques from Partially Observable Markov Decision Processes (POMDPs)—which often use history to compensate for missing state info—could be fruitfully applied to standard MDPs to accelerate learning.
Summary updated