AnyEdit: Edit Any Knowledge Encoded in Language Models
Houcheng Jiang, Junfeng Fang, Ningyu Zhang, Mingyang Wan, Guojun Ma, Xiang Wang, Xiangnan He, Tat-Seng Chua
Abstract
Large language models (LLMs) often produce incorrect or outdated information, necessitating efficient and precise knowledge updates. Current model editing methods, however, struggle with long-form knowledge in diverse formats, such as poetry, code snippets, and mathematical derivations. These limitations arise from their reliance on editing a single token's hidden state, a limitation we term as "efficacy barrier". To solve this, we propose AnyEdit, a new autoregressive editing paradigm. It decomposes long-form knowledge into sequential chunks and iteratively edits the key token in each chunk, ensuring consistent and accurate outputs. Theoretically, we ground AnyEdit in the Chain Rule of Mutual Information, showing its ability to update any knowledge within LLMs. Empirically, it outperforms strong baselines by 21.5% on benchmarks including UnKEBench, AKEW, and our new EditEverything dataset for long-form diverse-formatted knowledge. Additionally, AnyEdit serves as a plug-and-play framework, enabling current editing methods to update knowledge with arbitrary length and format, significantly advancing the scope and practicality of LLM knowledge editing. Our code is available at: https://github. com/jianghoucheng/AnyEdit .
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
10 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- On the Superimposed Noise Accumulation Problem in Sequential Knowledge Editing of Large Language Models cites Memory-Based Model Editing at Scale
- On the Superimposed Noise Accumulation Problem in Sequential Knowledge Editing of Large Language Models cites Fast Model Editing at Scale
- Editing the Moving World: Model Editing for Video LLMs cites Can We Edit Factual Knowledge by In-Context Learning?
- Locating and Editing Factual Associations in GPT cites Fast Model Editing at Scale
- Locating and Editing Factual Associations in GPT cites Language Models are Few-Shot Learners
- CAKE: Causal-Guided Adaptive Knowledge Editing for LLMs cites Locating and Editing Factual Associations in GPT
- CAKE: Causal-Guided Adaptive Knowledge Editing for LLMs cites Rethinking Residual Distribution in Locate-then-Edit Model Editing
- CAKE: Causal-Guided Adaptive Knowledge Editing for LLMs cites Fast Model Editing at Scale
- CAKE: Causal-Guided Adaptive Knowledge Editing for LLMs cites Language Models are Few-Shot Learners
- Can We Edit Factual Knowledge by In-Context Learning? cites Fast Model Editing at Scale
- Can We Edit Factual Knowledge by In-Context Learning? cites Language Models are Few-Shot Learners
- Rethinking Residual Distribution in Locate-then-Edit Model Editing cites Locating and Editing Factual Associations in GPT
- Rethinking Residual Distribution in Locate-then-Edit Model Editing cites Can We Edit Factual Knowledge by In-Context Learning?
- Rethinking Residual Distribution in Locate-then-Edit Model Editing cites Memory-Based Model Editing at Scale
- Rethinking Residual Distribution in Locate-then-Edit Model Editing cites Fast Model Editing at Scale
- Memory-Based Model Editing at Scale cites Language Models are Few-Shot Learners
- Fast Model Editing at Scale cites Language Models are Few-Shot Learners
- From Backward Spreading to Forward Replay: Revisiting Target Construction in LLM Parameter Editing cites Locating and Editing Factual Associations in GPT
- From Backward Spreading to Forward Replay: Revisiting Target Construction in LLM Parameter Editing cites Can We Edit Factual Knowledge by In-Context Learning?
- From Backward Spreading to Forward Replay: Revisiting Target Construction in LLM Parameter Editing cites Rethinking Residual Distribution in Locate-then-Edit Model Editing
- From Backward Spreading to Forward Replay: Revisiting Target Construction in LLM Parameter Editing cites Memory-Based Model Editing at Scale
- From Backward Spreading to Forward Replay: Revisiting Target Construction in LLM Parameter Editing cites Fast Model Editing at Scale
Cited by top-tier papers10
- Rethinking Residual Distribution in Locate-then-Edit Model EditingXiaopeng Li, Shangwen Wang, Shasha Li, Shezheng Song et al.NeurIPS 2025 · 9 citations
- From Backward Spreading to Forward Replay: Revisiting Target Construction in LLM Parameter EditingWei Liu, Hongkai Liu, Zhiying Deng, Yee-Whye Teh et al.ICML 2026 · 3 citations
- On the Superimposed Noise Accumulation Problem in Sequential Knowledge Editing of Large Language ModelsDing Cao, Yuchen Cai, Yuqing Huang, Xuesong He et al.AAAI 2026
- Editing the Moving World: Model Editing for Video LLMsQian Zhang, Xinye Li, Xiaokai Wu, Junhao Xu et al.ACL 2026
- CAKE: Causal-Guided Adaptive Knowledge Editing for LLMsShuxin Liu, Jianhao ZhangACL 2026
Builds on19
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- Locating and Editing Factual Associations in GPTKevin Meng, David Bau, Alex Andonian, Yonatan BelinkovNeurIPS 2022 · 3,415 citations
- Fast Model Editing at ScaleEric Mitchell, Charles Lin, Antoine Bosselut, Chelsea Finn et al.ICLR 2022 · 527 citations
- Memory-Based Model Editing at ScaleEric Mitchell, Charles Lin, Antoine Bosselut, Christopher D. Manning et al.ICML 2022 · 520 citations
- Can We Edit Factual Knowledge by In-Context Learning?Ce Zheng, Lei Li, Qingxiu Dong, Yuxuan Fan et al.EMNLP 2023 · 40 citations
Related papers
- AnyEdit++: Adaptive Long-Form Knowledge Editing via Bayesian SurpriseBowen Tian, Caixue He, Jiemin Wu, Jingying Wang et al.ICML 2026
- Everything is Editable: Extend Knowledge Editing to Unstructured Data in Large Language ModelsJingcheng Deng, Zihao Wei, Liang Pang, Hanxing Ding et al.ICLR 2025
- Resolving UnderEdit & OverEdit with Iterative & Neighbor-Assisted Model EditingBhiman Kumar Baghel, Emma Jordan, Zheyuan Ryan Shi, Xiang Lorraine LiEMNLP Findings 2025 · 1 citation
- AdaEdit: Advancing Continuous Knowledge Editing For Large Language ModelsQi Li, Xiaowen ChuACL 2025
- One for All: Update Parameterized Knowledge Across Multiple Models with Once EditWeitao Ma, Xiyuan Du, Xiaocheng Feng, Lei Huang et al.ACL 2025
