TL;DR
KAN-AD introduces a highly efficient time series anomaly detection (TSAD) framework built on Kolmogorov-Arnold Networks (KANs). By replacing the localized B-splines of vanilla KANs with truncated Fourier expansions and using lightweight 1D CNNs to learn their coefficients, KAN-AD forces the model to learn smooth, global "normal" patterns. It achieves state-of-the-art accuracy while requiring fewer than 1,000 parameters, making it incredibly robust to noisy training data and highly suitable for resource-constrained environments.
The Challenge of Noisy Training Data
Time series anomaly detection is critical for monitoring IT infrastructure and manufacturing systems. Recently, deep learning forecasting models (like Transformers) have dominated this space. They work by predicting the next data points and flagging large deviations as anomalies.
However, real-world training data is rarely perfectly clean; it often contains local disturbances, minor fluctuations, or even unlabeled anomalies. Heavyweight forecasting models tend to overfit to these local disturbances, learning them as "normal" behavior and subsequently failing to flag similar anomalies in production.
While the recently introduced Kolmogorov-Arnold Networks (KANs) offer a promising alternative by decomposing complex functions into univariate functions, vanilla KANs use B-splines. B-splines are inherently localized, meaning they still overfit to local noise peaks and drops. KAN-AD tackles the challenge of building a model that is expressive enough to capture complex normal patterns but structurally constrained to ignore local anomalies during training.
How KAN-AD Works
The authors reformulate TSAD as approximating a time series using smooth univariate functions. They introduce KAN-AD, which modifies the standard KAN architecture in three major ways:
- Fourier Series over B-Splines: To prevent overfitting to local noise, KAN-AD replaces B-splines with truncated Fourier series (and additional sine/cosine waves). Because Fourier series are globally smooth and naturally periodic, they capture the overarching "normal" behavior of the time series without bending to fit localized spikes.
- Function Deconstruction (FD) via 1D CNNs: Instead of using massive multi-layer perceptrons or attention blocks, KAN-AD transforms an input time window into a matrix of univariate functions (raw time, sine, cosine). It then uses a stacked 1D Convolutional Neural Network (CNN) to learn the coefficients for these functions, effectively reconstructing the normal pattern.
- Constant Term Elimination (CTE): In a Fourier series, the $A_0$ term represents the mean. Because time series often have drifting trends, this mean fluctuates across windows, destabilizing the learning of other coefficients. KAN-AD uses first-order differencing during preprocessing to eliminate this trend, allowing the model to focus purely on the periodic coefficients.
For inference, a simple single-layer MLP projects this reconstructed normal pattern forward to predict the next time step.
Key Insights
- Smoothness is a feature, not a bug: Normal sequences in time series generally exhibit greater local smoothness than abnormal ones. By structurally forcing the network to use smooth functions (Fourier), the model becomes inherently robust to noisy training data. It literally lacks the mathematical flexibility to overfit a sharp, localized anomaly.
- B-splines are bad for anomaly detection: While B-splines are fantastic for precise local function approximation (which is why vanilla KANs use them), this exact property makes them a liability in anomaly detection where local outliers need to be ignored.
- Extreme Parameter Efficiency: You don't need millions of parameters to model a time series. By shifting the learning objective from "memorize complex temporal dependencies" to "estimate the coefficients of a few Fourier terms," the parameter count plummets without sacrificing accuracy.
Key Results
The authors evaluated KAN-AD across both univariate (KPI, TODS, WSD, UCR) and multivariate (SMD, MSL, SMAP, SWaT, PSM) benchmarks. For multivariate datasets, KAN-AD uses a channel-independent approach, treating each feature as an independent univariate series.
- Accuracy: KAN-AD achieved an average 15% improvement in Event F1 score across the four univariate benchmarks compared to state-of-the-art models, with peaks exceeding a 27% improvement on the TODS dataset. It also achieved the highest average Best F1 score (0.9076) across the five multivariate datasets.
- Efficiency: The model is astonishingly tiny. It requires fewer than 1,000 trainable parameters for univariate tasks (e.g., just 274 parameters on the UCR dataset) and only 4,491 parameters on the multivariate MSL dataset. For context, baseline models like OFA use ~81.9 million parameters.
- Speed: Thanks to the lightweight FD mechanism, KAN-AD boasts a 50% faster inference speed compared to the original KAN architecture.
- Robustness: In ablation studies where the training data was intentionally corrupted with increasing ratios of anomalies, KAN-AD maintained stable performance, whereas traditional methods like LSTMAD degraded significantly.
Limitations and Future Work
The authors note that the Constant Term Elimination (CTE) module is highly effective for datasets with drifting trends, but yields negligible improvements on datasets that are already strongly periodic and temporally stable (like WSD). Future work will explore whether normal patterns in time series can be represented even more efficiently by leveraging additional data modalities or external knowledge, further pushing the boundaries of parameter-efficient anomaly detection.
Summary updated