TSLib KANAD
KAN-AD detects time series anomalies by fitting normal patterns with Fourier-based univariate functions.
Time series · 39 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Time series
- Parameters
- 5.2K
- Operations
- 39
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICML 2025
- Cited by
- 3 (as of 23 October 2026)
- Authors
- Quan Zhou, Changhua Pei, Fei Sun and others
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m3030
- Graph hash
- 24856b9790369e86c3061210c3d72b2ad3bd3d3414b6b60381958143aae21ae3
- Skeleton hash
- b90fae832df70eefefb5edfc254301bc7fe1a0d85176ead8fd719eb7b0c2e116
- Architecture hash
- 572a4f58898b4fb985aa4d0682e8649a7a0e3de13fe3eaeca508a87ff7024e3c
- Diagram SHA-256
- 6c61b9c5b6ffa482e333930c59a8fd2b97444f60ebc98de3ddf48153d1a4c640
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
This model is the KAN-AD implementation included in Time-Series-Library.
KAN-AD is a time series anomaly detection model based on Kolmogorov-Arnold Networks (KANs). The paper argues that detectors driven by forecasting models tend to overfit by emphasizing minor fluctuations. Its alternative is to model normal behavior by approximating the series with smooth univariate functions. The paper primarily addresses single time series curves, also called univariate time series.
A direct KAN implementation proved susceptible to local disturbances because its B-spline functions are inherently localized, so KAN-AD replaces the B-splines with truncated Fourier expansions. The pipeline has three stages, mapping, reducing and projection. Mapping turns each raw time window into multiple univariate functions, and in the reducing stage a one-dimensional convolution learns the coefficients that combine them into a normal pattern for the window. In the projection stage a linear layer predicts future normal patterns.
On four time series anomaly detection benchmarks, the paper reports an average 15% improvement in detection accuracy over the baselines it compared against. The paper also reports fewer than 1,000 trainable parameters and a 50% faster inference speed than the original KAN.
Key idea. KAN-AD replaces the B-splines of Kolmogorov-Arnold Networks with truncated Fourier expansions so that the fitted normal pattern stays robust to local disturbances in time series anomaly detection.
- kan-ad
- kanad
- kolmogorov-arnold network
- time series anomaly detection
- tsad
- anomaly detection
- fourier series
- univariate time series
- tslib kanad
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{zhou2026kanadtimeseriesanomaly,
title={KAN-AD: Time Series Anomaly Detection with Kolmogorov-Arnold Networks},
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},
year={2026},
eprint={2411.00278},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2411.00278},
}