Learning Predictive Memory: Adaptation and Length Extrapolation in Time-Series Transformers

Modern time-series architectures encode temporal dependence through very different mechanisms, including sparse retrieval, exponential recurrence, heavy-tailed attention, and seasonal memory. We study these choices through a common object, the predictive-memory kernel that governs one-step forecasting. This turns architecture design into approximation and estimation in a process-dependent forecast-risk geometry. We characterize the statistical complexity of several structured temporal memories and construct a same-realization forecaster that adapts among sparse, exponential, power-law, and seasonal classes. We then use Hankel structure to quantify the forecasting cost of using finite-state memory for an incompatible temporal law. We finally study context-length extrapolation. Changing the softmax support rescales the realized predictive-memory coefficients even when the relative temporal law is itself correct at the longer context, the mechanism by which length-dependent softmax dispersion degrades forecasting. We derive the excess-risk floor this produces, compare it with the truncated-truth oracle, and obtain a memory-law-exact normalization correction. For genuinely content-dependent attention, the correction becomes sample-dependent. Controlled experiments confirm the statistical and normalization predictions. A frozen-model intervention on trained Transformers moves held-out error in the predicted direction at every context tested and significantly so on average across them.Code reproducing all figures is included in this record.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-09-14
DOI
https://doi.org/10.5281/zenodo.22757505
Primary Topic
Forecasting Techniques and Applications
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
preprint

Learning Predictive Memory: Adaptation and Length Extrapolation in Time-Series Transformers

Yuheng Song
Zenodo (CERN European Organization for Nuclear Research)
Forecasting Techniques and Applications
preprint

Learning Predictive Memory: Adaptation and Length Extrapolation in Time-Series Transformers

Yuheng Song
preprint en

Abstract

Modern time-series architectures encode temporal dependence through very different mechanisms, including sparse retrieval, exponential recurrence, heavy-tailed attention, and seasonal memory. We study these choices through a common object, the predictive-memory kernel that governs one-step forecasting. This turns architecture design into approximation and estimation in a process-dependent forecast-risk geometry. We characterize the statistical complexity of several structured temporal memories and construct a same-realization forecaster that adapts among sparse, exponential, power-law, and seasonal classes. We then use Hankel structure to quantify the forecasting cost of using finite-state memory for an incompatible temporal law. We finally study context-length extrapolation. Changing the softmax support rescales the realized predictive-memory coefficients even when the relative temporal law is itself correct at the longer context, the mechanism by which length-dependent softmax dispersion degrades forecasting. We derive the excess-risk floor this produces, compare it with the truncated-truth oracle, and obtain a memory-law-exact normalization correction. For genuinely content-dependent attention, the correction becomes sample-dependent. Controlled experiments confirm the statistical and normalization predictions. A frozen-model intervention on trained Transformers moves held-out error in the predicted direction at every context tested and significantly so on average across them.Code reproducing all figures is included in this record.

Zenodo (CERN European Organization for Nuclear Research)
Huawei Technologies (China) (CN)
Peace, Justice and strong institutions
Forecasting Techniques and Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Learning Predictive Memory: Adaptation and Length Extrapolation in Time-Series Transformers — Yuheng Song · Zenodo (CERN European Organization for Nuclear Research) (2026) | TGRS Research Map | TGRS