Temporal Fusion Transformer (TFT)
An attention-based deep neural architecture designed for multi-horizon forecasting that incorporates static covariates, known future inputs, and observed time-varying inputs, while providing interpretable attention patterns.
Method
Variable selection networks, gating mechanisms, static covariate encoders, LSTM encoder-decoder, and multi-head attention for long-term dependencies. Quantile outputs for uncertainty. Trains with quantile loss. Attention weights and variable selection provide interpretability.
Applications
Retail demand, electricity price and load forecasting, financial forecasting with exogenous variables, supply chain, any multi-horizon problem with mixed static and dynamic features.
Advantages
Handles heterogeneous inputs elegantly; multi-horizon and quantile forecasting; built-in interpretability; strong benchmark results.
Limitations
Architectural complexity and many hyperparameters; computational cost; requires careful feature preparation (known future vs. observed); performance depends on data richness. Attention weights are diagnostics, not causal explanations; quantile predictions need empirical coverage checks.
Alternatives
N-BEATS/N-HiTS, DeepAR, PatchTST, gradient boosting with lagged features, classical models with exogenous regressors.
Editorial clarification
Attention weights are diagnostics, not causal explanations; quantile predictions need empirical coverage checks.
Sources
Educational reference only, not professional advice.
All algorithms