atlas

Research map / Large language models / Retrieval and knowledge

AnyEdit: Edit Any Knowledge Encoded in Language Models

ICML 2025 · Large language models › Retrieval and knowledge · approach: Knowledge editing in LLMs · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes AnyEdit, an autoregressive model-editing paradigm that splits long-form knowledge into chunks and iteratively edits the last token of each chunk, plus a new EditEverything benchmark for long, diverse-format knowledge.

Problem

Existing locate-then-edit model editing methods rely on single-token hidden-state edits and fail on long-form, diverse-formatted knowledge (poetry, code, math), which has low original probability and long outputs.

Approach

Decompose the target output into sequential chunks and iteratively locate and edit the last token of each chunk conditioned on the input and previously edited chunks, grounded in the chain rule of mutual information; it also works as a plug-in for existing locate-then-edit methods.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use AnyEdit instead of single-token editingLlama3-8B-Instruct · UnKEBench Ori.BERT Score: 98.34±0.15 -> 97.76±0.11Hurt
Use AnyEdit instead of single-token editingLlama3-8B-Instruct · AKEW Counterfact Ori.BERT Score: 98.62±0.14 -> 97.76±0.14Hurt
Use AnyEdit instead of single-token editingLlama3-8B-Instruct · AKEW MQUAKE Ori.BERT Score: 98.33±0.13 -> 96.33±0.21Hurt
Use AnyEdit instead of single-token editingQwen2.5-7B-Instruct · UnKEBench and AKEWBERT ScoreHelped
Use AnyEdit for paraphrase questionsLlama3-8B-Instruct · UnKEBench Para.BERT Score: +32%Helped
Use AnyEdit for paraphrase questionsLlama3-8B-Instruct · UnKEBench Para.ROUGE-L: +56%Helped
Use AnyEdit for diverse-formatted knowledge editingmodel editing methods · EditEverything CodeROUGE-L: +60.58%Helped
Use AnyEdit for diverse-formatted knowledge editingmodel editing methods · EditEverything NewsROUGE-L: +52.38%Helped
Add autoregressive AnyEdit editing to existing methodsMEMIT, AlphaEdit, and UnKE · UnKEBenchediting performanceHelped
Add autoregressive AnyEdit editing to existing methodsMEMIT, AlphaEdit, and UnKE · Counterfact, MQUAKE, and UnKEBenchediting time: 24.7%Hurt
Increase chunk size beyond a certain threshold (ablation)AnyEdit · long-form knowledge editingediting performanceHurt
Replace the AnyEdit update with full-layer gradient descent (AnyEdit*)Llama3-8B-Instruct · UnKEBench and AKEWediting performanceHelped

Surprising findings

Limitations

Experimental setup

Datasets: UnKEBench AKEW Orca-Math MBPP Camel-Chemistry Wikipedia

Benchmarks: UnKEBench AKEW (Counterfact) AKEW (MQUAKE) EditEverything

Metrics: BERT Score ROUGE-L editing time per sample

Baselines: FT-L MEND ROME MEMIT AlphaEdit UnKE

Builds on: ROME MEMIT AlphaEdit UnKE

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy