[Paper Review] Topological Attention for Time Series Forecasting
This paper proposes topological attention, a method that integrates local topological features—extracted via persistent homology from sliding windows of time series—into neural forecasting models using a differentiable attention mechanism. When combined with N-BEATS, it achieves state-of-the-art performance on the M4 benchmark, reducing sMAPE by 0.4% and OWA by 1.2% compared to the M4 winner.
The problem of (point) forecasting $ extit{univariate} $ time series is considered. Most approaches, ranging from traditional statistical methods to recent learning-based techniques with neural networks, directly operate on raw time series observations. As an extension, we study whether $ extit{local topological properties}$, as captured via persistent homology, can serve as a reliable signal that provides complementary information for learning to forecast. To this end, we propose $ extit{topological attention}$, which allows attending to local topological features within a time horizon of historical data. Our approach easily integrates into existing end-to-end trainable forecasting models, such as $ exttt{N-BEATS}$, and in combination with the latter exhibits state-of-the-art performance on the large-scale M4 benchmark dataset of 100,000 diverse time series from different domains. Ablation experiments, as well as a comparison to a broad range of forecasting methods in a setting where only a single time series is available for training, corroborate the beneficial nature of including local topological information through an attention mechanism.
Motivation & Objective
- To investigate whether local topological features, derived from persistent homology, can serve as a complementary signal for time series forecasting.
- To develop a differentiable attention mechanism that allows forecasting models to attend to local topological patterns in historical time series segments.
- To evaluate the effectiveness of topological attention in both large-scale (M4 benchmark) and low-data (single time series) settings.
- To demonstrate that topological features, when integrated via attention, improve forecasting performance beyond standard neural network models.
Proposed method
- The method processes time series by sliding overlapping windows of length $ n = loor{0.7 imes T} $ over historical data.
- For each window, a persistence barcode is computed using time-delay embedding and Vietoris-Rips persistent homology.
- Barcodes are vectorized into $ bR^e $ via a learnable, differentiable map $ V_ heta $, enabling gradient flow.
- These vectorized topological features are fed into a multi-head self-attention mechanism implemented via transformer encoder layers with positional encoding.
- The output of the attention module is projected via an MLP to produce a context vector $ bv o bR^T $, which is fused with the input time series in the forecasting model.
- The full architecture is end-to-end trainable and integrates seamlessly into models like N-BEATS, with no architectural overhaul required.
Experimental results
Research questions
- RQ1Can local topological features, extracted via persistent homology from short time windows, provide a meaningful and complementary signal for time series forecasting?
- RQ2Does attending to these local topological features through a differentiable attention mechanism improve forecasting accuracy compared to standard neural forecasting models?
- RQ3How does topological attention perform in low-data regimes where only a single time series is available for training?
- RQ4What is the relative contribution of topological features versus the attention mechanism when integrated into a forecasting model?
Key findings
- Topological attention improves forecasting performance on the M4 benchmark, achieving a 0.4% relative improvement in OWA over the N-BEATS baseline.
- The method reduces sMAPE by 0.4% and OWA by 1.2% compared to the M4 competition winner, demonstrating state-of-the-art performance on the 100,000-time-series benchmark.
- In ablation studies, neither topological features nor attention alone improve performance when added in isolation; the combination is essential for gains.
- The method performs particularly well on large subgroups (e.g., 23k yearly and 48k monthly series), indicating robustness across diverse time series domains.
- Despite minimal computational overhead for topological feature computation, the method scales effectively to large-scale forecasting tasks.
- The integration of topological attention into N-BEATS yields consistent improvements across all M4 subgroups, with statistically significant gains in OWA.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.