TL;DR
This paper introduces HaKAN, a novel time series forecasting model that combines the expressiveness of Kolmogorov-Arnold Networks (KANs) with Hahn polynomials for learnable activation functions. HaKAN offers a lightweight, interpretable, and highly effective alternative to existing Transformer and MLP models, achieving state-of-the-art performance on various forecasting benchmarks.
What Problem Does This Paper Address?
Accurate long-term time series forecasting is crucial across many domains, but it's a challenging task. Existing popular models like Transformers, while powerful, suffer from high computational complexity and issues with handling the causal nature of time series data. On the other hand, simpler MLP models can exhibit "spectral bias," limiting their ability to capture high-frequency patterns and complex non-linear dynamics. This leaves a need for models that are both computationally efficient and capable of capturing intricate temporal patterns without these drawbacks.
Methods
The core innovation of HaKAN lies in its use of Kolmogorov-Arnold Networks (KANs), which replace fixed activation functions with learnable ones. Specifically, HaKAN employs Hahn polynomials to parameterize these learnable activations. This choice is motivated by Hahn polynomials' properties: they offer efficient computation, avoid the need for grid discretization (unlike some other KAN implementations), and provide a strong theoretical basis for function approximation.
HaKAN's architecture is built around a Hahn-KAN block, which is stacked and includes residual connections. Each block contains two KAN layers:
- Intra-patch KAN layer: Focuses on refining local patterns within a patch of the time series.
- Inter-patch KAN layer: Captures global temporal patterns across different patches.
The model also incorporates several standard yet effective techniques:
- Channel Independence: Treats each time series variable independently to preserve its unique characteristics.
- Patching: Divides the time series into smaller segments (patches) to improve efficiency and capture local temporal information.
- Reversible Instance Normalization (RevIN): Helps handle shifts in data distributions over time.
- Patch and Position Embeddings: Encodes the spatial and sequential information of the patches.
- Bottleneck Structure: A two-layer fully connected network at the output to efficiently map features to the prediction horizon.
Datasets
The authors evaluated HaKAN on several benchmark datasets:
- Weather: 21 meteorological indicators.
- Electricity: Hourly electricity usage data.
- Illness: Weekly records of patient counts and influenza-like illness ratios.
- ETT datasets (ETTh1, ETTh2, ETTm1, ETTm2): Transformer load and oil temperature data sampled at different frequencies.
- Traffic: Hourly road occupancy data.
No new benchmarks were introduced.
Key Insights and Ideas
- Hahn Polynomials as a Sweet Spot: The paper demonstrates that Hahn polynomials offer a compelling alternative for KAN activation functions, providing expressiveness and interpretability without the computational overhead or grid-dependency issues of other methods.
- Hierarchical Patching for Temporal Dynamics: The combination of intra-patch and inter-patch KAN layers within a hierarchical structure effectively captures both fine-grained local fluctuations and broader global trends in time series data.
- KANs Outperform MLPs: The study shows that KANs, even with a simpler basis like Hahn polynomials, can significantly outperform traditional MLP architectures in time series forecasting, especially for complex patterns.
- Efficiency Matters: HaKAN achieves competitive or superior performance while being more computationally efficient than many Transformer-based models, making it practical for long-term forecasting.
Key Results
- State-of-the-Art Performance: HaKAN consistently outperformed several leading baselines (including S-Mamba, TimeKAN, PatchTST, and iTransformer) across multiple datasets and prediction horizons, achieving the best MSE in 18 out of 32 cases and the best MAE in 19 out of 32 cases.
- Significant Error Reductions: The model demonstrated notable relative average MSE and MAE reductions, for example, 8.98% and 3.96% on the Illness dataset.
- Robustness: Ablation studies confirmed the effectiveness of HaKAN's core components, with the complete model (integrating both intra- and inter-patch layers) showing the best performance. Removing the intra-patch layer led to the most significant performance degradation.
- Optimal Patch Length: The study found that a patch length of P=16 provided the best trade-off between local pattern capture and global context preservation.
Limitations and Future Work
- Channel Independence Limitation: The authors acknowledge that HaKAN's assumption of channel independence might limit its performance on datasets with strong inter-variable correlations (e.g., Traffic).
- Future Work: The authors suggest exploring the integration of HaKAN with frequency-domain techniques to further enhance its ability to model periodic patterns.
Summary updated