Abstract
Forecasting Multivariate Time Series (MTS) involves significant challenges in various application domains. One immediate challenge is modeling temporal patterns with the finite length of the input. These temporal patterns usually involve periodic and sudden events that recur across different channels. To better capture temporal patterns, we get inspiration from humans' memory mechanisms and propose a channel-shared, brain-inspired memory module for MTS. Specifically, brain-inspired memory comprises semantic and episodic memory, where the former is used to capture general patterns, such as periodic events, and the latter is employed to capture special patterns, such as sudden events, respectively. Meanwhile, we design corresponding recall and update mechanisms to better utilize these patterns. Furthermore, acknowledging the capacity of diffusion models to leverage memory as a prior, we present a brain-inspired memory-augmented diffusion model. This innovative model retrieves relevant memories for different channels, utilizing them as distinct priors for MTS predictions. This incorporation significantly enhances the accuracy and robustness of predictions. Experimental results on eight datasets consistently validate the superiority of our approach in capturing and leveraging diverse recurrent temporal patterns across different channels.
1. Introduction
Predicting the future of multivariate time series (MTS)—such as power grid loads, stock prices, or meteorological indicators—is a fundamental challenge in data science. Most contemporary deep learning models rely on a fixed "lookback window," using a slice of recent history to project future steps. However, this approach often fails to capture critical temporal patterns that recur over long horizons or across different variables (channels). For instance, a specific "sudden event" might have occurred months ago, or a periodic cycle might exceed the length of the lookback window, leaving standard models blind to these dependencies.
To address these limitations, we introduce Bim-Diff (Brain-inspired memory-augmented Diffusion model). By drawing inspiration from human cognitive processes, Bim-Diff utilizes a dual-component memory system to store and recall both general and rare temporal patterns, serving as informative priors for a generative diffusion process.
2. Methodology: The Bim-Diff Framework
Bim-Diff integrates a brain-inspired memory module into a diffusion-based forecasting framework. This architecture allows the model to overcome the constraints of finite input lengths by retrieving historical context shared across all data channels.
2.1 Dual-Component Memory
The core of the framework is its two distinct memory types:
- Semantic Memory: This module consists of learnable blocks designed to capture "general" patterns—the periodic, recurring trends common across many channels. It uses an attention mechanism to aggregate these patterns into a global understanding of the series.
- Episodic Memory: Inspired by human memory for specific, vivid events, this module stores "special" patterns, such as sudden spikes or rare anomalies. It employs a frequency-based update strategy, ensuring that the most representative "exceptions" are retained while less useful memories are cycled out.
2.2 Diffusion Integration
Unlike deterministic models, Bim-Diff treats retrieved memories as a variational prior within a diffusion process. During the denoising phase, the model "recalls" relevant semantic and episodic information to guide the generation of the forecast. To maintain computational efficiency, the framework utilizes a lean MLP-based denoiser and DDIM acceleration, significantly reducing inference time compared to traditional diffusion architectures.
3. Experimental Evaluation
We evaluated Bim-Diff on eight diverse, real-world MTS datasets, including energy production (NorPool, Caiso), power grid temperature (ETTh1, ETTm1), and meteorological data (Weather).
3.1 Performance and Efficiency
Bim-Diff achieved the #1 average rank across all eight datasets when compared to 23 state-of-the-art baselines, including Transformers (e.g., PatchTST, iTransformer) and other diffusion frameworks (e.g., TimeDiff). Beyond accuracy, Bim-Diff demonstrated superior inference speed, making it viable for real-world deployment on standard hardware.
3.2 Key Insights
- Complementary Memory: Ablation studies confirm that semantic and episodic memories are complementary; the former provides universality, while the latter handles important exceptions.
- Channel-Shared Intelligence: By sharing the memory module across all channels, the model can learn a pattern in one variable and apply that knowledge to improve forecasts in related variables.
4. Conclusion
Bim-Diff represents a significant step forward in MTS forecasting by combining the uncertainty-handling power of diffusion models with a brain-inspired memory mechanism. While the selection of memory size remains a sensitive hyperparameter, the model's ability to leverage long-term temporal dynamics as priors leads to state-of-the-art accuracy and improved interpretability. Future work will focus on automating memory management to further enhance scalability.
Summary updated