Learning to Use Working Memory in Partially Observable Environments through Dopaminergic Reinforcement

Michael T. Todd, Yael Niv, Jonathan D. CohenNeurIPS 2008

Working memory is a central topic in cognitive neuroscience, critical for solving real-world problems where information from multiple temporally distant sources must be combined to generate appropriate behavior. However, an often-neglected fact is that learning to use working memory effectively is itself a difficult computational problem. This paper bridges cognitive neuroscience and machine learning by framing working memory as a tool for solving partially observable problems, providing a computational explanation for why human working memory is so strictly limited.

The Problem: Learning What and When to Remember

In cognitive neuroscience, working memory (WM) is the ability to maintain information over the short term to guide behavior. While we know the prefrontal cortex (PFC) and basal ganglia are involved, a fundamental question remains: How does the brain learn what to store and when to update it?

Most existing models focus on the structure of memory but ignore the learning process. Furthermore, they often fail to explain why human memory is so limited—the famous "magic number four." The authors tackle this by treating working memory as an internal state representation within a Partially Observable Markov Decision Process (POMDP). In a POMDP, your current observation isn't enough to know the right move; you need to remember the past. The core challenge is "credit assignment": if you receive a reward now, was it because of something you stored ten steps ago or one step ago?

A Normative "Gating" Model

The authors propose a "Gating" model based on an Actor/Critic reinforcement learning architecture.

  • The Critic: Predicts future rewards and generates a "prediction error" (PE) signal, mimicking the behavior of dopamine neurons in the brain.
  • The Motor Actor: Learns which physical actions to take based on the current observation and the contents of working memory.
  • The Gating Actors: This is the novel component. Each memory element has its own "actor" that decides whether to maintain its current content or update it with the current observation.
  • Learning Algorithm: The model uses TD($\lambda$) (Temporal Difference learning with eligibility traces). This allows the model to pass reward signals back through time, helping it learn which past gating decisions led to the current success.

Unlike previous complex neural network models, this is a streamlined reinforcement learning model with only four parameters, making it easier to analyze through the lens of optimal control theory.

Key Insights

  • Working Memory as an Action: The most profound idea here is that "remembering" isn't just a passive state; it is an internal action. By treating memory updates as actions, the brain can use the same dopaminergic hardware used for learning physical tasks to also learn how to think.
  • The Curse of Dimensionality: Why is our working memory so small? The authors argue it is not a storage problem, but a learning problem. As you add more memory elements, the number of possible internal states explodes. It becomes exponentially harder for the RL algorithm to figure out which specific memory combination is responsible for a reward.
  • TD($\lambda$) is Sufficient: Previous researchers argued that standard TD learning couldn't solve complex nested context problems. This paper proves them wrong, showing that with the right "eligibility traces" (the $\lambda$ parameter), the model can bridge the necessary temporal gaps.

Experimental Results

The model was evaluated on two classic cognitive benchmarks: the 12-AX task and Artificial Grammar Learning.

Solving the 12-AX Task

The 12-AX task is a complex sequence-matching challenge where the correct response depends on nested outer and inner contexts. The model achieved optimal performance on this task, but only when the eligibility trace ($\lambda$) was in a specific "sweet spot" (around 0.75). If $\lambda$ was 0 (no memory of past actions) or 1 (no decay of past actions), the model failed to learn effectively.

Performance on the 12-AX task depends heavily on the eligibility trace parameter.

Human-like Failures and Diminishing Returns

In the artificial grammar task, subjects (and the model) must predict the next item in a sequence generated by a hidden stochastic grammar. Humans can typically learn dependencies of length 2 or 3 but fail at length 4. The model replicated this exact pattern, showing a gradual increase in sensitivity to shorter sequences while remaining blind to longer ones.

Furthermore, when simulating the grammar task with varying numbers of memory elements, the reward rate plateaued quickly. Increasing capacity beyond a few elements provided almost no benefit because the model couldn't learn to use the extra slots effectively within a reasonable timeframe, perfectly illustrating the curse of dimensionality.

The model replicates human limitations, failing to learn length 4 dependencies, and shows diminishing returns as memory capacity increases.

Limitations and Future Work

The authors acknowledge that their model is model-free, meaning it learns purely by trial and error without understanding the underlying "rules" of the world. Humans likely use a mix of model-free and model-based learning (planning).

Additionally, the model uses a "tabular" representation—essentially a giant look-up table for states and actions. Real brains likely use more sophisticated function approximation. Future work could explore how these gating mechanisms integrate with more biologically detailed neural networks or how they handle continuous rather than discrete information.

Summary updated

BibTeX
@inproceedings{todd2008learning,
  author = {Michael T. Todd and Yael Niv and Jonathan D. Cohen},
  title = {{Learning to Use Working Memory in Partially Observable Environments through Dopaminergic Reinforcement}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2008},
  url = {https://openreview.net/forum?id=By-O-Db_-S},
}
Figure