arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2403.07300cs.LGcs.CL
收藏

CALF:通过跨模态微调对齐大语言模型以用于时间序列预测

CALF: Aligning LLMs for Time Series Forecasting via Cross-modal Fine-Tuning

Tsinghua Shenzhen International Graduate School(清华大学深圳国际研究生院);Shenzhen University(深圳大学);Pengcheng Laboratory(鹏城实验室)

Peiyuan Liu, Hang Guo, Tao Dai, Naiqi Li, Jigang Bao, Xudong Ren, Yong Jiang, Shu-Tao Xia

AI总结:

针对LLM时间序列预测中文本与时序token分布不一致问题,提出CALF框架,通过跨模态匹配、特征正则化和输出一致性损失对齐两分支模态,以低计算复杂度实现领先的长期与短期预测及少样本、零样本能力。

摘要:

深度学习(如Transformer)已在多元时间序列预测(MTSF)中得到广泛且成功的应用。与现有专注于从单一时间序列输入模态训练模型的方法不同,基于大语言模型(LLMs)且采用跨模态文本与时间序列输入的MTSF方法近期展现出显著优势,尤其是在时序数据有限的情况下。然而,当前基于LLM的MTSF方法通常侧重于适配和微调LLMs,却忽视了文本输入token与时间输入token之间的分布差异,从而导致次优性能。为解决这一问题,我们提出了一种新颖的跨模态LLM微调(CALF)框架用于MTSF,通过减小文本数据与时序数据之间的分布差异,该框架主要由带有时序输入的时序目标分支和带有对齐文本输入的文本源分支组成。为减小分布差异,我们设计了跨模态匹配模块,首先对齐跨模态输入分布。此外,为最小化特征空间和输出空间中的模态分布差距,我们开发了特征正则化损失来对齐两个分支之间的中间特征,以实现更好的权重更新,同时引入输出一致性损失,使两个分支的输出表示能够有效对应。得益于模态对齐,CALF在长期和短期预测任务上均以较低的计算复杂度建立了最先进的性能,并展现出与LLMs类似的良好少样本和零样本能力。代码可在https://github.com/Hank0626/LLaTA获取。

英文摘要:

Deep learning (e.g., Transformer) has been widely and successfully used in multivariate time series forecasting (MTSF). Unlike existing methods that focus on training models from a single modal of time series input, large language models (LLMs) based MTSF methods with cross-modal text and time series input have recently shown great superiority, especially with limited temporal data. However, current LLM-based MTSF methods usually focus on adapting and fine-tuning LLMs, while neglecting the distribution discrepancy between textual and temporal input tokens, thus leading to sub-optimal performance. To address this issue, we propose a novel Cross-Modal LLM Fine-Tuning (CALF) framework for MTSF by reducing the distribution discrepancy between textual and temporal data, which mainly consists of the temporal target branch with temporal input and the textual source branch with aligned textual input. To reduce the distribution discrepancy, we develop the cross-modal match module to first align cross-modal input distributions. Additionally, to minimize the modality distribution gap in both feature and output spaces, feature regularization loss is developed to align the intermediate features between the two branches for better weight updates, while output consistency loss is introduced to allow the output representations of both branches to correspond effectively. Thanks to the modality alignment, CALF establishes state-of-the-art performance for both long-term and short-term forecasting tasks with low computational complexity, and exhibiting favorable few-shot and zero-shot abilities similar to that in LLMs. Code is available at https://github.com/Hank0626/LLaTA.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑