计算机科学 > 机器学习
[提交于 2024年7月9日]
标题:On the Anatomy of Attention
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We introduce a category-theoretic diagrammatic formalism in order to systematically relate and reason about machine learning models. Our diagrams present architectures intuitively but without loss of essential detail, where natural relationships between models are captured by graphical transformations, and important differences and similarities can be identified at a glance. In this paper, we focus on attention mechanisms: translating folklore into mathematical derivations, and constructing a taxonomy of attention variants in the literature. As a first example of an empirical investigation underpinned by our formalism, we identify recurring anatomical components of attention, which we exhaustively recombine to explore a space of variations on the attention mechanism.
提交历史
来自:Tuomas Laakkonen[v1] 2024年7月9日 星期二 00:00:00 UTC