KAN-AD: Time Series Anomaly Detection with Kolmogorov-Arnold Networks

Quan Zhou, Changhua Pei, Fei Sun, Jing Han, Zhengwei Gao, Dan Pei, Haiming Zhang, Gaogang Xie, Jianhui Li

TL;DR

KAN-AD introduces a highly efficient time series anomaly detection (TSAD) framework by redesigning Kolmogorov-Arnold Networks (KANs) for robustness. By replacing localized B-spline functions with smooth Fourier expansions, the model achieves a 15% average improvement in detection accuracy over state-of-the-art baselines while using fewer than 1,000 trainable parameters.

What Problem Does This Paper Address?

Time series anomaly detection is vital for monitoring everything from cloud infrastructure to manufacturing lines. Most modern approaches rely on forecasting: they learn "normal" patterns and flag deviations as anomalies. However, these models suffer from a critical flaw—they overfit to "local disturbances" (minor, non-anomalous peaks and drops) in the training data. When a model learns that noise is "normal," its ability to distinguish true anomalies vanishes.

While the recently proposed Kolmogorov-Arnold Networks (KANs) offer a promising way to model complex functions, their standard implementation uses B-splines. Because B-splines are inherently localized, they are particularly prone to fitting these distracting local fluctuations, making them suboptimal for robust anomaly detection in noisy, real-world environments.

Figure 2. Comparison of anomaly detection performance. Top: All methods successfully detect anomalies when trained on clean data (black curve, anomalous segments in pink). Bottom: TimesNet and KAN fail to detect anomalies when trained on noisy data. Blue markers indicate local drops and peaks; red curve shows anomaly scores.

Methods

The authors propose KAN-AD, which reformulates time series modeling as an approximation using smooth univariate functions. The core innovations include:

  1. Fourier Series Replacement: KAN-AD replaces the localized B-splines of vanilla KANs with truncated Fourier expansions. Sine and cosine functions are naturally smoother and better suited for capturing global periodic patterns, making the model inherently resilient to local noise.
  2. Function Deconstruction (FD): Instead of modeling every detail of the raw signal, the model decomposes the input window into a weighted combination of univariate functions.
  3. Stacked 1D CNN Reducing Phase: To learn the coefficients of these Fourier terms efficiently, KAN-AD uses a lightweight 1D Convolutional Neural Network. This architecture naturally captures temporal features while keeping the parameter count extremely low.
  4. Constant Term Elimination (CTE): To handle shifting trends that can bias coefficient estimation, the authors employ first-order differencing during preprocessing to stabilize the "mean" of the sliding windows.
Illustration of the KAN-AD process. Mapping transforms raw windows into univariate functions; Reducing learns coefficients via 1D CNN; Projection predicts future normal patterns.

Datasets

The model was evaluated across both univariate and multivariate benchmarks:

  • Univariate (UTS): KPI (service metrics), TODS (synthetic anomalies), WSD (web server metrics), and UCR (a diverse multi-domain archive).
  • Multivariate (MTS): SMD (server machine data), MSL (Mars Science Laboratory), SMAP (satellite telemetry), SWaT (water treatment), and PSM (eBay application metrics).

Key Insights and Ideas

  • Smoothness as a Prior: The fundamental "aha moment" is that normal time series behavior is generally smoother than anomalies. By forcing the model to use Fourier series, the authors bake this "smoothness prior" directly into the architecture.
  • Global Over Local: B-splines fail because they care too much about what is happening right now in a tiny segment of the data. Fourier series care about the frequency and periodicity of the whole window, allowing the model to ignore a sudden, meaningless blip.
  • Extreme Parameter Efficiency: Because the model only needs to learn a few coefficients for a set of fixed functions, it requires orders of magnitude fewer parameters than Transformers or large MLPs.

Key Results

  • Accuracy: KAN-AD achieved a 15% average improvement in F1 score across four major benchmarks. In the noisy TODS dataset, it outperformed the state-of-the-art (SOTA) by a staggering 27%.
  • Efficiency: The model is incredibly compact, requiring fewer than 1,000 parameters (specifically 274 for univariate tasks). This is a 25% reduction compared to the next most compact model, TranAD, and millions fewer than models like OFA.
  • Speed: KAN-AD is 50% faster in inference than the original KAN architecture.
  • Multivariate Performance: Despite being designed for univariate series, KAN-AD achieved the highest average Best F1 score (0.9076) across five multivariate benchmarks using a channel-independent approach.

Limitations and Future Work

The authors note that a finite Fourier series has a theoretical limit: it cannot model periods smaller than $1/N$ (where $N$ is the number of terms). While they introduced index-based functions to mitigate this, there is still a inherent trade-off between the number of terms and computational cost.

Future research directions include exploring whether pre-training on larger datasets can further enhance the efficiency and representational power of these smooth normal patterns.

Summary updated

BibTeX
@inproceedings{zhou2025kan,
  author = {Quan Zhou and Changhua Pei and Fei Sun and Jing Han and Zhengwei Gao and Dan Pei and Haiming Zhang and Gaogang Xie and Jianhui Li},
  title = {{KAN-AD: Time Series Anomaly Detection with Kolmogorov-Arnold Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=LWQ4zu9SdQ},
}
Figure