Continual Reinforcement Learning with Complex Synapses

Christos Kaplanis, Murray Shanahan, Claudia Clopath

Artificial neural networks (ANNs) have long struggled with a phenomenon known as catastrophic forgetting. When a standard network is trained on Task A and subsequently moved to Task B, the new gradients often overwrite the weights optimized for the first task. Unlike biological brains, which seamlessly learn continually over a lifetime, ANNs tend to abruptly forget old skills when acquiring new ones.

In Reinforcement Learning (RL), this problem is particularly acute. RL data is inherently non-stationary: as an agent learns, its policy changes, which in turn alters the distribution of experiences it encounters. To keep training stable, researchers typically rely on experience replay—storing millions of past transitions in a massive buffer and sampling them randomly. However, this brute-force approach is computationally expensive, scales poorly to an infinite sequence of tasks, and lacks biological plausibility.

This paper asks a fundamental question: Can we build better memory directly into the "synapses" (weights) of the network itself?

The Benna-Fusi Complex Synapse Model

The core innovation of this research is the application of the biologically inspired Benna-Fusi model to RL agents. In a standard ANN, a synaptic weight is represented by a single scalar number. In this proposed architecture, each weight is replaced by a system of $N$ interacting variables, creating a "complex synapse."

The Benna-Fusi complex synapse model, visualized as a chain of connected beakers.

To understand this model, imagine a series of beakers connected by tubes:

  • The Visible Weight: The first beaker ($u_1$) represents the "visible" weight that directly determines the agent's behavior. When a learning update occurs, the gradient flows directly into $u_1$.
  • Multi-timescale Plasticity: This value then trickles down into a chain of "hidden" beakers ($u_2, u_3, \dots, u_N$). These deeper beakers get progressively larger (representing higher capacity and stability), and the tubes connecting them get narrower (representing slower flow rates).
  • Consolidation: Fast changes in $u_1$ allow for rapid learning and adaptation. Meanwhile, the deeper variables act as a reservoir for long-term memory. If the agent stops encountering Task A, the values stored in the deeper, slower beakers eventually flow back into $u_1$, helping the agent "remember" or rapidly relearn the old task.

The authors tested this complex synapse model in two primary settings: Tabular Q-learning (where each state-action pair has its own complex synapse) and Deep Q-Networks (DQN, where every weight in the neural network is a Benna-Fusi synapse).

Experimental Environments

To evaluate the model's ability to handle sequential learning and catastrophic forgetting, the authors utilized simulated environments known to trigger these issues:

  • Grid-world: A 10x10 grid where the agent navigates to a goal. The goal location is periodically switched to test task-switching capabilities.
  • Cart-Pole: A classic OpenAI Gym control task requiring the agent to balance a pole on a moving cart.
  • Catcher: A visual task where the agent must move a paddle to catch falling fruit.

Key Insights and Results

The introduction of complex synapses yielded several surprising and powerful benefits for RL agents, both across multiple tasks and within single-task learning.

1. Faster Relearning and Mitigating Negative Transfer In the grid-world environment, agents equipped with Benna-Fusi synapses relearned original goal locations significantly faster than control agents after multiple task switches. The "hidden" variables effectively stored a latent map of previous tasks. Furthermore, in Deep RL experiments, control agents often completely failed to relearn Cart-Pole after being switched to the Catcher task. The Benna-Fusi agent, however, maintained a baseline of consolidated knowledge that allowed it to recover high performance across all epochs.

Performance comparison showing Benna-Fusi models achieving faster relearning times across epochs compared to a control.

2. Within-Task Stability and Replay-Free Learning Perhaps the most surprising insight is that complex synapses improve learning even when the agent is only tackling a single task. By providing a "slow" memory of the policy, the model reduces the reliance on experience replay. In a single-task Cart-Pole setup, standard DQNs failed to learn without an experience replay buffer. Remarkably, the Benna-Fusi agent achieved near-perfect scores using only online, sequential data.

3. Modulated Consolidation The authors also found that scaling the "flow" between synaptic variables by the eligibility trace—a measure of how much a specific weight contributed to recent success—further improved performance. This ensures the network only consolidates memories that are actively contributing to rewards.

Limitations and Future Work

While complex synapses offer a promising path beyond scalar weights, the approach has limitations. The model introduces new hyperparameters, such as the number of hidden variables and the flow rates between them, which require careful tuning. Additionally, replacing single weights with multiple variables increases computational overhead; in Deep RL experiments, the Benna-Fusi model ran 1.5 to 2 times slower than the control.

Finally, scaling this biological complexity to high-dimensional tasks remains a challenge. Initial tests with larger DQNs on Atari games (Arcade Learning Environment) showed that Benna-Fusi agents struggled to match control performance, indicating that further refinement is needed to apply complex synapses to complex visual inputs.

Summary updated

BibTeX
@inproceedings{kaplanis2018continual,
  author = {Christos Kaplanis and Murray Shanahan and Claudia Clopath},
  title = {{Continual Reinforcement Learning with Complex Synapses}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
  url = {https://openreview.net/forum?id=SJZ-3jWubH},
}
Figure