UniTS: A Unified Multi-Task Time Series Model
About
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.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Time Series Forecasting | ETTm2 | MSE0.275 | 382 | |
| Time Series Forecasting | ETTm1 | MSE0.377 | 334 | |
| Anomaly Detection | SMD | F1 Score88.09 | 217 | |
| Time Series Imputation | ETTm1 | MSE0.019 | 110 | |
| Multivariate Time Series Classification | UEA multivariate TS classification archive Statistics without N/A 26 datasets (test) | Mean Rank10.115 | 34 | |
| Anomaly Detection | MSL, PSM, SMAP, SMD, SWAT (test) | Average F186.3 | 22 | |
| Deterministic forecasting | ETT Avg TSFM-Bench | MSE0.471 | 21 | |
| Deterministic forecasting | Solar TSFM-Bench | MSE0.845 | 21 | |
| Time-series classification | 10 datasets Avg. | Accuracy75 | 20 | |
| Deterministic forecasting | Weather TSFM-Bench | MSE0.275 | 20 |