跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 计算与语言

arXiv:2407.01602 (cs)
[提交于 2024年6月26日 (v1),最后修订于 2026年11月17日 (此版本, v3)]

标题:Clustering in pure-attention hardmax transformers and its role in sentiment analysis

作者:Albert Alcalde, Giovanni Fantuzzi, Enrique Zuazua
查看论文《Clustering in pure-attention hardmax transformers and its role in sentiment analysis》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Transformers are extremely successful machine learning models whose mathematical properties remain poorly understood. Here, we rigorously characterize the behavior of transformers with hardmax self-attention and normalization sublayers as the number of layers tends to infinity. By viewing such transformers as discrete-time dynamical systems describing the evolution of points in a Euclidean space, and thanks to a geometric interpretation of the self-attention mechanism based on hyperplane separation, we show that the transformer inputs asymptotically converge to a clustered equilibrium determined by special points called \textit{leaders}. We then leverage this theoretical understanding to solve sentiment analysis problems from language processing using a fully interpretable transformer model, which effectively captures `context' by clustering meaningless words around leader words carrying the most meaning. Finally, we outline remaining challenges to bridge the gap between the mathematical analysis of transformers and their real-life implementation.
评论: Funded by the European Union's HORIZON-MSCA-2021-DN-01-01, through the ModConFlex project ("Modelling and control of flexible structures interacting with fluids''; Grant Agreement No. 101073558; DOI: https://doi.org/10.3030/101073558). Accompanying code available at: https://github.com/DCN-FAU-AvH/clustering-hardmax-transformers, code DOI: https://doi.org/10.5281/zenodo.21107513
主题: 计算与语言 (cs.CL); 机器学习 (cs.LG); 动力系统 (math.DS); 机器学习 (stat.ML)
引用方式: arXiv:2407.01602 [cs.CL]
  (或者 arXiv:2407.01602v3 [cs.CL] 对于此版本)
  https://doi.org/10.48550/arXiv.2407.01602
期刊参考: SIAM Journal on Mathematics of Data Science 7(3):1367-1393, 2025
相关 DOI: https://doi.org/10.1137/24M167086X

提交历史

来自:Albert Alcalde
[v1] 2024年6月26日 星期三 16:13:35 UTC (393 KB)
[v2] 2026年5月13日 星期三 09:54:58 UTC (748 KB)
[v3] 2026年11月17日 星期二 15:11:58 UTC (748 KB)
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

math
< 上一篇   |   下一篇 >
最新 | 近期 | 2026-11
切换浏览方式为:
cs
cs.CL
cs.LG
math.DS
stat.ML

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站