Neural networks whose nonlinearity lives in the memory: linear general fractional systems with state-dependent order
In recurrent neural networks the nonlinearity is usually placed in the vector field: an activation function, a learned right-hand side, or gates that rescale the state, the input and the time step. We study networks in which the vector field is linear and the nonlinearity is confined to a single scalar per equation: the order of differentiation, which depends on the input and on the state. Each unit is a set of linear equations written with the general fractional derivatives of Kochubei and Luchko, units are coupled through a fixed matrix, and the network computes only by choosing, at every instant, the law with which each equation remembers its input. The model is made precise through the diffusive representation, and every memory kernel is required to be a Sonine kernel. Three structural facts follow: the equilibria do not depend on the orders, so all nonlinear computation happens in transients; the linearisation at an equilibrium contains the orders only through their frozen values; and, for a pure fractional kernel with time measured in units of the step, the gain of one step varies by less than 13% over all orders, so the order acts mainly on the timing of the response. This explains why a learned spectral density is needed to turn the order into an effective nonlinearity. We propose a learning scheme in which the linear readout is eliminated in closed form and is a smooth functional on the frequency axis, so that the continuous operator, not its discretisation, is trained. On products of delayed inputs, a network of 20 units outperforms an untrained reservoir of comparable size, keeps working when the orders move by only $\pm0.02$, and remains about one order of magnitude less accurate than a trained gated recurrent network of comparable size. A state-dependent law of memory, acting on otherwise linear dynamics, is thus sufficient for nonlinear computation.