To main content

Persistence Initialization: a novel adaptation of the Transformer architecture for time series forecasting

Abstract

Time series forecasting is an important problem, with many real world applications. Transformer models have been successfully applied to natural language processing tasks, but have received relatively little attention for time series forecasting. Motivated by the differences between classification tasks and forecasting, we propose PI-Transformer, an adaptation of the Transformer architecture designed for time series forecasting, consisting of three parts: First, we propose a novel initialization method called Persistence Initialization, with the goal of increasing training stability of forecasting models by ensuring that the initial outputs of an untrained model are identical to the outputs of a simple baseline model. Second, we use ReZero normalization instead of Layer Normalization, in order to further tackle issues related to training stability. Third, we use Rotary positional encodings to provide a better inductive bias for forecasting. Multiple ablation studies show that the PI-Transformer is more accurate, learns faster, and scales better than regular Transformer models. Finally, PI-Transformer achieves competitive performance on the challenging M4 dataset, both when compared to the current state of the art, and to recently proposed Transformer models for time series forecasting.
Read publication

Category

Academic article

Client

  • Research Council of Norway (RCN) / 312062

Language

English

Author(s)

Affiliation

  • Norwegian University of Science and Technology
  • BI Norwegian Business School
  • SINTEF Digital / Software Engineering, Safety and Security

Year

2023

Published in

Applied intelligence (Boston)

ISSN

0924-669X

Volume

53

Page(s)

26781 - 26796

View this publication at Cristin