Investigating Recurrence and Eligibility Traces in Deep Q-Networks
Introduction
Reinforcement learning (RL) agents frequently encounter environments defined by sparse rewards and partial observability. In scenarios like the Atari game Tennis, an agent may only receive a reward after a long sequence of actions, making it difficult to determine which specific move led to success—a challenge known as the "credit assignment problem." Furthermore, standard Deep Q-Networks (DQN) typically only process a small window of recent frames, causing them to "forget" critical information from the distant past.
This research investigates how combining Deep Recurrent Q-Networks (DRQN) with eligibility traces can mitigate these issues, significantly accelerating learning and improving stability.
Methodology: Recurrence and Eligibility Traces
The proposed architecture replaces the standard DQN's fully connected layer with a Long Short-Term Memory (LSTM) layer, providing the agent with temporal memory to handle partial observability. To address the credit assignment problem, the authors integrate Eligibility Traces ($Q(\lambda)$) using a "forward view."
Instead of updating a state's value based solely on the immediate subsequent reward (standard Temporal Difference learning), eligibility traces utilize a weighted sum of future rewards ($n$-step returns). This allows rewards received many steps later to immediately influence the value of earlier actions.
To integrate this with experience replay, the system samples "sub-trajectories" from a buffer. The first few states are used to "warm up" the LSTM's hidden state before calculating updates using the forward-view traces. The study also compares the performance of the RMSprop and Adam optimizers in this context.
Experimental Results
The approach was evaluated on the Arcade Learning Environment (ALE), specifically Pong and Tennis. While Pong serves as a standard benchmark, Tennis is notoriously difficult due to extremely sparse rewards and the tendency for agents to fall into sub-optimal loops.
Key Insights
- Stability and Speed: In Pong, adding eligibility traces ($\lambda = 0.8$) produced smoother learning curves compared to the "dips" often seen in standard DQNs.
- Breaking Loops: The DRQN's memory allowed agents to solve Tennis by maintaining state information that prioritized winning points over simple survival, a feat standard DQNs failed to achieve.
- Optimization Synergy: Switching from RMSprop to Adam significantly boosted performance. When paired with eligibility traces, Adam cut training time by more than half in some cases.
Quantitative Performance
The table below summarizes the number of epochs required to reach a near-optimal score of 18 in Pong. The combination of recurrence, eligibility traces, and the Adam optimizer proved to be the most efficient configuration.
In the more challenging Tennis environment, the standard DQN failed to score, while the DRQN with traces and Adam reached a high score of 20 in just 13 epochs. At the time of the study, DRQN was the only algorithm among several variants (including Double DQN and Dueling DQN) to successfully learn a near-optimal policy for Tennis.
Limitations and Future Directions
Despite these successes, the authors identified potential bottlenecks. The use of "frozen" target networks, while stabilizing, may hinder the rapid backward propagation of values that eligibility traces aim to achieve. Additionally, as learning accelerates, data in the experience replay buffer becomes "off-policy" more quickly, potentially reducing trace accuracy. Future work may involve exploring Double DQN to mitigate overestimation bias and implementing more dynamic target network updates.
Summary updated