arXiv:2610.40188stat.MLOct 2026

Manuscript Offprint

arXiv:2610.40188

Understanding axial attention in TSFMs through single location regression

Andrei-Tiberiu Pantea, Aymeric Dieuleveut

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Recent advances in Time Series Foundation Models (TSFMs) increasingly rely on axial attention mechanisms, but despite their empirical success, the theoretical properties of axial attention remain largely unexplored. To bridge this gap, we extend the Single Location Regression framework introduced in Marion et al. [2025] to 2D structured data, in order to study sparse information settings where a target depends on a small number of tokens. We formulate an analytically tractable axial attention-type predictor and rigorously analyze its statistical properties and training dynamics. We prove that under a specific asymptotic regime and with knowledge of the underlying oracle parameters, our predictor achieves Bayes optimality, whereas a class of semi-linear simplifications strictly fails to do so, underlining the role of the inner non-linearity. We prove that for a specific temperature scaling, Projected Gradient Descent converges globally to the optimal oracle parameters. Extensive numerical experiments validate our theoretical findings and highlight the critical role of inverse temperature scheduling in empirical convergence.

1 Introduction

Recent years have witnessed a surge in the development of Time Series Foundation Models (TSFMs) leveraging transformer architectures [Vaswani et al., 2017] (e.g., Chronos-2 [Ansari et al., 2025], Moirai 2.0 [Liu et al., 2025], TimesFM [Das et al., 2024], TabPFN-TS [Hoo et al., 2025], Toto [Cohen et al., 2025], PatchTST-FM [Wen et al., 2026]). However, applying standard global attention to high-dimensional multivariate time series presents a significant computational bottleneck. Standard attention treats inputs as a flattened 1D sequence, which scales quadratically with the total number of tokens and fails to explicitly leverage the natural 2D grid structure (time steps × channels) of multivariate data. To address this, axial attention introduced in Ho et al. [2019], and specifically for multivariate time series in Zhang and Yan [2023], has emerged as a powerful alternative already implemented in some of the state-of-the-art TSFMs, e.g., Chronos-2, TabPFN-TS and Toto, but also in task specific models such as CEReBrO [Dimofte et al., 2025], an EEG foundation model that utilizes alternating intra-channel temporal and inter-channel spatial attention and STAIT (Spatio-Temporal Alternating Iterative Transformer) [Cui et al., 2026] for remote sensing.

The axial-attention layer combines two token-mixing half-layers, as described in Figure 1. Formally, we consider our input time series as M×NM \times N matrices of tokens X=(Xij)1≤i≤M,1≤j≤N\mathbb{X} = (X_{ij})_{1 \leq i \leq M, 1 \leq j \leq N}, taking values in the embedding (or latent) space Rd\mathbb{R}^d, where MM can be seen as the number of channels and NN as the number of time series patches. Generically, given as hyperparameters two real numbers λr,λc\lambda_r, \lambda_c, referred to as inverse temperatures, and an activation function σ:Rd→Rd\sigma : \mathbb{R}^d \to \mathbb{R}^d, the standard axial self-attention layer is parametrized by weight matrices Qr,Kr∈Rd×pr,Vr∈Rd×dQ_r, K_r \in \mathbb{R}^{d \times p_r}, V_r \in \mathbb{R}^{d \times d},

∗^{*}Corresponding author: andrei-tiberiu.pantea@polytechnique.edu

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Figure

Figure 1: Schematic view of an axial attention layer. Raw input tokens are first processed by a time-wise self-attention layer that isolates features along the rows. A subsequent channel-wise attention layer vertically blends these extracted features, effectively capturing global cross-channel and temporal context.

Qc,Kc,Vc∈Rd×pcQ_c, K_c, V_c \in \mathbb{R}^{d \times p_c}, and Oc∈Rpc×ocO_c \in \mathbb{R}^{p_c \times o_c}. The subscripts rr and cc represent row-wise and, respectively, column-wise operations. The mapping is defined as, for any j∈[N]j \in [N]:

Tλr,λc,σ(Qr,c,Kr,c,Vr,c,Oc)(X).j=σ(λcX.j(1/2)Qc⏟M×pcKcT(X.j(1/2))T⏟pc×M)X.j(1/2)Vc⏟M×pcOc⏟pc×oc,(1)T_{\lambda_{r},\lambda_{c},\sigma}^{(Q_{r,c},K_{r,c},V_{r,c},O_{c})}(\mathbb{X})_{.j}=\sigma\Big(\lambda_{c}\underbrace{\mathbb{X}_{.j}^{(1/2)}Q_{c}}_{M\times p_{c}}\underbrace{K_{c}^{T}\left(\mathbb{X}_{.j}^{(1/2)}\right)^{T}}_{p_{c}\times M}\Big)\underbrace{\mathbb{X}_{.j}^{(1/2)}V_{c}}_{M\times p_{c}}\underbrace{O_{c}}_{p_{c}\times o_{c}}, \tag{1}

where the initial row-wise computation is, for any i∈[M]i \in [M]:

Xi.(1/2)=σ(λrXi.Qr⏟N×prKrTXi.T⏟pr×N)Xi.Vr⏟N×d,(2)\mathbb{X}_{i.}^{(1/2)}=\sigma(\lambda_{r}\underbrace{\mathbb{X}_{i.}Q_{r}}_{N\times p_{r}}\underbrace{K_{r}^{T}\mathbb{X}_{i.}^{T}}_{p_{r}\times N})\underbrace{\mathbb{X}_{i.}V_{r}}_{N\times d}, \tag{2}

where we use the notations [n]={1,2,…,n}[n] = \{1, 2, \ldots, n\} for any positive integer nn, and WiW_i. (resp. WjW_j) to denote the ii-th line (resp. jj-th column) of a matrix WW. Note that in (2) (and throughout the paper when applied to a matrix) the activation function is used row-wise. When σ\sigma is the softmax function, this structure is one of the building blocks used in Chronos-2, TabPFN-TS and Toto, stripped of residual connections and normalization layers. Note that the order in which the row attention and column attention are performed has no impact on the results in our paper; we choose row attention followed by column attention just for presentation purposes.

Although the empirical success of these axial architectures is evident across various domains, their theoretical properties remain largely unexplored. For example, in Berthelier et al. [2026], the authors have shown that pretrained Chronos-2 is not always capable of identifying simple relationships between targets and covariates in the token-wise sparse information setting. Our goal is to improve the theoretical understanding of axial attention by analyzing their ability to approximate and learn the optimal predictor in this setting. To this end, we build on the work of Marion et al. [2025], conducted in the context of classical transformers and motivated by natural language processing (NLP) tasks. In that paper, the authors introduced a new class of statistical models, namely Single Location Regression (SLR) models, through which they aimed to investigate the ability of standard attention layers to recover relevant information in a token-wise sparse information setting, where the target depends only on a relatively small number of tokens. They have provided theoretical guarantees for a modification of the standard transformer architecture, proving that one can recover optimal predictors for SLRs. This naturally raises a fundamental, yet unanswered, question: Can we achieve the same statistical and optimization performance with axial attention as we do with normal global attention? The answer is not obvious, since the information flow is much more restricted in an axial transformer, where each token only attends to tokens with which it shares an axis, as opposed to the free flow of information between any two tokens in a standard transformer.

Building upon the foundation established by Marion et al. [2025], we introduce a SLR model and extend the theoretical analysis of transformer architectures to axial attention mechanisms, as a method of assessing the theoretical capabilities of current state-of-the-art TSFMs. Our main contributions are structured as follows:

• In Section 2, we introduce an SLR statistical model for the token-wise sparse information setting adapted to 2D structured data (e.g., multivariate time series, tables). We then explain the connection between such a model and multivariate time series anomaly analysis, and finally, we introduce a trainable predictor and show that it corresponds to a slightly simplified axial attention layer.

• In Section 3, we analyze the performance of the predictor introduced and prove that there exists an asymptotic regime in which it is statistically optimal for the SLR model investigated, when using the oracle parameters. Furthermore, we show that removing the inner non-linearity in our predictor renders it suboptimal.

• In Section 4, we propose an optimization algorithm for our predictor and provide theoretical guarantees for its convergence, despite the non-convexity of the problem. We further conduct extensive numerical studies which reveal a complex optimization landscape that confirm our theoretical findings.

Our structure closely follows that of Marion et al. [2025], but our motivation (the study of TSFMs) and the technical challenges are, nevertheless, very different. Standard global attention benefits from symmetric token coupling, which facilitates the derivation of closed-form analytical solutions for the expected risk. By contrast, axial attention operates in a sequential manner. This decoupled architecture breaks the global symmetry and induces a cascading non-linear dependence between axes. As a result, the optimization landscape exhibits significant complexity, rendering standard closed-form approaches to statistical optimality and convergence of optimization methods intractable and necessitating novel analytical techniques.

References (62)