TL;DR
This paper introduces TFB, a comprehensive and fair benchmarking framework for Time Series Forecasting (TSF) methods. TFB addresses limitations in existing benchmarks by offering broader domain coverage, a diverse set of methods (including traditional ones), and a unified, flexible evaluation pipeline, leading to more reliable comparisons and insights into TSF method performance.
What Problem Does This Paper Address?
Forecasting future values from time series data is crucial across many domains like economics, traffic, and health. While numerous forecasting methods have been proposed, comparing them fairly and comprehensively has been a significant challenge. Existing benchmarks suffer from:
- Insufficient Domain Coverage: They often focus on a limited set of domains, failing to capture the diverse characteristics of time series data from various fields.
- Stereotype Bias: Many benchmarks overlook traditional statistical methods, focusing solely on newer deep learning approaches, potentially missing valuable insights from established techniques.
- Inconsistent and Inflexible Pipelines: Differences in data preprocessing, splitting, and evaluation metrics across benchmarks lead to unfair comparisons and hinder reproducibility.
These issues make it difficult to reliably assess the true performance and applicability of different TSF methods, slowing down progress in the field.
Methods
The core contribution is the Time Series Forecasting Benchmark (TFB), designed to address the aforementioned issues. TFB comprises:
- Comprehensive Dataset Collection: TFB includes a large collection of univariate (8,068 series) and multivariate (25 datasets) time series from 10 diverse domains (traffic, electricity, energy, environment, nature, economic, stock markets, banking, health, and web). Datasets are characterized by six key features: trend, seasonality, stationarity, shifting, transition, and correlation.
- Broad Method Coverage: TFB supports a wide array of methods, including statistical learning (e.g., ARIMA, VAR), machine learning (e.g., LR, RF, XGBoost), and deep learning (e.g., TCN, DeepAR, Transformers like PatchTST, FEDformer).
- Flexible and Scalable Pipeline: A unified, end-to-end pipeline is provided, structured into data, method, evaluation, and reporting layers. This ensures standardized data loading, preprocessing, evaluation strategies (fixed and rolling forecasting), and metrics (MAE, MSE, MAPE, etc.), eliminating biases and promoting fair comparisons. The pipeline is extensible and supports both CPU and GPU execution.
Datasets
TFB utilizes a curated collection of datasets:
- Univariate Datasets: 8,068 time series from 16 open-source datasets, covering a wide range of domains and characteristics.
- Multivariate Datasets: 25 datasets from 10 domains, with varying frequencies, dimensions, and lengths.
The paper also references existing benchmarks like TSlib, LTSF-Linear, BasicTS, M3, and M4 for comparison. TFB aims to provide a more diverse and representative dataset collection than these predecessors.
Key Insights and Ideas
- Traditional Methods Still Matter: Surprisingly, traditional methods like Linear Regression (LR) and VAR often perform competitively, and sometimes even better than, state-of-the-art deep learning methods on certain datasets, especially those with clear trends or seasonality. This highlights the need to include them in benchmarks to avoid bias.
- Method Performance is Highly Context-Dependent: No single method excels across all datasets or characteristics. The best method depends heavily on the specific properties of the time series (e.g., trend strength, seasonality, stationarity, shifting, transition, correlation).
- Channel Dependencies are Crucial for Multivariate Forecasting: For multivariate time series with strong correlations between channels (variables), methods that explicitly model these dependencies (like Crossformer) tend to outperform those that assume channel independence (like PatchTST).
- Transformer vs. Linear Trade-offs: Linear models are efficient for datasets with strong trends or shifts. Transformers, with their enhanced nonlinear modeling capabilities, excel on datasets with complex seasonality, stationarity, and nonlinear patterns.
Key Results
- Univariate Forecasting: Deep learning methods like TimesNet, PatchTST, and N-HiTS showed strong average performance in MASE and MSMAPE. However, LR and Random Forest (RF) achieved better "Ranks" (indicating more frequent wins), suggesting their suitability for individual time series where deep learning might struggle with limited data.
- Multivariate Forecasting: Transformer-based methods generally outperformed others on datasets with weak trends. Linear-based methods showed moderate improvement on datasets with strong trends. The paper presents extensive tables (Tables 7 and 8) detailing MAE and MSE results across numerous methods and datasets, illustrating the varied performance.
- Performance vs. Characteristics: Radar plots (Figure 8) show that methods like Crossformer excel on specific characteristics (transition, stationarity, correlation), while PatchTST and NLinear show more consistent performance across different characteristics.
- Efficiency: Linear-based methods generally outperform deep learning methods in terms of running time and parameter count, as visualized in Figure 11.
Limitations and Future Work
- Dataset Size: While TFB offers broad coverage, the M4 competition dataset has a significantly larger sample size (100,000 vs. 8,068 for TFB univariate), which could lead to different conclusions in some analyses.
- Hyperparameter Tuning: While efforts were made to optimize hyperparameters, the computational cost of exhaustive tuning for all methods and datasets is a practical limitation.
- Future Work: The authors suggest further exploration of channel dependencies in multivariate forecasting and the development of new methods that can effectively leverage these dependencies. They also highlight the potential for TFB to guide the design of new TSF methods by revealing performance patterns related to dataset characteristics.
Summary updated