AI Datasets
Esc

    ↑↓ move↵ open/ search from any page

    Papers / Time series

    PatchTST (2022)

    A Time Series is Worth 64 Words: Long-term Forecasting with Transformers

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

    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.

    First page of “A Time Series is Worth 64 Words: Long-term Forecasting with Transformers”

    The first page, as published. Read the full paper, with summaries and discussion, on alphaxiv.org.

    Year
    2022
    Authors
    Yuqi Nie, Nam H. Nguyen, Phanwadee Sinthong, Jayant Kalagnanam
    Venue
    ICLR 2023
    Data
    ETT (Electricity Transformer Temperature), Electricity Load Diagrams

    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.

    17°29°41°Patch 1 of 42: hours 0–15Patch 2 of 42: hours 8–23Patch 3 of 42: hours 16–31Patch 4 of 42: hours 24–39Patch 5 of 42: hours 32–47Patch 6 of 42: hours 40–55Patch 7 of 42: hours 48–63Patch 8 of 42: hours 56–71Patch 9 of 42: hours 64–79Patch 10 of 42: hours 72–87Patch 11 of 42: hours 80–95Patch 12 of 42: hours 88–103Patch 13 of 42: hours 96–111Patch 14 of 42: hours 104–119Patch 15 of 42: hours 112–127Patch 16 of 42: hours 120–135Patch 17 of 42: hours 128–143Patch 18 of 42: hours 136–151Patch 19 of 42: hours 144–159Patch 20 of 42: hours 152–167Patch 21 of 42: hours 160–175Patch 22 of 42: hours 168–183Patch 23 of 42: hours 176–191Patch 24 of 42: hours 184–199Patch 25 of 42: hours 192–207Patch 26 of 42: hours 200–215Patch 27 of 42: hours 208–223Patch 28 of 42: hours 216–231Patch 29 of 42: hours 224–239Patch 30 of 42: hours 232–247Patch 31 of 42: hours 240–255Patch 32 of 42: hours 248–263Patch 33 of 42: hours 256–271Patch 34 of 42: hours 264–279Patch 35 of 42: hours 272–287Patch 36 of 42: hours 280–295Patch 37 of 42: hours 288–303Patch 38 of 42: hours 296–311Patch 39 of 42: hours 304–319Patch 40 of 42: hours 312–327Patch 41 of 42: hours 320–335Patch 42 of 42: hours 328–343 (includes padding)patch 1patch 2 starts 8 h laterpatch 42024487296120144168192216240264288312336 h

    Oil temperature, ETTh1, hourly8 copies of the last value, as paddingOne patch = one token

    L = 336 hours, P = 16, S = 8: ⌊(L − P) / S⌋ + 2 = 42 tokens instead of 336

    The first 336 hours (two weeks) of ETTh1's oil temperature, from July 2016: PatchTST's default look-back window. Padded with 8 copies of its last value, it is cut into 16-hour patches that each start 8 hours after the previous one, so neighbors overlap by half; each patch becomes one Transformer token. The other six ETT variables are patched the same way and fed separately, through the same weights. Hover a patch.

    The data

    ETT (Electricity Transformer Temperature)

    2021

    Two years of load and oil temperature from two Chinese power transformers, the standard test for long-horizon forecasting. (1 year earlier)

    Electricity Load Diagrams

    2015

    The power use of 370 Portuguese clients every 15 minutes for four years, with clear daily and weekly rhythms. (7 years earlier)

    Builds on

    • Informer (2020): A Transformer made cheap enough to forecast hundreds of steps ahead, and the paper that introduced the ETT dataset.
    • ViT (2020): Cut an image into 16×16 patches, treat them as words, and a plain Transformer matches the best convolutional networks.
    • Transformer (2017): A translation model built only from attention, and the architecture behind every large language model since.