TL;DR
This paper introduces RETIME, a novel two-stage approach for time series forecasting that leverages retrieved historical time series to improve accuracy, especially when historical data is scarce. By theoretically quantifying forecasting uncertainty and demonstrating how retrieved references reduce it, RETIME offers a more robust solution for challenging forecasting scenarios.
What Problem Does This Paper Address?
Accurate time series forecasting is crucial for applications like traffic management and environmental monitoring. However, current deep learning methods often struggle when forecasting horizons are long relative to the available historical data (i.e., high "missing rates"). This scarcity of historical context significantly increases the uncertainty in predictions. The paper aims to address this challenge by proposing a method that actively seeks out and utilizes relevant historical time series from a database to augment the limited information of the target series, thereby reducing prediction uncertainty.
Methods
RETIME employs a two-stage approach:
- Relational Retrieval: Instead of relying on the potentially noisy content of the target time series (especially when it's short), RETIME uses a relational retrieval mechanism. This involves constructing an adjacency matrix that captures relationships between the target series and a database of historical series. A Random Walk with Restart (RWR) algorithm is then used to compute relational proximity scores, identifying the most relevant historical time series as references. This relational approach is chosen because relationships between series (e.g., sensor proximity) are often more reliable than the observed data itself when data is sparse.
- Content Synthesis: Once relevant reference time series are retrieved, RETIME synthesizes the future values. This stage uses a neural network architecture comprising input, aggregation, and output modules. The input module embeds the target and reference series. The aggregation module then uses content and temporal attention mechanisms to jointly consider discrepancies between series content and temporal dependencies across time steps. Finally, the output module generates the predicted time series. RETIME is also shown to be adaptable to spatial-temporal forecasting and time series imputation tasks.
Datasets
The paper evaluates RETIME on two real-world datasets:
- Traffic Dataset: Hourly average speed and occupancy data from 2,000 sensor stations in California (District 7) for June 2018. The dataset has a shape of 2000x720x2.
- Temperature Dataset: Monthly average temperature data from a 30x30 area of North America (2001-2015). The dataset has a shape of 900x180x1.
The relationships between time series in these datasets are defined by adjacency (e.g., neighboring sensors or locations).
Key Insights and Ideas
- Uncertainty Quantification: The paper provides a theoretical framework to quantify forecasting uncertainty, linking it to conditional entropy and Mean Squared Error (MSE). This formalization is key to understanding why retrieval helps.
- References Reduce Uncertainty: Theoretically, models that incorporate retrieved references are shown to be easier to train because these references actively reduce prediction uncertainty.
- Relational vs. Content-Based Retrieval: For sparse historical data, relational retrieval (based on inherent connections between series) is more robust than content-based retrieval (based on observed data).
- Periodic Patterns Matter: For forecasting tasks, leveraging historical snippets that align with the periodicity of the target series (e.g., using a reference from a week prior for weekly patterns) significantly improves performance.
- Component Importance: Ablation studies highlight that both relational retrieval and content synthesis are crucial for RETIME's effectiveness, and that modeling temporal dependencies is more critical than spatial attention alone for this task.
Key Results
- Superior Performance: RETIME consistently outperforms state-of-the-art methods (including N-BEATS, Informer, BRITS, E2GAN for single time series, and NET³, StemGNN, MTGNN, DCRNN for spatial-temporal) across various settings (forecasting and imputation) and missing rates, particularly at higher missing rates (up to 0.8).
- Temperature Data Advantage: On the temperature dataset, even a simple retrieval baseline (REF) performed exceptionally well, underscoring the power of using external references when target data is limited.
- K Value Impact: RETIME achieves its best performance with K (number of references) typically between 5 and 10.
- Scalability: While performance improves with K, training time and memory usage grow linearly with K, indicating a manageable trade-off.
Limitations and Future Work
- Computational Cost with K: The paper notes that training time and memory usage increase linearly with the number of retrieved references (K). While manageable, this suggests that for very large databases or extremely high K, efficiency might become a concern.
- Future Work: The paper implicitly suggests that exploring more sophisticated relational retrieval mechanisms or optimizing the content synthesis architecture could lead to further improvements. The adaptability of RETIME to other time series tasks beyond forecasting and imputation is also a promising avenue.
Summary updated