Recent work has applied Mamba style state space models (SSMs) to video anomaly detection, yet existing approaches still rely on buffering clips or windows internally, lack a theoretical account of how temporal memory relates to detection latency, and benchmark efficiency only through GPU throughput rather than the edge hardware these methods are intended to target. We introduce a strictly causal streaming anomaly detector whose fixed size state is updated in O(1) time and memory per incoming frame, with no lookahead and no clip buffering. Its temporal core is a diagonal linear state space recurrence with an input and state dependent decay gate, trained self supervised through causal next embedding prediction on a frozen visual backbone. We derive a closed form relationship between the recurrence decay spectrum and both detection delay and the shortest anomaly it can reliably capture, then validate empirically on UCSD Ped2 and CUHK Avenue. The settling delay bound predicted from the learned base decay (57 to 59 frames) sits far above the measured detection delay (1.6 and 18.4 frames), showing that the event boundary gate, not the base decay, governs responsiveness. We further report end to end latency and throughput measured directly on Apple M3 Pro hardware, 0.74 ms and 0.77 ms per frame (over 1300 FPS), rather than simulated GPU numbers. With an untuned initial configuration the method reaches 67.9 percent and 70.2 percent frame level AUC on Ped2 and Avenue, trailing prior non causal SSM baselines in accuracy. Ablations over decay rate, state size, and gating reveal that the gate contribution is dataset size dependent, hurting accuracy on the smaller Ped2 training set but helping on the larger Avenue one. Closing this accuracy gap and extending evaluation to a third, larger benchmark are immediate next steps.
Figures & tables
Dataset
Method
Frame-AUC ↑
EER ↓
Latency (ms) ↓
FPS ↑
Hardware
UCSD Ped2
Ours (streaming SSM)
67.9
36.8
0.74
1343.62
mps
CUHK Avenue
Ours (streaming SSM)
70.2
34.9
0.77
1290.74
mps
Table 1: Main results: standard accuracy metrics alongside on-device streaming latency/throughput.
Dataset
Layer
Mean decay a
Theory delay (frames)
Empirical delay (frames)
UCSD Ped2
0
0.9493
57.5
1.6 ( n= 12)
1
0.9501
58.6
CUHK Avenue
0
0.9493
57.5
18.4 ( n= 21)
1
0.9501
58.6
Table 2: Predicted settling delay (Eq. 9 ), from each dataset’s trained mean decay, vs. empirically measured detection delay.
Variant
Frame-AUC ↑
EER ↓
Latency (ms) ↓
FPS ↑
Baseline (gate on, N=128, decay in [.9,.999])
67.9
36.8
0.74
1344
Gate off
76.6
24.6
0.49
2047
Decay fast, decay in [.5,.9]
67.0
38.2
0.75
1330
Decay slow, decay in [.98,.9999]
67.8
37.0
0.76
1311
State size N=32
74.7
33.1
0.77
1302
State size N=256
66.5
38.7
0.77
1298
Table 3: Ablations on UCSD Ped2: architectural variants, all else held fixed. Latency/FPS measured the same way as Table 1 .
Variant
Frame-AUC ↑
EER ↓
Latency (ms) ↓
FPS ↑
Baseline (gate on, N=128, decay in [.9,.999])
70.2
34.9
0.77
1291
Gate off
60.0
43.8
0.51
1953
Decay fast, decay in [.5,.9]
70.6
34.4
0.75
1327
Decay slow, decay in [.98,.9999]
70.3
34.8
0.77
1303
State size N=32
70.3
35.0
0.76
1319
State size N=256
71.1
34.5
0.77
1302
Table 4: Ablations on CUHK Avenue: architectural variants, all else held fixed. Latency/FPS measured the same way as Table 1 .