arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.21113cs.LGcs.CE
收藏

变换器在动力系统中的机理分析

A Mechanistic Analysis of Transformers for Dynamical Systems

ETH Zürich(苏黎世联邦理工学院);Johns Hopkins University(约翰霍普金斯大学);Singapore-ETH Centre(新加坡-苏黎世中心)

Gregory Duthé, Nikolaos Evangelou, Wei Liu, Ioannis G. Kevrekidis, Eleni Chatzi

AI总结:

本文从动力系统视角分析单层变换器在动态数据中的表示能力和限制,揭示其在不同动态系统中的表现机制。

摘要:

变换器越来越多地被用于时间序列建模和预测,但其内部机制从动力系统角度仍缺乏深入理解。与经典的自回归和状态空间模型不同,后者受益于已建立的理论基础,变换器架构通常被视为黑箱。这种差距在基于注意力的模型被用于通用或零样本预测不同动态领域时显得尤为重要。在本工作中,我们不提出新的预测模型,而是研究单层变换器在动态数据上的表示能力和限制。基于动力系统视角,我们将因果自注意力解释为一种线性、依赖历史的递归,并分析其如何处理时间信息。通过一系列线性和非线性案例研究,我们识别出不同的操作领域。对于线性系统,我们显示softmax注意力所施加的凸性约束从根本上限制了可以表示的动力学类别,导致在振荡设置中出现过度平滑。对于非线性系统在部分可观测的情况下,注意力则充当一种自适应延迟嵌入机制,当有足够的时间上下文和潜在维度时,能够有效进行状态重建。这些结果有助于将经验观察与经典动力系统理论联系起来,为何时以及为何变换器作为动力系统模型成功或失败提供见解。

英文摘要:

Transformers are increasingly adopted for modeling and forecasting time-series, yet their internal mechanisms remain poorly understood from a dynamical systems perspective. In contrast to classical autoregressive and state-space models, which benefit from well-established theoretical foundations, Transformer architectures are typically treated as black boxes. This gap becomes particularly relevant as attention-based models are considered for general-purpose or zero-shot forecasting across diverse dynamical regimes. In this work, we do not propose a new forecasting model, but instead investigate the representational capabilities and limitations of single-layer Transformers when applied to dynamical data. Building on a dynamical systems perspective, we interpret causal self-attention as a linear, history-dependent recurrence and analyze how it processes temporal information. Through a series of linear and nonlinear case studies, we identify distinct operational regimes. For linear systems, we show that in the single-head attention-only setting, the convexity constraint imposed by softmax attention restricts the class of autoregressive operators that can be represented, leading to oversmoothing when the target dynamics require mixed-sign lag coefficients. For nonlinear systems under partial observability, attention instead acts as an adaptive delay-embedding mechanism, enabling effective state reconstruction when sufficient temporal context and latent dimensionality are available. These results help bridge empirical observations with classical dynamical systems theory, providing insight into when and why Transformers succeed or fail as models of dynamical systems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑