面向小规模纵向队列数据的Transformer统计视角 A statistical perspective on transformers for small longitudinal cohort data 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-02-18
👁️ 预览文献
💡 AI 中文简介
纵向队列数据常面临变量间复杂的时间依赖关系,而Transformer虽在语言和视觉领域大获成功,却因需要大数据量而难以直接应用。本研究提出一种简化Transformer架构,保留核心注意力机制但大幅减少参数量,使其适用于个体少、时间点少的小数据集。研究者从统计视角出发,以自回归模型为基础,将注意力视为带时间衰减的核操作,并引入置换检验来识别上下文模式。模拟实验表明,该方法即使在小样本下也能捕捉上下文依赖;在韧性研究数据中,成功识别出压力与心理健康的动态时间模式。
领域统计机器学习 / 纵向数据分析
适合谁读需要一定专业背景(统计学、机器学习基础)
核心贡献1. 提出一种简化Transformer架构,通过减少参数量使其适用于小规模纵向队列数据;2. 从统计视角将注意力机制解释为带时间衰减的核操作,并引入置换检验识别上下文模式。
关键数据模拟研究中,即使个体数和时间点都很少,该方法仍能恢复上下文依赖;在韧性研究应用中,识别出压力与心理健康的动态时间模式,预测性能具有竞争力。
推荐理由如果你手头数据量小但又想用Transformer捕捉复杂时间依赖,这篇论文提供了统计上严谨且实用的解决方案。
关键词["纵向队列数据", "Transformer", "注意力机制", "小样本学习", "统计推断", "时间序列分析"]

原文摘要

查看英文原文摘要

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.