TEST:文本原型对齐嵌入以激活大语言模型的时间序列能力
TEST: Text Prototype Aligned Embedding to Activate LLM's Ability for Time Series
AI总结:
本文提出TEST方法,通过文本原型对齐的TS嵌入和软提示激活冻结大语言模型的时间序列处理能力,在分类、预测和表示任务上达到或超越SOTA性能,并具备少样本与泛化优势。
摘要:
本文总结了在当前大语言模型(LLM)背景下完成时间序列(TS)任务的两种途径:LLM-for-TS(以模型为中心)设计并训练一个基础大模型,或针对TS数据微调预训练LLM;TS-for-LLM(以数据为中心)将TS转换为模型友好的表示,使预训练LLM能够处理TS数据。考虑到数据缺乏、资源有限、语义上下文需求等因素,本文聚焦于TS-for-LLM,旨在通过设计一种适合LLM的TS嵌入方法来激活LLM对TS数据的处理能力。所提方法命名为TEST。该方法首先对TS进行分词,构建一个编码器,通过实例级、特征级和文本原型对齐对比来嵌入TS,其中TS嵌入空间与LLM嵌入层空间对齐;然后创建软提示使LLM对该嵌入更加开放;最后使用冻结的LLM实现TS任务。我们还通过理论和实验证明了TS-for-LLM的可行性。实验在TS分类、预测和表示任务上进行,使用了八个具有不同结构和规模的冻结LLM。结果表明,采用TEST策略的预训练LLM能够取得与当今最先进的TS模型相当或更好的性能,并在少样本和泛化方面提供优势。通过将LLM视为模式机器,TEST能够赋予LLM处理TS数据的能力,同时不损害其语言能力。我们希望本研究能为未来支持TS+LLM进展的工作奠定基础。
英文摘要:
This work summarizes two ways to accomplish Time-Series (TS) tasks in today's Large Language Model (LLM) context: LLM-for-TS (model-centric) designs and trains a fundamental large model, or fine-tunes a pre-trained LLM for TS data; TS-for-LLM (data-centric) converts TS into a model-friendly representation to enable the pre-trained LLM to handle TS data. Given the lack of data, limited resources, semantic context requirements, and so on, this work focuses on TS-for-LLM, where we aim to activate LLM's ability for TS data by designing a TS embedding method suitable for LLM. The proposed method is named TEST. It first tokenizes TS, builds an encoder to embed TS via instance-wise, feature-wise, and text-prototype-aligned contrast, where the TS embedding space is aligned to LLM embedding layer space, then creates soft prompts to make LLM more open to that embeddings, and finally implements TS tasks using the frozen LLM. We also demonstrate the feasibility of TS-for-LLM through theory and experiments. Experiments are carried out on TS classification, forecasting, and representation tasks using eight frozen LLMs with various structures and sizes. The results show that the pre-trained LLM with TEST strategy can achieve better or comparable performance than today's SOTA TS models and offer benefits for few-shot and generalization. By treating LLM as the pattern machine, TEST can endow LLM's ability to process TS data without compromising language ability. We hope that this study will serve as a foundation for future work to support TS+LLM progress.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。