Introduction
In reinforcement learning (RL), agents must navigate the fundamental exploration-exploitation trade-off. A classic strategy to encourage exploration is optimistic initialization, where an agent begins with high expectations for all possible actions. This bias forces the agent to try every action multiple times before concluding it is suboptimal.
Despite its theoretical appeal, practical implementation is often brittle. Traditional optimistic initialization requires prior knowledge of the maximum possible reward to set initial values appropriately. Furthermore, in the context of linear function approximation—where values are computed as a weighted sum of features—ensuring an optimistic start typically requires feature vectors to have a constant norm. Common workarounds, such as doubling the feature space to include negations, compromise data sparsity, leading to increased computational overhead and memory usage.
The Reward-Shifting Method
This paper proposes a domain-independent approach that shifts the reward function such that a weight vector initialized to zero ($\theta = 0$) becomes inherently optimistic. This method bypasses the need for domain-specific tuning or feature-space modification.
The approach consists of two primary steps:
- Normalization: Rewards $r_t$ are normalized by the absolute value of the first non-zero reward encountered, $|r_{1st}|$. This standardizes the scale across different environments.
- The Shift: The normalized rewards are shifted downward by $(\gamma - 1)$, where $\gamma$ is the discount factor. The transformed reward $\tilde{r}_t$ is defined as: $$\tilde{r}_t = \frac{r_t}{|r_{1st}|} + (\gamma - 1)$$
As shown in the derivation above, this shift ensures that the new action-value function $\tilde{q}$ is equal to the scaled original value function minus 1. Consequently, initializing weights to zero ($\tilde{q} = 0$) is mathematically equivalent to initializing the original value function to the scale of the first reward ($q = |r_{1st}|$). This "zero-initialization" is optimistic because the agent expects a return of 0 in a world where rewards are shifted to be predominantly negative.
Experimental Evaluation
The authors evaluated the method using the Arcade Learning Environment (ALE), focusing on two Atari 2600 games with distinct challenges:
- Freeway: Requires consistent upward movement to cross a road; random exploration rarely succeeds.
- Private Eye: A complex environment with sparse, delayed rewards and high-stakes navigation.
The experiments utilized "Basic" features (binary screen tile representations) and the Sarsa($\lambda$) algorithm. The performance of standard Sarsa($\lambda$) was compared against Sarsa($\lambda$) with the proposed optimistic initialization.
Key Results and Discussion
The results demonstrate that the reward-shifting technique provides a robust exploration bias across different domains without manual tuning.
In Freeway, the optimistic agent significantly outperformed the baseline. The optimistic bias drove the agent to explore the "up" action consistently, allowing it to discover the first reward much faster. In Private Eye, the results highlight a "recklessness" trade-off. While the optimistic agent took longer to learn that certain states were dangerous (due to its high initial expectations), this persistent exploration eventually allowed it to find significantly higher rewards than the conservative baseline, particularly at higher learning rates ($\alpha = 0.50$).
Conclusion
The proposed reward-shifting method offers a simple, domain-independent way to implement optimistic initialization. By making "zero" the optimistic starting point, it preserves feature sparsity and eliminates the need for environment-specific reward scaling. While the method introduces a trade-off in terms of initial "recklessness," it proves highly effective for discovering rewards in sparse environments. Future work may explore adaptive shifts or applications to non-linear function approximators like deep neural networks.
Summary updated