Skip to content
← Models
Open weightsGoogle/10 trustMetrics-checked

Temporal Fusion Transformer

Google's interpretable multi-horizon transformer that explains which inputs drive each forecast.

Visit official page →

About

The Temporal Fusion Transformer (Lim, Arik, Loeff, Pfister, 2021, International Journal of Forecasting) is Google's attention-based architecture for multi-horizon forecasting that refuses to be a black box. It handles the full mix of real-world inputs in one network: static covariates, known future inputs, and past-observed series. Variable selection networks learn which inputs matter per step, gated residual networks suppress unneeded components, LSTM encoders handle local processing, and an interpretable multi-head attention layer exposes which past time steps the forecast depends on. Quantile loss outputs give full probabilistic forecasts.

TFT was designed for retail demand, electricity, traffic, and volatility forecasting, and the authors report significant gains over existing benchmarks on all four. Google released the reference code in google-research; the model is more widely used through pytorch-forecasting's production-grade implementation. It is heavier to train and tune than simpler MLP forecasters like N-HiTS, and Google does not ship pretrained weights or a hosted API, so every deployment trains from scratch.

Specs

Context window

Variable lookback; multi-horizon; static plus known-future plus past-only covariates

Pricing

Free (open source)

Free quota

Free — self-hosted code via google-research and pytorch-forecasting

API access

No official hosted API; self-hosted code

Weights

Open weights

Released

Not disclosed

Benchmarks

Author-reported (Lim et al., IJF 2021): significant accuracy improvements over existing benchmarks on electricity, traffic, retail, and volatility datasets; independent evaluations keep it competitive with, but not ahead of, newer patch-based transformers and foundation models.

Provider-reported unless a source says otherwise. Benchmarks are marketing-adjacent by nature — treat them as directional.

Use cases

time-series-forecastingprobabilistic-forecastingdemand-forecastingretail-forecastingenergy-load-forecasting

Trust score — 8/10

/10 trustMetrics-checked

Scored 8/10 (metrics tier, metrics-v1). Evidence: peer-reviewed IJF 2021 paper, reference code at github.com/google-research/google-research/tree/master/tft, production-grade implementation in pytorch-forecasting. Strengths: best-in-class interpretability for a high-accuracy forecaster, native probabilistic output, handles heterogeneous input types in one model. Docked for: (1) Google ships no pretrained weights or hosted API; every use trains from scratch; (2) heavier to train and tune than modern MLP forecasters; (3) point accuracy no longer leads the field. License: Apache 2.0 (google-research).

How the trust score is built

Full methodology →
Adoption · stars/downloads, log-scaled vs peers
8.0/10
Maintenance · recency, releases, issue load
5.0/10
Openness · license + docs
8.0/10
Manual review · sanity read + red-flag check
8.0/10
  • · Interpretable multi-horizon transformer (IJF 2021): variable selection, gated residual networks, interpretable attention, quantile loss.
  • · Reference code in google-research; production use via pytorch-forecasting.
  • · Google ships no pretrained weights or hosted API; heavier to train and tune than modern MLP forecasters; no longer the accuracy leader.

Sources