Litcius/Paper detail

Knowledge Neurons in Pretrained Transformers

Damai Dai, Li Dong, Yaru Hao, Zhifang Sui, Baobao Chang, Furu Wei

2022Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)141 citationsDOIOpen Access PDF

Abstract

Large-scale pretrained language models are surprisingly good at recalling factual knowledge presented in the training corpus In this paper, we present preliminary studies on how factual knowledge is stored in pretrained Transformers by introducing the concept of knowledge neurons. Specifically, we examine the fill-in-the-blank cloze task for BERT. Given a relational fact, we propose a knowledge attribution method to identify the neurons that express the fact. We find that the activation of such knowledge neurons is positively correlated to the expression of their corresponding facts. In our case studies, we attempt to leverage knowledge neurons to edit (such as update, and erase) specific factual knowledge without fine-tuning. Our results shed light on understanding the storage of knowledge within pretrained Transformers. The code is available at https://github.com/ Hunter-DDM/knowledge-neurons.

Topics & Concepts

Computer scienceTransformerLeverage (statistics)Artificial intelligenceBlankKnowledge extractionNatural language processingCommonsense knowledgeMachine learningEngineeringVoltageElectrical engineeringMechanical engineeringTopic ModelingNatural Language Processing TechniquesExplainable Artificial Intelligence (XAI)
Knowledge Neurons in Pretrained Transformers | Litcius