Neural networks whose nonlinearity lives in the memory: linear general fractional systems with state-dependent order

Stefano FazzinoarXiv 2026

TL;DR

Standard recurrent neural networks compute by squashing signals through nonlinear activation functions. This paper strips away all of those activations and asks a bold question: can an entirely linear system still compute nonlinearly if its only trick is choosing how long to remember each input? Using tools from fractional calculus, the author shows that dynamically changing the "law of memory" at every instant is indeed enough to learn nonlinear tasks—isolating the core magic behind modern architectures like Mamba in a mathematically transparent sandbox.

What Problem Does This Paper Address?

Every sequence model relies on two ingredients: memory (keeping traces of past inputs) and nonlinearity (combining those traces). In classic RNNs, these are tangled together inside a single update equation, like $h_{t+1} = \tanh(Wh_t + Uu_t)$.

Recently, selective state-space models (like Mamba) started pulling them apart, letting the hidden state evolve linearly while pushing the nonlinearity into input-dependent gates that control forgetting rates and input scaling. Even there, though, nonlinearity still touches multiple parts of the system.

Stefano Fazzino pushes this separation to its absolute mathematical extreme. What happens if every differential equation in a network is strictly linear, the coupling between units is linear and fixed, and the only nonlinear element is a single number per equation that dictates how fast memory fades? Can a network compute solely by deciding how long to remember things?

Methods

To build a tunable law of memory, the paper turns to general fractional calculus—a generalization of standard calculus where derivatives are fractional (say, a 0.6-th derivative instead of a 1st derivative). Unlike ordinary systems that forget exponentially fast, fractional systems forget according to a slower power law ($t^{-\alpha}$), governed by the fractional order $\alpha \in (0,1)$.

To make this concrete and computable, the author uses the diffusive representation, which rewrites a fractional memory operator as a bank of standard, first-order decaying modes, each relaxing at its own fixed frequency $\omega$ (from slow integrators to fast forgetters).

Figure 1: One equation of the network. The gate computes the order (∆α = αmax −αmin) from the input and from the output of the unit. The linear input v is injected into a bank of relaxing modes with weights given by the learned profile wij times the fractional density of the current order. The modes are summed into the state, which closes the linear loop through A, and are read individually by a readout that is a smooth function of the frequency. Thick frames mark learned components.

Here is how the novel pieces fit together:

  • State-Dependent Order: At every step, a simple logistic gate looks at the current input and unit state to pick a fractional order $\alpha(t)$.
  • The "Injection" Form: When $\alpha(t)$ changes over time, does it rewrite past memories or only affect new ones? The author adopts an "injection" rule: $\alpha(t)$ tilts how a newly arriving input is distributed across the slow and fast modes. Once written, each mode decays at its own fixed rate.
  • Learned Spectral Profiles (Sonine Kernels): Pure power-law memory turns out to be too uniform across time scales (more on why below). So, each equation multiplies its fractional memory weight by a smooth, learned frequency profile $w(\omega)$, constructed to guarantee a mathematically valid fractional operator (a Sonine kernel).
  • Continuous Operator Training: Instead of reading out discrete modes via gradient descent, the readout is defined as a smooth function over the continuous frequency axis and solved analytically at every step via ridge regression (variable projection). Only the memory-shaping parameters (8 per equation) are trained with Adam.

Datasets

Rather than standard real-world benchmarks, the paper evaluates the model on a clean, synthetic task designed to isolate pure nonlinear memory: predicting the product of two delayed inputs, $y(t) = u(t-1)u(t-1-\ell)$, for delays $\ell \in \{1, 2, 4\}$, where $u(t)$ is uniform random noise in $[-1, 1]$. Because the inputs are independent and zero-mean, any purely linear system—no matter how deep its memory—is mathematically guaranteed to fail, scoring a normalized mean squared error (NMSE) of 1.0.

Key Insights and Ideas

  • All computation happens in the transients: Mathematical proofs show that if you hold the input constant, the network's steady-state equilibrium is completely independent of the fractional orders! The network cannot store memories in fixed-point attractors; it can only compute nonlinearly while the input is actively changing.
  • The order acts like a clock change, not a volume knob: If you measure time in units of the discrete step size, sweeping $\alpha$ across $(0, 1)$ changes the immediate total amplitude of an input step by less than 13%. However, it shifts the relative weights between slow and fast modes by orders of magnitude.
Step gain versus relative frequency weights across fractional orders, showing minimal amplitude change alongside massive redistribution across time scales.
  • Why simple summing fails: Because changing $\alpha$ mostly redistributes an input across time scales without changing its sum, a naive readout that just adds up the modes won't see much short-term nonlinearity—the shifts cancel out. You need a learned spectral profile to weight frequencies unequally and a readout that inspects different time scales separately.
  • Total interpretability: Freeze the orders, and every unit is just an explicit linear operator. All nonlinear behavior lives inside time-varying exponents $\alpha(t)$ that you can directly plot and read.

Key Results

Tested with a 20-unit network (60 scalar equations, 480 learned memory parameters + 301 closed-form readout weights):

  • Linear Control ($\alpha$ fixed at 0.6): Scores an NMSE of 1.02 at $\ell=2$, confirming zero nonlinear capacity when memory is static.
  • Beating Reservoirs: With dynamic orders in $[0.3, 0.95]$, the network achieves NMSEs of 0.008–0.012 ($\ell=1$) and 0.018–0.020 ($\ell=2$), outperforming a 60-unit nonlinear tanh Echo State Network (0.050–0.066 and 0.17–0.19) by 5x to 10x. At $\ell=4$, the reservoir fails (0.73–0.92), while the fractional network still captures significant signal (0.12–0.44).
  • Tiny Order Swings: Even when the fractional orders are handcuffed to a tiny range of $0.8 \pm 0.02$, the network still learns the task (NMSE 0.017–0.066), beating the unrestricted reservoir.
  • Comparison to GRUs: A fully trained Gated Recurrent Unit with a comparable parameter count (553) achieves 0.002–0.003 ($\ell=2$) and 0.005–0.008 ($\ell=4$)—roughly an order of magnitude more accurate. Memory modulation alone works, even if standard vector-field nonlinearities remain stronger per parameter on this task.

Limitations and Future Work

  • Small Scale: Experiments are small (60 equations, 1500-step sequences, two random seeds per setup) and confined to synthetic delayed products rather than long-range real-world data.
  • Sensitivity to Noise: When $\alpha$ is restricted to tiny excursions ($\pm 0.02$), state differences are minuscule and heavily amplified by the readout. Any physical hardware or noisy input environment would easily drown out those signals.
  • Open Theory: Two big mathematical questions remain open: proving whether this restricted $\omega^{-\alpha}$ nonlinearity is a universal approximator for fading-memory systems, and proving formal global stability when fractional orders vary dynamically across coupled equations.
  • Future Direction: Because the model natively learns state-dependent laws of memory, a natural sweet spot for future work is system identification—modeling real physical materials or biological systems whose memory mechanics physically shift depending on their state.

Summary updated

BibTeX
@misc{fazzino2026neural,
  author = {Stefano Fazzino},
  title = {{Neural networks whose nonlinearity lives in the memory: linear general fractional systems with state-dependent order}},
  year = {2026},
  eprint = {2611.38079},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.38079},
}
Figure