Manuscript Offprint
arXiv:2609.04134Prospective Coding Improves Learning in Deep Continuous-Time Recurrent Networks
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 confers temporal context but also delays and attenuates fast input changes [1]. When stacked into an -layer feedforward circuit, this filter cascades, so the effective relaxation time grows roughly as [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 out of date. Signals that vary on timescales comparable to 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]
to the underlying voltage or firing rate. For a first-order membrane filter, 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 gives . Thus, advances a smooth signal by one membrane time constant to first order in .
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 and a learnable bandwidth parameter (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 attenuation (where h is the discretization timestep), while prospective-input coding changes the discretization prefactor of each spatial hop from to as .
-
Prospective input (machine learning). We replace each layer's instantaneous bottom-up drive with a prospective one and derive the corresponding discretization for any diagonal SSM (Section 3). The implementation adds no parameters, leaves the state transition and parallel scan untouched, and costs only a second input tap; under full BPTT, it yields higher mean test accuracy than the matched control in every configuration.
-
Theory (computational neuroscience and machine learning). We prove that under spatial-only backpropagation, instantaneous bottom-up inputs incur a geometric discretization-induced depth attenuation that prospective-input coding removes (Section 3 and Appendix C).
-
Experiments (machine learning). We evaluate prospective input on Speech Commands and Path-X with RQF stacks, S5, and the nonlinear ORGaNICs substrate [23], under full BPTT and spatial-only backpropagation (Section 4).
Scope of contributions. The RQF substrate and the input-side correction are evaluated as machine-learning contributions under standard BPTT; the cortical theory provides their motivation. The third contribution concerns spatial-only backpropagation, in which the recurrence is never differentiated through time. We adopt that regime because it is the one described by our derivation and isolates the effect of the input drive; it is a diagnostic, neither a prerequisite for the machine-learning contribution nor a recommended training procedure. Spatial-only backpropagation is temporally local, but exact error propagation across layers still uses conjugate-transposed forward weights and therefore retains the weight-transport problem. We consequently describe RQFs as a biologically motivated circuit abstraction but do not suggest that the complete training procedure is biologically plausible.
2 Recursive Quadrature Filters (RQFs)
The substrate for RQFs is a leaky integrator whose state relaxes toward a convex mixture of the external input and an internally predicted recurrent state:
where is the filter state; is the input drive; is the base time constant; is the recurrent prediction; and controls the balance between input tracking and recurrence. This convex blend mirrors the cortical energy model of Heeger [3]; Appendix A.1 derives Eq. (2) from that energy functional, with as the state parameter and as the prior drive.
The recurrent prediction in Eq. (2) requires a model of how evolves locally. We take this model to be a phase-rotation prior: the undamped complex oscillator , the minimal generator on of a single phase-prior frequency . This choice follows the internal-model principle: a system that prospectively tracks a structured signal should contain a model of that signal's dynamics [24]. Applying the prospective operator from Eq. (1) to this prior gives
where is causal because it uses only the instantaneous activity and its local time derivative. Substituting Eq. (3) into Eq. (2) yields the Recursive Quadrature Filter (RQF), a scalar complex-valued temporal filter governed by
where is the learnable phase-prior frequency and is the learnable bandwidth parameter. The state is complex-valued even when is real, with its real and imaginary parts forming an in-phase/quadrature pair. Defining , and collapses Eq. (4) into the compact scalar recurrence , so the RQF is a stable single-pole complex filter for any (Fig. 1). The prospective factor sets the local recurrent prediction, whereas the homogeneous state evolves as when . Appendix A.2 derives the transfer function (revealing the band-pass property), quality factor, damped-oscillator form, and the effect of cascading RQFs for fine-tuning the bandwidth.
Multi-layer architecture. A layer of an RQF network bundles scalar filters operating in parallel, each with its own phase-prior frequency and bandwidth but sharing a common time constant a

b Pole of the transfer function
C
Notation
d
Impulse response:

e
Frequency response: controls bandwidth

Figure 1: The Recursive Quadrature Filter (RQF): pole, impulse response, and frequency response. An RQF is a scalar complex-valued temporal filter with learnable phase-prior frequency and bandwidth parameter at a fixed base time constant , governed by Eq. (4). The derived quantities are the decay rate , resonant frequency , effective time constant , and pole . (a) Free response of in the complex plane, . (b) The pole lies in the stable region for any . (c) Notation used throughout the paper. (d) Impulse response to a Dirac drive , with in-phase and quadrature components oscillating inside the envelope ( , ). (e) Magnitude response for several values of , showing the transition from sharp resonance to broad integration.
. Collecting the parameters into vectors and writing the layer state as , the layer dynamics are the element-wise vectorization of Eq. (4):
where is the bottom-up input drive to the layer; denotes the element-wise product; and is the all-ones vector. Defining and , Eq. (5) collapses to the compact diagonal complex ODE
To build a deep network, we stack L layers. The input drive to layer is
where is an activation function (also called an output nonlinearity); is the layer input to layer , with the boundary ; is a complex inter-layer weight matrix; and is the post-weight bottom-up input drive. The activation function is not required to be holomorphic: nothing in the layer dynamics or in the discretization of Section 3 relies on complex differentiability, and Wirtinger calculus supplies gradients for any real-differentiable map of . The default is the pointwise family , with the canonical choice being the split-ReLU
(8) a Prospective input between layers

b The prospective operator

Figure 2: Prospective-input coding in multi-layer RQFs. The prospective-input variant replaces the bottom-up post-nonlinearity signal entering layer with its -step look-ahead defined in Eq. (15); the instantaneous-input baseline feeds directly into . (a) The state is passed through the activation , advanced by the prospective operator , and mixed by the inter-layer weight to form the bottom-up drive . (b) Action of on a sinusoidal signal (black). The look-ahead (pink, dashed) advances by approximately by extrapolating along the local tangent.
which applies a real-valued rectifier independently to the in-phase and quadrature components and is non-holomorphic by construction. The RQF experiments use no normalization, although layer normalization, filter normalization or other pointwise or channel-coupling nonlinearities are admissible.
Discretization. For the implementation, we discretize the continuous-time layer dynamics in Eq. (6) with a zero-order hold (ZOH) on the bottom-up drive . ZOH treats as piecewise constant on each integration interval , with the constant value denoted by , and integrates the resulting forced linear ODE in closed form. It is the default discretization for diagonal SSMs, adopted by DSS, S4D, S5, and Mamba [22, 21, 25, 26], because it (i) is unconditionally stable for any pole in the open left half-plane, meaning that high-Q neurons impose no extra step-size constraint; (ii) integrates the linear part exactly, retaining the full response at finite ; and (iii) agrees with forward Euler to first order in , with an difference. ZOH discretization of Eq. (6) yields the diagonal complex affine recurrence
where
and where samples the bottom-up input drive in Eq. (7) at . The coefficients and depend only on the parameters , the base time constant , and the step size , and can be precomputed once per parameter update and reused across all time steps. The full derivation is given in Appendix B.1.
RQFs are a special case of diagonal state-space models. A continuous-time linear state-space model (SSM) maps an input signal through a latent state to an output via
with state matrix , input matrix , output matrix , and feedthrough [27, 25]. All SSMs share this template but differ in how the recurrent core is parameterized and how the feature channels are coupled. S4 applies a bank of single-input single-output (SISO)
SSMs across feature channels [27]; DSS and S4D replace S4's structured state matrix with diagonal variants [22, 21]; S5 uses one multi-input multi-output (MIMO) SSM whose effective recurrent matrix is complex-valued and diagonal [25]; the LRU uses a discrete diagonal linear recurrence with dense input and output projections [28]; and Mamba retains a diagonal state transition while making the discretized parameters input-dependent [26]. In the fixed-parameter diagonal case, the recurrent core can be written directly in a complex diagonal form,
with diagonal, , and . ZOH discretization at step gives , with
The temporal modes are controlled by the entries of : an eigenvalue in the open left half-plane produces a damped oscillation at angular frequency with decay rate .
The RQF layer is the following constrained special case of Eq. (12), obtained by substituting the layer drive from Eq. (7) into Eq. (6):
Thus, the SSM input corresponds to the RQF layer input , and the dense input projection is the inter-layer weight . In the canonical SSM notation of Eq. (12), the full continuous-time input matrix is ; the diagonal factor is not an extra SSM parameter but the RQF input gain already present in Eq. (6). The RQF-specific constraint is that and , which identifies the channel input gain with the inverse decay timescale . The inclusion is one-way: a general diagonal SSM need not satisfy this pole-input-gain coupling and therefore need not be an RQF. The remaining SSM machinery transfers without modification: any output projection and feedthrough may be appended to read out from , and the per-block residual connections used in S4, S5, and Mamba stacks are admissible at the layer level. Unless stated otherwise, we set and throughout, so each layer's output is its own complex state and inter-layer mixing is delegated to ; residual connections are treated as an explicit configuration choice in our experiments (Section 4).
3 Prospective-input coding in multi-layer RQFs
We use the terms instantaneous-input and prospective-input to refer only to the bottom-up input drive from layer to layer . Both variants retain the RQF recurrent prediction from Section 2; the comparison changes the input path, not the RQF dynamics. With the notation of Eq. (7), the instantaneous choice uses , while the prospective-input alternative applies the look-ahead operator before the inter-layer weights act (Fig. 2b):
where the dot denotes the time derivative. Since is fixed over the integration interval, applying to and then multiplying by is equivalent in the forward pass to applying to ; the discretization below uses this compact input drive notation.
Discretization. Applying the ZOH update to the prospective input drive gives the following recurrence; Appendix B.2 provides the derivation:
where and . In standard signal-processing terms, Eq. (16) is a first-order IIR filter with a two-tap feedforward path: the recurrence on has a single feedback pole , while the compact drive enters through weighted taps at and .
This form permits a concrete comparison with the exponential-trapezoidal rule of Mamba-3 [29]. Writing , that rule uses
Table 1: RQF on Speech Commands. Test accuracy for non-residual width-64 stacks trained with (a) full BPTT and (b) spatial-only backpropagation.
| Depth | Raw audio | MFCC | ||||
|---|---|---|---|---|---|---|
| Params | Prospective | Non-pros. | Params | Prospective | Non-pros. | |
| (a) Full BPTT | ||||||
| 2 | 52.3k | 94.94±0.10 | 94.40±0.17 | 53.5k | 96.42±0.26 | 96.30±0.33 |
| 4 | 68.9k | 96.27±0.16 | 95.77±0.22 | 70.2k | 96.65±0.24 | 96.41±0.14 |
| 6 | 85.6k | 96.35±0.20 | 96.13±0.12 | 86.8k | 96.70±0.19 | 96.49±0.07 |
| (b) Spatial-only backpropagation | ||||||
| 2 | N/A | N/A | N/A | 53.5k | 94.89±0.20 | 94.20±0.28 |
| 4 | 68.9k | 84.70±3.17 | 81.70±1.96 | 70.2k | 92.63±0.85 | 89.04±0.83 |
| 6 | 85.6k | 82.92±5.42 | 75.34±1.18 | 86.8k | 91.55±0.76 | 76.38±1.57 |
so its endpoint weights form a convex blend. Prospective coding instead discretizes and gives the signed previous-input tap (Appendix B.3). For a matched scalar real LTI system with , matching even this previous-input coefficient in Eq. (17) would require . The constructions therefore share a two-tap form but are not equivalent, and prospective input is not a special case of Mamba-3's admissible interpolation.
Prospective input adds no trainable parameters to an RQF layer and leaves its diagonal state transition and associative scan unchanged. For a sequence of length , layer maps inputs to RQF channels and computes the dense drive in work under either input rule. Prospective-input coding adds element-wise computation and one lagged read of the already materialized drive, but no additional full-sequence activation storage; streaming execution needs only an rolling buffer for the previous drive. The diagonal RQF scan remains with parallel depth. Thus, the asymptotic complexity of both inference and full BPTT is unchanged, although the second tap adds a small lower-order operation.
Why prospective-input coding improves the spatial gradient path. Spatial-only backpropagation freezes the temporal recurrence at the previous step and leaves only the within-step chain through depth. An instantaneous-input Euler step sends each inter-layer error through , whereas prospective input uses . Therefore, as at fixed depth and fixed parameters, the discretization prefactor multiplying each spatial hop changes from to and the explicit factor disappears. This statement concerns that prefactor only: the common product of activation slopes, weight norms, and damping gains may still attenuate with depth, and the upper bounds in Appendix C do not guarantee an complete gradient. The implemented ZOH update has the same small- leading-order coefficients. Spatial-only backpropagation is local in time but still uses to propagate exact adjacent-layer errors, so it retains the weight-transport problem and is used here only to isolate the analyzed path.
4 Experiments
RQFs are band-pass filters by construction (Appendix A.2), so speech provides a natural first test of whether prospective-input coding improves learning through the RQF cascade. We use the 10-class subset of Google Speech Commands v0.02 [30], comprising one-second utterances of the keywords yes, no, up, down, left, right, on, off, stop, and go. We consider two representations of each utterance: the raw waveform, supplied as a sequence of 16,000 scalar samples, and 20 Mel-frequency cepstral coefficients (MFCCs), supplied as a sequence of 161 frames. Thus, the two representations pose the same classification problem at very different sequence lengths and levels of temporal abstraction.
We contrast two regimes for assigning gradient credit through the recurrence. Full backpropagation through time (BPTT) differentiates through the complete recurrent trajectory. Spatial-only backpropagation instead detaches every previous recurrent state and retains only the within-step chain through depth. We use the latter as a mechanistic diagnostic, rather than as the recommended optimizer,
Code for the experiments is available at https://github.com/Sequel-Institute/prospective-rqf.
Table 2: αP-S5 versus native S5, full BPTT. Test accuracy on Speech Commands for residual S5 blocks with 64 units per layer.
| Depth | Raw audio | MFCC | ||||
|---|---|---|---|---|---|---|
| Params | αP-S5 | Native S5 | Params | αP-S5 | Native S5 | |
| 2 | 48.9k | 95.55±0.39 | 94.94±0.42 | 50.1k | 96.52±0.20 | 95.89±0.38 |
| 4 | 74.2k | 96.06±0.35 | 95.96±0.27 | 75.4k | 96.40±0.17 | 96.31±0.25 |
| 6 | 99.5k | 96.37±0.31 | 96.21±0.23 | 100.7k | 96.41±0.20 | 96.36±0.14 |
Table 3: Discrete ORGaNICs on MFCC Speech Commands. Residual width-64 models.
| Depth | Params | Full BPTT | Spatial-only | ||
|---|---|---|---|---|---|
| Prospective | Non-pros. | Prospective | Non-pros. | ||
| 2 | 58.3k | 93.28±0.37 | 92.10±0.21 | 79.88±1.28 | 81.49±1.46 |
| 4 | 124.3k | 93.21±0.59 | 91.91±0.53 | 82.61±1.21 | 81.67±0.88 |
| 6 | 190.3k | 91.92±0.19 | 91.92±0.11 | 83.43±1.73 | 80.56±1.41 |
because it removes temporal gradient credit and directly exposes the spatial attenuation analyzed in Section 3.
The cleanest test of this analysis is the RQF stack itself. We therefore begin with non-residual RQF models of depth and width , using split-ReLU between layers and no normalization or gating. Avoiding residual connections leaves no bypass around the recurrent substrate, so changes in spatial credit flow are attributed to the input drive. Within every RQF comparison, the prospective and non-prospective variants match in architecture, optimizer, schedule, seeds, and parameter count; the look-ahead scale and base time constant are both . All tables report test accuracy as the mean sample standard deviation over five seeds, and Appendix E gives the complete parameterization and training protocol.
Under full BPTT, prospective-input coding raises mean test accuracy in all matched depth, width, and feature comparisons (Tables 1 and 5). The smallest raw-audio models reach , , and at two, four, and six layers, respectively, while using only 23.5k–31.9k parameters (Table 5). The spatial-only runs reveal the predicted depth dependence more clearly (Table 1): on MFCC inputs, the prospective advantage grows from 0.69 to 3.59 to 15.17 points as depth increases.
The direct gradient measurements connect this behavioral result to the analysis. Under spatial-only backpropagation, prospective inputs produce larger spatial per-hop gains and early-layer weight-gradient norms than instantaneous inputs. Thus, the advantage of prospective input is evident when learning depends on the spatial path isolated by the theory (Appendix D.2; Tables 7 and 8).
We next test whether the prospective construction transfers to a conventional residual SSM by comparing P-S5 with native S5 [25]. We define P-S5 by scaling each row of the learned S5 input matrix with the corresponding native-clock pole decay rate , i.e., . Prospective input uses the shared physical look-ahead horizon , matching the RQF models. Appendix E.3 and Eq. (E.11) give the complete architecture and discretization. The mean test accuracy of P-S5 is higher at every tested depth, width, and input type (Tables 2 and 6); because P-S5 also rescales the input matrix, this comparison tests the complete construction rather than the second tap alone. These experiments also place the minimal RQF architecture in context. At width 32, the RQF is more accurate than P-S5 at every raw-audio depth while using fewer parameters; at six layers, it reaches with 31.9k parameters, compared with with 40.9k for P-S5 (Tables 5 and 6).
To determine whether the effect depends on a linear RQF or SSM recurrence, we also apply the input correction to discrete residual ORGaNICs, a nonlinear recurrent substrate with dynamic, recurrent normalization [23, 31]. Prospective-input coding improves the full BPTT mean at two and four layers and ties at six layers. Under spatial-only backpropagation, the prospective model improves at four and six layers (Table 3). The correction therefore transfers beyond the linear RQF core.
Speech is well matched to a bank of temporal band-pass filters, but it does not establish whether the same minimal RQF architecture can learn structure that is neither acoustic nor naturally localized in frequency. We therefore turn to Path-X from Long Range Arena [32], a binary classification task formed by flattening a 128 × 128 image into a 16,384-step sequence whose relevant endpoints can be separated across the full input. We retain the forward-only, non-residual RQF model, set the width to 64, and train with full BPTT using a Path-X-specific optimization schedule (Appendix E.4). The four-layer prospective and non-prospective models reach 82.19 ± 0.88% and 81.14 ± 1.00%, respectively; at six layers, they reach 83.56 ± 2.11% and 81.63 ± 0.80% (Table 4). Therefore, without bidirectionality, normalization, gating, or an expanded state, the minimal RQF stack learns a fully non-local 16,384-step task more than 30 points above chance. Making the input prospective leads to a more accurate model.
Table 4: LRA Path-X, full BPTT. Width-64 RQFs on the 16,384-step task (chance: 50%).
| Depth | Prospective | Non-pros. |
|---|---|---|
| 4 | 82.19±0.88 | 81.14±1.00 |
| 6 | 83.56±2.11 | 81.63±0.80 |
5 Related work
Prospective coding in recurrent neural circuits. Prospective coding has been used to address timing mismatch and credit assignment in biologically motivated learning rules. Latent equilibrium uses the look-ahead variable to recover fast feedforward computation and local error propagation [2]. Neuronal least-action formulates a least-action principle over future-discounted voltages, yielding prospective firing rates and prospective somato-dendritic mismatch errors [10]. Generalized latent equilibrium separates retrospective membrane integration from prospective output dynamics, yielding local spatio-temporal credit assignment [11]. Recent work has also identified cellular mechanisms for prospective and retrospective firing [5] and framed prospective neurons as a solution to teaching-signal synchronization [33]. Our work complements these circuit theories by showing that prospectivity can also serve as an input-side architectural addition for deep recurrent networks.
Normalization, ORGaNICs, and quadrature dynamics. The RQF construction also belongs to a line of recurrent cortical circuit models in which dynamics, prediction, and normalization are coupled. Heeger [3] modeled neural activity as a compromise between feedforward drive, feedback drive, and prior drive, with prediction over time implemented by recursive quadrature pairs. ORGaNICs extend this idea to gated recurrent neural integrator circuits with dynamic normalization [23], a canonical neural computation [18]. Most prior ORGaNICs work has focused on stability and normalization [31, 34, 35]; RQFs were also combined with ORGaNICs to model temporal-frequency selectivity and direction selectivity of neurons in primary visual cortex [12]. The RQF is the corresponding single-channel complex primitive, whose complex state carries the quadrature pair.
Credit assignment and trainability. The trainability problem we study is related to, but distinct from, the classical vanishing-gradient problem in RNNs, which arises from products of recurrent Jacobians through time [36]. Online alternatives such as RTRL avoid reverse-time unrolling but introduce large sensitivity states [37]; recent work makes this more tractable by exploiting independent recurrent modules across layers [38]. Equilibrium propagation, Lagrangian extensions, and Hamiltonian echo methods instead recover gradient information from the response or time reversal of physical dynamical systems [39–42]. Our learning mode of spatial-only backpropagation removes reverse-time temporal credit but does not solve the separate weight-transport problem across layers.
State-space models and discretization upgrades. SSMs have made diagonal recurrent substrates practical for long sequences. S4 introduced efficient structured state-space layers [27], while DSS and S4D showed that complex diagonal state matrices can retain much of this performance with simpler implementations [22, 21]. S5 and LRU refine this family through MIMO scans and carefully parameterized linear recurrences [25, 28]. Mamba addresses a different limitation by making discretized parameters input-dependent [26]. We deliberately keep the parameters input-independent so that the prospective-input intervention and its gradient scaling can be isolated. Mamba-3 also uses two input taps, but its convex endpoint interpolation is analytically distinct from the signed prospective difference (Section 3) [29].
6 Discussion
Takeaways for machine learning. Prospective-input coding is a two-tap change to a diagonal SSM's input path that adds no parameters and preserves the parallel scan. Prospective RQFs yield higher mean test accuracy than their matched controls in all configurations trained with full BPTT; the prospective αP-S5 construction likewise exceeds native S5 in all comparisons. Separately, RQFs are a special case of diagonal SSMs with clear advantages: a stack of these biologically motivated filters, carrying no normalization, no gating, and no residual path, is more accurate than S5 at every depth on raw audio while using fewer parameters.
Takeaways for computational neuroscience. Prospective firing has been measured in biological neurons, and the look-ahead operator that models it exactly inverts a first-order membrane low-pass filter. Our results give that inverse a specific role: carrying a teaching signal through a deep cascade of leaky integrators. The evidence is mechanistic rather than only behavioral. Under spatial-only backpropagation in a deep recurrent network, we measure the error gain surviving each backward hop across layers, and a prospective drive preserves several times more of it than an instantaneous one. The consequence is that temporally local learning reaches a new scale: a six-layer stack that never differentiates its recurrence through time reaches 83% on 16,000-step raw audio, far longer than the sequences on which the local rules of NLA and GLE have been demonstrated.
Limitations. The prospective-input correction is not directly applicable to discrete-time gated RNNs such as LSTMs and GRUs [43, 44]. The operator is defined on a continuous-time trajectory and uses as an intrinsic integration timescale, whereas standard LSTMs and GRUs are specified by per-step algebraic update equations. A discrete architecture can be embedded in many possible continuous flows, but without such a substrate, there is no canonical derivative or effective time constant to invert. Our proof isolates the linear RQF substrate under spatial-only backpropagation. Nonlinear activations, residual connections, normalization layers, input-dependent parameters, and imperfect choices of the look-ahead scale can all change the size of the empirical gain. Finally, we did not attempt to maximize performance in this paper; future work should learn or adapt the effective time constants, use multi-timescale look-ahead operators, optimize the pole initialization, and test residual and normalization choices.
Selective RQFs and future work. Mamba makes state-space parameters input-dependent, whereas the present controlled setting uses fixed and . A selective extension could use
while retaining a selective associative scan. Associative recall, state tracking, and language modeling would test whether prospective input complements selectivity.
Spatial-only backpropagation isolates within-step spatial credit assignment but deliberately discards credit through recurrent time. Extending the prospective-input mechanism to local learning rules that retain useful temporal credit is therefore an open problem. Temporal credit assignment in RNNs is difficult because gradients propagated through time can vanish or explode [36]; deriving local alternatives has consequently been a long-standing goal [37, 38, 10, 11]. Biological synapses do not receive gradients produced by unrolling an entire recurrent computation, yet the brain learns from temporally extended experience. The goal is to use neuroscience principles to identify recurrent dynamical models whose learning rules use only local information (local errors and activity) while retaining useful credit assignment through time.
Acknowledgments and Disclosure of Funding
We thank Stefano Martiniani, Jenny Listman, Kyle Stratis, Ruben Coen-Cagli, and Wayne Mackey for helpful discussions.
References
[1] Wulfram Gerstner, Werner M Kistler, Richard Naud, and Liam Paninski. Neuronal dynamics: From single neurons to networks and models of cognition. Cambridge University Press, 2014.
[2] Paul Haider, Benjamin Ellenberger, Laura Kriener, Jakob Jordan, Walter Senn, and Mihai A Petrovici. Latent equilibrium: a unified learning theory for arbitrarily fast computation with arbitrarily slow neurons. Advances in neural information processing systems, 34:17839–17851, 2021.
[3] David J Heeger. Theory of cortical function. Proceedings of the National Academy of Sciences, 114(8):1773–1782, 2017.
[4] Harold Köndgen, Caroline Geisler, Stefano Fusi, Xiao-Jing Wang, Hans-Rudolf Lüscher, and Michele Giugliano. The dynamical response properties of neocortical neurons to temporally modulated noisy inputs in vitro. Cerebral cortex, 18(9):2086–2097, 2008.
[5] Simon Brandt, Mihai Alexandru Petrovici, Walter Senn, Katharina Anna Wilmes, and Federico Benitez. Prospective and retrospective coding in cortical neurons. arXiv preprint arXiv:2405.14810, 2024.
[6] Daniel Ulrich. Dendritic resonance in rat neocortical pyramidal cells. Journal of neurophysiology, 87(6):2753–2759, 2002.
[7] Stephanie E Palmer, Olivier Marre, Michael J Berry, and William Bialek. Predictive information in a sensory population. Proceedings of the National Academy of Sciences, 112(22):6908–6913, 2015.
[8] Srdjan Ostojic, Germán Szapiro, Eric Schwartz, Boris Barbour, Nicolas Brunel, and Vincent Hakim. Neuronal morphology generates high-frequency firing resonance. Journal of Neuroscience, 35(18):7056–7068, 2015.
[9] Michael Dimitriou and Benoni B Edin. Human muscle spindles act as forward sensory models. Current Biology, 20(19):1763–1767, 2010.
[10] Walter Senn, Dominik Dold, Akos F Kungl, Benjamin Ellenberger, Jakob Jordan, Yoshua Bengio, João Sacramento, and Mihai A Petrovici. A neuronal least-action principle for real-time learning in cortical circuits. ELife, 12:RP89674, 2024.
[11] Benjamin Ellenberger, Paul Haider, Federico Benitez, Jakob Jordan, Kevin Max, Ismael Jaras, Laura Kriener, and Mihai A Petrovici. Backpropagation through space, time and the brain. Nature Communications, 17(1):66, 2026. doi: 10.1038/s41467-025-66666-z.
[12] David J Heeger and Klavdia O Zemlianova. A recurrent circuit implements normalization, simulating the dynamics of v1 activity. Proceedings of the National Academy of Sciences, 117 (36):22494–22505, 2020.
[13] Rodney J Douglas, Christof Koch, Misha Mahowald, Kevan AC Martin, and Humbert H Suarez. Recurrent excitation in neocortical circuits. Science, 269(5226):981–985, 1995.
[14] David J Heeger, Eero P Simoncelli, and J Anthony Movshon. Computational models of cortical visual processing. Proceedings of the National Academy of Sciences, 93(2):623–627, 1996.
[15] Eero P Simoncelli and David J Heeger. A model of neuronal responses in visual area mt. Vision research, 38(5):743–761, 1998.
[16] Maximilian Riesenhuber and Tomaso Poggio. Hierarchical models of object recognition in cortex. Nature neuroscience, 2(11):1019–1025, 1999.
[17] Maximilian Riesenhuber and Tomaso Poggio. Neural mechanisms of object recognition. Current opinion in neurobiology, 12(2):162–168, 2002.
[18] Matteo Carandini and David J Heeger. Normalization as a canonical neural computation. Nature reviews neuroscience, 13(1):51–62, 2012.
[19] Timothy D Oleskiw, Justin D Lieber, Eero P Simoncelli, and J Anthony Movshon. Foundations of visual form selectivity for neurons in macaque areas v1 and v2. bioRxiv, 2024. doi: 10.1101/2024.03.04.583307.
[20] Georg Von Békésy. Experiments in hearing. McGraw Hill, 1960.
[21] Albert Gu, Karan Goel, Ankit Gupta, and Christopher Ré. On the parameterization and initialization of diagonal state space models. Advances in neural information processing systems, 35:35971–35983, 2022.
[22] Ankit Gupta, Albert Gu, and Jonathan Berant. Diagonal state spaces are as effective as structured state spaces. Advances in neural information processing systems, 35:22982–22994, 2022.
[23] David J Heeger and Wayne E Mackey. Oscillatory recurrent gated neural integrator circuits (organics), a unifying theoretical framework for neural dynamics. Proceedings of the National Academy of Sciences, 116(45):22783–22794, 2019.
[24] Bruce A Francis and Walter Murray Wonham. The internal model principle of control theory. Automatica, 12(5):457–465, 1976.
[25] Jimmy TH Smith, Andrew Warrington, and Scott W Linderman. Simplified state space layers for sequence modeling. arXiv preprint arXiv:2208.04933, 2022.
[26] Albert Gu and Tri Dao. Mamba: Linear-time sequence modeling with selective state spaces. arXiv preprint arXiv:2312.00752, 2023.
[27] Albert Gu, Karan Goel, and Christopher Ré. Efficiently modeling long sequences with structured state spaces. arXiv preprint arXiv:2111.00396, 2021.
[28] Antonio Orvieto, Samuel L Smith, Albert Gu, Anushan Fernando, Caglar Gulcehre, Razvan Pascanu, and Soham De. Resurrecting recurrent neural networks for long sequences. In International conference on machine learning, pages 26670–26698. PMLR, 2023.
[29] Aakash Lahoti, Kevin Y Li, Berlin Chen, Caitlin Wang, Aviv Bick, J Zico Kolter, Tri Dao, and Albert Gu. Mamba-3: Improved sequence modeling using state space principles. arXiv preprint arXiv:2603.15569, 2026.
[30] Pete Warden. Speech commands: A dataset for limited-vocabulary speech recognition. arXiv preprint arXiv:1804.03209, 2018.
[31] Shivang Rawat, David J Heeger, and Stefano Martiniani. Unconditional stability of a recurrent neural circuit implementing divisive normalization. Advances in Neural Information Processing Systems, 37:14712–14750, 2024.
[32] Yi Tay, Mostafa Dehghani, Samira Abnar, Yikang Shen, Dara Bahri, Philip Pham, Jinfeng Rao, Liu Yang, Sebastian Ruder, and Donald Metzler. Long range arena: A benchmark for efficient transformers. arXiv preprint arXiv:2011.04006, 2020.
[33] Nicolas Zucchet, Qianqian Feng, Axel Laborieux, Friedemann Zenke, Walter Senn, and João Sacramento. Teaching signal synchronization in deep neural networks with prospective neurons. arXiv preprint arXiv:2511.14917, 2025.
[34] Flaviano Morone, Shivang Rawat, David J Heeger, and Stefano Martiniani. Stabilization of recurrent neural networks through divisive normalization. Proceedings of the National Academy of Sciences, 123(30):e2601841123, 2026. doi: 10.1073/pnas.2601841123.
[35] Asit Pal, Shivang Rawat, David J Heeger, and Stefano Martiniani. Hierarchical neural circuit theory of normalization and inter-areal communication. eLife, Aug 2026. doi: 10.7554/eLife.111297.1.
[36] Razvan Pascanu, Tomas Mikolov, and Yoshua Bengio. On the difficulty of training recurrent neural networks. In International conference on machine learning, pages 1310–1318. Pmlr, 2013.
[37] Ronald J Williams and David Zipser. A learning algorithm for continually running fully recurrent neural networks. Neural computation, 1(2):270–280, 1989.
[38] Nicolas Zucchet, Robert Meier, Simon Schug, Asier Mujika, and Joao Sacramento. Online learning of long-range dependencies. Advances in Neural Information Processing Systems, 36:10477–10493, 2023.
[39] Benjamin Scellier and Yoshua Bengio. Equilibrium propagation: Bridging the gap between energy-based models and backpropagation. Frontiers in computational neuroscience, 11:24, 2017.
[40] Serge Massar. Equilibrium propagation for learning in lagrangian dynamical systems. Physical Review E, 112(3):035304, 2025.
[41] Victor Lopez-Pastor and Florian Marquardt. Self-learning machines based on hamiltonian echo backpropagation. Physical Review X, 13(3):031020, 2023.
[42] Guillaume Pourcel and Maxence Ernoult. Learning long range dependencies through time reversal symmetry breaking. arXiv preprint arXiv:2506.05259, 2025.
[43] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997.
[44] Junyoung Chung, Caglar Gulcehre, KyungHyun Cho, and Yoshua Bengio. Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv preprint arXiv:1412.3555, 2014.
A Details on Recursive Quadrature Filters (RQFs)
This appendix collects the technical material supporting the construction in Section 2. We first recover the leaky-integrator substrate of Eq. (2) by modeling as a dynamical process that minimizes a single-channel slice of the cortical energy function of Heeger [3] over time, and then collect the elementary linear-dynamical-systems facts that motivate the band-pass interpretation, the special-case relationship to SSMs, and the equivalence to a damped harmonic oscillator.
A.1 Energy-based derivation of RQFs
The starting point is Eq. 1 of Heeger [3], which includes a feedforward residual and a prior residual at every layer:
We select one response coordinate, omit the terms contributed by the next layer, and condition on the supplied feedforward target and prior target . We extend this scalar compromise to two real quadrature coordinates with shared parameters and encode them as (and likewise for and ). The sum of the paired real squared residuals is then a complex modulus. Although Heeger's and may vary, the RQF construction holds them fixed during relaxation, takes to be common to a quadrature pair, and identifies a learned per-channel (the subscript distinguishes Heeger's symbols from the RQF decay rate and pole used elsewhere). A channel-dependent would instead induce channel-dependent effective base time constants.
Let denote Heeger's relaxation time. Gradient descent on the selected quadrature pair gives
Defining absorbs the common scale. Equivalently, the normalized pair energy is
and, with and held fixed, its Wirtinger-gradient dynamics are
Along this flow,
Thus, the energy is nonincreasing and decreases strictly away from stationary points, while the dynamics recover Eq. (2).
The recurrent prior comes from the quadrature predictor in Eq. 3 of Heeger [3]. For angular frequency , its real-coordinate form is
or : the state sampled earlier is rotated forward to predict the present. The RQF applies the same rotation to the present state to predict one look-ahead horizon ahead, with and , and keeps the first-order term
Substitution into Eq. (A.4) yields
which recovers the RQF in Eq. (4).
A.2 State-space form, oscillator equivalence, and cascade bandwidth
Two-dimensional real state-space form. We write the scalar complex-valued equation in Eq. (4) as a real two-dimensional coupled dynamical system to expose an equivalence that is invisible in the complex form: the RQF is a damped harmonic oscillator. Decomposing the complex state and the input into their real and imaginary parts, Eq. (4) is equivalent to the two-dimensional real linear system
or, in matrix form, with , , , , and , the standard planar rotation generator. The matrix therefore implements an isotropic exponential decay at rate combined with a planar rotation at angular velocity . The eigenvalues follow from , giving the complex conjugate pair ; both lie strictly in the open left half-plane for any , so the filter is unconditionally stable. The free response is with a planar rotation, and the impulse response of the scalar complex form is the damped complex exponential for , the same primitive that diagonal complex SSMs convolve with their input sequence.
Frequency response and quality factor. The band-pass interpretation follows directly from the scalar form . With a zero initial condition, the transfer function from z to y is , so its magnitude on the imaginary axis is
which is a Lorentzian peaked at unity gain when and has full half-power bandwidth . The two learnable parameters set the two axes of this response: sets the phase-prior frequency and, through , the resonance location, while sets the bandwidth through . Combining them gives the band-pass quality factor
Small therefore yields a narrow band-pass filter centered near the phase-prior frequency , whereas large broadens the gain toward first-order low-pass integration.
Equivalence with a damped harmonic oscillator. A scalar damped harmonic oscillator with natural (undamped) frequency and damping ratio obeys the standard second-order equation
where is an external forcing; the damping ratio controls the qualitative regime, with the system being undamped when , underdamped when (the impulse response is a decaying sinusoid), critically damped when , and overdamped when . To put the RQF in this form, we differentiate the first equation in Eq. (A.7), substitute from the second, and eliminate the residual using the first equation again. The result is a single second-order ODE in ,
which has exactly the form of Eq. (A.10) with the external forcing
built from the in-phase and quadrature components of : a proportional-plus-derivative response to the real part, plus a static coupling to the imaginary part. Factoring out of the real-part term and introducing the effective time constant exhibits the in-phase drive as a prospective signal on the timescale : . The forcing can therefore be written compactly as
Matching coefficients between Eqs. (A.10) and (A.11) reads off the oscillator parameters as
(A.14) and substituting the RQF parameterization and gives the closed-form map from the learnable parameters to the oscillator parameters,
For any and , the inequality holds strictly, so an RQF is always underdamped: its impulse response is a sinusoid at the damped oscillation frequency contained in an envelope, and its magnitude response is the Lorentzian in Eq. (A.8). The standard oscillator quality factor and the band-pass quality factor from Eq. (A.9) therefore differ by the factor , which approaches unity in the high-Q (low-) regime, and the two coincide as .
Cascade bandwidth. Here, we summarize the effect of cascading RQFs, which could be an architectural knob for adjusting per-channel selectivity. A single RQF has a Lorentzian magnitude response with full half-power bandwidth set by Eq. (A.8). Sharper per-channel selectivity at fixed can be obtained by cascading identical RQFs within a layer, i.e. in series with no nonlinearity between them. With identical RQFs in series, the transfer function is , so by Eq. (A.8) the cascade magnitude squared is
which peaks at unity at for every , since stacking unity-gain filters preserves unity gain at resonance. Setting and solving for the frequency offset,
gives the full half-power bandwidth and therefore the cascade bandwidth ratio
where the asymptotic form follows from . A four-fold within-layer cascade, for example, would narrow the per-channel bandwidth to of a single-stage filter at fixed while requiring the computation on the linear path and no extra learnable parameters (the cascade shares the channel's ). We do not exploit this knob in the present work; every layer uses , but it remains an inexpensive design choice.
B Discretization
This appendix gives the full derivations of the ZOH discrete update in Eq. (9), stated in Section 2, and the impulse-ZOH update for prospective-input coding that produces the two-tap input path referenced in Section 3. As in the main text, denotes the compact post-weight drive used for forward discretization; Appendix C expands when deriving learning rules.
B.1 Instantaneous input
Starting from the per-layer ODE in Eq. (6), the element-wise decoupling reduces the vector ODE to independent scalar problems, each admitting the variation-of-constants solution over :
where the exponential is evaluated element-wise because is a vector. The zero-order hold scheme replaces on by the right-endpoint sample , pulls it out of the integral, and evaluates the remaining kernel integral via :
(B.2) with division taken element-wise (well-defined because ). Substituting the coefficients and from Eq. (10) yields the diagonal complex affine recurrence of Eq. (9). Both coefficients depend only on the per-neuron parameters , the base time constant , and the step size , and can therefore be precomputed once per parameter update and reused across all time steps. The homogeneous recurrence is unconditionally stable, since for any , and the ZOH update differs from forward Euler by for .
B.2 Prospective input
For the prospective-input variant, applying to the layer input before is equivalent in the forward pass to driving Eq. (6) by in place of . The variation-of-constants integral of Eq. (B.1) therefore picks up an additional contribution. We model on as a right-continuous piecewise-constant signal that holds value throughout the interval and that jumps from to at the left endpoint ; this is the same hold convention used for the instantaneous-input ZOH update of Appendix B.1, made explicit at the boundary because the prospective term involves . Under this convention, is a Dirac impulse at of magnitude equal to the jump,
and the look-ahead splits additively into a constant part on and an impulsive part at . Each part contributes in closed form to the integral of Eq. (B.1). The constant part reproduces the calculation of Appendix B.1 and contributes . The impulsive part is sampled by the kernel at , where (we use the standard convention that the boundary impulse at is included in ). Multiplying the impulse strength by this kernel value and by the prefactor from Eq. (B.1) gives
where the second equality uses from . Summing the two contributions and grouping by input sample yields the impulse-ZOH update of Eq. (16) in the main text. No finite-difference approximation has been introduced: the update is exact under the right-continuous piecewise-constant model of .
B.3 Two-tap form for diagonal SSMs
The preceding derivation does not rely on the RQF parameterization. To transfer the prospective-input correction to the diagonal SSM core of Eq. (12), we keep the SSM parameters fixed and replace the input signal entering the continuous-time state equation by its look-ahead:
where is the look-ahead scale in and are exactly the SSM parameters from Eq. (12). Thus, the intervention is not a reparameterization of the SSM input matrix: remains the continuous-time input matrix, and the only change is that the state receives instead of . The feedthrough path is written with because the prospective-input correction concerns the recurrent state input; applying the same look-ahead to the direct path would be a separate architectural choice.
Under the same right-continuous hold convention used in Appendix B.2, takes value on and has a jump from to at . Therefore, , and the variation-of-constants formula gives
where and are the standard ZOH coefficients from Eq. (13). Grouping terms by input sample yields the two-tap input path
Eq. (B.7) is the direct SSM analogue of Eq. (16). The recurrent dynamics are unchanged: the state is advanced by the same diagonal transition , while the input enters through a two-tap feedforward path on the current and previous samples. For S4D, this amounts to replacing the one-tap ZOH input coefficient by the pair , whose values are determined by the original continuous-time input matrix , the transition , and the look-ahead scale ; the pole parameterization, state transition, output projection, and feedthrough term are otherwise unchanged. The same coefficient replacement applies to any diagonal state-space model whose continuous-time core has the form of Eq. (12).
C Spatial-only backpropagation gradient derivation: full proof
This appendix gives the gradient calculation supporting Section 3. We consider an arbitrary real-valued loss local in time,
where may include labels, readouts, or other quantities sampled at the same time step but does not backpropagate through earlier recurrent states. Spatial-only backpropagation freezes for every layer and differentiates only through the within-step spatial chain . Unlike the forward-discretization derivation, we expand the compact drive as because the gradients must pass through . We write and , with supplied by the external input.
Because may be non-holomorphic, the exact chain rule is most transparent in real coordinates. For a complex vector and matrix, respectively, define
so that . For a real vector , let , and define the real activation Jacobian and layer error by
For split-ReLU, is diagonal, with the real and imaginary activity masks on its two diagonal blocks, and (using any standard subgradient at zero). Moreover, and . For clarity, we use forward Euler in the derivation because it exposes the factor of directly. The ZOH implementation has the same leading-order spatial gradient coefficients in the small-step limit: and , while the impulse-ZOH prospective coefficients satisfy and . Thus, the Euler calculation below proves the leading-order ZOH scaling as .
C.1 Spatial-only backward pass, instantaneous input
Forward Euler discretization of the instantaneous-input RQF layer is
where . Since is frozen, the only live path from layer to layer runs through and then through the matrix . Applying the chain rule gives, for ,
Consequently, in the Euclidean norm,
When the weight norms, activation-Jacobian norms, and entries of are , Eq. (C.6) contains the explicit factor . This is the discretization-induced depth attenuation: it is separate from any ordinary conditioning effects caused by the weights or nonlinearities. To state the parameter gradient without ambiguity about Wirtinger factors, let invert vector realification, , and set . Define the packed complex gradient
The corresponding local gradient contribution has the outer-product form
C.2 Spatial-only backward pass, prospective
For the prospective case, the look-ahead is applied to the layer input before multiplication by . Using a backward difference at gives
The forward Euler step is therefore
with
The previous input is frozen as a state variable for spatial error propagation, so it does not create a live path from to . The current weight matrix multiplying that frozen input is still trainable. For the inter-layer error recursion, only the current-input coefficient appears:
The corresponding norm bound is
Since , the explicit small factor is absent. More precisely, at fixed depth and fixed parameters, the discretization prefactor on each hop is rather than as . The bounds in Eqs. (C.6) and (C.13) are upper bounds and provide no lower bound: the remaining product of activation-Jacobian norms, weight norms, and can still attenuate with depth. We therefore make no claim that the complete prospective gradient is or depth-independent. The local weight gradient contains both input taps:
Eq. (C.14) is local in time up to the one-step input memory introduced by the two-tap path, and local in space once the adjacent real-coordinate error is available. Exact spatial backpropagation supplies that error through and the activation Jacobian in Eqs. (C.5) and (C.12).
D Experimental results
D.1 Full BPTT results with 32 filters per layer
Tables 5 and 6 report the width-32 results for RQF and P-S5, respectively.
Table 5: RQF, full BPTT. Non-residual stacks with 32 filters per layer on Speech Commands.
| Depth | Raw audio | MFCC | ||||
|---|---|---|---|---|---|---|
| Params | Prospective | Non-pros. | Params | Prospective | Non-pros. | |
| 2 | 23.5k | 94.59±0.28 | 93.96±0.28 | 24.1k | 96.38±0.13 | 96.17±0.22 |
| 4 | 27.7k | 95.66±0.23 | 95.29±0.22 | 28.3k | 96.33±0.23 | 96.12±0.31 |
| 6 | 31.9k | 96.09±0.23 | 95.27±0.22 | 32.5k | 96.35±0.17 | 95.73±0.27 |
Table 6: αP-S5 versus native S5, full BPTT. Residual S5 blocks with 32 units per layer on Speech Commands; the complete αP construction changes the continuous-time input gain, adds the second tap, and uses the pole clipping described in Appendix E.3.
| Depth | Raw audio | MFCC | ||||
|---|---|---|---|---|---|---|
| Params | αP-S5 | Native S5 | Params | αP-S5 | Native S5 | |
| 2 | 27.9k | 93.46±0.93 | 92.34±0.50 | 28.6k | 96.04±0.32 | 95.36±0.24 |
| 4 | 34.4k | 94.74±0.59 | 93.31±1.09 | 35.1k | 96.31±0.32 | 95.84±0.32 |
| 6 | 40.9k | 95.06±0.99 | 94.69±0.66 | 41.5k | 96.44±0.28 | 95.84±0.18 |
D.2 Direct measurements of the spatial gradient path
These measurements test how much of the error signal survives as it propagates backward through the layers. We use a six-layer, 64-channel raw-audio RQF under spatial-only backpropagation at the paper's operating point, . Table 7 reports the weight-gradient norms: the two gradients are similar at layer 6, which is closest to the loss, but the instantaneous gradient decays much faster toward earlier layers. At layer 1, the prospective gradient is larger.
Table 7: Direct weight-gradient norms. Frobenius norms at .
| Layer | Prospective | Instantaneous | Ratio |
|---|---|---|---|
| 1 | |||
| 2 | |||
| 3 | |||
| 4 | |||
| 5 | |||
| 6 |
Table 8 sweeps the step size. We measure the per-hop error gain as follows: with the RMS norm of , we fit over the four hops from layer 6 to layer 2. The table compares the ratio with the exact-ZOH current-tap prediction for the same filter bank. As decreases, remains between 0.585 and 0.624, whereas falls approximately in proportion to . The measured ratio follows the predicted increase across the sweep.
Table 8: Per-hop error gain versus step size. and are the measured per-hop error gains for prospective and instantaneous input; prediction and measurement use the same six-layer, 64-channel filter bank.
| Predicted ratio | Measured ratio | |||
|---|---|---|---|---|
| 1.00 | 1.96 | 0.619 | 0.361 | 1.72 |
| 0.50 | 2.95 | 0.594 | 0.220 | 2.70 |
| 0.20 | 5.93 | 0.585 | 0.104 | 5.65 |
| 0.10 | 10.91 | 0.598 | 0.0565 | 10.59 |
| 0.05 | 20.89 | 0.624 | 0.0305 | 20.43 |
E Architecture and hyperparameter details
E.1 RQF architecture
A bias-free real projection maps the input dimension to width . This is followed by square complex RQF layers of width , with split-ReLU between layers and no normalization, gating, dropout, bidirectionality, or residual connections. At every step, the classifier concatenates the real and imaginary parts of the final state and applies a real MLP with ReLU. Predictions use logits averaged across time. Parameter counts refer to real-valued trainable degrees of freedom, so a complex parameter counts twice. With classes, the count is
Raw waveforms have shape (16,000, 1) and use with fixed . MFCC inputs have shape (161, 20) and use their effective 160 Hz frame clock, and . Path-X uses and . No separate look-ahead scale is learned. Each RQF channel has complex state , dimensionless frequency , bandwidth parameter , and continuous-time dynamics
where is the post-weight drive; and are the per-channel entries of and in the main text. All runs use the ZOH recurrence in Eq. (E.3); prospective input replaces its single input coefficient with the two-tap coefficients in Eq. (E.4), with the delayed input initialized to zero.
The scalar instantaneous recurrence is
The prospective-input recurrence keeps the same state coefficient and replaces the input contribution by the two-tap drive
with the previous input buffer initialized to zero. This is the scalar-channel version of Eq. (16).
RQF parameterization and initialization. The learned leaves are and :
For a sequence with model-coordinate duration , initialization is
All runs use . Speech Commands uses in the model clock for each input representation, while Path-X uses . After every optimizer step, is clamped to and to .
Weight and readout initialization. Let be the complex fan-in, the nominal RQF filter power gain, and the input activation's second-moment gain. Each real and imaginary component of a complex weight is sampled independently as follows:
Thus, for a direct standardized input and after split-ReLU, giving and , respectively. The separate real input projection retains the default PyTorch linear initialization, uniform on , and its bias is removed. The first classifier layer likewise retains its default initialization, with weights and biases uniform on . The logit weights are normal with standard deviation and zero bias. The reference implementation evaluates the recurrence in complex64 with autocasting disabled; optimized scan kernels preserve the same coefficients.
E.2 ORGaNICs architecture
The discrete ORGaNICs control follows the sequential model of Rawat et al. [31]. We fix the recurrent matrix in every layer to , learn the intrinsic time constants, retain the gain and normalization dynamics, and stack layers of width 64. The reported parameter counts include the learned intrinsic time constants. Shape-matched layers use identity residual additions; the first MFCC layer cannot use one. Layer normalization is disabled.
For layer , let denote its input, with equal to the 20-dimensional MFCC sequence. Each layer has 64-dimensional excitatory state , inhibitory normalization state , input gain , and semisaturation gain . We use the rectified-input variant, defining element-wise and
Here, is the input drive and is the drive passed to the ORGaNICs input-gain pathway. The binary variable selects the input-drive condition: gives the instantaneous-input baseline, whereas gives the prospective-input variant with look-ahead scale . The gain modulators evolve dynamically toward the following instantaneous targets:
(E.9)
where is the logistic sigmoid; is the target for the input gain ; and is the target for the semisaturation gain .
For the rectified-recurrence variant, define the recurrent prediction . The continuous-time ORGaNICs layer is then described by
(E.10)
All products, powers, divisions by time constants, and square roots in Eq. (E.10) are element-wise except for multiplication by learned matrices. In the implementation, Eq. (E.10) is integrated with an ordered forward-Euler step: the gain states are updated first, and those updated gains enter the principal and normalization updates. Approximating by a backward difference, the Euler step multiplies the prospective term by , so the two-tap prospective correction reduces to in addition to the ordinary Euler drive, with the previous input-drive buffer initialized as . The gain dynamics for and are otherwise identical in the prospective and instantaneous variants.
The normalization matrix is a learned full-rank positive matrix represented in log space; its initialization is 50% sparse off-diagonal with unit diagonal. and the six gain-target matrices in Eq. (E.9) use Kaiming-uniform initialization with . The semisaturation parameter is fixed to . The four time-constant vectors are learned through bounded positive sigmoid maps; their unconstrained leaves are standard normal at initialization, with and . The principal state is a normalized random positive vector; is not normalized, , and . A learned linear readout produces per-step logits, which are averaged for evaluation. The input correction is the only difference between the members of each prospective/non-prospective pair.
E.3 P-S5 architecture and parameterization
The S5 controls use the native forward-only residual S5 architecture [25]. A real input projection maps to units per layer. The pre-normalized residual blocks use this value of , conjugate symmetry, eight HiPPO blocks, ZOH discretization, and a half-GLU pointwise map. The readout normalizes the final -dimensional block state and projects it to 64 dimensions; that representation is mean-pooled and classified by a GELU MLP with dropout 0.1. The reported runs use batch pre-normalization and are unidirectional.
Let collect the diagonal poles in S5's native clock, let , and let collect the learned per-mode steps. For a physical input interval , mode has effective continuous-time pole . We define and set in the native clock. The corresponding physical input row is , so the gain remains tied to the physical pole decay rate and is not learned separately.
Prospective input uses the same shared physical horizon as the RQF experiments, . Substituting into the impulse-ZOH correction of Eq. (B.6) gives . Thus, the factor cancels when the update is expressed in S5's native clock, and the implementation computes the following coefficients:
It then advances . The two taps span adjacent input samples; is the native-clock impulse coefficient produced by the shared horizon, not a learned or mode-dependent physical look-ahead. The delayed input starts at zero, and the direct feedthrough remains instantaneous. Within P-S5, the two-tap operation adds no trainable parameters and leaves the recurrent transition, residual path, output projection, and scan structure unchanged.
The poles and basis transformation use the standard HiPPO-DPLR initialization. Before transformation, entries of and are LeCun-normal with standard deviation , and . Log steps are initialized uniformly so that . In the reference P-S5 configuration, real pole parts are clipped to at most before forming , whereas the native one-tap S5 configuration does not apply this clipping and uses the unscaled learned input matrix. Tables 2 and 6 therefore compare the complete P-S5 construction with native S5; they do not isolate the second tap while holding the continuous-time input map and pole clipping fixed.
E.4 Optimizer and training
All Speech Commands runs use the 10-word subset of v0.02 with a stratified 70/15/15 split (split seed 0) and feature-wise standardization from the training split. MFCC extraction uses 20 coefficients, a 200-sample FFT window, 64 mel bands, and a 100-sample hop, producing 161 frames. A checkpoint is saved each epoch, and test accuracy is read from the checkpoint with the highest validation accuracy. Prospective/non-prospective pairs use identical training settings and seeds. Neither Speech Commands nor Path-X uses data augmentation. The Speech Commands v0.02 archive includes a CC BY 4.0 license. Path-X was obtained from the official LRA release; the accompanying code repository is Apache 2.0, but the downloaded data archive does not include separate dataset-license terms.
RQF. RQF Speech Commands models use AdamW with a batch size of 32; the reported runs use seeds 42–46. Complex mixing weights, the input projection, and the readout use a learning rate of and weight decay ; RQF pole parameters use a learning rate of and zero weight decay. The global gradient norm is clipped at 1.0. Training runs for at most 300 epochs with cosine annealing to and stops after 20 epochs without improved validation accuracy. Full BPTT retains the complete temporal graph and applies cross entropy with label smoothing 0.1 to the mean-pooled logits. Spatial-only backpropagation detaches the recurrent state after every step and applies the same smoothed cross entropy per time step; validation and test predictions average logits across time.
ORGaNICs. ORGaNICs uses AdamW with a learning rate of and weight decay , cross entropy with label smoothing 0.1, and gradient clipping at 1.0. The learning rate follows cosine annealing to over a maximum of 300 epochs, with early stopping after 20 epochs without improved validation accuracy. Full BPTT runs use the mean-pooled prediction loss; spatial-only backpropagation detaches every recurrent state after each step and applies the loss at each time step.
αP-S5. S5 uses the same AdamW optimizer, base batch size, label smoothing, clipping, cosine schedule, early stopping, and checkpoint selection as the RQF Speech Commands runs; the reported runs use seeds 0–4. All S5 parameters, including , , , and the log steps, use the base learning rate and weight decay. The native-clock gain introduces no optimizer state because it is derived from the poles.
Path-X. We use the 200,000-example pathfinder128/curv_contour_length_14 task with a seeded 80/10/10 split (split seed 42). Pixels are divided by 255 and standardized by the training-split scalar mean and standard deviation. The four- and six-layer width-64 RQFs use Adam with , zero weight decay, a learning rate of for all parameter groups, a batch size of 64, cross entropy at each time step, and gradient clipping at 1.0. Training runs for 300 epochs with cosine annealing to zero; evaluation averages logits over time and reports the test result at the best-validation epoch. The five runs use seeds 0–4 for initialization and data-shuffling order while retaining the same data split. These runs execute the complex recurrence as a real-pair scan in bfloat16 rather than through the complex64 Speech reference path. Path-X uses the same recurrence, log-space parameterization, split-ReLU, and real-imaginary MLP readout as the Speech model, but its first complex matrix maps the scalar pixel input directly to width 64; it does not use the separate real input projection used by the Speech model. The optimizer schedule and the initialization duration were chosen for Path-X rather than carried over from the Speech Commands runs.