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

注意力头中神经元消融研究:峰值激活居中的案例

Investigating Neuron Ablation in Attention Heads: The Case for Peak Activation Centering

Nicholas Pochinkov, Ben Pasero, Skylar Shibayama

AI总结:

本文系统比较了Transformer注意力头中零消融、均值消融、激活重采样及新提出的峰值消融四种神经元消融方法,发现不同模型与条件下各方法均可实现最低性能退化,而重采样通常退化最严重。

摘要:

基于Transformer的模型在整个社会中的应用正在迅速增长。随着这种增长,理解它们的工作原理,特别是注意力机制如何表示概念,变得十分重要。尽管存在许多可解释性方法,但很多方法通过神经元的激活来观察模型,而人们对这些激活的理解仍然不足。我们描述了观察神经元激活的不同视角,并通过多种神经消融方法——零消融、均值消融、激活重采样,以及一种我们称之为“峰值消融”的新方法——研究其在语言模型和视觉Transformer中的有效性。通过实验分析,我们发现在不同的机制和模型中,与其他方法相比,每种方法都可以带来最低的模型性能退化,而重采样通常导致最显著的性能下降。我们的代码可在 https://github.com/nickypro/investigating-ablation 获取。

英文摘要:

The use of transformer-based models is growing rapidly throughout society. With this growth, it is important to understand how they work, and in particular, how the attention mechanisms represent concepts. Though there are many interpretability methods, many look at models through their neuronal activations, which are poorly understood. We describe different lenses through which to view neuron activations, and investigate the effectiveness in language models and vision transformers through various methods of neural ablation: zero ablation, mean ablation, activation resampling, and a novel approach we term 'peak ablation'. Through experimental analysis, we find that in different regimes and models, each method can offer the lowest degradation of model performance compared to other methods, with resampling usually causing the most significant performance deterioration. We make our code available at https://github.com/nickypro/investigating-ablation.

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

↑