Skip to main content
QUICK REVIEW

[论文解读] UniTS: A Unified Multi-Task Time Series Model

Shanghua Gao, Teddy Koker|arXiv (Cornell University)|Feb 29, 2024
Time Series Analysis and ForecastingComputer Science被引用 3
一句话总结

UniTS 是一种统一的时间序列模型,通过单一共享架构支持预测、分类、填补和异常检测,无需任务特定模块。它采用新颖的主干网络,结合序列与变量注意力、动态线性算子以及基于提示的任务定义,实现了在 38 个跨领域数据集上的最先进零样本和少样本性能,优于特定任务模型和基于大语言模型的基线方法。

ABSTRACT

Although pre-trained transformers and reprogrammed text-based LLMs have shown strong performance on time series tasks, the best-performing architectures vary widely across tasks, with most models narrowly focused on specific areas, such as time series forecasting. Unifying predictive and generative time series tasks within a single model remains challenging. We introduce UniTS, a unified multi-task time series model that utilizes task tokenization to integrate predictive and generative tasks into a single framework. UniTS employs a modified transformer block to capture universal time series representations, enabling transferability from a heterogeneous, multi-domain pre-training dataset-characterized by diverse dynamic patterns, sampling rates, and temporal scales-to a wide range of downstream datasets with varied task specifications and data domains. Tested on 38 datasets across human activity sensors, healthcare, engineering, and finance, UniTS achieves superior performance compared to 12 forecasting models, 20 classification models, 18 anomaly detection models, and 16 imputation models, including adapted text-based LLMs. UniTS also demonstrates strong few-shot and prompt capabilities when applied to new domains and tasks. In single-task settings, UniTS outperforms competitive task-specialized time series models. Code and datasets are available at https://github.com/mims-harvard/UniTS.

研究动机与目标

  • 开发一种统一的时间序列模型,无需任务特定模块或微调即可处理多种任务。
  • 解决时间序列中多领域时间动态和异构数据表示的挑战。
  • 实现在分布外任务和新型序列长度上的零样本和基于提示的推理。
  • 通过共享权重的统一预训练方案统一生成与识别任务。
  • 克服现有模型需要任务特定头部或滑动窗口推理以适应新预测范围的局限性。

提出的方法

  • UniTS 使用基于提示的框架,将多样化任务转换为通用标记表示,实现单一统一的规范表达。
  • 采用新颖的网络主干结构,结合序列与变量的联合自注意力机制,以处理可变长度和多变量时间序列。
  • 动态线性算子用于建模任意长度序列中的密集时间依赖关系,支持单步推理。
  • 模型使用统一的掩码重建预训练目标,同时支持生成与识别任务。
  • 提示标记在预训练期间学习,实现无需更新主干参数的零样本和少样本适应。
  • 架构在所有任务中完全共享权重,消除了对任务特定头部或头部微调的需求。

实验结果

研究问题

  • RQ1单一时间序列模型是否能在无需任务特定模块的情况下,在预测、分类、填补和异常检测等多样化任务上实现强大性能?
  • RQ2统一模型在使用零样本或基于提示的推理时,对分布外数据和新型任务规范的泛化能力如何?
  • RQ3统一的预训练方案是否能有效支持时间序列中的生成与识别任务?
  • RQ4动态线性算子和双重注意力等架构组件对多领域迁移的影响如何?
  • RQ5在统一设置下,提示学习性能与监督微调相比如何?

主要发现

  • UniTS 在 38 个跨领域任务中的 27 项上优于特定任务模型和重用的大语言模型,平均性能最高。
  • 在新长度上的零样本预测中,UniTS 的 MAE 相比滑动窗口基线降低 10.5%,展现出更优的泛化能力。
  • 提示引导的 UniTS 在 20 项预测任务上的 MAE 为 0.370,优于监督版本的 0.381,证明了提示学习的有效性。
  • UniTS 在 18 项分类任务上达到 81.6% 的准确率,仅使用单一统一架构,优于采用任务特定头部的模型。
  • 消融研究显示,若移除基于提示的重建损失,性能显著下降,证实其在实现提示学习中的关键作用。
  • 不同数据集中提示标记的相似性表明存在共享的底层任务需求,支持模型在跨领域间的泛化能力。

阅读本论文

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

在 Nubint 中阅读本论文

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