Spikes as Detectors: Phase-Conditioned Spiking Dynamics for Time-Series Anomaly Detection

Miao Wang, Gangyi Ding, Yunlin Lei, Yu Zhang, chenjingfeng, Xu YangNeurIPS 2026

TL;DR

Instead of spotting anomalies in time series purely by seeing if a model fails to predict or reconstruct the next data point, this paper asks: what if we listen to the model's internal brainwaves? By routing periodic signals through spiking neural networks, the authors show that abnormal bursts and silences inside the network's neurons act as a distinct, reliable alarm system—turning spiking dynamics from a mere energy-saving trick into first-class anomaly evidence.

What Problem Does This Paper Address?

Almost every neural time-series anomaly detector—from classic autoencoders to massive new foundation models—follows the same playbook: try to forecast or reconstruct the signal, and flag an anomaly when the output doesn't match reality.

This convention quietly tangles two separate choices: how a detector operates (predicting the future vs. reconstructing the past) and where we look for anomaly evidence. Up until now, the "where" has almost exclusively been output-space error. The authors wonder if the internal dynamics of the detector itself hold clues that get washed out by the time the signal reaches the final output layer. Spiking Neural Networks (SNNs), whose neurons accumulate electrical current over time and fire discrete spikes when crossing a threshold, offer a natural window into these internal states—especially for rhythmic, periodic data where "normal" means repeating a familiar cycle.

Figure 1: SPIRE separates the operational protocol of a detector from the source of anomaly evidence. A1-E2, where the current observation is scored by phase-conditioned spike-state deviation, carries the central claim. Output-error cells are operational controls. Dashed cells denote optional extensions not required for the main claim.

Methods

The authors introduce SPIRE (a phase-conditioned spiking anomaly detector), built around a process they call eventification: turning broken rhythms into measurable spike abnormalities.

Figure 2: SPIRE architecture. Phase-aligned current formation: the period router and the cross-period residual produce Rt, which is injected into the membrane current eIt (Eqs. 1–2). LIF eventification: the encoder LIF and the Spike-TCN with optional SPF produce encoder spikes Zenc and backbone activity Zback. Evidence readout: the spike-state feature vector ut (Eqs. 3–4) is matched to the template of its phase for the internal-state score Sspk, the rate-pooled output head yields the output- error score Serr, and the hybrid score Shyb fuses the two (Eq. 5).
  1. Spectral Residual Prior (SRP): Using a Fast Fourier Transform (FFT), SPIRE finds the dominant periods in an encoded window of data. It compares the current state to the same phase in previous cycles. When rhythm holds, this cross-period residual is tiny; when an anomaly breaks the cycle, the residual spikes. (A reliability gate turns this off if the data isn't actually periodic.)
  2. LIF Eventification: This residual current is injected into Leaky Integrate-and-Fire (LIF) neurons inside a Spiking Temporal Convolutional Network (Spike-TCN). Perturbations push the neurons out of their groove, triggering sudden bursts, eerie silences, or phase-shifted spikes.
  3. Phase-Conditioned Templates: Rather than just flagging high neural activity (which might be normal at the peak of a cycle), SPIRE learns what "normal" internal states look like at each specific phase of the cycle using robust median and median-absolute-deviation (MAD) statistics—no anomaly labels or gradient descent needed. It tracks five internal variables: pre-LIF residual energy, encoder firing rate, backbone activity, burst ratio, and silence ratio.
  4. Decoupled Scoring: At test time, SPIRE can score anomalies using traditional output reconstruction error, pure internal spike-state deviations, or a hybrid fusion of both.

Datasets

SPIRE is evaluated on the official TSB-AD benchmark splits:

  • TSB-AD-U: 350 univariate time series (plus 48 for hyperparameter tuning).
  • TSB-AD-M: 180 multivariate time series (plus 20 for tuning).

Models are trained completely from scratch on the clean normal prefix of each individual series—no external pre-training—and evaluated using the Volume Under the Surface for Precision-Recall (VUS-PR). An 870-series superset of TSB-AD-U is also used solely for secondary regime analysis. No new datasets are introduced.

Key Insights and Ideas

  • It really is the temporal neuron dynamics doing the work: Could any network do this given the same clever phase-residual inputs? To check, the authors built two strict clones: a continuous ReLU network and a "stateless binary" network tuned to match the exact sparsity and binarization of the LIF neurons, just stripped of membrane leak, integration, and reset. Both controls scored significantly worse across the board. The temporal memory of the spiking neuron genuinely matters.
  • Architecture vs. Readout follow opposite rules: Strongly periodic data is where the spiking architecture beats standard neural nets by the widest margin. Ironically, that's also where internal-state scoring is least needed because standard output error is already crisp. Internal spike readout shines brightest on messy, multivariate series where output reconstruction degrades—acting as a steady safety net via its global fallback template.

Key Results

Trained from scratch with a tiny footprint (~31K–34K parameters), SPIRE punches well above its weight class:

  • Multivariate (TSB-AD-M): Hybrid SPIRE achieves 0.355 VUS-PR, beating every from-scratch neural baseline (e.g., USAD at 0.300, CNN and LSTMAD at 0.310) and statistical detector, landing within 10% of the massive pre-trained foundation model TSPulse (0.390). On the exact same trained backbone, reading internal states alone (0.342) edges out output error (0.336), and fusing them lifts performance to 0.355.
  • Univariate (TSB-AD-U): Output-error SPIRE hits 0.409 VUS-PR, topping all from-scratch neural nets (best is USAD at 0.360), though trailing statistical Sub-PCA (0.420) and pre-trained TSPulse (0.520). Here, output error is so strong that fusing internal states (0.288 alone) slightly dilutes the hybrid score to 0.394.
Table 1: Main results on the official TSB-AD Eval splits (VUS-PR, official per-series training prefix and sliding window). SPIRE is trained from scratch on the normal prefix of each evaluation series. Baseline numbers are from the TSB-AD leaderboard; TSPulse is a pre-trained external reference.

Limitations and Future Work

The authors are refreshingly candid about the boundaries of their findings:

  • Complementary, not dominant: Internal spike evidence isn't a universal silver bullet; isolated from residual energy, pure spike statistics score lower than output errors, and hybrid fusion hurts performance on clean univariate splits.
  • Modest neuron-specific margins & tuning: While statistically significant, the gain isolated strictly to LIF dynamics over controls is moderate (+0.011 to +0.055 VUS-PR). Furthermore, the winning multivariate fusion weight ($\lambda_{\text{spk}} = 0.7$) was fixed rather than successfully predicted by the tiny 20-series tuning split.
  • Structural blind spots: Because SPIRE focuses on temporal phase recurrence, it is less suited for cross-channel anomalies (like sudden shifts in correlation between sensors) and isn't yet fully streaming due to window-based FFT period routing.

Future extensions include adapting SPIRE to fully online streaming setups, handling legitimate concept drift, and dealing with missing data or confounded multivariate channels.

Summary updated

BibTeX
@inproceedings{wang2026spikes,
  author = {Miao Wang and Gangyi Ding and Yunlin Lei and Yu Zhang and chenjingfeng and Xu Yang},
  title = {{Spikes as Detectors: Phase-Conditioned Spiking Dynamics for Time-Series Anomaly Detection}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=U8hMwVUl0r},
}
Figure