Skip to main content
Vanilla Transformer, following implementation of the Informer paper, used as baseline. The architecture has three distinctive features:
  • Full-attention mechanism with O(L^2) time and memory complexity.
  • Classic encoder-decoder proposed by Vaswani et al. (2017) with a multi-head attention mechanism.
  • An MLP multi-step decoder that predicts long time-series sequences in a single forward operation rather than step-by-step.
The Vanilla Transformer model utilizes a three-component approach to define its embedding:
  • It employs encoded autoregressive features obtained from a convolution network.
  • It uses window-relative positional embeddings derived from harmonic functions.
  • Absolute positional embeddings obtained from calendar features are utilized.
References Figure 1. Transformer Architecture. Figure 1. Transformer Architecture.

Vanilla Transformer

Usage Example