mlsanityData to 7 Oct 2026

A statistical perspective on transformers for small longitudinal cohort data

arXiv 2602.16914 ↗First posted 18 Feb 2026stat.ME cs.LG stat.MLcited by 0

Not on the map. Why?

Abstract (arXiv)

Modeling of longitudinal cohort data typically involves complex temporal dependencies between multiple variables. There, the transformer architecture, which has been highly successful in language and vision applications, allows us to account for the fact that the most recently observed time points in an individual's history may not always be the most important for the immediate future. This is achieved by assigning attention weights to observations of an individual based on a transformation of their values. One reason why these ideas have not yet been fully leveraged for longitudinal cohort data is that typically, large datasets are required. Therefore, we present a simplified transformer architecture that retains the core attention mechanism while reducing the number of parameters to be estimated, to be more suitable for small datasets with few time points. Guided by a statistical perspective on transformers, we use an autoregressive model as a starting point and incorporate attention as a kernel-based operation with temporal decay, where aggregation of multiple transformer heads, i.e. different candidate weighting schemes, is expressed as accumulating evidence on different types of underlying characteristics of individuals. This also enables a permutation-based statistical testing procedure for identifying contextual patterns. In a simulation study, the approach is shown to recover contextual dependencies even with a small number of individuals and time points. In an application to data from a resilience study, we identify temporal patterns in the dynamics of stress and mental health. This indicates that properly adapted transformers can not only achieve competitive predictive performance, but also uncover complex context dependencies in small data settings.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 21 of its 44 references that are in the map. First posted on arXiv 18 Feb 2026.

Builds on

21 of 44 references.

References · 21

  1. 2017Attention Is All You Needcited by 59,932
  2. 2017A Unified Approach to Interpreting Model Predictionscited by 6,488
  3. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  4. 2017Axiomatic Attribution for Deep Networkscited by 3,350
  5. 2022Are Transformers Effective for Time Series Forecasting?cited by 1,400
  6. 2018Self-Attention with Relative Position Representationscited by 1,112
  7. 2019Attention is not Explanationcited by 916
  8. 2023iTransformer: Inverted Transformers Are Effective for Time Series Forecastingcited by 906
  9. 2017Modeling Long- and Short-Term Temporal Patterns with Deep Neural Networkscited by 869
  10. 2022Transformers in Time Series: A Surveycited by 489
  11. 2021A Survey of Transformerscited by 399
  12. 2021Escaping the Big Data Paradigm with Compact Transformerscited by 261
9 more
  1. 2019BEHRT: Transformer for Electronic Health Recordscited by 258
  2. 2015A Critical Review of Recurrent Neural Networks for Sequence Learningcited by 223
  3. 2019Feature relevance quantification in explainable AI: A causal problemcited by 164
  4. 2020Model Interpretability through the Lens of Computational Complexitycited by 75
  5. 2020Repulsive Attention: Rethinking Multi-head Attention as Bayesian Inferencecited by 13
  6. 2019Scalable and Efficient Hypothesis Testing with Random Forestscited by 8
  7. 2025Linear Transformers as VAR Models: Aligning Autoregressive Attention Mechanisms with Autoregressive Forecastingcited by 8
  8. 2024Statistical Test for Anomaly Detections by Variational Auto-Encoderscited by 6
  9. 2020Using Differentiable Programming for Flexible Statistical Modelingcited by 3

Built on by

Not cited yet.