Transformer 架构如何作为随机测度熵律评分涌现:一项数学推导
Emergence of the transformer architecture as the score of entropic laws of random measures
AI 导读
arXiv 论文从最大熵原理出发,在句子为 token 经验测度、语言为 P(S^d) 上概率律的语言统计模型中,证明 transformer 架构作为末 token 律的评分自然涌现。
正文 · 原文
Abstract:We show that the transformer architecture emerges as the score of last-token laws in a natural statistical model of language, where sentences are empirical measures of tokens, a language is a law on $P(S^d)$, and our prior belief is that sentences carry no structure at all. By the maximum-entropy principle, we select the law closest to this prior in relative entropy among those reproducing an observed sentence-level statistic. We discuss the relevance of the statistic in the posterior interaction between tokens and we build a statistic, able to capture that interaction, with Luce's choice axiom truncated at the lowest relational order. This procedure gives the softmax choice rule, with the attention cross-moment as its mean parameter. The query--key matrix is then the Lagrange multiplier of a maximum-entropy problem inside each sentence, and the value matrix the multiplier of the constraint over the language, so that the two are untied. Under the optimal entropic law we then show that a transformer head appears in the score of the last-token law. For ordered sentences, causal masking follows from the masked reference choice rule, and with a next-token cross-moment the score equals one causally masked attention head. We also discuss multi-head attention, weight-tied unembedding, and a heuristic reading of residual blocks as projected Langevin steps.
| Comments: | 38 pages, 3 figures |
| Subjects: | Artificial Intelligence (cs.AI); Probability (math.PR); Machine Learning (stat.ML) |
| MSC classes: | Primary 68T07, Secondary 62B10, 94A17, 60G57, 68T50, 49Q22 |
| Cite as: | arXiv:2610.39614 [cs.AI] |
| (or arXiv:2610.39614v1 [cs.AI] for this version) | |
| https://doi.org/10.48550/arXiv.2610.39614 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Giacomo Greco [view email]
[v1]
Thu, 29 Oct 2026 08:46:34 UTC (481 KB)
来源:arXiv cs.AI · arxiv.org