What N Real Exponentials Can and Cannot Approximate
Kernel Expressivity & Conditioning
Can a sum of N monotone real exponentials K_k = \sum_{n=1}^N c_n \bar{a}_n^k \bar{b}_n (\lambda_n = -n, \Delta = 0.05) peak at lag k = 20 to read a past token? We fit \mathbf{c} \in \mathbb{R}^N by least squares to a sharp lag-20 spike and a smooth lag-20 Gaussian bump:
N peak spike |c| spike residual bump |c| bump residual
1 0 7e-01 0.99 7e+00 0.90
4 17 1e+02 0.97 1e+03 0.55
16 20 2e+11 0.89 8e+10 0.03
Look at bump |c| (\mathbf{8 \times 10^{10}}): While N = 16 real exponentials fit the lag-20 bump in least squares (0.03 error), doing so requires readout weights of magnitude \sim 10^{11} with alternating signs that cancel to 10 decimal places.
Numerical Equivalence of Convolution, Scan, and Step
The S4D Layer Verified
Our S4D module stores log_neg_rate (\lambda_n = -e^{\theta_n} < 0), log_dt (\Delta = e^{\phi} > 0), readout C, and skip D (fixing \mathbf{B} = \mathbf{1} since only b_n c_n enters K_k). Comparing FFT forward, linear_scan, and token-by-token step on T = 50:
convolution vs scan: 2.4e-07, convolution vs steps: 2.4e-07
All three evaluation algorithms compute the exact same mathematical function up to float32 rounding (\sim 10^{-7}).
1,000-Step Delayed Recall: Initial Timescales Decide
Long-Range Recall Results
Test accuracy (chance = 0.125) and post-training slowest half-life (\ln 2 / \min(\Delta|\lambda_n|)) across two seeds at T = 100 and T = 1{,}000:
accuracy T=100 T=1000
minGRU 0.12 0.12 0.13 0.13
S4D 1.00 1.00 1.00 1.00
S4D, short timescales 1.00 1.00 0.12 0.12
minGRU, S4D timescales 1.00 1.00 1.00 1.00
slowest half-life after training, in steps
S4D 1028 1190 3020 2552
S4D, short timescales 119 196 7 7
The controls swap places: At T = 1{,}000, minGRU initialized with S4D’s timescales achieves 1.00 accuracy, whereas S4D initialized with short timescales (\le 7 steps) collapses to 0.12 (chance).
The Blind Spot of LTI Models: Content Blindness
From LTI to Selectivity
Why did we use identical blank fillers (blank_fillers=True) in the 1{,}000-step S4D recall test?
- Fixed lag weights: In a time-invariant convolution y_t = \sum_{k=0}^{t-1} K_k x_{t-k} + D x_t, the weight K_k depends only on the distance k, never on the token x_{t-k} itself.
- Cannot ignore noisy fillers or variable lags: If salient tokens appear at unpredictable positions among varying filler tokens, any fixed filter K_k blends target tokens and filler noise with fixed weights.
Up next (§12.5 Selective State Space Models): Make the step size \boldsymbol{\Delta}_t, write vector \mathbf{B}_t, and read vector \mathbf{C}_t functions of the input token \mathbf{x}_t—combining S4D’s multi-timescale state bank with minGRU’s content-based gating.