How does GPT-2 Predict Acronyms? Extracting and Understanding a Circuit via Mechanistic Interpretability
Lucentia Research, Department of Software and Computing Systems, University of Alicante(阿利坎特大学软件与计算系统系卢森蒂亚研究所)
Jorge García-Carrasco, Alejandro Maté, Juan Trujillo
发表信息:
Jorge García-Carrasco, Alejandro Maté, Juan Carlos Trujillo Proceedings of The 27th International Conference on Artificial Intelligence and Statistics, PMLR 238:3322-3330, 2024
Transformer-based language models are treated as black-boxes because of their large number of parameters and complex internal interactions, which is a serious safety concern. Mechanistic Interpretability (MI) intends to reverse-engineer neural network behaviors in terms of human-understandable components. In this work, we focus on understanding how GPT-2 Small performs the task of predicting three-letter acronyms. Previous works in the MI field have focused so far on tasks that predict a single token. To the best of our knowledge, this is the first work that tries to mechanistically understand a behavior involving the prediction of multiple consecutive tokens. We discover that the prediction is performed by a circuit composed of 8 attention heads (~5% of the total heads) which we classified in three groups according to their role. We also demonstrate that these heads concentrate the acronym prediction functionality. In addition, we mechanistically interpret the most relevant heads of the circuit and find out that they use positional information which is propagated via the causal mask mechanism. We expect this work to lay the foundation for understanding more complex behaviors involving multiple-token predictions.
Opening the AI black box: program synthesis via mechanistic interpretability
Massachusetts Institute of Technology(麻省理工学院);Institute for Artificial Intelligence and Fundamental Interactions(人工智能与基本相互作用研究所);Harvard University(哈佛大学)
Sandia National Laboratories(桑迪亚国家实验室);New Mexico Institute of Mining and Technology(新墨西哥矿业理工大学);Institute for Complex Additive Systems Analysis(复杂增材系统分析研究所)
EAP-GP: Mitigating Saturation Effect in Gradient-based Automated Circuit Identification
King Abdullah University of Science and Technology(阿卜杜拉国王科技大学);University of Copenhagen(哥本哈根大学);Peking University(北京大学);University of Georgia(佐治亚大学);Huazhong University of Science and Technology(华中科技大学)
Conditional Co-Ablation: Recovering Self-Repair Backups in Transformer Circuits
College of Computing and Data Science, Nanyang Technological University, Singapore(南洋理工大学计算机与数据科学学院);Interdisciplinary Graduate Programme, Nanyang Technological University, Singapore(南洋理工大学跨学科研究生项目);School of Electrical and Electronic Engineering, Nanyang Technological University, Singapore(南洋理工大学电气与电子工程学院)