Abstract
Recent work shows that linear models can outperform several transformer models in long-term time-series forecasting (TSF). However, instead of explicitly performing temporal interaction through self-attention, linear models implicitly perform it based on stacked MLP structures, which may be insufficient in capturing the complex temporal dependencies. To this end, we propose a Lightweight Sparse Interaction Network (LSINet) for TSF. Inspired by the sparsity of self-attention, we propose a Multihead Sparse Interaction Mechanism (MSIM) that learns important connections between time steps through a sparsity-induced Bernoulli distribution. The sparsity is ensured by a self-adaptive regularization loss. Moreover, we observe the shareability of temporal interactions and propose Shared Interaction Learning (SIL) to further enhance efficiency and improve convergence. LSINet is a linear model comprising only MLP structures with low overhead. Extensive experiments on public datasets show that LSINet achieves both higher accuracy and better efficiency than advanced linear and transformer models.
Introduction
In the domain of Long-term Time Series Forecasting (TSF), researchers have traditionally chosen between two architectural paradigms: Transformers and Linear Models. Transformers, such as PatchTST, utilize self-attention to explicitly model temporal dependencies but are often hindered by quadratic computational and memory overhead. Conversely, recent Linear models (e.g., DLinear, TSMixer) offer high efficiency by using simple Multi-Layer Perceptrons (MLPs) but rely on implicit temporal modeling through stacked layers, which can struggle to capture complex, long-range dependencies.
LSINet bridges this gap by introducing an explicit yet lightweight interaction mechanism. By incorporating a Multihead Sparse Interaction Mechanism (MSIM), LSINet achieves the representational power of Transformers with the efficiency and speed of linear architectures.
Methodology
The core of LSINet is the Sparse Temporal Interaction (STI) module, which integrates three novel components designed to optimize temporal modeling while minimizing overhead.
Multihead Sparse Interaction Mechanism (MSIM)
Unlike standard self-attention that computes dense $O(N^2)$ interaction scores, MSIM learns a discrete binary connection matrix. By modeling connections via a parameterized Bernoulli distribution, the network identifies and retains only the most critical temporal dependencies. This process is made differentiable during training using the Gumbel-Softmax reparameterization trick, allowing the model to learn these sparse "maps" using standard gradient descent.
Self-Adaptive Sparse Regularization Loss (ASRL)
To ensure the model maintains a sparse and efficient structure, the authors introduce a self-adaptive regularization loss. This loss function forces the model to prioritize the top $K$ most effective connections, effectively pruning redundant noise and ensuring the interaction map remains lightweight.
Shared Interaction Learning (SIL)
A pivotal observation in TSF is that temporal patterns—such as daily temperature cycles or weekly consumption habits—often repeat across different sensors and time windows. LSINet exploits this by learning a shared interaction matrix for all variables and samples. This approach significantly reduces the number of parameters and accelerates convergence during training.
Key Insights: Sparsity and Shareability
Empirical analysis of Transformer attention maps reveals that over 90% of attention scores can be zeroed out without significantly hurting accuracy, confirming that temporal interaction is naturally sparse. Furthermore, visualizations of these interactions across different data batches show remarkable consistency.
As shown in the figures above, the learned interaction patterns are highly similar across different batches (Batch 1 and Batch 3), particularly along the diagonal. This empirical evidence justifies the use of a shared interaction matrix to capture universal temporal dependencies.
Experimental Evaluation
LSINet was evaluated on six widely recognized public benchmarks, including Weather, Electricity, and ETT datasets, consistently outperforming both advanced Transformers and linear baselines.
- Accuracy: On the Weather dataset, LSINet achieved an MSE of 0.147 (for a 96-step lookahead), outperforming PatchTST (0.149). Across all datasets, it showed an average improvement of ~2.2% over PatchTST and ~6.8% over Pathformer.
- Efficiency: LSINet demonstrates superior scalability. On the Electricity dataset, it was approximately 4x faster per epoch than PatchTST while consuming less than half the GPU memory (6.9GB vs. 16.1GB).
- Ablation Study: Removing the MSIM component caused the error (MSE) to increase by up to 6.5%, proving that explicit sparse interaction is critical for high-performance forecasting.
Conclusion
LSINet represents a significant advancement in TSF by combining the explicit modeling capabilities of Transformers with the efficiency of Linear models. Through sparse interaction mechanisms and shared learning, it provides a robust, high-performance solution for long-term forecasting tasks. Future work will explore adapting these sparse maps dynamically to handle non-stationary data and scaling the architecture to massive-scale foundation datasets.
Summary updated