HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Legendre Memory Units: Continuous-Time Representation in Recurrent Neural Networks

{Ivana Kajić Chris Eliasmith Aaron Voelker}

Legendre Memory Units: Continuous-Time Representation in Recurrent Neural Networks

Abstract

We propose a novel memory cell for recurrent neural networks that dynamically maintains information across long windows of time using relatively few resources. The Legendre Memory Unit~(LMU) is mathematically derived to orthogonalize its continuous-time history -- doing so by solving $d$ coupled ordinary differential equations~(ODEs), whose phase space linearly maps onto sliding windows of time via the Legendre polynomials up to degree $d - 1$. Backpropagation across LMUs outperforms equivalently-sized LSTMs on a chaotic time-series prediction task, improves memory capacity by two orders of magnitude, and significantly reduces training and inference times. LMUs can efficiently handle temporal dependencies spanning $100 ext{,}000$ time-steps, converge rapidly, and use few internal state-variables to learn complex functions spanning long windows of time -- exceeding state-of-the-art performance among RNNs on permuted sequential MNIST. These results are due to the network's disposition to learn scale-invariant features independently of step size. Backpropagation through the ODE solver allows each layer to adapt its internal time-step, enabling the network to learn task-relevant time-scales. We demonstrate that LMU memory cells can be implemented using $m$ recurrently-connected Poisson spiking neurons, $mathcal{O}( m )$ time and memory, with error scaling as $mathcal{O}( d / sqrt{m} )$. We discuss implementations of LMUs on analog and digital neuromorphic hardware.

Benchmarks

BenchmarkMethodologyMetrics
sequential-image-classification-on-sequentialLMU
Permuted Accuracy: 97.2%

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Legendre Memory Units: Continuous-Time Representation in Recurrent Neural Networks | Papers | HyperAI