arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.01863stat.MLcs.LG
收藏

Transformer作为测度论关联记忆:统计视角与极小极大最优性

Transformers as Measure-Theoretic Associative Memory: A Statistical Perspective and Minimax Optimality

University of Tokyo(东京大学);RIKEN(理化学研究所)

Ryotaro Kawata, Taiji Suzuki

AI总结:

本文从统计视角出发,将Transformer视为测度论关联记忆,证明其在处理长上下文时的极小极大最优性。

摘要:

Transformers通过内容寻址检索和能够利用理论上无界的上下文能力而表现出色。我们将关联记忆置于概率测度的层面,将上下文视为令牌上的分布,并将注意力视为在测度上的积分算子。具体而言,对于混合上下文ν=I⁻¹Σ_{i=1}^I μ^{(i*)}和查询x_q(i*),任务分解为(i)回忆相关组件μ^{(i*)}和(ii)从(μ_{i*},x_q)进行预测。我们研究了通过经验风险最小化训练的学得softmax注意力(不是冻结内核),并证明了由MLP组成的浅层测度论Transformer在输入密度的谱假设下学习回忆和预测映射。我们进一步建立了与相同速率指数(乘以常数)匹配的极小极大下界,证明了收敛顺序的尖锐性。该框架提供了一种设计和分析Transformer的系统方法,这些Transformer可以从任意长的分布上下文中回忆,并具有可证明的泛化保证。

英文摘要:

Transformers excel through content-addressable retrieval and the ability to exploit contexts of, in principle, unbounded length. We recast associative memory at the level of probability measures, treating a context as a distribution over tokens and viewing attention as an integral operator on measures. Concretely, for mixture contexts $ν= I^{-1} \sum_{i=1}^I μ^{(i^*)}$ and a query $x_{\mathrm{q}}(i^*)$, the task decomposes into (i) recall of the relevant component $μ^{(i^*)}$ and (ii) prediction from $(μ_{i^*},x_\mathrm{q})$. We study learned softmax attention (not a frozen kernel) trained by empirical risk minimization and show that a shallow measure-theoretic Transformer composed with an MLP learns the recall-and-predict map under a spectral assumption on the input densities. We further establish a matching minimax lower bound with the same rate exponent (up to multiplicative constants), proving sharpness of the convergence order. The framework offers a principled recipe for designing and analyzing Transformers that recall from arbitrarily long, distributional contexts with provable generalization guarantees.

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

↑