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

Online Learning of Recurrent Neural Architectures by Locally Aligning Distributed Representations

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

TL;DR

This paper introduces the Parallel Temporal Neural Coding Network (P-TNCN), a novel recurrent neural network architecture and learning algorithm designed to overcome the limitations of traditional back-propagation through time (BPTT). P-TNCN enables efficient, parallelizable online learning without requiring network unrolling or differentiable activation functions, demonstrating superior performance on sequence modeling tasks and remarkable zero-shot adaptation capabilities.

What Problem Does This Paper Address?

Training recurrent neural networks (RNNs) for sequence modeling tasks, like language processing or video analysis, has traditionally relied on Back-Propagation Through Time (BPTT). BPTT is computationally intensive because it requires "unrolling" the network over many time steps, making credit assignment difficult and hindering parallelization. Furthermore, BPTT's reliance on differentiable activation functions limits architectural choices. Existing online learning alternatives often struggle with efficiency or performance compared to BPTT. This paper tackles the challenge of developing an RNN training method that is efficient, parallelizable, suitable for online learning, and can handle non-differentiable units, while also addressing issues like catastrophic forgetting in continual learning scenarios.

Methods

The core contribution is the Parallel Temporal Neural Coding Network (P-TNCN), inspired by predictive coding principles. P-TNCN is a multi-layered RNN where each layer acts as a "predictive coder."

  • Architecture: P-TNCN consists of parallel, loosely coupled RNNs. At each time step, each RNN layer predicts the state of the next layer (or the data itself for the output layer).
  • Learning Algorithm: Local Representation Alignment (LRA): Instead of BPTT, P-TNCN uses a biologically inspired learning algorithm. This algorithm focuses on "error-correction" where each layer adjusts its internal state to minimize the mismatch between its predictions and the actual observed states. Crucially, this correction happens locally within each layer, without needing to propagate errors backward through the entire unrolled network.
  • Key Features:
    • No Unrolling: Eliminates the computational burden of unfolding the network.
  • Parallelizable: Local updates allow for parallel processing across layers and potentially across computational cores.
  • Non-Differentiable Units: Compatible with activation functions that are not differentiable, opening up architectural flexibility.
  • Online Learning: Designed for processing data streams incrementally.
  • Zero-Shot Adaptation: The continuous error-correction mechanism allows the network to adapt to new data even without weight updates, facilitating retention of prior knowledge.

Datasets

The paper evaluates P-TNCN on several established and newly introduced benchmarks:

  • Bouncing MNIST: A sequence dataset where two digits bounce within a frame.
  • Bouncing NotMNIST: A more challenging variant using letters (A-J) instead of digits, creating a more diverse visual input.
  • Bouncing Fashion MNIST: Similar to Bouncing MNIST but uses images of clothing items.
  • Penn Treebank: A standard corpus for language modeling tasks (character-level).

Key Insights and Ideas

  • Predictive Coding as a Learning Framework: The paper demonstrates that a biologically inspired predictive coding framework can be effectively translated into a powerful deep learning architecture for sequence modeling. The idea of "guessing and correcting" at each time step is key.
  • Local Error Correction Solves Global Problems: By focusing on local error signals and representation alignment, P-TNCN circumvents the vanishing gradient problem and the need for global backpropagation, enabling more efficient and robust learning.
  • Zero-Shot Adaptation is a Natural Consequence: The continuous error-correction mechanism, even when weights are fixed, allows P-TNCN to adapt to novel patterns and tasks without explicit retraining, a significant advantage for continual learning.
  • Parallelism is Key for Efficiency: The architecture's inherent parallelism, enabled by local learning rules, makes it well-suited for modern hardware and efficient online processing.

Key Results

  • Superior Performance: P-TNCN consistently outperformed other online learning algorithms (RTRL, UORO, ESNs) on Bouncing MNIST, Bouncing NotMNIST, and Penn Treebank benchmarks in terms of cross-entropy and bits-per-character.
  • Competitive with BPTT: In many cases, P-TNCN matched or even surpassed full BPTT and its variants like Sparse Attentive Back-tracking, especially in online settings.
  • Effective Zero-Shot Adaptation: Models trained on one dataset (e.g., MNIST) could process and predict sequences from a different, unseen dataset (e.g., NotMNIST) with significantly better performance than LSTM baselines.
  • Continual Learning: P-TNCN showed minimal forgetting when trained sequentially on multiple tasks (MNIST, NotMNIST, Fashion MNIST), retaining performance on earlier tasks while learning new ones.

Limitations and Future Work

  • Language Modeling Nuances: While P-TNCN performed well on language modeling (Penn Treebank), its performance was slightly less dominant compared to video tasks. The authors speculate this might be due to the discrete nature of text data interacting with predictive coding models, which are more commonly applied to real-valued data.
  • Hyperparameter Tuning: Like most models, P-TNCN requires careful hyperparameter tuning, which can be time-consuming.
  • Future Work: The authors suggest exploring the integration of more complex units (beyond differentiable activations), investigating the impact of an iterative attention mechanism for further improvement, and extending the model to more complex real-world applications. They also highlight the potential for P-TNCN to be a strong framework for "never-ending learning" scenarios.

Summary updated

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