StretchTime: Adaptive Time Series Forecasting via Symplectic Attention

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Kim, Yubin, Pati, Viresh, Twitty, Jevon, Pham, Vinh, Yang, Shihao, Lu, Jiecheng
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866918328862244864
author Kim, Yubin
Pati, Viresh
Twitty, Jevon
Pham, Vinh
Yang, Shihao
Lu, Jiecheng
author_facet Kim, Yubin
Pati, Viresh
Twitty, Jevon
Pham, Vinh
Yang, Shihao
Lu, Jiecheng
contents Transformer architectures have established strong baselines in time series forecasting, yet they typically rely on positional encodings that assume uniform, index-based temporal progression. However, real-world systems, from shifting financial cycles to elastic biological rhythms, frequently exhibit "time-warped" dynamics where the effective flow of time decouples from the sampling index. In this work, we first formalize this misalignment and prove that rotary position embedding (RoPE) is mathematically incapable of representing non-affine temporal warping. To address this, we propose Symplectic Positional Embeddings (SyPE), a learnable encoding framework derived from Hamiltonian mechanics. SyPE strictly generalizes RoPE by extending the rotation group $\mathrm{SO}(2)$ to the symplectic group $\mathrm{Sp}(2,\mathbb{R})$, modulated by a novel input-dependent adaptive warp module. By allowing the attention mechanism to adaptively dilate or contract temporal coordinates end-to-end, our approach captures locally varying periodicities without requiring pre-defined warping functions. We implement this mechanism in StretchTime, a multivariate forecasting architecture that achieves state-of-the-art performance on standard benchmarks, demonstrating superior robustness on datasets exhibiting non-stationary temporal dynamics.
format Preprint
id arxiv_https___arxiv_org_abs_2602_08983
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle StretchTime: Adaptive Time Series Forecasting via Symplectic Attention
Kim, Yubin
Pati, Viresh
Twitty, Jevon
Pham, Vinh
Yang, Shihao
Lu, Jiecheng
Machine Learning
Artificial Intelligence
Transformer architectures have established strong baselines in time series forecasting, yet they typically rely on positional encodings that assume uniform, index-based temporal progression. However, real-world systems, from shifting financial cycles to elastic biological rhythms, frequently exhibit "time-warped" dynamics where the effective flow of time decouples from the sampling index. In this work, we first formalize this misalignment and prove that rotary position embedding (RoPE) is mathematically incapable of representing non-affine temporal warping. To address this, we propose Symplectic Positional Embeddings (SyPE), a learnable encoding framework derived from Hamiltonian mechanics. SyPE strictly generalizes RoPE by extending the rotation group $\mathrm{SO}(2)$ to the symplectic group $\mathrm{Sp}(2,\mathbb{R})$, modulated by a novel input-dependent adaptive warp module. By allowing the attention mechanism to adaptively dilate or contract temporal coordinates end-to-end, our approach captures locally varying periodicities without requiring pre-defined warping functions. We implement this mechanism in StretchTime, a multivariate forecasting architecture that achieves state-of-the-art performance on standard benchmarks, demonstrating superior robustness on datasets exhibiting non-stationary temporal dynamics.
title StretchTime: Adaptive Time Series Forecasting via Symplectic Attention
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2602.08983