TL;DR
This paper introduces a domain-independent method for optimistic initialization in Reinforcement Learning (RL) that eliminates the need for prior knowledge of reward scales. By shifting the reward function such that a value of zero is inherently optimistic, the authors enable effective exploration even when using linear function approximation with non-constant feature norms.
What Problem Does This Paper Address?
In Reinforcement Learning, agents must balance exploration (trying new things) and exploitation (doing what works). A classic strategy is optimistic initialization: starting with high expectations for all actions so the agent is naturally driven to try everything at least once.
However, implementing this in practice is tricky for two reasons:
- Reward Scaling: To set an "optimistic" value, you need to know the scale of rewards in the environment. If rewards are in the thousands, initializing to 1 isn't optimistic; if rewards are 0.01, initializing to 1 is too optimistic.
- Function Approximation: Most modern RL uses function approximation (like neural networks or linear models). Initializing these models to output a specific "high" value is difficult, especially if the input features don't have a constant norm.
The authors aim to provide a "plug-and-play" optimistic initialization that works across different domains without manual tuning.
Methods
The authors propose a clever mathematical shift to the reward function. Instead of trying to initialize weights to produce a high value, they change the goalposts so that zero is a high value.
- Normalization: They normalize all rewards ($r_t$) by the absolute value of the first non-zero reward encountered ($|r_{1st}|$).
- Shifting: They shift the rewards downward by $(\gamma - 1)$, where $\gamma$ is the discount factor. The new reward is: $$\tilde{r}_t = \frac{r_t}{|r_{1st}|} + (\gamma - 1)$$
- The "Aha" Moment: As shown in the derivation below, this shift ensures that the new action-value function $\tilde{q}$ relates to the original $q$ as $\tilde{q} \approx \frac{q}{|r_{1st}|} - 1$.
By initializing weights to zero ($\theta = 0$), the agent effectively starts with an optimistic expectation that every action will yield a reward equivalent to the first one it ever sees.
- Handling Termination: In episodic tasks, a negative reward shift might encourage the agent to "commit suicide" (terminate the episode quickly) to avoid accumulating negative rewards. To prevent this, the authors add a specific termination reward $r_{end}$ that compensates for the shift, forcing the agent to keep looking for better outcomes.
Datasets
The approach was evaluated using the Arcade Learning Environment (ALE), a standard benchmark consisting of Atari 2600 games. Specifically, they tested on:
- Freeway: A game with sparse positive rewards (crossing the street).
- Private Eye: A complex game with large rewards and a need for long-term exploration.
They used "Basic" features (tile-based color activations), resulting in a high-dimensional feature space of 28,672 features.
Key Insights and Ideas
- Zero as Optimism: The core insight is that it is much easier to initialize a model to zero than to a specific positive constant. By shifting the MDP's reward structure, zero-initialization becomes a form of "mild optimism."
- Domain Independence: Because the method scales rewards based on the first reward it sees, it automatically adapts to the scale of the specific game without human intervention.
- Exploration vs. Recklessness: Optimism is a double-edged sword. While it helps the agent discover rewards faster in sparse environments, it can make the agent "reckless," taking longer to realize that certain states are actually bad because it is so biased toward believing they might be good.
Key Results
The authors compared standard Sarsa($\lambda$) against their optimistically initialized version across different learning rates ($\alpha$).
- Freeway: In this sparse-reward game, optimistic initialization significantly sped up learning. The agent discovered the "cross the street" reward much earlier than the baseline, particularly at lower learning rates (see Figure 1a).
- Private Eye: The results were more dramatic here. While the optimistic agent was more "reckless," it eventually reached much higher scores than the baseline Sarsa($\lambda$), which often got stuck in local optima. At $\alpha = 0.50$, the optimistic agent's score climbed toward 1400, while the baseline stayed below 200 (see Figure 1d).
Limitations and Future Work
- The "First Reward" Assumption: The method relies on the first non-zero reward being representative of the reward scale. In environments where the first reward is an extreme outlier (very small or very large compared to later rewards), this could lead to under- or over-optimism.
- Recklessness: As noted in Private Eye, the agent can become stubborn, repeatedly visiting bad states because its optimistic bias is hard to overcome.
- Non-linear Approximation: While the paper focuses on linear function approximation, the authors suggest the principle could apply to deep learning, though the dynamics of zero-initializing neural networks are more complex.
Summary updated