NuwaTS: a Foundation Model Mending Every Incomplete Time Series

Jinguo Cheng, Chunwei Yang, Wanlin Cai, Yuxuan Liang, Qingsong Wen +1 more
5/24/2024
cs.LGcs.AI

Official code: Chengyui/NuwaTS (71 stars, last commit 2024-11-18).

Abstract

Time series imputation is critical for many real-world applications and has been widely studied. However, existing models often require specialized designs tailored to specific missing patterns, variables, or domains which limits their generalizability. In addition, current evaluation frameworks primarily focus on domain-specific tasks and often rely on time-wise train/validation/test data splits, which fail to rigorously assess a model's ability to generalize across unseen variables or domains. In this paper, we present \textbf{NuwaTS}, a novel framework that repurposes Pre-trained Language Models (PLMs) for general time series imputation. Once trained, NuwaTS can be applied to impute missing data across any domain. We introduce specialized embeddings for each sub-series patch, capturing information about the patch, its missing data patterns, and its statistical characteristics. By combining contrastive learning with the imputation task, we train PLMs to create a versatile, one-for-all imputation model. Additionally, we employ a plug-and-play fine-tuning approach, enabling efficient adaptation to domain-specific tasks with minimal adjustments. To evaluate cross-variable and cross-domain generalization, we propose a new benchmarking protocol that partitions the datasets along the variable dimension. Experimental results on over seventeen million time series samples from diverse domains demonstrate that NuwaTS outperforms state-of-the-art domain-specific models across various datasets under the proposed benchmarking protocol. Furthermore, we show that NuwaTS generalizes to other time series tasks, such as forecasting. Our codes are available at https://github.com/Chengyui/NuwaTS.

View on arXivView PDF

Code Implementations(1)

Chengyui/NuwaTSOfficial100%

NuwaTS: a Foundation Model Mending Every Incomplete Time Series

719PythonMay 18, 20241 years ago

Similar Papers

Cite this paper

@article{cheng2024nuwats,
  title  = {NuwaTS: a Foundation Model Mending Every Incomplete Time Series},
  author = {Jinguo Cheng and Chunwei Yang and Wanlin Cai and Yuxuan Liang and Qingsong Wen and Yuankai Wu},
  year   = {2024},
  eprint = {2405.15317},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.15317v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.15317.svg)](https://codeofpaper.com/paper/2405.15317)

Discussion