BOOK: Storing Algorithm-Invariant Episodes for Deep Reinforcement Learning

Simyung Chang, Youngjoon Yoo, Jaeseok Choi, Nojun Kwak

TL;DR

This paper introduces "BOOK," a novel memory structure for Reinforcement Learning (RL) agents that stores "algorithm-invariant" core experiences. By intelligently selecting and storing crucial state-action pairs, BOOK enables faster learning and improved performance for new RL agents, even across different algorithms, by providing a rich, pre-digested knowledge base.

What Problem Does This Paper Address?

Deep Reinforcement Learning (RL) has achieved remarkable success, but training agents from scratch is often computationally expensive and time-consuming. Traditional RL methods primarily rely on either learning from scratch through extensive environmental interaction (experiential learning) or mimicking expert behavior (imitation learning). While experience replay memory helps by reusing past experiences, these are often algorithm-specific and may not efficiently capture the most valuable information. Humans, on the other hand, learn by distilling knowledge into concise, transferable concepts. This paper addresses the challenge of creating a more efficient and transferable knowledge representation for RL agents, inspired by human learning, that can accelerate training and improve performance across diverse RL algorithms.

Methods

The core innovation is the "BOOK" memory structure. The process involves two main phases:

  • Writing the BOOK:
    • Linguistic Function: States are clustered semantically using a "linguistic function" (implemented here as quantization). This reduces redundancy and groups similar states.
  • Credible Experience Selection: The method identifies "credible experiences" by focusing on terminal states where outcomes are clear. It then uses these to infer the importance of earlier state-action pairs.
  • Importance and Priority: An "importance" measure captures the difference in rewards from different actions in a state. A "priority" measure combines this importance with the frequency of the state-action pair.
  • BOOK Structure: The BOOK stores core experiences as tuples of (cluster of states, action, Q-value, frequency). Experiences are dynamically updated.
  • Reading the BOOK:
    • Initialization: A new RL agent (reader) can be initialized using the information stored in the BOOK, significantly speeding up convergence.
  • Training: The reader agent can be trained using only the BOOK's contents, or the BOOK can be used for pre-training before further environmental interaction. The BOOK's data is algorithm-invariant, meaning a BOOK written by one algorithm (e.g., DQN) can be used to train another (e.g., A3C).

Datasets

The experiments were conducted on publicly available environments from OpenAI Gym: Cartpole, Acrobot, Lunar Lander, and Q*bert. No new benchmarks were introduced; the focus was on evaluating the effectiveness of the BOOK on existing, standard RL tasks.

Key Insights and Ideas

  • Human-like Learning: The paper draws a compelling analogy between human learning from books and the proposed BOOK memory, suggesting that distilling knowledge into core, transferable concepts is a powerful learning paradigm.
  • Algorithm-Invariant Knowledge: The most significant insight is that core experiences, when represented semantically (via clustering), can be made "algorithm-invariant." This means knowledge gained by one RL agent can be effectively transferred to another, even if they use fundamentally different learning algorithms.
  • Efficiency through Abstraction: By clustering states and prioritizing important experiences, the BOOK significantly reduces the amount of data needed for effective learning, leading to dramatic speedups.
  • Credibility over Quantity: The method emphasizes the quality and credibility of experiences over sheer volume, mirroring how humans focus on crucial lessons rather than every single detail.

Key Results

  • Dramatic Speedup: Agents trained using the BOOK achieved scores comparable to conventionally trained agents but required hundreds to thousands of times fewer transitions (e.g., a 0.09% ratio of BOOK size to transitions for Q*bert).
  • Effective Initialization: Using the BOOK as an initialization significantly accelerated the learning process for reader agents.
  • Cross-Algorithm Transfer: The experiments demonstrated that a BOOK written by one algorithm (DQN) could effectively train another (A3C), showcasing the algorithm-invariant nature of the stored knowledge.
  • Performance Gains: In many cases, agents trained with the BOOK achieved comparable or even higher scores than those trained conventionally, especially when using the BOOK for pre-training.

Limitations and Future Work

  • Quantization Dependency: The performance of the BOOK is influenced by the quantization level used for state clustering. The paper found optimal levels (e.g., 64 and 128) for certain environments, suggesting that finding the right level is crucial.
  • Priority Method Effectiveness: While the proposed priority method outperformed others (frequency-only, random selection, prioritized experience replay), the paper notes that prioritized experience replay, while good, is designed for learning within a single agent's replay buffer rather than for cross-agent knowledge transfer.
  • Future Work: The authors suggest extending the method to environments with continuous action spaces and exploring alternative methods for defining linguistic functions, such as neural networks, for potentially better clustering and feature representation.

Summary updated

BibTeX
@inproceedings{chang2017book,
  author = {Simyung Chang and Youngjoon Yoo and Jaeseok Choi and Nojun Kwak},
  title = {{BOOK: Storing Algorithm-Invariant Episodes for Deep Reinforcement Learning}},
  booktitle = {ICPRAM},
  year = {2017},
}
Figure