Skip to main content
QUICK REVIEW

[Paper Review] MQTransformer: Multi-Horizon Forecasts with Context Dependent and Feedback-Aware Attention

Carson Eisenach, Yagna Patel|arXiv (Cornell University)|Sep 30, 2020
Traffic Prediction and Management TechniquesEngineering10 citations
TL;DR

MQTransformer introduces a novel Transformer-based architecture for multi-horizon time-series forecasting that enhances accuracy and reduces forecast volatility through context-dependent positional encoding, horizon-specific decoder-encoder attention, and feedback-aware self-attention. It achieves 33% lower quantile loss during peak periods and a 67% reduction in excess variation at P50, outperforming state-of-the-art models like TFT and MQ-CNN on public benchmarks.

ABSTRACT

Recent advances in neural forecasting have produced major improvements in accuracy for probabilistic demand prediction. In this work, we propose novel improvements to the current state of the art by incorporating changes inspired by recent advances in Transformer architectures for Natural Language Processing. We develop a novel decoder-encoder attention for context-alignment, improving forecasting accuracy by allowing the network to study its own history based on the context for which it is producing a forecast. We also present a novel positional encoding that allows the neural network to learn context-dependent seasonality functions as well as arbitrary holiday distances. Finally we show that the current state of the art MQ-Forecaster (Wen et al., 2017) models display excess variability by failing to leverage previous errors in the forecast to improve accuracy. We propose a novel decoder-self attention scheme for forecasting that produces significant improvements in the excess variation of the forecast.

Motivation & Objective

  • To address excess forecast volatility in state-of-the-art multi-horizon forecasting models, which fail to learn from past forecast errors.
  • To improve forecast accuracy by incorporating context-dependent seasonality and horizon-specific representations into the attention mechanism.
  • To design a neural architecture that learns proper inductive biases for probabilistic time-series forecasting without sacrificing computational efficiency.
  • To enable the model to dynamically adapt its attention based on forecast context and historical error patterns, improving forecast evolution.
  • To demonstrate that reducing forecast volatility and improving accuracy are not trade-offs, but can be achieved simultaneously through architectural innovation.

Proposed method

  • Introduces a novel positional encoding derived from domain-specific event indicators (e.g., holidays, promotions) to learn context-dependent seasonality functions.
  • Proposes horizon-specific decoder-encoder attention that allows the decoder to attend to encoder states tailored to each forecast horizon, improving representation fidelity.
  • Designs a feedback-aware decoder-self-attention mechanism that enables the model to incorporate knowledge of past forecast errors, reducing excess variation.
  • Employs forking sequences to train on all available trajectories (e.g., 20M in the retail dataset), enabling full data utilization without downsampling.
  • Uses a single objective function (quantile loss) without explicit regularization for volatility, achieving improved stability through architectural design.
  • Leverages Transformer-based attention mechanisms with modified inductive biases tailored for time-series forecasting, distinct from NLP applications.

Experimental results

Research questions

  • RQ1Can a Transformer-based architecture reduce forecast volatility by learning from its own historical errors?
  • RQ2Can context-dependent positional encoding improve modeling of complex seasonality patterns beyond fixed holiday distances?
  • RQ3Does horizon-specific attention improve forecasting accuracy for sub-problems like promotions or seasonal peaks?
  • RQ4Can architectural innovations in attention mechanisms simultaneously improve accuracy and reduce excess variation without trade-offs?
  • RQ5To what extent do architectural choices, such as feedback-aware self-attention, outperform standard attention mechanisms in multi-horizon forecasting?

Key findings

  • MQTransformer reduced excess forecast volatility by 67% at the P50 quantile and 95% at the P90 quantile compared to the baseline MQ-Forecaster.
  • On the most challenging retail forecasting task, MQTransformer achieved a 38% improvement over the previous state-of-the-art model (TFT) at the P50 quantile and 11% at P90.
  • The model achieved a 5.5% reduction in overall P90 quantile loss across the year and up to 33% improvement during peak periods.
  • MQTransformer trained in 5 minutes per epoch on 20 million trajectories using a single V100 GPU, outperforming TFT (13 minutes per epoch) and enabling full data utilization.
  • Even when retrained on a sub-sample of 450K trajectories without forking sequences, MQTransformer maintained performance comparable to the MQ-CNN baseline trained on all data.
  • The model demonstrated parity or superiority to state-of-the-art models (DeepAR, ConvTrans, MQ-RNN, TFT) across four public datasets, including electricity load, volatility, and traffic prediction tasks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.