Parallelizable memory recurrent units

Florent De Geeter, Gaspard Lambrechts, Damien Ernst, Guillaume DrionarXiv 2026

TL;DR

This paper introduces Memory Recurrent Units (MRUs), a new family of recurrent neural networks (RNNs) that achieve both infinite persistent memory and parallelizable training. By leveraging mathematical multistability and bypassing complex transient dynamics, the proposed Bistable MRU (BMRU) can be trained efficiently using the parallel scan algorithm, successfully overcoming the fading-memory limitations of modern State-Space Models (SSMs).

What Problem Does This Paper Address?

Modern sequence modeling faces a constant tension between training efficiency and long-term memory retention. Transformers parallelize training perfectly but suffer from high computational costs during generation. Recently, State-Space Models (SSMs) like Mamba have emerged as an efficient alternative, offering fast generation and parallel training.

However, SSMs rely on strictly linear recurrent dynamics, making them monostable—they possess only a single stable equilibrium state. This means they suffer from fading memory: past information inevitably decays over time, making certain long-term tasks impossible to solve. Conversely, traditional nonlinear RNNs (like LSTMs and GRUs) can retain information indefinitely via multistability (multiple stable states), but their sequential nature prevents them from being trained in parallel over the sequence length.

The authors bridge this gap by asking: How can we design a recurrent unit with non-fading, persistent memory that still trains efficiently in parallel?

Figure 1: Monostability vs bistability in a RNN with internal clock. The figure shows internal state trajec- tories of the RNN unit described by equation (3) for different initial conditions ˜ht[0] = ht−1. (left) Evolution of the system when β = −1.5. (right) Evolution of the system when β = 1.5.

Methods

The authors introduce the concept of RNNs with an "internal clock" that updates $N$ times between external timesteps. By taking the limit as these internal updates go to infinity ($N \to \infty$), the network instantly converges to a stable equilibrium point, effectively eliminating transient dynamics.

To make this concept computationally practical, they approximate the hysteresis bifurcation diagram of a bistable system to create the Bistable Memory Recurrent Unit (BMRU). The simplified update rule acts as a discrete switch:

  • If the input magnitude exceeds a threshold $\beta$, the hidden state updates to a constant stable value ($\pm\alpha$).
  • If the input stays within the threshold, the state remains perfectly unchanged ($h_t = h_{t-1}$).

Because this formulation relies on non-differentiable step functions (Heaviside and Sign), standard backpropagation fails. The authors overcome this by using surrogate gradients during the backward pass. Crucially, they prove that the BMRU update equations can be rewritten using an associative operator, making them fully compatible with the parallel scan algorithm. This reduces training time complexity on GPUs from $O(T)$ to $O(\log T)$ with respect to sequence length.

Datasets

The BMRU architecture was evaluated on three sequence benchmarks:

  1. Copy-first-input: A synthetic regression task where the model must remember a continuous value from the very first timestep across long sequences while being continuously perturbed by noise.
  2. Permuted Sequential MNIST (pSMNIST): A classification task where MNIST image pixels are shuffled and fed to the model one by one. To strictly test long-term retention, the authors introduced a variant adding 1,216 black padding pixels to the end of the sequence (extending the total length to 2,000).
  3. Pathfinder: A challenging task from the Long-Range Arena (LRA) benchmark where 32x32 pixel images (1,024 timesteps) are processed pixel-by-pixel to determine if two dots are connected by a dashed line.

Key Insights and Ideas

  • Storage in Equilibria: Monostable systems (like SSMs) store information in their transient paths, which eventually decay. Multistable systems store information directly in stable states, allowing for truly infinite, non-fading memory.
  • Bypassing Transients Unlocks Parallelism: By assuming instant convergence to steady states, the authors remove the complex nonlinear temporal dependencies that typically prevent nonlinear RNNs from using parallel scans.
  • The Hybrid Advantage: Fading memory is excellent at combining and processing local context, while persistent memory is excellent at long-term storage. Combining BMRU with a Linear Recurrent Unit (LRU) creates a hybrid network that captures the best of both worlds.

Key Results

  • Perfect Long-Term Retention: On the Copy-first-input task, while standard LRUs completely fail to retain information beyond 100 timesteps due to fading memory, BMRU maintains a Mean Squared Error (MSE) near 0 even up to 300 timesteps and generalizes perfectly to sequences of length $10^5$.
Persistent memory of BMRU vs LRU
  • Robustness to Padding: On pSMNIST with 1,216 black padding pixels, a 2-block LRU's accuracy drops drastically from 96% to 55%. BMRU drops only slightly from 90% to 83%. A hybrid BMRU/LRU model achieves the most resilient performance, maintaining 87% accuracy on the padded task.
  • Shallow Efficiency: BMRU successfully solves the Pathfinder task using a shallow network (just 1 or 2 blocks) by scaling the state dimension (width) rather than network depth, achieving up to 84% accuracy.

Limitations and Future Work

  • Depth Degradation: Unlike SSMs, which improve as layers are stacked, BMRU's performance degrades in deeper networks. This is likely due to the heavy discretization introduced by the step functions at each layer.
  • Rigid Update Rule: The current BMRU update is binary: it either completely overwrites the memory or keeps it perfectly intact, preventing soft blending of past and present information.
  • Generative Tasks: The model has only been tested on regression and classification; evaluating its performance on generative tasks like language modeling remains an open direction for future work.

Summary updated

BibTeX
@misc{geeter2026parallelizable,
  author = {Florent De Geeter and Gaspard Lambrechts and Damien Ernst and Guillaume Drion},
  title = {{Parallelizable memory recurrent units}},
  year = {2026},
  eprint = {2601.09495},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.09495},
}
Figure