AlphaEdit: Null-Space Constrained Knowledge Editing for Language Models

Junfeng Fang, Houcheng Jiang, Kun Wang, Yunshan Ma, Xiang Wang +2 more
2/12/2026

No official code found. Best implementation: jianghoucheng/AlphaEdit (452 stars, MIT, last commit 2025-10-15).

Abstract

Large language models (LLMs) often exhibit hallucinations due to incorrect or outdated knowledge. Hence, model editing methods have emerged to enable targeted knowledge updates. To achieve this, a prevailing paradigm is the locating-then-editing approach, which first locates influential parameters and then edits them by introducing a perturbation. While effective, current studies have demonstrated that this perturbation inevitably disrupt the originally preserved knowledge within LLMs, especially in sequential editing scenarios. To address this, we introduce AlphaEdit, a novel solution that projects perturbation onto the null space of the preserved knowledge before applying it to the parameters. We theoretically prove that this projection ensures the output of post-edited LLMs remains unchanged when queried about the preserved knowledge, thereby mitigating the issue of disruption. Extensive experiments on various LLMs, including LLaMA3, GPT2-XL, and GPT-J, show that AlphaEdit boosts the performance of most locating-then-editing methods by an average of 36.7% with a single line of additional code for projection solely. Our code is available at: https://github.com/jianghoucheng/AlphaEdit.

View on arXivView PDF

Code Implementations(1)

MIT

AlphaEdit: Null-Space Constrained Knowledge Editing for Language Models, ICLR 2025 (Outstanding Paper)

45249PythonOct 1, 20241 years agoMIT
large-language-modelslocate-then-editmodel-editingnull-space-projection

Similar Papers

Cite this paper

@article{fang2026alphaedit,
  title  = {AlphaEdit: Null-Space Constrained Knowledge Editing for Language Models},
  author = {Junfeng Fang and Houcheng Jiang and Kun Wang and Yunshan Ma and Xiang Wang and Xiangnan He and Tat-Seng Chua},
  year   = {2026},
  eprint = {2410.02355},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2410.02355},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.02355.svg)](https://codeofpaper.com/paper/2410.02355)

Discussion