[Paper Review] UniTS: A Unified Multi-Task Time Series Model
UniTS is a unified time series model that supports forecasting, classification, imputation, and anomaly detection using a single shared architecture with no task-specific modules. It employs a novel backbone with sequence and variable attention, dynamic linear operators, and prompt-based task specification, achieving state-of-the-art zero-shot and few-shot performance across 38 multi-domain datasets, outperforming task-specific models and LLM-based baselines.
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.
Motivation & Objective
- To develop a unified time series model that handles multiple tasks without task-specific modules or fine-tuning.
- To address the challenge of multi-domain temporal dynamics and heterogeneous data representations in time series.
- To enable zero-shot and prompt-based inference on out-of-domain tasks and novel sequence lengths.
- To unify generative and recognition tasks under a single pretraining scheme with shared weights.
- To overcome limitations of existing models that require task-specific heads or sliding window inference for new forecasting horizons.
Proposed method
- UniTS uses a prompting-based framework to convert diverse tasks into a universal token representation, enabling a single unified specification.
- It employs a novel network backbone with joint sequence and variable self-attention to handle variable-length and multi-variable time series.
- A dynamic linear operator models dense temporal dependencies across sequences of any length, enabling one-step inference.
- The model uses a unified masked reconstruction pretraining objective that supports both generative and recognition tasks.
- Prompt tokens are learned during pretraining and enable zero-shot and few-shot adaptation without updating the main parameters.
- The architecture uses fully shared weights across all tasks, eliminating the need for task-specific heads or head fine-tuning.
Experimental results
Research questions
- RQ1Can a single time series model achieve strong performance across diverse tasks like forecasting, classification, imputation, and anomaly detection without task-specific modules?
- RQ2How well can a unified model generalize to out-of-domain data and novel task specifications using zero-shot or prompt-based inference?
- RQ3Can a unified pretraining scheme effectively support both generative and recognition tasks in time series?
- RQ4What is the impact of architectural components like dynamic linear operators and dual attention on multi-domain transfer?
- RQ5How does prompt learning performance compare to supervised fine-tuning in a unified setting?
Key findings
- UniTS outperforms task-specific models and repurposed LLMs on 27 out of 38 multi-domain tasks, achieving the highest average performance.
- In zero-shot forecasting on new lengths, UniTS outperforms a sliding-window baseline by 10.5% in MAE, demonstrating superior generalization.
- Prompted UniTS achieves MAE of 0.370 on 20 forecasting tasks, improving from 0.381 in the supervised version, showing prompt learning efficacy.
- The model achieves 81.6% accuracy on 18 classification tasks with a single unified architecture, outperforming models with task-specific heads.
- Ablation studies show that removing prompt-based reconstruction loss degrades performance significantly, confirming its role in enabling prompt learning.
- The similarity of prompt tokens across datasets indicates shared underlying task requirements, supporting the model's ability to generalize across domains.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.