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

揭示ReLU Transformer中依赖于层的激活稀疏性模式

Uncovering Layer-Dependent Activation Sparsity Patterns in ReLU Transformers

Google Research(谷歌研究院)

Cody Wild, Jesper Anderson

AI总结:

本研究针对ReLU Transformer中MLP的激活稀疏性问题,深入探究token级稀疏性的训练演变及层间差异,发现首尾层稀疏模式反向、神经元死亡由训练动态驱动,为理解模型不同深度的特征表示结构提供了新依据。

摘要:

已有研究表明,ReLU Transformer中的多层感知器(MLP)呈现出高度稀疏性,对于任意给定的token,其大量激活值均为零。我们在此研究基础上,更深入地探究token级稀疏性在训练过程中的演变规律,以及它与序列或批次层面更广泛的稀疏性模式之间的关联,证明小型Transformer的不同层在这两个维度上均表现出显著的层特异性模式。具体而言,我们发现网络的第一层和最后一层与稀疏性的关联独具特点,且在很多方面呈现反向关系,并探讨了这一现象对模型不同深度所学习的特征表示结构的启示。此外,我们还研究了ReLU维度“关闭”的现象,并给出证据表明“神经元死亡”主要由训练动态驱动,而非单纯由离群值导致的随机或偶然事件。

英文摘要:

Previous work has demonstrated that MLPs within ReLU Transformers exhibit high levels of sparsity, with many of their activations equal to zero for any given token. We build on that work to more deeply explore how token-level sparsity evolves over the course of training, and how it connects to broader sparsity patterns over the course of a sequence or batch, demonstrating that the different layers within small transformers exhibit distinctly layer-specific patterns on both of these fronts. In particular, we demonstrate that the first and last layer of the network have distinctive and in many ways inverted relationships to sparsity, and explore implications for the structure of feature representations being learned at different depths of the model. We additionally explore the phenomenon of ReLU dimensions "turning off", and show evidence suggesting that "neuron death" is being primarily driven by the dynamics of training, rather than simply occurring randomly or accidentally as a result of outliers.

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

↑