TL;DR
While direct parameter editing allows us to update language models without expensive retraining, existing methods have only been tested on rigid, single-answer encyclopedic facts. This paper introduces $\text{MEMIT}_{\text{CSK}}$, an adaptation of mass-editing techniques designed for the nuanced, multi-answer domain of common sense. The authors demonstrate that commonsense knowledge is causally localized within the early MLP layers of Transformers and can be successfully repaired while maintaining semantic generalization.
What Problem Does This Paper Address?
Model editing algorithms (like ROME or MEMIT) have successfully corrected factual errors (e.g., changing the location of the Eiffel Tower) by modifying localized parameters. However, encyclopedic facts typically follow a strict one-to-one mapping. Commonsense knowledge is much fuzzier—an apple can be red, green, or yellow, but not transparent.
Furthermore, factual knowledge is usually anchored entirely to a subject noun, whereas commonsense judgments depend on the interplay of the entire sentence: the Subject, Verb, and Object ($s, v, o$). Prior editing frameworks fail in this domain because they assume knowledge is strictly localized around the subject token. This paper investigates whether common sense can be mapped to specific editable parameters, and how to update these parameters without destroying the model's broader reasoning capabilities.
Methods
The authors build upon MEMIT (Mass Editing Memory in a Transformer) to create $\text{MEMIT}_{\text{CSK}}$ (Common Sense Knowledge), introducing two core modifications:
- Varying Edit Tokens: Instead of only corrupting and editing the subject token, $\text{MEMIT}_{\text{CSK}}$ analyzes and executes edits across different token positions—specifically targeting the last token of the subject, verb, or object.
- Robust Layer Selection Strategy: Standard MEMIT selects a five-layer window based solely on the highest Average Indirect Effect (AIE) at the final layer of that window. $\text{MEMIT}_{\text{CSK}}$ expands this hyperparameter search by looking for a window that maximizes the moving average of the AIE, capturing a more holistic view of where knowledge is stored.
Datasets
The models were evaluated using two primary commonsense plausibility datasets, reformatted into natural language using GPT-3:
- PEP3k (Physical Event Plausibility): 3,062 statements regarding physically plausible/implausible events.
- 20Q (20 Questions): 5,096 crowd-annotated commonsense statements.
The PROBE SET
To rigorously evaluate semantic generalization, the authors introduced a novel benchmark called the PROBE SET. For every incorrectly predicted instance, they generated four types of evaluation prompts:
- Unaffected Neighborhood: Sentences that should remain unchanged (tests specificity).
- Affected Neighborhood: Synonymous sentences that should change.
- Affected Paraphrase: Paraphrased sentences that should change.
- Affected Reasoning: Two-step logic chains dependent on the edited statement (tests connectivity).
Key Insights and Ideas
- Common Sense Lives in Early Layers: Unlike encyclopedic facts, which are typically localized in the middle layers of a Transformer, causal tracing revealed that commonsense plausibility judgments are strongly associated with earlier MLP layers.
- Causal Tracing Requires Competence: Zero-shot models performing at near-random accuracy yielded chaotic causal tracing graphs. The model must first be "base-finetuned" to understand the task before distinct, localized parameter pathways emerge.
- Token Flexibility is Crucial: Common sense isn't a one-size-fits-all subject problem. Causal tracing showed that corrupting and editing the object or verb tokens often yielded significantly higher indirect effects than editing the subject token alone.
Key Results
- Outperforming Finetuning: On the test sets (EDIT SET), GPT-2 XL edited with $\text{MEMIT}_{\text{CSK}}$ outperformed the best repair-finetuned baselines by 10.97% F1 on PEP3k and 10.73% F1 on 20Q.
- Mitigating Relapse: Fine-tuning baselines suffered from severe overfitting and "relapse" (forgetting previously correct answers, with relapse rates up to 64.96%). $\text{MEMIT}_{\text{CSK}}$ maintained low relapse rates (typically 3% to 8%).
- Balanced Generalization: On the PROBE SET, fine-tuning baselines exhibited a harsh trade-off: they either fixed the error but ruined the unaffected neighborhood, or preserved the neighborhood but failed to fix the error. $\text{MEMIT}_{\text{CSK}}$ achieved balanced, stable improvements across all affected and unaffected metrics.
Limitations and Future Work
- Model Scale: Due to compute constraints, the study was limited to GPT-2 Large (774M) and XL (1.5B). Testing these dynamics on larger, modern LLMs (e.g., LLaMA, GPT-J) remains an open next step.
- Token Variability: The optimal token to edit (Subject vs. Verb vs. Object) varied between the PEP3k and 20Q datasets. A unified strategy to automatically determine the single best edit token location on-the-fly is still needed.
- Task Scope: The framework is currently restricted to binary classification (Plausible vs. Implausible) rather than open-ended generation.
Summary updated