arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.03747cs.LGcs.CLstat.AP
收藏

上下文对齐:在时间序列中激活和增强大语言模型的能力

Context-Alignment: Activating and Enhancing LLM Capabilities in Time Series

The Hong Kong Polytechnic University(香港理工大学);Ningbo Institute of Digital Twin(宁波数字孪生研究所);Eastern Institute of Technology(东部技术研究所);Shanghai Jiao Tong University(上海交通大学)

Yuxiao Hu, Qian Li, Dongxiao Zhang, Jinyue Yan, Yuntian Chen

AI总结:

本文提出上下文对齐方法,通过多模态输入和图神经网络增强LLMs在时间序列任务中的能力,提升逻辑和结构理解,提高预测性能。

摘要:

最近,利用预训练的大语言模型(LLMs)进行时间序列(TS)任务引起了越来越多的关注,这涉及激活和增强LLMs的能力。许多方法旨在基于标记级对齐来激活LLMs的能力,但忽略了LLMs在自然语言处理中的固有优势——它们对语言逻辑和结构的深刻理解,而不是表面的嵌入处理。我们提出了上下文对齐(CA),一种新的范式,通过将时间序列与LLMs熟悉的语言环境中的语言组件对齐,使LLMs能够对时间序列数据进行上下文化和理解,从而激活其能力。具体而言,这种上下文级对齐包括结构对齐和逻辑对齐,这通过双尺度上下文对齐图神经网络(DSCA-GNNs)应用于时间序列-语言多模态输入来实现。结构对齐利用双尺度节点来描述时间序列-语言中的层次结构,使LLMs能够将长时间序列数据视为整体语言组件,同时保留内在的标记特征。逻辑对齐使用有向边来引导逻辑关系,确保语境语义的一致性。在DSCA-GNNs框架下,我们提出了一种CA的实例方法,称为Few-Shot提示上下文对齐(FSCA),以增强预训练LLMs在处理时间序列任务中的能力。FSCA可以灵活且重复地集成到预训练LLMs的各个层次中,以提高对逻辑和结构的意识,从而提升性能。广泛的实验显示了FSCA的有效性以及上下文对齐在不同任务中的重要性,特别是在少样本和零样本预测中,确认了上下文对齐在提供强大上下文先验知识方面的作用。代码已开源在https://github.com/tokaka22/ICLR25-FSCA。

英文摘要:

Recently, leveraging pre-trained Large Language Models (LLMs) for time series (TS) tasks has gained increasing attention, which involves activating and enhancing LLMs' capabilities. Many methods aim to activate LLMs' capabilities based on token-level alignment, but overlook LLMs' inherent strength in natural language processing -- \textit{their deep understanding of linguistic logic and structure rather than superficial embedding processing.} We propose Context-Alignment (CA), a new paradigm that aligns TS with a linguistic component in the language environments familiar to LLMs to enable LLMs to contextualize and comprehend TS data, thereby activating their capabilities. Specifically, such context-level alignment comprises structural alignment and logical alignment, which is achieved by Dual-Scale Context-Alignment GNNs (DSCA-GNNs) applied to TS-language multimodal inputs. Structural alignment utilizes dual-scale nodes to describe hierarchical structure in TS-language, enabling LLMs to treat long TS data as a whole linguistic component while preserving intrinsic token features. Logical alignment uses directed edges to guide logical relationships, ensuring coherence in the contextual semantics. Following the DSCA-GNNs framework, we propose an instantiation method of CA, termed Few-Shot prompting Context-Alignment (FSCA), to enhance the capabilities of pre-trained LLMs in handling TS tasks. FSCA can be flexibly and repeatedly integrated into various layers of pre-trained LLMs to improve awareness of logic and structure, thereby enhancing performance. Extensive experiments show the effectiveness of FSCA and the importance of Context-Alignment across tasks, particularly in few-shot and zero-shot forecasting, confirming that Context-Alignment provides powerful prior knowledge on context. The code is open-sourced at https://github.com/tokaka22/ICLR25-FSCA.

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

↑