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

一网打尽:利用预训练语言模型实现通用时间序列分析

One Fits All:Power General Time Series Analysis by Pretrained LM

Tian Zhou, PeiSong Niu, Xue Wang, Liang Sun, Rong Jin

AI总结:

本文提出利用冻结的预训练语言或图像模型(FPT)进行通用时间序列分析,通过微调在分类、异常检测、预测和少样本学习等任务上达到最优性能,并发现自注意力类似PCA,有助于弥合领域差距。

摘要:

尽管我们在自然语言处理(NLP)和计算机视觉(CV)领域见证了预训练模型的巨大成功,但在通用时间序列分析方面取得的进展仍然有限。与NLP和CV中可以使用统一模型执行不同任务不同,在时间序列分析任务中,如分类、异常检测、预测和少样本学习,专门设计的方法仍然占据主导地位。阻碍时间序列分析预训练模型发展的主要挑战是缺乏大量训练数据。在这项工作中,我们通过利用从数十亿个令牌预训练的语言或CV模型来解决这一挑战,用于时间序列分析。具体来说,我们避免修改预训练语言或图像模型中残差块的自注意力和前馈层。这个模型被称为冻结预训练变换器(FPT),通过在涉及时间序列的所有主要类型任务上进行微调来评估。我们的结果表明,在自然语言或图像上预训练的模型可以在所有主要时间序列分析任务中达到相当或最先进的性能,如图1所示。我们还从理论和实证两方面发现,自注意力模块的行为类似于主成分分析(PCA),这一观察有助于解释变换器如何弥合领域差距,并且是理解预训练变换器通用性的关键一步。代码公开于https://github.com/DAMO-DI-ML/One_Fits_All。

英文摘要:

Although we have witnessed great success of pre-trained models in natural language processing (NLP) and computer vision (CV), limited progress has been made for general time series analysis. Unlike NLP and CV where a unified model can be used to perform different tasks, specially designed approach still dominates in each time series analysis task such as classification, anomaly detection, forecasting, and few-shot learning. The main challenge that blocks the development of pre-trained model for time series analysis is the lack of a large amount of data for training. In this work, we address this challenge by leveraging language or CV models, pre-trained from billions of tokens, for time series analysis. Specifically, we refrain from altering the self-attention and feedforward layers of the residual blocks in the pre-trained language or image model. This model, known as the Frozen Pretrained Transformer (FPT), is evaluated through fine-tuning on all major types of tasks involving time series. Our results demonstrate that pre-trained models on natural language or images can lead to a comparable or state-of-the-art performance in all main time series analysis tasks, as illustrated in Figure 1. We also found both theoretically and empirically that the self-attention module behaviors similarly to principle component analysis (PCA), an observation that helps explains how transformer bridges the domain gap and a crucial step towards understanding the universality of a pre-trained transformer.The code is publicly available at https://github.com/DAMO-DI-ML/One_Fits_All.

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

↑