If you find our work useful in your research. Please consider giving a star ⭐ and citation 📚:
@inproceedings{liu2024timecma,
title={{TimeCMA}: Towards LLM-Empowered Multivariate Time Series Forecasting via Cross-Modality Alignment},
author={Liu, Chenxi and Xu, Qianxiong and Miao, Hao and Yang, Sun and Zhang, Lingzheng and Long, Cheng and Li, Ziyue and Zhao, Rui},
booktitle={AAAI},
year={2025}
}
Multivariate time series forecasting (MTSF) aims to learn temporal dynamics among variables to forecast future time series. Existing statistical and deep learning-based methods suffer from limited learnable parameters and small-scale training data. Recently, large language models (LLMs) combining time series with textual prompts have achieved promising performance in MTSF. However, we discovered that current LLM-based solutions fall short in learning disentangled embeddings. We introduce TimeCMA, an intuitive yet effective framework for MTSF via cross-modality alignment. Specifically, we present a dual-modality encoding with two branches: the time series encoding branch extracts disentangled yet weak time series embeddings, and the LLM-empowered encoding branch wraps the same time series with text as prompts to obtain entangled yet robust prompt embeddings. As a result, such a cross-modality alignment retrieves both disentangled and robust time series embeddings, ``the best of two worlds'', from the prompt embeddings based on time series and prompt modality similarities. As another key design, to reduce the computational costs from time series with their length textual prompts, we design an effective prompt to encourage the most essential temporal information to be encapsulated in the last token: only the last token is passed to downstream prediction. We further store the last token embeddings to accelerate inference speed. Extensive experiments on eight real datasets demonstrate that TimeCMA outperforms state-of-the-arts.
![image](https://private-user-images.githubusercontent.com/46647878/401893910-006904b8-931b-496a-b523-59180a2714bc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNDMwNjQsIm5iZiI6MTczOTA0Mjc2NCwicGF0aCI6Ii80NjY0Nzg3OC80MDE4OTM5MTAtMDA2OTA0YjgtOTMxYi00OTZhLWI1MjMtNTkxODBhMjcxNGJjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDE5MjYwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYxMDM1NjQxM2Y0ZjlmNzRmMDQ4ZTFhNGYwMmViYzhlMmJhNzM1ZGE0MzNkZjI0ODAxZGIwZmQ5ZjU4N2MxODImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.cbFxo3ZwKuK3QS_IJeIrFzNdnP2YbvztwO8_e0Sl320)
- Python 3.11
- PyTorch 2.1.2
- cuda 12.1
- torchvision 0.8.0
> conda env create -f env_{ubuntu,windows}.yaml
Datasets can be obtained from TimesNet and TFB.
bash Store_{data_name}.sh
bash {data_name}.sh
Spatial-Temporal Large Language Model for Traffic Prediction, in MDM 2024. [GitHub Repo]
Authors: Chenxi Liu, Sun Yang, Qianxiong Xu, Zhishuai Li, Cheng Long, Ziyue Li, Rui Zhao
@inproceedings{liu2024spatial,
title={Spatial-temporal large language model for traffic prediction},
author={Liu, Chenxi and Yang, Sun and Xu, Qianxiong and Li, Zhishuai and Long, Cheng and Li, Ziyue and Zhao, Rui},
booktitle={MDM},
year={2024}
}
For inquiries or further assistance, contact us at chenxi.liu@ntu.edu.sg or open an issue on this repository.