T-DRQN: Balancing Temporal Memory and Precision in Reinforcement Learning

Deep Recurrent Q-Network with Truncated History

2018-11-01
Hyunwoo Oh, Tomoyuki Kaneko
Summary
Problem
Method
Results
Takeaways
Abstract

This paper introduces T-DRQN and T-DARQN, two reinforcement learning architectures that utilize a truncated history of video frames processed through LSTM and visual attention mechanisms. These models aim to find a performance sweet spot between standard DQN and full-history DRQN/DARQN across various Atari 2600 environments.

TL;DR

The paper introduces T-DRQN (Deep Recurrent Q-Network with Truncated History) and T-DARQN, which bridge the gap between fixed-frame DQNs and infinite-memory DRQNs. By explicitly controlling the "length of the past" () and incorporating visual attention, these models achieve robust performance across diverse Atari games while significantly reducing parameter counts.

Background: The Memory Dilemma

In Deep Reinforcement Learning, the agent's ability to "remember" determines its success in Partially Observable Markov Decision Processes (POMDPs).

  • DQN uses a static stack of 4 frames. It is efficient but "forgetful."
  • DRQN/DARQN uses an LSTM to maintain state from the start of the episode. While powerful, this can lead to "historical noise"—where irrelevant events from far in the past interfere with current decision-making.

The authors argue for a Trunated History approach: providing the agent with a specific, adjustable window of the past to focus its attention.

Methodology: Truncated History & Visual Attention

Unlike standard DRQN, which passes only the current frame and the previous hidden state, T-DRQN(n) feeds a sequence of frames directly into the LSTM for every decision.

1. Architecture Evolution

As shown in the architecture comparison, the model moves from simple frame-stacking to a sequence-aware recurrent structure.

Model Architecture

2. The Power of Attention

T-DARQN adds a Soft-Attention layer between the CNN and the LSTM. It calculates a context vector based on the spatial features and the previous hidden state . This allows the agent to not only look back in time but also "squint" at the most important part of the screen—like the ball in Breakout or a hidden enemy in Seaquest.

Experiments and Results

The authors tested their models on six Atari 2600 games. The results highlight a crucial insight: Optimal history length is game-dependent.

Performance Highlights

  • Seaquest: T-DARQN significantly outperformed the standard DQN, proving that mid-range memory is vital for tasks like rescuing divers and managing oxygen.
  • Space Invaders: A clear trend emerged—increasing the truncated history from to led to higher scores, suggesting that some games require "deeper" look-backs than others.

Performance Comparison on Space Invaders

Efficiency Gains

One of the most striking findings was the parameter efficiency of the Attention mechanism. In Breakout, T-DARQN(4) used only ~840K parameters compared to T-DRQN(4)’s ~3.7M, while maintaining higher performance. This suggests that "attending" to features acts as a powerful dimensionality reduction tool.

Visualizing the "Mind's Eye"

By visualizing the attention weights, the authors show the agent focusing on the critical dynamics: the moving ball, upcoming enemies, or player projectiles.

Attention Visualization

Critical Analysis & Conclusion

Takeaway

The "Truncated History" (T-DRQN) approach provides a necessary middle ground. It grants the temporal benefits of recurrence (Inductive Bias toward time-series) without the stability issues of backpropagating through excessively long sequences.

Limitations & Future Work

The primary drawback is that (history length) is still a manual hyperparameter. A future "Time Attention" mechanism—where the model learns which specific frames in the past to focus on—could further optimize this.

In conclusion, T-DARQN is a more robust, parameter-efficient alternative to standard recurrent RL models, proving that sometimes, learning to forget the distant past is just as important as remembering it.

Find Similar Papers

Try Our Examples

  • Search for recent reinforcement learning papers that treat history length as a dynamic or learnable hyperparameter rather than a fixed truncation.
  • Identify the foundational papers on Deep Recurrent Q-Learning (DRQN) and analyze how subsequent works have optimized the "burning-in" period for hidden states during training.
  • Explore studies that apply T-DARQN style spatial-temporal attention to autonomous driving simulators where long-term trajectory memory is crucial but infinite history is noisy.
Contents
T-DRQN: Balancing Temporal Memory and Precision in Reinforcement Learning
1. TL;DR
2. Background: The Memory Dilemma
3. Methodology: Truncated History & Visual Attention
3.1. 1. Architecture Evolution
3.2. 2. The Power of Attention
4. Experiments and Results
4.1. Performance Highlights
4.2. Efficiency Gains
5. Visualizing the "Mind's Eye"
6. Critical Analysis & Conclusion
6.1. Takeaway
6.2. Limitations & Future Work