超越群的乘法:Transformer电路中的分层傅里叶机制
Multiplication Beyond Groups: Stratified Fourier Mechanisms in Transformer Circuits
AI总结:
研究小型变压器学习复合模上模整数乘法的方法,提出幺半群扩展,将输入空间划分区域,发现训练的变压器中嵌入、注意力等呈现特定特性,表明相关表示理论机制可超越群扩展到更一般结构。
摘要:
变压器已展现出学习算法推理的卓越能力,但机制分析大多集中在全局可逆操作上。本文研究小型变压器如何学习复合模上的模整数乘法,这是一种因零因子存在而本质上不可逆的操作。我们提出幺半群扩展,它是通过表示的群合成(GCR)的局部推广,表明学习到的计算不依赖单一全局表示空间。模型将输入空间划分为局部分层代数区域,在此类区域中类似群的结构存在且可应用傅里叶机制。在无平方因子模乘法训练的变压器中,嵌入围绕这些区域组织,注意力表现出类敏感路由和低秩写入方向,局部特征解释了模型输出对数的很大一部分。结果表明,先前为群操作确定的表示理论机制可扩展到群之外的更一般结构。
英文摘要:
Transformers have demonstrated a remarkable ability to learn algorithmic reasoning, yet mechanistic analyses have mostly focused on globally invertible operations such as cyclic addition and group composition. In this work, we investigate how small transformers learn modular integer multiplication over composite moduli, a fundamentally non-invertible operation due to the presence of zero-divisors. We propose the monoid extension: a localized generalization of Group Composition via Representation (GCR) that suggests the learned computation does not rely on a single global representation space. Instead, the model partitions the input space into local hierarchical algebraic regions, where group-like structure survives and Fourier mechanisms can be applied. In transformers trained on square-free modular multiplication, we find that embeddings organize around these regions, attention exhibits class-sensitive routing and low-rank write directions, and local character features explain a large fraction of the model's output logits. Our results suggest that representation-theoretic mechanisms previously identified for group operations can extend beyond groups to more general structures.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。