arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2604.11613cs.LGcs.AI
收藏

对称性揭示逐层动力学:Transformer如何执行上下文分类

Symmetry Reveals Layerwise Dynamics: How Transformers Perform In-Context Classification

Boston University, Departments of Computer Science

Patrick Lutz, Themistoklis Haris, Arjun Chandra, Aditya Gangrade, Venkatesh Saligrama

AI总结:

通过强制特征和标签排列等变性,从Transformer中提取出显式的深度索引递归更新规则,揭示了上下文分类的几何驱动算法。

摘要:

Transformer可以从少量标记示例中执行上下文分类,但推理时的算法仍然不透明。我们研究了硬无间隔机制下的多类线性分类,并通过在每一层强制特征和标签排列等变性使计算可识别。这实现了可解释性,同时保持了功能等价性,并产生了高度结构化的权重。从这些模型中,我们提取出一个显式的深度索引递归:一个端到端可识别的、在softmax Transformer内部涌现的更新规则,据我们所知这是首个此类规则。由混合特征-标签Gram结构形成的注意力矩阵驱动训练点、标签和测试探针的耦合更新。由此产生的动力学实现了一个几何驱动的算法主题,该主题可以证明放大类别分离并产生鲁棒的期望类别对齐。

英文摘要:

Transformers can perform in-context classification from a few labeled examples, yet the inference-time algorithm remains opaque. We study multi-class linear classification in the hard no-margin regime and make the computation identifiable by enforcing feature- and label-permutation equivariance at every layer. This enables interpretability while maintaining functional equivalence and yields highly structured weights. From these models we extract an explicit depth-indexed recursion: an end-to-end identified, emergent update rule inside a softmax transformer, to our knowledge the first of its kind. Attention matrices formed from mixed feature-label Gram structure drive coupled updates of training points, labels, and the test probe. The resulting dynamics implement a geometry-driven algorithmic motif, which can provably amplify class separation and yields robust expected class alignment.

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

↑