NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Evolving Deep LSTM-based Memory Networks using an Information Maximization Objective

Aditya Rawal, Risto MiikkulainenGECCO 2016

TL;DR

This paper introduces NEAT-LSTM, an extension of the NEAT neuroevolution algorithm that incorporates Long Short-Term Memory (LSTM) units to tackle complex memory tasks in reinforcement learning. To overcome the challenges of evolving deep memory networks, they propose a novel unsupervised "Info-max" pre-training objective that encourages LSTMs to store informative, independent features, significantly improving performance on tasks requiring long-term memory recall.

What Problem Does This Paper Address?

Reinforcement learning (RL) agents often struggle with tasks that require remembering information over extended periods, a capability crucial for intelligent behavior. While Recurrent Neural Networks (RNNs) can store past information, they tend to "leak" it, making it difficult to learn long-term dependencies. Long Short-Term Memory (LSTM) networks were developed to address this by using specialized memory cells and gating mechanisms, but training LSTMs for RL tasks, especially those with weak or sparse reward signals, remains challenging. Furthermore, determining the optimal network architecture, including the number of memory units, is often a manual and inefficient process. This paper aims to evolve deep LSTM-based memory networks for complex RL tasks by combining neuroevolution with a novel unsupervised pre-training strategy.

Methods

The core contribution is the extension of the Neuroevolution of Augmenting Topologies (NEAT) algorithm to evolve LSTM networks, termed NEAT-LSTM. NEAT is a powerful neuroevolutionary method that evolves both the network's structure (topology) and its weights, allowing it to discover appropriate network sizes and complexities.

To address the difficulty of training deep memory networks, the authors introduce a two-phase training approach:

  1. Unsupervised Pre-training (Info-max Objective): Before task-specific training, the LSTM networks are pre-trained using an "information maximization" (Info-max) objective. This objective encourages the LSTM units to capture and store highly informative, yet independent, features from the environment. The idea is to maximize the individual entropy of LSTM unit activations while minimizing their mutual information. This is achieved by evolving the LSTM's write control, forget control, and input data logic. The pre-training phase is stopped when no new independent features can be discovered or after a set number of generations.
  2. Task-Specific RL Training: In the second phase, the pre-trained LSTM units are "frozen" (their parameters are fixed), and their outputs are used as additional inputs to a standard NEAT-evolved network. NEAT then evolves the read control logic of the LSTMs and potentially adds new hidden layers to utilize the stored information to solve the actual RL task. This approach makes the RL training phase more tractable by focusing on learning how to use the pre-learned information.

Datasets

The paper evaluates its approach on two custom memory tasks:

  • Sequence Classification: A binary classification task where the network must determine if the number of '1's in an input sequence exceeds the number of '-1's. '0's are ignored but serve to confuse the agent. The "depth" of the task refers to the number of '1'/-1' pairs.
  • Sequence Recall (T-Maze): An agent in a T-maze receives an initial stimulus (e.g., a colored light) that indicates the correct turn at a T-junction to reach a reward. This task is extended to a "Deep T-maze" with multiple sequential T-junctions, requiring the agent to recall a sequence of instructions.

No standard public datasets were used; these tasks were specifically designed to test memory capabilities.

Key Insights and Ideas

  • LSTM's Potential in RL: LSTMs, despite their success in supervised learning, have been underutilized in POMDP tasks. This paper demonstrates their effectiveness when properly trained.
  • The "Deception" Problem in Evolving Memory: Evolving memory is inherently difficult because the fitness landscape can be deceptive. Simply optimizing for task fitness might not lead to the discovery of useful memory structures.
  • Info-max as a Solution to Deception: The Info-max objective acts as a powerful unsupervised pre-training mechanism. By forcing LSTMs to store independent, informative features, it guides the evolutionary search towards more promising regions of the search space, reducing the problem of deception.
  • Two-Phase Training for Scalability: The proposed two-phase approach (unsupervised pre-training followed by RL fine-tuning) is key to scaling memory solutions to deeper problems. It decouples the discovery of relevant information from the task-specific optimization.
  • Biological Plausibility: The idea of maximizing information gain for advancing behavior is presented as biologically plausible, drawing parallels to concepts like artificial curiosity.

Key Results

  • NEAT-LSTM Outperforms NEAT-RNN: In the Sequence Classification task, NEAT-LSTM consistently outperformed NEAT-RNN, especially as the memory depth requirement increased (e.g., from 4-deep to 6-deep).
  • Info-max Significantly Improves Recall: For the Sequence Recall task, NEAT-LSTM with Info-max pre-training (NEAT-LSTM Info-max) was able to solve deeper recall problems (up to 5-deep) where standard NEAT-LSTM and NEAT-RNN struggled significantly. NEAT-LSTM Info-max achieved approximately 20% success on 5-deep recall tasks.
  • Effective Feature Extraction: The Info-max objective successfully guided the evolution of LSTM units that captured and stored salient information from the environment, which was then effectively utilized by the RL phase.

Limitations and Future Work

  • Task-Specific Nature of Info-max: While Info-max is general, its effectiveness is tied to the richness of observable information in the environment. It's not an open-ended objective like novelty search.
  • Comparison with Novelty Search: The authors suggest further comparisons between Info-max and novelty search on memory tasks.
  • Computational Cost: Evolving deep networks remains computationally intensive, though the two-phase approach helps.
  • Future Directions: The authors envision this approach being useful for building generic AI agents that can solve both Markov Decision Processes (MDPs) and Partially Observable Markov Decision Processes (POMDPs). They also mention the potential for Info-max to indirectly encourage exploratory behaviors, linking it to artificial curiosity.

Summary updated

BibTeX
@inproceedings{rawal2016evolving,
  author = {Aditya Rawal and Risto Miikkulainen},
  title = {{Evolving Deep LSTM-based Memory Networks using an Information Maximization Objective}},
  booktitle = {GECCO},
  year = {2016},
  doi = {10.1145/2908812.2908941},
}
Figure