Introduction
Standard Artificial Neural Networks (ANNs) typically operate with "frozen" weights after training. While Recurrent Neural Networks (RNNs) can utilize their hidden states as a form of short-term activity-based memory, this mechanism is often volatile and limited in capacity. In contrast, biological systems leverage synaptic plasticity—the dynamic strengthening or weakening of connections—to form robust memories and adapt rapidly to new tasks. This paper introduces "Plastic RNNs," a framework that equips recurrent networks with weight-based memory that updates during inference, enabling significant improvements in memory capacity and few-shot learning performance.
The Plastic RNN Framework
The authors propose a model where the total weight of a connection is the sum of a static component, learned during training, and a plastic component that evolves during a task. This architecture is governed by neuromodulation, where the network generates a signal to dynamically adjust its own internal learning rate ($\eta$), effectively deciding when to store information and when to maintain stability.
Two primary plasticity rules are explored:
- Hebbian Plasticity: A local rule where synapses are strengthened based on the co-activation of pre- and post-synaptic neurons.
- Gradient-based Plasticity: A novel, non-local rule where the RNN generates its own internal loss and calculates gradients to update its weights during inference. This allows for coordinated updates across multiple layers, facilitating complex inference tasks like regression.
Experimental Evaluation
The models were tested across several benchmarks designed to evaluate memory and adaptation:
- Memory Tasks: A copying task (sequential memory) and cue-reward association.
- Few-shot Learning: One-shot image classification (MiniImageNet, CIFAR-FS) and few-shot regression (inferring linear or MLP functions).
Key Results
The inclusion of plasticity provides a powerful inductive bias for "learning to learn." In the copying task, plastic models maintained near-perfect performance across long delays and sequence lengths where standard non-plastic baselines failed entirely.
Key findings include:
- Memory Capacity: Plastic models are significantly more robust to delays. As shown in the figures, while non-plastic models ("none") fail as delay $m$ or sequence length $n$ increases, Hebbian and Gradient-based models maintain low test loss.
- Image Classification: On CIFAR-FS, a plastic RNN achieved 55.5% accuracy, compared to 39.9% for a non-plastic counterpart.
- Regression: Gradient-based plasticity proved superior for complex inference, achieving a test error of 0.036 in MLP regression, outperforming both Hebbian (0.077) and non-plastic (0.383) models.
Discussion and Limitations
While Plastic RNNs offer substantial performance gains, they introduce new challenges. Training requires "gradient-of-gradients," increasing computational overhead by approximately 20%. Additionally, plastic weights can be inherently unstable; without precise neuromodulation, weights may "explode," leading to numerical errors. Scaling these models to large-scale tasks like language modeling remains an area for future research, primarily due to the memory overhead of storing plastic weights at each step.
Summary updated