DynEdit: Dynamic Entropy-Guided Sequential Editing for Large Language Models
Organizations: Beijing University of Posts and Telecommunications · Peking University · AMAP, Alibaba Group · Chongqing University of Posts and Telecommunications
Abstract
Knowledge editing aims to update outdated or incorrect knowledge in large language models without full retraining. Existing parameter-editing methods remain limited for long-sequence knowledge: single-point editors provide insufficient coverage for extended targets, while fixed chunk-based editors distribute editing effort uniformly across rigid predefined windows, failing to prioritize difficult, information-dense tokens. In this work, we show that token entropy is closely associated with both editing difficulty and semantic importance: high-entropy regions are harder to edit and often contain key factual content. Motivated by this observation, we propose DynEdit, a dynamic framework for long-sequence knowledge editing. DynEdit uses token-level entropy to guide non-uniform sliding, increasing the coverage of difficult high-entropy regions, and further applies entropy-guided token-level optimization to strengthen updates on information-dense tokens within each editing window. Experiments on three benchmarks and two backbone models show that DynEdit consistently outperforms competitive baselines across diverse long-form editing settings, achieving gains of up to +14.0 BLEU points on challenging paraphrase queries and near-saturated semantic scores on several diverse knowledge domains.
Figures & tables
| Datasets | UnKE | CounterFact | MQuAKE | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Original | Paraphrase | Original | Paraphrase | Original | ||||||||||||
| Base Model | Methods | BLEU | BERT | R-L | BLEU | BERT | R-L | BLEU | BERT | R-L | BLEU | BERT | R-L | BLEU | BERT | R-L |
| Pre-edited | 20.09 | 71.38 | 25.49 | 19.8 | 71.29 | 25.31 | 13.89 | 68.33 | 18.76 | 15.81 | 42.22 | 13.18 | 18.84 | 69.79 | 21.16 | |
| FT-L [ 17 ] | 9.83 | 40.31 | 11.39 | 3.24 | 37.29 | 8.51 | 6.53 | 42.89 | 13.12 | 4.34 | 31.44 | 5.24 | 7.71 | 45.87 | 12.99 | |
| MEND [ 29 ] | 21.08 | 68.73 | 29.24 | 16.63 | 64.11 | 28.05 | 14.83 | 68.81 | 30.30 | 10.63 | 41.56 | 10.95 | 13.37 | 67.85 | 22.48 | |
| ROME [ 27 ] | 23.62 | 72.16 | 23.74 | 18.8 | 70.54 | 22.39 | 13.24 | 72.90 | 25.86 | 17.65 | 43.59 | 12.37 | 26.03 | 70.10 | 21.07 | |
| Base Model | Method | math | code | poetry | news | chemistry | math | code | poetry | news | chemistry |
|---|---|---|---|---|---|---|---|---|---|---|---|
| RoME | 82.34 | 72.63 | 65.45 | 69.08 | 80.86 | 66.7 | 58.17 | 21.83 | 28.87 | 69.97 | |
| MEMIT | 96.67 | 84.3 | 76.78 | 83.63 | 93.6 | 77.36 | 60.03 | 20.8 | 33.9 | 72.29 | |
| AlphaEdit | 96.41 | 83.28 | 76.13 | 80.1 | 93.16 | 77.36 | 58.7 | 24.31 | 31.52 | 65.11 | |
| AnyEdit | 98.22 | 94.08 | 91.93 | 95.6 | 99.07 | 91.72 | 92.63 | 73.73 | 88.31 | 92.53 | |
| Qwen2.5-7B | DynEdit | 99.73 | 99.11 | 98.13 | 98.98 | 99.58 | 99.07 | 98.78 | 96.39 | 97.37 | 99.23 |
| RoME | 79.82 | 70.47 | 58.83 | 64.49 | 70.6 | 35.23 | 39.13 | 24.5 | 22.31 | 31.77 |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Lexical Similarity | Semantic Similarity | Sub Questions | ||||
| Method | BLEU | ROUGE-1 | ROUGE-2 | ROUGE-L | BERT Score | ROUGE-L |
| Based on Llama3-8B-Instruct | ||||||
| UnKE | 93.56 / 78.09 | 93.61 / 79.26 | 91.42 / 71.73 | 93.33 / 78.42 | 98.34 / 93.38 | 37.87 |
| UnKE+Any | 99.54 / 72.96 | 99.48 / 78.24 | 99.29 / 70.92 | 99.62 / 77.48 | 99.79 / 91.63 | 38.89 |
| UnKE+OUR | 99.19 / 79.94 | 99.89 / 82.27 | 99.01 / 75.46 | 99.80 / 81.57 | 99.37 / 96.71 | 42.7 |
| MEMIT | 25.57 / 22.88 | 32.67 / 30.75 | 14.51 / 12.37 | 30.49 / 28.65 | 76.21 / 74.25 | 22.56 |
Knowledge Editing
Knowledge editing studies how to update specific facts or behaviors in language models while preserving unrelated knowledge and capabilities.
See all 84 papers