CAPS: Unifying Attention, Recurrence, and Alignment in Transformer-based Time Series Forecasting

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Pati, Viresh, Kim, Yubin, Pham, Vinh, Twitty, Jevon, 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_ 1866915770176372736
author Pati, Viresh
Kim, Yubin
Pham, Vinh
Twitty, Jevon
Yang, Shihao
Lu, Jiecheng
author_facet Pati, Viresh
Kim, Yubin
Pham, Vinh
Twitty, Jevon
Yang, Shihao
Lu, Jiecheng
contents This paper presents $\textbf{CAPS}$ (Clock-weighted Aggregation with Prefix-products and Softmax), a structured attention mechanism for time series forecasting that decouples three distinct temporal structures: global trends, local shocks, and seasonal patterns. Standard softmax attention entangles these through global normalization, while recent recurrent models sacrifice long-term, order-independent selection for order-dependent causal structure. CAPS combines SO(2) rotations for phase alignment with three additive gating paths -- Riemann softmax, prefix-product gates, and a Clock baseline -- within a single attention layer. We introduce the Clock mechanism, a learned temporal weighting that modulates these paths through a shared notion of temporal importance. Experiments on long- and short-term forecasting benchmarks surpass vanilla softmax and linear attention mechanisms and demonstrate competitive performance against seven strong baselines with linear complexity. Our code implementation is available at https://github.com/vireshpati/CAPS-Attention.
format Preprint
id arxiv_https___arxiv_org_abs_2602_02729
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle CAPS: Unifying Attention, Recurrence, and Alignment in Transformer-based Time Series Forecasting
Pati, Viresh
Kim, Yubin
Pham, Vinh
Twitty, Jevon
Yang, Shihao
Lu, Jiecheng
Machine Learning
Artificial Intelligence
This paper presents $\textbf{CAPS}$ (Clock-weighted Aggregation with Prefix-products and Softmax), a structured attention mechanism for time series forecasting that decouples three distinct temporal structures: global trends, local shocks, and seasonal patterns. Standard softmax attention entangles these through global normalization, while recent recurrent models sacrifice long-term, order-independent selection for order-dependent causal structure. CAPS combines SO(2) rotations for phase alignment with three additive gating paths -- Riemann softmax, prefix-product gates, and a Clock baseline -- within a single attention layer. We introduce the Clock mechanism, a learned temporal weighting that modulates these paths through a shared notion of temporal importance. Experiments on long- and short-term forecasting benchmarks surpass vanilla softmax and linear attention mechanisms and demonstrate competitive performance against seven strong baselines with linear complexity. Our code implementation is available at https://github.com/vireshpati/CAPS-Attention.
title CAPS: Unifying Attention, Recurrence, and Alignment in Transformer-based Time Series Forecasting
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2602.02729