Time Series Forecasting with Dependency-Aware Contrastive Learning and Retrieval-Enhanced Dynamic Prompt via Large Language Models
Multivariate time series forecasting is a fundamental task in high-stakes decision-making scenarios such as energy scheduling, financial risk control, and intelligent healthcare. While large language models (LLMs) have demonstrated remarkable sequence modeling capabilities, existing approaches predominantly flatten multivariate series into independent token sequences, neglecting the temporal asymmetry induced by directional lead–lag dependencies among variables and lacking adaptive prompt mechanisms. To address these limitations, we propose TEST-CDP (Text prototype aligned embedding with Cross-variable Dependency and Dynamic Prompt), a novel LLM-based forecasting framework. Specifically, we design a dependency-aware contrastive learning (DA-CL) module that constructs variable dependency graphs based on Pearson correlation and lagged correlation analysis, enabling explicit modeling of lead–lag relationships through dependency-guided positive and negative sample pairs. Furthermore, we propose a retrieval-enhanced dynamic prompt generator (DPG) with a dual-bank architecture, which adaptively retrieves optimal prompts from semantic and historical experience banks based on three-dimensional contextual features. Across eight benchmark datasets, TEST-CDP achieves the lowest horizon-averaged mean squared error (MSE) on six datasets among the methods evaluated. Compared with its direct baseline, TEST, it reduces horizon-averaged MSE by 6.1% on ETTh2 and 8.5% on Weather. Dependency visualizations further illustrate synchronous and lagged associations among variables.
Authors
- Yebo Ge
- Feng He
- Haibing Wang
Institutions
- Nanjing University of Information Science and Technology (CN)
- Changzhou University (CN)
- Changzhou University of Information Technology (CN)
Publication Details
- Journal
- Symmetry
- Published
- 2026-12-02
- DOI
- https://doi.org/10.3390/sym18122024
- Primary Topic
- Time Series Analysis and Forecasting
- Type
- article
- Field-Weighted Citation Impact
- 0.00