TL;DR
This paper introduces MemCast, a novel framework that treats time series forecasting (TSF) as an "experience-conditioned reasoning" task. By building a hierarchical memory from past forecasting experiences, MemCast significantly improves accuracy and robustness, especially in complex, non-stationary scenarios, outperforming existing methods.
What Problem Does This Paper Address?
Traditional time series forecasting methods, including recent LLM-based approaches, often struggle with two key limitations: they treat each forecasting instance in isolation, failing to accumulate and reuse past "experience," and they lack a mechanism for continual evolution and adaptation. This means models can't learn from their mistakes or adapt to changing data patterns over time, leading to suboptimal performance, especially in dynamic real-world applications. The paper aims to bridge this gap by creating a system that explicitly learns from and leverages past forecasting knowledge.
Methods
MemCast introduces a "learning-to-memory" framework that reformulates TSF. The core idea is to build a hierarchical memory from training data, which is then used to guide forecasting during inference. This memory consists of three components:
- Historical Patterns: Summaries of past prediction outcomes and historical time series data, acting as concrete examples for similar future scenarios.
- Reasoning Wisdom: Distilled insights from successful and failed inference trajectories, providing guidance on how to reason effectively.
- General Laws: Abstracted temporal features and domain-specific rules that act as criteria for self-reflection and validation.
During inference, MemCast uses these memory components to:
- History-Enhanced Reasoning: Leverage historical patterns to inform the LLM's understanding of the current context.
- Wisdom-Driven Trajectory Exploration: Use reasoning wisdom to select the most promising inference paths from multiple generated candidates.
- Law-Based Reflection: Employ general laws to validate and correct the final prediction, ensuring physical plausibility.
A key innovation is the dynamic confidence adaptation strategy, which allows the memory's confidence scores to evolve based on performance feedback without leaking test set distribution information, enabling continual learning.
Datasets
The paper evaluates MemCast on a diverse set of real-world datasets, spanning various domains and temporal frequencies:
- Short-term Forecasting Benchmarks (Hourly Frequency):
- Nord Pool (NP) - Nordic electricity prices
- Pennsylvania-New Jersey-Maryland (PJM) - US PJM interconnection electricity prices
- Belgium (BE) - Belgian power exchange electricity prices
- France (FR) - French electricity market prices
- Germany (DE) - German market electricity prices
- Long-term Forecasting Benchmarks:
- Electricity Transformer Temperature (ETTh1 & ETTm1) - Industrial power transformer oil temperature
- Wind Power (WP) - Renewable energy generation
- Sunny Power (SP) - Renewable energy generation
- MOPEX - Hydrological dataset for rainfall-runoff modeling
Key Insights and Ideas
- TSF as Experience-Conditioned Reasoning: The core insight is that treating TSF not just as pattern recognition but as a reasoning process informed by accumulated experience significantly boosts performance.
- Hierarchical Memory is Key: The structured memory (patterns, wisdom, laws) provides a multi-faceted guide for LLMs, moving beyond simple retrieval to more sophisticated reasoning.
- Continual Evolution Without Leakage: The dynamic confidence adaptation is crucial for enabling models to improve over time without compromising the integrity of test set evaluation.
- LLMs Benefit from Structured Guidance: While LLMs are powerful, they perform best when their reasoning is grounded by explicit, structured knowledge derived from past forecasting tasks.
Key Results
MemCast consistently outperformed a wide range of baselines, including statistical methods, deep learning models, and other LLM-based approaches, across multiple datasets and forecasting horizons.
- Overall Performance: MemCast achieved the best results on most metrics (MSE and MAE), demonstrating superior accuracy.
- Robustness: It showed particularly strong performance on highly volatile benchmarks like NP and PJM.
- LLM-based Comparison: MemCast achieved lower prediction errors than methods like Time-LLM on complex and noisy datasets.
- Ablation Studies: Removing any component of the hierarchical memory (patterns, wisdom, or laws) led to significant performance degradation, confirming the necessity of each part. Dynamic confidence adaptation also consistently improved performance.
Limitations and Future Work
The authors acknowledge that even MemCast is not immune to errors, particularly in extreme out-of-distribution (OOD) settings. They identify four failure modes:
- Copy-Paste Repeat: Over-reliance on memory, ignoring immediate input deviations.
- Wrong Trend: Forecasts diverging inversely from ground truth.
- Peak-Overestimation: Correctly identifying event timing but exaggerating magnitude.
- Constant Collapse: Generation degrading into a flat line due to high uncertainty or failed temporal narrative construction.
Future work should focus on enhancing the conflict resolution between memory and current context, and improving physical plausibility constraints to mitigate these OOD-related hallucinations. The framework's adaptability to different LLM backbones suggests potential for benefiting from future LLM advancements.
Summary updated