arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.17324cs.LGcs.AIcs.CL
收藏

Transformer 中的模块化:探究神经元可分离性与特化

Modularity in Transformers: Investigating Neuron Separability & Specialization

Nicholas Pochinkov, Thomas Jones, Mohammed Rashidur Rahman

AI总结:

本文通过选择性剪枝和 MoEfication 聚类分析 ViT 与 Mistral 7B 中神经元的模块化与任务特化,发现任务特异性神经元簇及随机初始化中已存在的固有结构,为理解 Transformer 内部机制和提升可解释性提供新见解。

摘要:

Transformer 模型在各种应用中日益普遍,但对其内部工作机制的理解仍然有限。本文研究了 Transformer 架构中神经元的模块化和任务特化,重点关注视觉(ViT)和语言(Mistral 7B)模型。通过结合选择性剪枝和 MoEfication 聚类技术,我们分析了神经元在不同任务和数据子集上的重叠与特化情况。研究结果揭示了任务特异性神经元簇的存在证据,且相关任务之间的重叠程度各不相同。我们观察到,即使在随机初始化的模型中,神经元重要性模式也在一定程度上持续存在,这表明存在一种由训练加以精化的固有结构。此外,我们发现通过 MoEfication 识别出的神经元簇在模型的前层和后层中与任务特异性神经元的对应关系更强。这项工作有助于更细致地理解 Transformer 内部机制,并为提高模型可解释性和效率的潜在途径提供了见解。

英文摘要:

Transformer models are increasingly prevalent in various applications, yet our understanding of their internal workings remains limited. This paper investigates the modularity and task specialization of neurons within transformer architectures, focusing on both vision (ViT) and language (Mistral 7B) models. Using a combination of selective pruning and MoEfication clustering techniques, we analyze the overlap and specialization of neurons across different tasks and data subsets. Our findings reveal evidence of task-specific neuron clusters, with varying degrees of overlap between related tasks. We observe that neuron importance patterns persist to some extent even in randomly initialized models, suggesting an inherent structure that training refines. Additionally, we find that neuron clusters identified through MoEfication correspond more strongly to task-specific neurons in earlier and later layers of the models. This work contributes to a more nuanced understanding of transformer internals and offers insights into potential avenues for improving model interpretability and efficiency.

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

↑