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.
Under the Hood of Neural Networks: Characterizing Learned Representations by Functional Neuron Populations and Network Ablations
Institute of Technologies and Management of Digital Transformation(数字化转型技术与管理研究所);Institute of Information Management in Mechanical Engineering(机械工程信息管理研究所)
Universal Neurons in GPT-2: Emergence, Persistence, and Functional Impact
University of Waterloo(滑铁卢大学);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Ottawa University(渥太华大学);Algoverse(Algoverse公司);Meta FAIR Lab(Meta FAIR实验室);UCSD(加州大学圣地亚哥分校)