arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.22257cs.LGhep-th
收藏

Transformer中对称破缺以实现高效且可解释的训练

Symmetry Breaking in Transformers for Efficient and Interpretable Training

Stanford University(斯坦福大学);Zyphra Technologies(Zyphra技术公司)

Eva Silverstein, Daniel Kunin, Vasudev Shyam

AI总结:

通过引入对称破缺协议,Transformer模型在提升性能的同时增强了可解释性。

摘要:

标准的注意力机制包含额外的旋转自由度,这些自由度在计算过程中被携带但并不影响模型激活或输出。我们引入了一种简单的对称破缺协议,通过批量采样的未学习查询和值偏置,在此旋转空间中插入一个优先方向。这种修改有两个理论驱动且经实验验证的后果。首先,它可以显著提高简单且内存高效的优化器性能,缩小甚至在某些情况下缩小与成功但更复杂的内存密集型自适应方法之间的差距。我们通过预训练124M参数的transformer模型,使用四个优化算法(AdamW、SOAP、SGDM和能量守恒下降(ECD))进行演示,并评估验证损失和下游逻辑推理。其次,它使原本冗余的旋转自由度得以解释性使用,选择性地放大单个注意力头中具有语义意义的token类。总体而言,我们的结果表明,最小的、原则性的架构变化可以同时提高性能和可解释性。

英文摘要:

The attention mechanism in its standard implementation contains extraneous rotational degrees of freedom that are carried through computation but do not affect model activations or outputs. We introduce a simple symmetry-breaking protocol that inserts a preferred direction into this rotational space through batchwise-sampled, unlearned query and value biases. This modification has two theoretically motivated and empirically validated consequences. First, it can substantially improve the performance of simple, memory-efficient optimizers, narrowing -- and in some cases closing -- the gap to successful but more complex memory-intensive adaptive methods. We demonstrate this by pretraining 124M parameter transformer models with four optimization algorithms (AdamW, SOAP, SGDM, and Energy Conserving Descent(ECD)) and evaluating both validation loss and downstream logical reasoning. Second, it enables an interpretable use of otherwise redundant rotational degrees of freedom, selectively amplifying semantically meaningful token classes within individual attention heads. Overall, our results show that minimal, principled architectural changes can simultaneously improve performance and interpretability.

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

↑