Concept learning through deep reinforcement learning with memory-augmented neural networks

Jing Shi, Jiaming Xu, Yiqun Yao, Bo Xu

TL;DR

This paper introduces a memory-augmented neural network trained via Deep Reinforcement Learning (DRL) to mimic the efficiency of human concept formation. By treating the storage of new information as a sequential decision-making process, the model achieves state-of-the-art performance in one-shot learning tasks across both visual and auditory domains, while also excelling at outlier detection.

What Problem Does This Paper Address?

Standard deep learning models are notoriously data-hungry, often requiring thousands of examples to master a single concept. In contrast, humans exhibit a remarkable ability for "one-shot learning"—the capacity to recognize a new pattern after seeing it just once.

The authors identify a gap in how machines handle concept formation (discovering characteristics of a class from few examples) and concept assimilation (integrating new concepts into existing cognitive structures). While previous Memory-Augmented Neural Networks (MANNs) attempted to solve this, they often relied on rigid, man-made rules for memory management. This paper seeks to automate that process, allowing a network to learn the best policy for remembering and organizing information.

Methods

The authors propose a framework that treats learning as a "neural clustering" algorithm. The key components include:

  • Sequential Episode-based Learning: Data is presented in episodes (sequences). At each step, the model must decide which "slot" in an external memory module should store the current sample.
  • Two-Channel Attention: To decide where to store a sample, the model uses a novel attention mechanism that considers two channels: the hidden embedding (the visual or auditory features) and the label vector. A "switch" ($\lambda$) determines whether the model relies on the label (if provided) or the features (if the label is unknown).
  • Deep Reinforcement Learning (REINFORCE): Instead of standard supervised backpropagation for the memory management, the model uses the REINFORCE algorithm. It receives a "reward" for perfect clustering (putting samples of the same class in the same slot) and "punishments" for errors, such as using an empty slot unnecessarily or mixing different classes in one slot.
  • Memory Update Rule: When a sample is assigned to a slot, the slot's content is updated by taking the average of all samples currently stored there, creating a stable "centroid" for that concept.

Datasets

The model was evaluated on two primary benchmarks and one exploratory task:

  1. Omniglot: The standard "MNIST of one-shot learning," containing 1,623 hand-drawn characters from 50 different alphabets.
  2. Fisher Speech Dataset: A large-scale dataset used to test the model's ability to learn "speaker identities" (voiceprints) from very short (0.4s) segments.
  3. Outlier Detection: An exploratory setup using Omniglot to see if the model can identify "zero-shot" samples—items belonging to a class it has never seen before.

Key Insights and Ideas

  • Learning to Organize: The most significant "aha moment" is the shift from learning features to learning a policy for organization. By using DRL, the model discovers that the most efficient way to learn is to aggregate similar items into stable memory clusters.
  • The Supervised/Unsupervised Switch: The two-channel attention allows the model to seamlessly transition between supervised learning (when labels are known) and unsupervised discovery (when labels are missing). This mimics how humans can categorize a new object even before being told what it is called.
  • Stability via Averaging: By averaging samples within a memory slot rather than just overwriting them, the model creates a "stable and interactive" memory that is resistant to noise from individual "outlier" samples within a class.

Key Results

  • Omniglot Superiority: On the Omniglot 1-shot task, the proposed model achieved 96.6% accuracy, vastly outperforming the original MANN baseline (82.8%) and even surpassing human performance (57.3% in the specific episode setup used).
  • Cross-Domain Success: In speaker recognition, the model reached 83.0% accuracy for 5-way 1-shot learning, significantly higher than traditional i-Vector systems (23.1%) and standard Softmax networks (75.5%).
  • Balancing One-Shot and Zero-Shot: The model demonstrated a superior "F1-score" (65.3) when balancing the need to recognize known classes (one-shot) and detect unknown outliers (zero-shot), suggesting it is more robust than previous memory-augmented models that tend to overfit to known categories.

Limitations and Future Work

  • Training Complexity: The authors note that the reward setting is "tricky." As episode lengths increase, the number of possible "paths" for the DRL agent grows exponentially, making it difficult for the model to find the optimal strategy without careful pre-training on shorter sequences.
  • Computational Cost: Sequential processing is inherently slower than the parallel processing used in standard deep learning.
  • Single Modality: Currently, the model handles either images or voice. The authors suggest that future work should focus on multi-modal concept formation, where a "concept" (like a person) is formed by combining a face, a voice, and a behavioral pattern simultaneously.

Summary updated

BibTeX
@article{shi2019concept,
  author = {Jing Shi and Jiaming Xu and Yiqun Yao and Bo Xu},
  title = {{Concept learning through deep reinforcement learning with memory-augmented neural networks}},
  journal = {Neural Networks},
  year = {2019},
  doi = {10.1016/j.neunet.2018.10.018},
}
Figure