用大模型解决小样本多变量时间序列分类难题
Large Language Models are Few-shot Multivariate Time Series Classifiers
- 将时间序列转为文本嵌入,通过分块卷积对齐大模型输入
- 微调大模型在手写和乙醇浓度数据上准确率提升超125%和50%
- 适合工业场景中小样本多变量时间序列分类任务
大语言模型(LLMs)在时间序列分析中应用广泛,但在小样本多变量时间序列分类(工业场景中因数据有限而关键)方面仍研究不足。本文提出LLMFew框架,利用预训练大模型的知识缓解数据稀缺问题。该方法引入分块时间卷积编码器(PTCEnc)将时间序列对齐至大模型的文本嵌入空间,并采用低秩适配(LoRA)微调预训练解码器,增强其时序特征学习能力。实验表明,该模型在手写数据集和乙醇浓度数据集上分别实现125.2%和50.2%的准确率提升,显著优于现有基准。结果表明,基于大模型的方法在多种小样本多变量时间序列分类任务中表现稳健,优于传统模型,具备在数据受限的工业环境中部署的潜力。
原文摘要 · Abstract (English)
Large Language Models (LLMs) have been extensively applied in time series analysis. Yet, their utility in the few-shot classification (i.e., a crucial training scenario due to the limited training data available in industrial applications) concerning multivariate time series data remains underexplored. We aim to leverage the extensive pre-trained knowledge in LLMs to overcome the data scarcity problem within multivariate time series. Specifically, we propose LLMFew, an LLM-enhanced framework to investigate the feasibility and capacity of LLMs for few-shot multivariate time series classification. This model introduces a Patch-wise Temporal Convolution Encoder (PTCEnc) to align time series data with the textual embedding input of LLMs. We further fine-tune the pre-trained LLM decoder with Low-rank Adaptations (LoRA) to enhance its feature representation learning ability in time series data. Experimental results show that our model outperformed state-of-the-art baselines by a large margin, achieving 125.2% and 50.2% improvement in classification accuracy on Handwriting and EthanolConcentration datasets, respectively. Moreover, our experimental results demonstrate that LLM-based methods perform well across a variety of datasets in few-shot MTSC, delivering reliable results compared to traditional models. This success paves the way for their deployment in industrial environments where data are limited.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。