Abstract
Deep learning has contributed remarkably to the advancement of time series analysis. Still, deep models can encounter performance bottlenecks in real-world data-scarce scenarios, which can be concealed due to the performance saturation with small models on current benchmarks. Meanwhile, large models have demonstrated great powers in these scenarios through large-scale pre-training. Continuous progress has been achieved with the emergence of large language models, exhibiting unprecedented abilities such as few-shot generalization, scalability, and task generality, which are however absent in small deep models. To change the status quo of training scenario-specific small models from scratch, this paper aims at the early development of large time series models (LTSM). During pre-training, we curate large-scale datasets with up to 1 billion time points, unify heterogeneous time series into single-series sequence (S3) format, and develop the GPT-style architecture toward LTSMs. To meet diverse application needs, we convert forecasting, imputation, and anomaly detection of time series into a unified generative task. The outcome of this study is a Time Series Transformer (Timer), which is generative pre-trained by next token prediction and adapted to various downstream tasks with promising capabilities as an LTSM.
Introduction
Traditionally, time series analysis has relied on "small" models trained from scratch for specific tasks on specific datasets. While effective, these models often hit a wall in data-scarce scenarios—real-world situations where historical data is limited. Furthermore, the field has lacked a unified approach; a model built for forecasting electricity demand usually cannot be used for anomaly detection in sensor data without significant re-engineering.
Timer (Time Series Transformer) aims to bring the "GPT moment" to time series analysis. By moving away from scenario-specific "silos" toward Large Time Series Models (LTSMs), Timer demonstrates that time series models can exhibit the same scalability and few-shot generalization that have revolutionized natural language processing.
Methods
Timer is a GPT-style, decoder-only Transformer. Its architecture and training strategy revolve around three key innovations:
- Single-Series Sequence (S3) Format: To handle the messiness of heterogeneous data (varying frequencies, dimensions, and scales), Timer converts all multivariate time series into a unified pool of individual sequences. This allows the model to learn universal temporal patterns regardless of the original data's source.
- Patch-based Tokenization: Instead of predicting a single point at a time, Timer segments time series into consecutive "patches" (tokens). This captures local variations more effectively and reduces the computational burden on the Transformer.
- Unified Generative Task: The model is pre-trained using next-token prediction. To adapt this to different downstream needs, the authors frame other tasks as generative ones: forecasting uses direct autoregressive generation; imputation uses a denoising approach to "generate" missing segments; and anomaly detection identifies deviations from predicted "normal" segments.
Datasets
The backbone of this work is the Unified Time Series Dataset (UTSD), a massive, curated collection of public time series data across domains like energy, transport, health, and nature.
- Pre-training: The authors released hierarchical versions of UTSD, ranging from 1 billion (UTSD-1G) to 12 billion (UTSD-12G) time points.
- Evaluation: The model was tested on standard benchmarks including ETT, ECL, Traffic, Weather, and PEMS. For anomaly detection, they utilized the UCR Anomaly Archive, which contains 250 diverse datasets.
Key Results and Insights
Timer exhibits a clear "scaling law": as the number of parameters (from 1M to 50M) and the size of the pre-training data increase, performance on downstream tasks improves consistently. Pre-training on 1 billion points allows the model to learn a robust "prior" for how things change over time.
- Few-Shot Dominance: In data-scarce scenarios, Timer significantly outperformed specialized models. For example, on the ETTh1 dataset, Timer achieved better results with only 1% of the training samples than the best baseline models did with the full dataset.
- Zero-Shot Capability: When tested on entirely unseen datasets without any fine-tuning, Timer ranked as a top-tier model, often outperforming other recent large-scale models like Moirai and TimesFM.
- Error Reduction: Increasing the model size and data scale led to a massive 40.3% reduction in prediction error in few-shot forecasting scenarios.
Conclusion
Despite its success, several areas for growth remain. Currently, Timer does not support time series classification within its generative framework, nor does it provide probabilistic outputs for uncertainty estimation. Future iterations could also benefit from incorporating multimodality, such as text descriptions of the time series context. Nonetheless, Timer demonstrates that large-scale generative pre-training is a viable path toward universal time series models.
Summary updated