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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Time Series Forecasting with Dependency-Aware Contrastive Learning and Retrieval-Enhanced Dynamic Prompt via Large Language Models

Yebo Ge, Feng He, Haibing Wang
Symmetry
Time Series Analysis and Forecasting
article

Time Series Forecasting with Dependency-Aware Contrastive Learning and Retrieval-Enhanced Dynamic Prompt via Large Language Models

Yebo Ge, Feng He, Haibing Wang
article en

Abstract

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.

SymmetryVol. 18(12)
Nanjing University of Information Science and Technology (CN), Changzhou University (CN), Changzhou University of Information Technology (CN)
Time Series Analysis and Forecasting
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon