Skip to main content
QUICK REVIEW

[论文解读] LLM4TS: Aligning Pre-Trained LLMs as Data-Efficient Time-Series Forecasters

Ching Chang, Jiang, Xi|arXiv (Cornell University)|Aug 16, 2023
Time Series Analysis and ForecastingComputer Science被引用 16
一句话总结

LLM4TS 提出了一种两阶段微调框架,通过时间序列对齐和预测微调,将预训练大语言模型(LLMs)与多变量时间序列数据对齐,同时引入一种两级聚合方法以整合多尺度时间信息。该方法在7个真实世界数据集上的全样本和少样本预测任务中均实现了最先进性能,即使在仅使用5%训练数据的情况下也优于从零开始训练的模型,展现出强大的数据效率。

ABSTRACT

Low Latency, Low Loss, and Scalable Throughput (L4S), as an emerging router-queue management technique, has seen steady deployment in the industry. An L4S-enabled router assigns each packet to the queue based on the packet header marking. Currently, L4S employs per-flow queue selection, i.e., all packets of a flow are marked the same way and thus use the same queues, even though each packet is marked separately. However, this may hurt tail latency and latency-sensitive applications because transient congestion and queue buildups may only affect a fraction of packets in a flow. We present SwiftQueue, a new L4S queue-selection strategy in which a sender uses a novel per-packet latency predictor to pinpoint which packets likely have latency spikes or drops. The insight is that many packet-level latency variations result from complex interactions among recent packets at shared router queues. Yet, these intricate packet-level latency patterns are hard to learn efficiently by traditional models. Instead, SwiftQueue uses a custom Transformer, which is well-studied for its expressiveness on sequential patterns, to predict the next packet’s latency based on the latencies of recently received ACKs. Based on the predicted latency of each outgoing packet, SwiftQueue’s sender dynamically marks the L4S packet header to assign packets to potentially different queues, even within the same flow. Using real network traces, we show that SwiftQueue is 45-65% more accurate in predicting latency and its variations than state-of-art methods. Based on its latency prediction, SwiftQueue reduces the tail latency for L4S-enabled flows by 36-45%, compared with the existing L4S queue-selection method.

研究动机与目标

  • 解决工业制造和能源管理等实际应用中时序数据标注有限的挑战。
  • 克服预训练大语言模型因语言预训练重点而对时序数据适应性差、无法处理多尺度时间模式的问题。
  • 通过利用预训练大语言模型的表征学习和迁移能力,实现有效的少样本和全样本时序预测。
  • 开发一种方法,在通过参数高效微调适应时序特征的同时,保留预训练大语言模型的通用表征能力。
  • 证明 LLM4TS 在仅使用极少数据和计算成本的情况下,性能优于微调模型和从零开始训练的模型。

提出的方法

  • 采用两阶段微调策略:首先通过自回归目标进行时间序列对齐,使大语言模型适应时序表征;其次进行预测微调,以完成下游预测任务。
  • 冻结预训练大语言模型主干网络的大部分参数,以保留其与数据无关的表征学习能力,仅使用4%的参数作为可训练参数。
  • 提出一种新颖的两级聚合方法,在将时间序列片段输入大语言模型前,将多尺度时间特征(如小时、天、节假日)嵌入其中。
  • 利用参数高效微调(PEFT)技术——层归一化微调和LoRA,以最小化可训练参数数量和训练成本。
  • 通过分块时间序列序列并同时在片段和序列层级注入时间嵌入,构建输入结构,以增强对时间特异性上下文的理解。
  • 采用两阶段训练流程:首先通过掩码自编码对大语言模型进行时间序列数据对齐;其次使用标准回归目标进行预测微调。

实验结果

研究问题

  • RQ1尽管存在语言预训练偏差,预训练大语言模型能否被有效适配于多变量时间序列预测?
  • RQ2在基于大语言模型的模型中,整合多尺度时间信息(如时间单位、节假日)在多大程度上能提升预测性能?
  • RQ3两阶段微调策略在全样本和少样本学习场景中,能在多大程度上提升性能?
  • RQ4与从零开始训练或解冻所有层相比,使用预训练大语言模型权重在预测准确率和数据效率方面表现如何?
  • RQ5LLM4TS 在训练和推理时间方面,与最先进从零开始训练的模型相比,计算效率如何?

主要发现

  • LLM4TS 在7个真实世界时间序列预测基准上达到最先进性能,在全样本场景下优于现有最先进方法和从零开始训练的模型。
  • 在仅使用5%训练数据的少样本学习中,LLM4TS 超过了使用10%数据的最佳基线模型,展现出卓越的数据效率。
  • 消融实验证实,冻结大部分预训练大语言模型参数相比‘不冻结’设置,平均MSE降低17.78%,凸显了保留预训练表征学习能力的重要性。
  • 与‘无预训练’基线(即从零开始训练)相比,LLM4TS 在MSE上平均降低18.28%,证明了预训练权重在预测性能中的关键作用。
  • 由于高效的PEFT和高比例的冻结参数,LLM4TS 的训练和推理时间均快于PatchTST和FEDformer,且仅有4%的参数可训练。
  • 两阶段微调策略在全样本场景下使MSE降低0.7%,在少样本学习(ETTh1)中降低2.51%,且在更长预测时序和分布外泛化中表现更优。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。