Prospective Coding Improves Learning in Deep Continuous-Time Recurrent Networks

Shivang Rawat, Mirko Morello, Flaviano Morone, David HeegerNeurIPS 2026

TL;DR

Deep continuous-time recurrent networks remember the past by smoothing signals over time, which unfortunately creates a telephone-game lag as signals travel up through many layers. Taking a page from cortical neuroscience, this paper fixes that delay by making each layer's input prospective—feeding it a quick, parameter-free look-ahead prediction of where the signal is going rather than just where it is right now. Paired with a new, biologically inspired state-space filter, this tiny tweak boosts learning across long-range tasks without adding a single parameter or slowing down parallel training.

What Problem Does This Paper Address?

Both biological neurons and continuous-time recurrent networks face a fundamental tug-of-war between memory and reactivity. A neuron acts like a leaky bucket (a low-pass filter): its time constant $\tau$ gives it temporal context, smoothing inputs over time, but it also slows down its reaction to sudden changes.

When you stack $L$ layers of these filters into a deep network, the lag compounds—growing roughly as $L\tau$. By the time a signal reaches the top layer and generates a teaching error, the activity in the early layers is already ancient history. Standard machine learning papers often paper over this with residual skip connections or heavy normalization, while biological learning theories struggle to scale to long sequences. The authors ask: can we cancel out this integration lag directly at the input of each layer while keeping modern, ultra-fast sequence training intact?

Methods

The paper introduces two main components—a new recurrent building block and an input-side upgrade:

  • Recursive Quadrature Filters (RQFs): Derived from an energy theory of cortical circuits, an RQF is a complex-valued temporal band-pass filter. It balances incoming sensory drive with an internal oscillator prior, controlled by two intuitive, learnable parameters: tuning frequency ($\omega$) and bandwidth ($\gamma$). Crucially, the authors prove that RQFs are a constrained special case of diagonal State-Space Models (SSMs). This means they inherit the fast parallel-scan and FFT algorithms that allow modern SSMs (like S4, S5, and Mamba) to crunch tens of thousands of time steps in parallel.
The Recursive Quadrature Filter (RQF): complex spiral dynamics, stable pole location, impulse response, and tunable band-pass frequency response.
  • Prospective-Input Coding: Inspired by cortical pyramidal cells that fire ahead of sinusoidal inputs, the authors apply a mathematical "look-ahead" operator, $u(t) + \tau \dot{u}(t)$, to each layer's bottom-up input. This operator is the exact inverse of a leaky integrator, effectively canceling the filter's lag to first order. When discretized using standard Zero-Order Hold (ZOH), it turns into a clean, parameter-free two-tap feedforward update (using the current and previous input steps) that leaves the recurrent core and parallel scan untouched. This drop-in correction also works on general diagonal SSMs (like S5) and nonlinear recurrent circuits (ORGaNICs).
  • Selective RQFs (sRQFs): Similar to Mamba, the authors make the RQF's input gain, bandwidth, and frequency dynamically depend on the input, allowing content-aware memory selection while preserving parallel scans.

Datasets

The authors evaluate their models on three established sequence benchmarks (no new datasets are introduced):

  • Google Speech Commands v0.02 (10-class subset): Tested on both 16,000-step raw audio waveforms and 161-frame MFCCs to probe identical classification problems at vastly different timescales.
  • Path-X (from Long Range Arena): A notoriously tough binary classification task on flattened $128 \times 128$ images (16,384 steps) requiring non-local spatial reasoning.
  • Selective Copying: A 4,096-step synthetic task where 16 randomly spaced tokens must be memorized and recalled in order, testing content-aware filtering.

Key Insights and Ideas

  • Rescuing gradients without backprop-through-time: To isolate why prospective coding helps, the authors test "spatial-only backpropagation"—cutting off gradient flow through time so errors only travel down through layers at the current step. Normally, discretizing with time step $h$ shrinks spatial gradients by a brutal $(h/\tau)$ factor at every layer hop. Prospective coding changes this per-hop prefactor from $O(h/\tau)$ to $O(1)$, stopping depth-induced gradient vanishing cold.
  • Stripped-down biology competes with engineered SSMs: Because RQFs couple input gain directly to their decay timescale, a bare-bones stack of RQFs—with no residual connections, no normalization, and no gating—trains cleanly on 16,000-step sequences and even beats residual S5 models at small widths.
  • Look-ahead stabilizes content selection: On Selective Copying, prospective coding doesn't just nudge accuracy up; it makes optimization dramatically more reliable across random seeds.

Key Results

Across every full-BPTT experiment, prospective coding matches or beats its instantaneous-input control with zero added parameters:

  • Speech Commands: A tiny, non-residual 6-layer RQF (width 32, just 31.9k parameters) hits 96.09% on 16,000-step raw audio, outperforming a 40.9k-parameter prospective S5 model (95.06%). Under spatial-only backprop on MFCCs, the prospective advantage balloons as networks get deeper—jumping from +0.69 points (2 layers) to +15.17 points (6 layers, 91.55% vs. 76.38%). Even without temporal gradients, a 6-layer prospective RQF hits 82.92% on raw audio.
  • Path-X (16,384 steps): A minimal non-residual 6-layer RQF achieves 83.36% with prospective input (vs. 81.25% without). Adding selective input gain (sRQF) pushes this to 86.31%.
  • Selective Copying: A 4-layer prospective sRQF solves the task across 5 out of 5 seeds (99.83% accuracy), whereas the non-prospective version only escapes chance performance on 2 out of 5 seeds.

Limitations and Future Work

  • Needs a continuous-time clock: Because the look-ahead operator relies on a time derivative and an explicit time constant $\tau$, it cannot be dropped straight into purely algebraic discrete RNNs like standard LSTMs or GRUs.
  • Not a full biological learning theory (yet): Spatial-only backprop is used here as a diagnostic tool; it discards long-term temporal credit and still relies on symmetric forward/backward weights (the "weight-transport problem"). Combining prospective coding with truly local, biologically plausible temporal learning rules remains an open frontier.
  • Untapped tuning: The authors kept $\tau$ fixed ($\tau = 5h$) and avoided heavy architectural bells and whistles to keep comparisons clean. Learning multi-timescale look-ahead operators and scaling sRQFs to language modeling are natural next steps.

Summary updated

Abstract

Temporal integration gives continuous-time recurrent networks memory, but in deep stacks it also delays bottom-up signals and attenuates top-down errors. We compensate for this delay by making each layer's bottom-up input prospective, and we develop Recursive Quadrature Filters (RQFs), biologically motivated temporal band-pass filters that are a special case of diagonal state-space models (SSMs). Starting from an energy model, we derive the RQF dynamics and show that each RQF is a band-pass filter whose learnable parameters control its tuning frequency and bandwidth. We then make each layer's bottom-up input prospective using a parameter-free two-tap update that leaves the recurrent transition and parallel scan unchanged. We extend this correction to general diagonal SSMs and show that it mitigates depth-dependent gradient attenuation when temporal gradients are truncated, i.e., spatial-only backpropagation. We evaluate the performance of RQFs, S5, and ORGaNICs (a nonlinear gated RNN with built-in attentional modulation and recurrent normalization) trained using full backpropagation through time (BPTT) and spatial-only backpropagation. Under full BPTT, the prospective variants of these models match or outperform their non-prospective controls in every configuration. A non-residual width-32 six-layer RQF achieves $96.09\pm0.23\%$ accuracy on raw-audio Speech Commands with $31.9$k parameters; a width-64 six-layer RQF achieves $83.36\pm1.71\%$ on the $16{,}384$-step Path-X task. We also introduce selective RQFs (sRQFs), which make each filter's input gain and, optionally, its bandwidth and tuning frequency input-dependent while retaining the parallel scan. With the input gain alone, the same six-layer model achieves $86.31\pm0.51\%$ on Path-X; with all three input-dependent, a four-layer prospective sRQF solves Selective Copying ($99.83\pm0.07\%$). These results identify RQFs as a parameter-efficient recurrent substrate and prospective-input coding as an input-side correction for deep continuous-time recurrent networks.
BibTeX
@inproceedings{rawat2026prospective,
  author = {Shivang Rawat and Mirko Morello and Flaviano Morone and David Heeger},
  title = {{Prospective Coding Improves Learning in Deep Continuous-Time Recurrent Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=HbgNRwBlhi},
}
Figure