TimeGPT

Machine Learning
Introduced by
Fabio Garza
Year
2023
Type
Neural network architecture
Family
Deep Learning, Time Series Forecasting, Foundation Models

What does it do?

TimeGPT is a time series foundation model introduced in 2023 by Garza and colleagues.

It is designed to be pre-trained once on a large corpus of time series and then applied to forecasting tasks. Its design follows the pre-train-then-adapt pattern of large language models, applied to time series data. Whether a given task needs adaptation or fine-tuning is an empirical question to be answered on the target data.

The intuition behind the method

Large language models show that pre-training on broad data and then adapting to a specific task can reduce how much task-specific data is needed. TimeGPT applies the same idea to time series by pre-training on a large corpus of series. The composition of that corpus is not fully disclosed, so the coverage of any particular domain is uncertain. The intended result is a model that has learned general temporal patterns, which can then be applied to a specific forecasting problem. Whether this helps for a given series depends on how similar that series is to the pre-training data.

History

TimeGPT was introduced in 2023 by Garza and colleagues in an arXiv preprint. The work proposed applying the foundation-model approach from natural language processing to time series. The model has since been offered to practitioners through a cloud API.

When to use it

Consider TimeGPT when the labelled history for the target series is short and a pre-trained starting point is useful, and when a forecast with an uncertainty estimate is needed. It is a reasonable choice when the target series is plausibly similar to the time series the model was pre-trained on. Since that corpus is not fully disclosed, similarity has to be judged from validation results rather than assumed. Avoid it when the data cannot leave your premises, since the model is accessed through a hosted API, or when you need to inspect or modify the model itself. For a large, well-curated dataset from one domain, a model trained specifically on that domain may be the better comparison. Any use should be validated on held-out data from the target series. A practical protocol is to compare the model against a simple statistical baseline and, where available, a task-specific model, using rolling-origin evaluation that respects time order. Report error metrics for each forecast horizon of interest, since accuracy usually declines as the horizon lengthens. Check whether the uncertainty intervals cover observed values at the stated nominal rate.

Limitations and considerations

  • The model is proprietary and accessed through an API, so it cannot be deployed on premises or modified directly. Availability and terms may change over time
  • Adaptation, where used, requires careful data preparation and validation, since poor adaptation can transfer patterns from the pre-training data that do not suit the target series
  • Specialised models trained extensively on a single domain with large datasets may outperform a general pre-trained model on that domain

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Pre-training on a diverse corpus is intended to give the model general temporal patterns that may be reused across different kinds of series
  • The pre-train-then-adapt design aims to reduce the labelled data and training effort needed for a new forecasting task; the size of this benefit has to be checked on the target series
  • Forecast outputs include uncertainty estimates alongside point forecasts, which supports decisions that depend on forecast spread

Applications

  • Demand forecasting for retail and supply chain planning, particularly where few labelled examples are available
  • Energy load forecasting for utilities and renewable energy planning
  • Financial forecasting for portfolio management and risk assessment

How it works

How it works

1

Input time series are mapped to a sequence of learned embeddings, one representation per time point. The embedding design is not described in detail here, so verify the preprocessing that the service expects before relying on the input handling.

2

A transformer architecture processes the embedded sequence with attention, which allows dependencies across time points to be modelled, including local patterns and longer-range trends. Architectural details such as depth and attention configuration are not given here.

3

Decoder layers generate forecasts over the requested horizon. The model is described as using either autoregressive or one-shot decoding. Which mode applies to a given request, and under what settings, is not specified here.

4

The output includes point forecasts and uncertainty estimates, so the user can obtain both a central prediction and a measure of spread. How the uncertainty is computed is not specified here, so check how the reported intervals are defined and whether they are calibrated on held-out data from the target series.

Common pitfalls

  • Applying the pre-trained model to a new series without any adaptation or validation on that series, which can give poor results if the series differ from the pre-training data
  • Mismatched preprocessing or normalisation of the input relative to what the model expects, which can shift the input distribution away from the pre-training data
  • Validating adaptation on too little held-out data, which makes overfitting during fine-tuning hard to detect

Frequently asked questions

How does TimeGPT differ from task-specific forecasting models?

Task-specific models are trained from scratch on historical data for each application, which requires collecting and training on that data. TimeGPT is pre-trained on a broad corpus, so it starts from general temporal patterns rather than from nothing. Fine-tuning on task-specific data may require less data and training time than training from scratch, but how much less depends on the task and should be checked on held-out data.

What pre-training data was used for TimeGPT?

TimeGPT was pre-trained on a large corpus of time series. The exact composition is not fully disclosed, so the coverage of any given domain, frequency or series type cannot be confirmed from the available information. The stated aim is broad coverage, which is intended to support transfer to new kinds of series. Check the provider's current documentation before assuming that a domain is covered.

Can TimeGPT models be fine-tuned for specific applications?

Whether TimeGPT can be adapted to a specific application, and how much this improves accuracy, is not established by the cited source. If adaptation is attempted, hold out the most recent target-series data for evaluation, and compare the adapted model against the un-adapted model and a simple baseline. This makes overfitting to the training window visible before the model is used.

Related methods

Sources

  1. Garza, F., & White, C. W. (2023). TimeGPT-1: A Time Series Foundation Model. In ICML 2024 Time Series Workshop.

    Open publication reference