Manuscript Offprint

arXiv:2609.04134

Prospective Coding Improves Learning in Deep Continuous-Time Recurrent Networks

Shivang Rawat, Mirko Morello, Flaviano Morone, David J. Heeger

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 develop Recursive Quadrature Filters (RQFs), biologically motivated complex-valued temporal filters that are a special case of diagonal state-space models (SSMs), and ask whether this failure mode can be addressed by making each layer's bottom-up input prospective. 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 intervention in RQFs, S5, and ORGANICs (a nonlinear gated RNN) trained using full backpropagation through time (BPTT) and spatial-only backpropagation. Under full BPTT, prospective variants match or outperform their non-prospective controls in every model and configuration. A non-residual width-32 six-layer RQF reaches 96.09 ± 0.23% accuracy on raw-audio Speech Commands with 31.9k parameters; a width-64 six-layer RQF reaches 83.56 ± 2.11% on the 16,384-step Path-X task. 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.

1 Introduction

Biological neural circuits face a fundamental trade-off between memory and reactivity. A biological neuron is well-modeled as a leaky integrator whose membrane time constant τ\tau confers temporal context but also delays and attenuates fast input changes [1]. When stacked into an LL-layer feedforward circuit, this filter cascades, so the effective relaxation time grows roughly as LτL\tau [2]. The same trade-off is built into recurrent theories of cortical function [3], in which slow recurrent dynamics let the network settle into a representation that combines feedforward drive with prior expectation. This lag also creates a learning problem: when a top-down teaching signal arrives at the output, the activity it should instruct in early layers is already roughly LτL\tau out of date. Signals that vary on timescales comparable to τ\tau are therefore poorly served by the standard leaky cascade.

This paper contributes a recurrent substrate and an input-side correction. The substrate is the Recursive Quadrature Filter (RQF), a linear dynamical system inspired by neuroscience that is a special case of a diagonal state-space model, so it trains on sequences of tens of thousands of steps with standard machine-learning machinery. The correction drives each layer with a prospective rather than an

Preprint.

instantaneous bottom-up signal; it adds no parameters and applies to existing diagonal SSMs as readily as to RQFs.

The biological motivation for this correction comes from prospective firing: under sinusoidally modulated somatic current injection, cortical pyramidal cells can fire at a phase that leads their input, and biophysical models explain this as a firing-rate advance relative to membrane voltage [4, 5]. Apical dendritic stimulation can likewise modulate the soma with little integration lag through dendritic resonance mechanisms [6, 5]. Related prospective responses have been documented in retinal ganglion-cell populations, cerebellar Purkinje cells, and human muscle-spindle afferents [7–9]. Such phase-leading behavior can be modeled by applying the prospective (or look-ahead) operator [2, 10, 11]

χτ≡1+τddt(1)\chi_{\tau}\equiv1+\tau\frac{\mathrm{d}}{\mathrm{d}t} \tag{1}

to the underlying voltage or firing rate. For a first-order membrane filter, χτ\chi_{\tau} is its exact differential inverse, so applying it cancels the filter's lag. When interpreted as a time-advance operator, however, it is accurate only to first order: expanding the unit time-shift in τ\tau gives u(t+τ)=u(t)+τu˙(t)+O(τ2)=χτ(u(t))+O(τ2)u(t+\tau) = u(t) + \tau \dot{u}(t) + O(\tau^2) = \chi_{\tau}(u(t)) + O(\tau^2). Thus, χτ\chi_{\tau} advances a smooth signal by one membrane time constant to first order in τ\tau.

We apply this prospective operator in networks of RQFs, a class of biologically motivated complex-valued temporal filters [12]. We derive RQFs from an energy-based theory of cortical function [3], in which a state parameter tunes a compromise between feedforward sensory drive and an internally generated prior. Taking the prior to be the prospective image of the state under a phase-rotation model collapses the resulting dynamics into a scalar complex-valued band-pass filter with a learnable phase-prior frequency ω\omega and a learnable bandwidth parameter γ\gamma (Section 2).

It has been suggested that the brain relies on a set of canonical neural microcircuits, across brain regions and modalities, implementing hierarchies of spatial band-pass filtering, output nonlinearities, and spatial pooling that extract and combine features [13–19], much as convolutional neural networks do. RQFs extend this paradigm to extract and combine features over time. Temporal band-pass filters like RQFs have been used to model temporal-frequency selectivity and direction selectivity of neurons in primary visual cortex [12]. The encoding of sound in the cochlea and the auditory nerve can likewise be modeled as a bank of band-pass filters [20].

We prove that scalar RQFs are a special case of single-channel diagonal complex state-space models (SSMs), so an RQF layer is a constrained diagonal SSM with biologically interpretable poles and inherits the parallel-scan and FFT-convolutional training algorithms used for SSMs [21, 22]. This distinguishes RQFs from recent prospective-coding cortical models: Neuronal least-action [10] (NLA) and latent equilibrium [2] use prospective signals for local biological learning, while generalized latent equilibrium [11] (GLE) uses prospective and retrospective operators for online credit assignment in a feedforward architecture. RQFs instead provide a recurrent temporal-filtering primitive compatible with long-sequence SSM training.

We show, both theoretically and empirically, that deep RQF networks improve when each layer's bottom-up input drive is prospective. Prospective and instantaneous-input RQFs share the same prospective phase-rotation prior via recurrence; they differ only in whether the bottom-up drive is look-ahead-coded. This input-side change is local to each layer, leaves the RQF parameters and state transition unchanged, admits a two-tap discretization applicable to diagonal SSMs (Section 3), and directly affects credit assignment under spatial-only backpropagation. Spatial-only backpropagation treats every earlier recurrent state as a stop-gradient variable and differentiates only through the within-step spatial chain across layers. Under this regime, instantaneous inputs introduce an explicit (h/τ)L−ℓ(h/\tau)^{L-\ell} attenuation (where h is the discretization timestep), while prospective-input coding changes the discretization prefactor of each spatial hop from O(h/τ)O(h/\tau) to O(1)O(1) as h/τ→0h/\tau \to 0.

References (39)