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

Continual Learning of Recurrent Neural Networks by Locally Aligning Distributed Representations

Alexander Ororbia, Ankur Arjun Mali, C. Lee Giles, Daniel Kifer · DOI

TL;DR

This paper introduces the Parallel Temporal Neural Coding Network (P-TNCN), a novel recurrent neural network architecture and training algorithm that addresses the limitations of traditional backpropagation through time (BPTT). P-TNCN enables efficient, parallelizable, and continual learning of temporal data without requiring network unrolling or differentiable activation functions, demonstrating strong performance on sequence modeling tasks and remarkable zero-shot adaptation capabilities.

What Problem Does This Paper Address?

Recurrent Neural Networks (RNNs) are powerful for sequential data like language and speech, but training them with Backpropagation Through Time (BPTT) is challenging. BPTT requires unfolding the network over many time steps, making credit assignment difficult and hindering parallelization. It also restricts the use of non-differentiable activation functions, limiting architectural flexibility. Furthermore, BPTT struggles with online learning scenarios where data arrives sequentially and with continual learning, where models must adapt to new tasks without forgetting old ones. Existing alternatives often face computational expense or limitations in handling long-term dependencies.

Methods

The core innovation is the Parallel Temporal Neural Coding Network (P-TNCN), inspired by predictive coding principles. P-TNCN operates in a "guess-and-correct" manner:

  • Prediction Phase: Multiple parallel recurrent layers (RNNs) predict the next state of their "neighboring" layer or the next data point.
  • Correction Phase: Each RNN then uses an "error unit" to compute the mismatch between its prediction and the actual observed target. This error signal is used to locally adjust the RNN's internal state, aligning its representation. This correction happens without altering synaptic weights, enabling a form of "zero-shot adaptation."

The learning algorithm is Local Representation Alignment (LRA), a biologically inspired method that allows for credit assignment without requiring BPTT's unrolling or derivatives of activation functions. This enables the use of non-differentiable units and facilitates parallel computation across layers. The P-TNCN architecture is designed to be inherently parallelizable, both during training and inference.

Datasets

The paper evaluates P-TNCN on several benchmarks:

  • Bouncing MNIST: A dataset of two digits bouncing within a frame.
  • Bouncing NotMNIST: A new benchmark introduced by the authors, similar to Bouncing MNIST but using characters from the NotMNIST dataset instead of digits. This tests generalization to novel visual patterns.
  • Bouncing Fashion MNIST: Another new dataset using images of clothing items, similar in structure to Bouncing MNIST.
  • Penn Treebank: A standard corpus for language modeling, used to evaluate character-level prediction.

Key Insights and Ideas

  • Predictive Coding as a Learning Mechanism: The paper demonstrates that a predictive coding framework, where the network continuously guesses and corrects its internal states, can be a powerful alternative to BPTT for sequence learning.
  • Local Representation Alignment for Credit Assignment: LRA provides a biologically plausible and computationally efficient way to assign credit without the need for global error backpropagation through time.
  • Zero-Shot Adaptation without Weight Updates: The P-TNCN's correction phase allows it to adapt to new data patterns even when its synaptic weights are fixed. This is a significant finding for continual learning and robustness.
  • Parallelism and Non-Differentiability: The architecture inherently supports parallel processing across layers and can utilize non-differentiable activation functions, offering greater flexibility and efficiency.
  • Continual Learning Advantage: The P-TNCN shows promise in retaining knowledge from previous tasks while learning new ones, with less forgetting than traditional methods.

Key Results

  • Superior Performance on Sequence Modeling: P-TNCN outperforms competing online algorithms (RTRL, UORO) and matches or even surpasses full BPTT and Sparse Attentive Backtracking (SAB) on Bouncing MNIST, Bouncing NotMNIST, and Penn Treebank benchmarks. For example, on Bouncing MNIST, P-TNCN achieved a test cross-entropy of 338.79, significantly better than LSTM-RTRL (361.2) and competitive with LSTM-BPTT (350.2).
  • Effective Zero-Shot Adaptation: P-TNCN demonstrates remarkable ability to generalize to unseen data (e.g., characters when trained on digits) without any weight updates, outperforming LSTM models trained with BPTT, SAB, and RTRL in zero-shot tests.
  • Robust Continual Learning: In continual learning scenarios, P-TNCN shows less performance degradation on previously learned tasks compared to baselines, indicating better knowledge retention.
  • Computational Efficiency: P-TNCN offers comparable or better temporal and spatial complexity than other online methods like UORO, while being significantly faster than RTRL.

Limitations and Future Work

  • Language Modeling Performance: While strong, P-TNCN's performance on language modeling (Penn Treebank) is slightly lower than BPTT/SAB, which might be due to the discrete nature of text data interacting negatively with the predictive coding approach.
  • Further Improvement with Attention: The authors suggest that incorporating an iterative attention mechanism could further enhance P-TNCN's generative abilities, especially for sequences with more than two objects.
  • Investigating Discrete Non-linearities: The paper mentions an experiment with non-differentiable signum activations, showing promising results, and suggests further exploration of discrete-valued non-linearities.
  • Qualitative Analysis of Out-of-Domain Samples: The appendix includes qualitative analysis of P-TNCN's predictions on sequences with varying numbers of bouncing objects, highlighting its ability to track multiple objects better than LSTMs.

Summary updated

BibTeX
@article{ororbia2020continual,
  author = {Alexander Ororbia and Ankur Arjun Mali and C. Lee Giles and Daniel Kifer},
  title = {{Continual Learning of Recurrent Neural Networks by Locally Aligning Distributed Representations}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2020},
  doi = {10.1109/tnnls.2019.2953622},
}
Figure