TL;DR
STKAN introduces Taylor-polynomial Kolmogorov-Arnold Networks (KANs) to spatio-temporal forecasting, challenging the default reliance on Multi-Layer Perceptrons (MLPs) for token mixing. By combining KAN-based spatial and temporal mixers with a learnable soft node-grouping mechanism, the architecture achieves state-of-the-art performance on major traffic benchmarks. This work demonstrates that optimizing the underlying nonlinear function approximator is a powerful, underexplored lever in spatio-temporal network design.
What Problem Does This Paper Address?
Spatio-temporal forecasting is crucial for the "AI for Transport" ecosystem, powering everything from autonomous traffic routing to urban grid management. Traffic data is notoriously difficult to model because it contains intricate, non-Euclidean spatial correlations alongside highly non-stationary temporal patterns (like sudden traffic jams superimposed on daily periodic cycles).
To tackle this, researchers have historically focused on designing increasingly complex architectures: graph neural networks (GNNs), transformers, and frequency-domain decomposition methods. However, almost all of these architectures share a hidden commonality: they rely on standard MLPs with fixed activation functions (like ReLU or GELU) to perform the underlying nonlinear mappings. The authors of this paper ask a fundamental question: Does the choice of the nonlinear function approximator itself limit forecasting performance, and can we do better than the standard MLP?
Methods
The authors propose STKAN (Spatio-Temporal Kolmogorov-Arnold Network), an architecture that replaces standard MLP token-mixers with Taylor-polynomial KAN layers. Unlike MLPs, which apply fixed activation functions to a linear combination of inputs, KANs place learnable univariate functions directly on the network connections.
The STKAN framework consists of several key stages:
- Embedding & Temporal Convolution: Raw traffic data is combined with spatial embeddings and temporal metadata (time-of-day, day-of-week). A 1D patch convolution downsamples the temporal resolution and captures local context.
- Learnable Spatial Grouping: To prevent the spatial mixing step from becoming computationally prohibitive, an unnormalized learnable matrix softly aggregates raw sensor nodes into a smaller number of macro-level "spatial tokens."
- Spatial KAN (SKAN) Block: This block performs token mixing across the macro-spatial groups using a TaylorKAN layer. Instead of traditional B-splines, it uses a Taylor-inspired polynomial basis to efficiently combine nonlinear terms of different orders.
- Temporal KAN (TKAN) Block: After mapping the spatial features back to the node level, a temporal KAN block models dependencies across the compressed time steps.
- Spatio-Temporal Fusion Blocks: Standard Transformer self-attention layers are placed at the end to capture long-range, global interactions.
Datasets
The model was evaluated on five standard, real-world traffic forecasting benchmarks:
- PEMS04, PEMS07, PEMS08: Traffic flow datasets from California.
- PEMS-BAY: A large-scale traffic speed dataset from the Bay Area.
- METR-LA: A traffic speed dataset from the Los Angeles highway network.
No new datasets were introduced in this paper.
Key Insights and Ideas
- Rethinking the Inductive Bias of Activations: Standard MLPs assume that a single activation function can successfully map all features across all units. KANs provide a completely different inductive bias by optimizing unique polynomial functions for individual connections, allowing the network to adaptively learn the shape of the nonlinearity required for complex traffic dynamics.
- Taylor Polynomials over B-Splines: While original KAN implementations rely heavily on B-splines, STKAN utilizes a Taylor-inspired polynomial basis. This choice offers better numerical stability and computational efficiency when mixing high-dimensional tensor dimensions.
- Soft Grouping Captures Structural Regularities: The learnable spatial grouping mechanism doesn't just save compute; qualitative visualizations reveal that it naturally groups spatially contiguous road segments together, effectively capturing corridor-level traffic regularities without requiring a predefined graph.
Key Results
STKAN was compared against 11 representative baselines (including STID, GWNet, GMAN, and STAEformer).
- Top-Tier Accuracy: STKAN achieved the best average Mean Absolute Error (MAE) and Root Mean Squared Error (RMSE) on the PEMS04, PEMS07, and PEMS08 datasets. For instance, on PEMS07, STKAN achieved an average MAE of 19.16, outperforming the strong STAEformer baseline (19.33).
- Traffic Flow vs. Speed: The model demonstrated a clear advantage on traffic flow datasets, though its performance edge was less pronounced on traffic speed datasets like METR-LA.
- Ablation Validation: Crucially, when the authors replaced the TaylorKAN layers with standard MLPs while keeping the rest of the architecture identical, performance degraded across the board. This confirms that the KAN formulation itself drives the accuracy gains, rather than just the surrounding architecture.
Limitations and Future Work
While promising, the authors note several areas for improvement:
- Statistical Rigor: The current evaluation relies on single-run results; future work needs to account for statistical variability across multiple seeds.
- Efficiency and Parameters: KANs can be computationally demanding. The authors highlight the need for strict parameter-matched comparisons and deeper profiling of computational efficiency.
- Domain Specificity: The architecture's relative lack of advantage on traffic speed data (METR-LA) suggests that the current polynomial inductive bias might be better suited to certain data distributions over others, a dynamic that requires further study.
Summary updated