# PatchTST (2022)

> Cut each series into patches and treat them like words, and Transformers forecast better than the linear models that had just beaten them.

Page: https://mralbu.github.io/ai-datasets/p/patchtst

## Key facts

- Title: A Time Series is Worth 64 Words: Long-term Forecasting with Transformers
- Authors: Yuqi Nie, Nam H. Nguyen, Phanwadee Sinthong, Jayant Kalagnanam
- Venue: ICLR 2023
- Category: Time series
- Paper: https://www.alphaxiv.org/abs/2211.14730

## Why it matters

In 2022 a one-layer linear model had outperformed Informer and its successors, and the field asked whether Transformers were useful for forecasting at all. PatchTST answered yes, with the right tokens, and patching became the standard input format for time series foundation models.

## The idea

Instead of one token per time step, split each series into short patches (16 steps, say) and embed each patch as a token, as ViT does with image patches. Forecast every channel of a multivariate series separately with the same shared Transformer ("channel independence").

## The result

Across ETT, electricity, traffic and weather, PatchTST cut mean squared error by 21% on average against the best earlier Transformer forecasters, and beat the simple linear baselines too.

## The data

- [ETT (Electricity Transformer Temperature) (2021)](https://mralbu.github.io/ai-datasets/d/ett.md): Two years of load and oil temperature from two Chinese power transformers, the standard test for long-horizon forecasting.
- [Electricity Load Diagrams (2015)](https://mralbu.github.io/ai-datasets/d/electricity.md): The power use of 370 Portuguese clients every 15 minutes for four years, with clear daily and weekly rhythms.

## Builds on

- [Informer (2020)](https://mralbu.github.io/ai-datasets/p/informer.md)
- [ViT (2020)](https://mralbu.github.io/ai-datasets/p/vit.md)
- [Transformer (2017)](https://mralbu.github.io/ai-datasets/p/transformer.md)

## Part of

- [Forecasting](https://mralbu.github.io/ai-datasets/t/forecasting.md) (step 6 of 7)
