Introduction
Pre-trained language models (PLMs) such as BERT and GPT have revolutionized natural language processing by acting as vast repositories of factual knowledge. However, these models remain largely "black boxes," with billions of parameters making it difficult to pinpoint exactly where specific facts—such as "The capital of Tanzania is Dodoma"—are stored. Identifying these "knowledge neurons" is essential for AI interpretability and "model surgery," which allows for the correction of misinformation or the removal of biases without the need for expensive retraining.
Existing localization techniques often struggle with architectural differences between auto-encoding and auto-regressive models and frequently suffer from language bias, focusing predominantly on English. To address these gaps, researchers have introduced a novel framework to map the internal knowledge structures of multilingual models.
The AMIG Framework
The cornerstone of this research is AMIG (Architecture-adapted Multilingual Integrated Gradients). This method refines the "Integrated Gradients" technique to attribute model outputs to specific internal neurons across diverse architectures.
AMIG introduces several key innovations:
- Architecture Adaptation: It utilizes a universal baseline vector calculation that accommodates both BERT-style masking and GPT-style sequence completion.
- Multilingual Thresholding: To account for varying attribution scores across different languages, a dynamic thresholding system normalizes results, ensuring fair comparison between linguistic structures.
- Two-Step Filtering for DKNs: Identifying redundant neurons is computationally taxing. AMIG employs a two-step process that first identifies neurons whose individual suppression does not impact performance, then tests them in pairs to find "degenerate" sets that cause failure only when both are disabled.
Language-Independent Knowledge Neurons (LIKNs)
A major discovery of this work is the existence of Language-Independent Knowledge Neurons (LIKNs). These neurons function as "polyglot" hubs where facts are stored in a language-agnostic format. The study found that models do not necessarily store a fact separately for every language they know; instead, they develop shared representations. This has profound implications for knowledge editing: targeting an LIKN allows a single update to propagate across all languages the model supports, significantly improving the efficiency of cross-lingual model maintenance.
Degenerate Knowledge Neurons (DKNs)
The researchers also identified Degenerate Knowledge Neurons (DKNs), a phenomenon mirroring biological degeneracy where different structures perform identical functions. In PLMs, DKNs act as functional backups. If one neuron holding a specific fact is suppressed, its "degenerate" partner can still provide the correct answer. This redundancy explains the remarkable robustness of large models to noise and parameter corruption. Furthermore, DKNs provide a powerful tool for fact-checking; by analyzing the activation of these redundant sets, the researchers achieved a massive increase in the F1-score for detecting false statements in m-GPT.
Architectural Differences in Knowledge Storage
The study reveals that the physical distribution of knowledge within a model is heavily influenced by its architecture.
As shown in the layer distribution analysis:
- m-BERT (Auto-encoding): Knowledge is highly concentrated in the final layers. This suggests that the model aggregates information toward the end of its processing pipeline to fulfill the masked language modeling objective.
- m-GPT (Auto-regressive): Knowledge is distributed more broadly across the early, middle, and late layers. This reflects the iterative nature of auto-regressive generation, where the model gradually refines its internal state to predict the next token.
Key Results and Performance
The AMIG framework demonstrates significant improvements over previous state-of-the-art methods like B-KN. In Chinese datasets, the success rate for identifying knowledge neurons in m-BERT improved by 84.3%.
Practical applications of these discoveries are equally impressive. By targeting LIKNs for knowledge editing, researchers achieved higher cross-lingual consistency than traditional methods. Furthermore, leveraging DKNs for fact-checking in m-GPT (Chinese) resulted in an F1-score increase of 167,150% over the baseline, effectively mitigating the model's tendency to "hallucinate" false facts as true.
Conclusion
The discovery of LIKNs and DKNs provides a new map for navigating the internal landscape of multilingual PLMs. By demonstrating that models naturally develop robust, language-agnostic representations, this research paves the way for more precise and efficient model editing and fact-checking. Future work will look toward scaling these gradient-based methods to "frontier" models with hundreds of billions of parameters, further unlocking the secrets of how AI represents our world.
Summary updated