andyjzhao commited on
Commit
aec27ff
·
verified ·
1 Parent(s): d2131df

Upload folder using huggingface_hub

Browse files
icml26/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1/appendix_chunks.jsonl ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0062", "section": "A.1. Parameter-Efficient Fine-Tuning", "page_start": 11, "page_end": 11, "type": "Text", "text": "Parameter-efficient fine-tuning (PEFT) approaches adjust pretrained LLMs by incorporating lightweight modules, while keeping the base model frozen. Optimization is performed solely through updates to these lightweight components. Representative approaches include Adapters (Houlsby et al., 2019; Zaken et al., 2021) , Prompts (Li & Liang, 2021; Jia et al., 2022) , and Low-Rank Adaptation (LoRA) (Hu et al., 2022; Valipour et al., 2022) . Adapters are compact bottleneck modules located after transformer blocks; Prompts are learnable vectors prepended to the input sequence; and LoRA uses low-rank decomposition matrices to modify model weights during training. Recent progress explores applying PEFT to lifelong model editing, where the base model remains unchanged and new parameter modules are introduced to manage sequential edits over time.", "source": "marker_v2", "marker_block_id": "/page/10/Text/5"}
2
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0063", "section": "A.2. Routing Mechanisms in Modular Language Models", "page_start": 11, "page_end": 11, "type": "Text", "text": "When multiple modular components (e.g., LoRA modules) are present, a key challenge lies in routing input queries to the appropriate subset of modules during inference. Recent work explore various strategies to support dynamic module selection. MELO (Yu et al., 2024) introduces a clustering mechanism to assign edits to clusters based on input hidden states. During inference, the nearest cluster center is used to retrieve relevant LoRA modules. However, cluster centers are inevitably updated during the sequential editing, which may lead to semantic drift and incorrect matching. As shown in Fig .2, the number of incorrect matches increases significantly as the number of cluster centre updating increases, which leads to a deterioration in model performance. EL-DER (Li et al., 2025) employs MoE approach in which a learnable neural network scores a set of LoRA modules, activating the top-k modules. This strategy offers parameter efficiency but introduces soft entanglement in routing, and due to shared module usage, new edits may interfere with or overwrite previously edits. Furthermore, both strategies rely on auxiliary routing networks, adding architectural complexity and computational overhead. They also offer limited control over edit selection, making rollback and deletion of edits challenging.", "source": "marker_v2", "marker_block_id": "/page/10/Text/7"}
3
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0064", "section": "B. Additional Experiment Details", "page_start": 11, "page_end": 11, "type": "Text", "text": "Benchmarks We evaluate the performance of the model in three representative tasks: Document Classification, Question Answering(QA), and Hallucination Correction. Among them, the document classification task is performed based", "source": "marker_v2", "marker_block_id": "/page/10/Text/9"}
4
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0065", "section": "B. Additional Experiment Details", "page_start": 11, "page_end": 11, "type": "Text", "text": "on the SCOTUS dataset (Chalkidis et al., 2022) . SCOTUS is a subset of Fairlex, which collects documents from the U.S. Supreme Court and classifies them into 11 topics. In practice, the topics corresponding to the documents will change, so it is necessary to update the model knowledge to classify the documents into new topics. We divide SCO-TUS into an edit set and an upstream set, where models are edited on the edit set and the upstream set is not involved in editing, only testing. The question answering task is then conducted on the zsRE dataset (Levy et al., 2017) , and NQ datasets (Kwiatkowski et al., 2019) serves as upstream dataset. Specifically, we perform editing in zsRE, and the NQ dataset is again not involved in editing, only testing. For hallucination correction, we adopted the framework introduced by (Manakul et al., 2023) , aiming to address the tendency of GPT models to generate factually inconsistent outputs. Following GRACE (Hartvigsen et al., 2023) , we employ SelfCheckGPT (Manakul et al., 2023) for editing. SelfCheckGPT is a Wikipedia-style biography that is first generated using GPT3 on 256 topics, e.g., \"Bon Jovi\", and then checked to see which of the generated biographies are hallucinations. SelfCheckGPT contains 1392 hallucinatory sentences to be edited, which serves as the editing set, and 516 already correct sentences as the retention set, which is used to measure model's post-edit perplexity on the already correct sentences. WebText (Nakano et al., 2021) is used as the upstream set, remaining unedited and reserved for testing. In addition to this, in order to test the performance of the model approach with different sized models as well as datasets, we conducted hallucination correction experiments on Uniedit (Chen et al., 2025) and WikiBigEdit (Thede et al., 2025) to evaluate the generalization performance of the models. Uniedit is based on open domain knowledge covering information from 25 common domains in 5 major categories. The WikiBigEdit dataset is based on regular updates of the knowledge graph in Wikipedia and contains 5 months of extensive factual editing and improvement. The Uniedit and WikiBigEdit datasets already have edit set, retention set and upstream set that can be used directly for hallucination correction tasks.", "source": "marker_v2", "marker_block_id": "/page/10/Text/10"}
5
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0066", "section": "B. Additional Experiment Details", "page_start": 11, "page_end": 11, "type": "Text", "text": "Training details Following (Hartvigsen et al., 2023) , we employ BERT, T5-small, and GPT2-XL as the base models for the three tasks—document classification, question answering, and hallucination correction, respectively. Among these, BERT and T5-small are the official pre-trained models, while GPT2-XL is obtained from (Hartvigsen et al., 2023) which finetuned from the official release (Hartvigsen et al., 2023) . For training, we adopt Stochastic Gradient Descent (SGD) as the optimizer with a cosine decay learning rate schedule. The learning rates is 0.05, training epochs", "source": "marker_v2", "marker_block_id": "/page/10/Text/11"}
6
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0067", "section": "B. Additional Experiment Details", "page_start": 12, "page_end": 12, "type": "Text", "text": "is 40, and LoRA rank is 4. In the three tasks, we edit the models and the edited layers of the individual model edits are shown in the Tab .6.", "source": "marker_v2", "marker_block_id": "/page/11/Text/1"}
7
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0068", "section": "B. Additional Experiment Details", "page_start": 12, "page_end": 12, "type": "TableGroup", "text": "Table 6. Edited layers of different model Model Edit layer BERT bert.encoder.layer.9.output.dense bert.encoder.layer.10.output.dense bert.encoder.layer.11.output.dense T5-Small encoder.block.5.layer.1.DenseReluDense.wi 0 encoder.block.5.layer.1.DenseReluDense.wi 1 encoder.block.5.layer.1.DenseReluDense.wo encoder.block.6.layer.1.DenseReluDense.wi 0 encoder.block.6.layer.1.DenseReluDense.wi 1 encoder.block.6.layer.1.DenseReluDense.wo GPT2-XL transformer.h.36.mlp.c fc transformer.h.37.mlp.c fc", "source": "marker_v2", "marker_block_id": "/page/11/TableGroup/239"}
icml26/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1/appendix_text_v3.txt ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [p. 11 | section: A.1. Parameter-Efficient Fine-Tuning | type: Text]
2
+ Parameter-efficient fine-tuning (PEFT) approaches adjust pretrained LLMs by incorporating lightweight modules, while keeping the base model frozen. Optimization is performed solely through updates to these lightweight components. Representative approaches include Adapters (Houlsby et al., 2019; Zaken et al., 2021) , Prompts (Li & Liang, 2021; Jia et al., 2022) , and Low-Rank Adaptation (LoRA) (Hu et al., 2022; Valipour et al., 2022) . Adapters are compact bottleneck modules located after transformer blocks; Prompts are learnable vectors prepended to the input sequence; and LoRA uses low-rank decomposition matrices to modify model weights during training. Recent progress explores applying PEFT to lifelong model editing, where the base model remains unchanged and new parameter modules are introduced to manage sequential edits over time.
3
+
4
+ [p. 11 | section: A.2. Routing Mechanisms in Modular Language Models | type: Text]
5
+ When multiple modular components (e.g., LoRA modules) are present, a key challenge lies in routing input queries to the appropriate subset of modules during inference. Recent work explore various strategies to support dynamic module selection. MELO (Yu et al., 2024) introduces a clustering mechanism to assign edits to clusters based on input hidden states. During inference, the nearest cluster center is used to retrieve relevant LoRA modules. However, cluster centers are inevitably updated during the sequential editing, which may lead to semantic drift and incorrect matching. As shown in Fig .2, the number of incorrect matches increases significantly as the number of cluster centre updating increases, which leads to a deterioration in model performance. EL-DER (Li et al., 2025) employs MoE approach in which a learnable neural network scores a set of LoRA modules, activating the top-k modules. This strategy offers parameter efficiency but introduces soft entanglement in routing, and due to shared module usage, new edits may interfere with or overwrite previously edits. Furthermore, both strategies rely on auxiliary routing networks, adding architectural complexity and computational overhead. They also offer limited control over edit selection, making rollback and deletion of edits challenging.
6
+
7
+ [p. 11 | section: B. Additional Experiment Details | type: Text]
8
+ Benchmarks We evaluate the performance of the model in three representative tasks: Document Classification, Question Answering(QA), and Hallucination Correction. Among them, the document classification task is performed based
9
+
10
+ [p. 11 | section: B. Additional Experiment Details | type: Text]
11
+ on the SCOTUS dataset (Chalkidis et al., 2022) . SCOTUS is a subset of Fairlex, which collects documents from the U.S. Supreme Court and classifies them into 11 topics. In practice, the topics corresponding to the documents will change, so it is necessary to update the model knowledge to classify the documents into new topics. We divide SCO-TUS into an edit set and an upstream set, where models are edited on the edit set and the upstream set is not involved in editing, only testing. The question answering task is then conducted on the zsRE dataset (Levy et al., 2017) , and NQ datasets (Kwiatkowski et al., 2019) serves as upstream dataset. Specifically, we perform editing in zsRE, and the NQ dataset is again not involved in editing, only testing. For hallucination correction, we adopted the framework introduced by (Manakul et al., 2023) , aiming to address the tendency of GPT models to generate factually inconsistent outputs. Following GRACE (Hartvigsen et al., 2023) , we employ SelfCheckGPT (Manakul et al., 2023) for editing. SelfCheckGPT is a Wikipedia-style biography that is first generated using GPT3 on 256 topics, e.g., "Bon Jovi", and then checked to see which of the generated biographies are hallucinations. SelfCheckGPT contains 1392 hallucinatory sentences to be edited, which serves as the editing set, and 516 already correct sentences as the retention set, which is used to measure model's post-edit perplexity on the already correct sentences. WebText (Nakano et al., 2021) is used as the upstream set, remaining unedited and reserved for testing. In addition to this, in order to test the performance of the model approach with different sized models as well as datasets, we conducted hallucination correction experiments on Uniedit (Chen et al., 2025) and WikiBigEdit (Thede et al., 2025) to evaluate the generalization performance of the models. Uniedit is based on open domain knowledge covering information from 25 common domains in 5 major categories. The WikiBigEdit dataset is based on regular updates of the knowledge graph in Wikipedia and contains 5 months of extensive factual editing and improvement. The Uniedit and WikiBigEdit datasets already have edit set, retention set and upstream set that can be used directly for hallucination correction tasks.
12
+
13
+ [p. 11 | section: B. Additional Experiment Details | type: Text]
14
+ Training details Following (Hartvigsen et al., 2023) , we employ BERT, T5-small, and GPT2-XL as the base models for the three tasks—document classification, question answering, and hallucination correction, respectively. Among these, BERT and T5-small are the official pre-trained models, while GPT2-XL is obtained from (Hartvigsen et al., 2023) which finetuned from the official release (Hartvigsen et al., 2023) . For training, we adopt Stochastic Gradient Descent (SGD) as the optimizer with a cosine decay learning rate schedule. The learning rates is 0.05, training epochs
15
+
16
+ [p. 12 | section: B. Additional Experiment Details | type: Text]
17
+ is 40, and LoRA rank is 4. In the three tasks, we edit the models and the edited layers of the individual model edits are shown in the Tab .6.
18
+
19
+ [p. 12 | section: B. Additional Experiment Details | type: TableGroup]
20
+ Table 6. Edited layers of different model Model Edit layer BERT bert.encoder.layer.9.output.dense bert.encoder.layer.10.output.dense bert.encoder.layer.11.output.dense T5-Small encoder.block.5.layer.1.DenseReluDense.wi 0 encoder.block.5.layer.1.DenseReluDense.wi 1 encoder.block.5.layer.1.DenseReluDense.wo encoder.block.6.layer.1.DenseReluDense.wi 0 encoder.block.6.layer.1.DenseReluDense.wi 1 encoder.block.6.layer.1.DenseReluDense.wo GPT2-XL transformer.h.36.mlp.c fc transformer.h.37.mlp.c fc
icml26/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1/assets.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "filename": "_page_0_Figure_9.jpeg",
4
+ "path": "data/processed_papers/icml26_20260429_1952_duequeue/marker_raw/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1/marker_markdown/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1/_page_0_Figure_9.jpeg",
5
+ "bytes": 17695,
6
+ "width": 670,
7
+ "height": 402,
8
+ "aspect_ratio": 1.6666666666666667,
9
+ "keep": true,
10
+ "reject_reason": null,
11
+ "model_path": "assets/_page_0_Figure_9.jpeg"
12
+ },
13
+ {
14
+ "filename": "_page_1_Figure_3.jpeg",
15
+ "path": "data/processed_papers/icml26_20260429_1952_duequeue/marker_raw/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1/marker_markdown/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1/_page_1_Figure_3.jpeg",
16
+ "bytes": 27018,
17
+ "width": 660,
18
+ "height": 379,
19
+ "aspect_ratio": 1.7414248021108178,
20
+ "keep": true,
21
+ "reject_reason": null,
22
+ "model_path": "assets/_page_1_Figure_3.jpeg"
23
+ },
24
+ {
25
+ "filename": "_page_2_Figure_1.jpeg",
26
+ "path": "data/processed_papers/icml26_20260429_1952_duequeue/marker_raw/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1/marker_markdown/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1/_page_2_Figure_1.jpeg",
27
+ "bytes": 105408,
28
+ "width": 1363,
29
+ "height": 649,
30
+ "aspect_ratio": 2.100154083204931,
31
+ "keep": true,
32
+ "reject_reason": null,
33
+ "model_path": "assets/_page_2_Figure_1.jpeg"
34
+ },
35
+ {
36
+ "filename": "_page_5_Figure_2.jpeg",
37
+ "path": "data/processed_papers/icml26_20260429_1952_duequeue/marker_raw/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1/marker_markdown/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1/_page_5_Figure_2.jpeg",
38
+ "bytes": 57599,
39
+ "width": 1263,
40
+ "height": 346,
41
+ "aspect_ratio": 3.6502890173410405,
42
+ "keep": true,
43
+ "reject_reason": null,
44
+ "model_path": "assets/_page_5_Figure_2.jpeg"
45
+ },
46
+ {
47
+ "filename": "_page_5_Figure_4.jpeg",
48
+ "path": "data/processed_papers/icml26_20260429_1952_duequeue/marker_raw/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1/marker_markdown/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1/_page_5_Figure_4.jpeg",
49
+ "bytes": 17086,
50
+ "width": 668,
51
+ "height": 520,
52
+ "aspect_ratio": 1.2846153846153847,
53
+ "keep": true,
54
+ "reject_reason": null,
55
+ "model_path": "assets/_page_5_Figure_4.jpeg"
56
+ }
57
+ ]
icml26/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1/assets/_page_0_Figure_9.jpeg ADDED

Git LFS Details

  • SHA256: ded72ed4eb4ffca633c1282edd281763c8b2816b922555b2727836a7489f51b2
  • Pointer size: 130 Bytes
  • Size of remote file: 17.7 kB
icml26/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1/assets/_page_1_Figure_3.jpeg ADDED

Git LFS Details

  • SHA256: 5ec18a6dc09869c28154fd1c5e0aa8d05065bffa46cbabdcdbfd18562cea5627
  • Pointer size: 130 Bytes
  • Size of remote file: 27 kB
icml26/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1/assets/_page_2_Figure_1.jpeg ADDED

Git LFS Details

  • SHA256: 5e230456ba14b0e36abc3aeaa8192a7eb484ec58e59eec3f7e1c5c2432dada04
  • Pointer size: 131 Bytes
  • Size of remote file: 105 kB
icml26/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1/assets/_page_5_Figure_2.jpeg ADDED

Git LFS Details

  • SHA256: 0bd5d852945bb60745f2b5a5487df7854b71af2129626f716e9e33f05a9acd17
  • Pointer size: 130 Bytes
  • Size of remote file: 57.6 kB
icml26/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1/assets/_page_5_Figure_4.jpeg ADDED

Git LFS Details

  • SHA256: a129f79b7ef06e9e846febbbfb733ab3937429c8bc8b3d1e82adbe187594c195
  • Pointer size: 130 Bytes
  • Size of remote file: 17.1 kB
icml26/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1/chunks_v3_anonymized.jsonl ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0000", "section": "Abstract", "page_start": 1, "page_end": 1, "type": "Text", "text": "The dynamic evolution of real-world necessitates model editing within Large Language Models. While existing methods explore modular isolation or parameter-efficient strategies, they still suffer from semantic drift or knowledge forgetting due to continual updating. To address these challenges, we propose SoLA, a Semantic routingbased LoRA framework for lifelong model editing. In SoLA, each edit is encapsulated as an independent LoRA module, which is frozen after training and mapped to input by semantic routing, allowing dynamic activation of LoRA modules via semantic matching. This mechanism avoids semantic drift caused by cluster updating and mitigates catastrophic forgetting from parameter sharing. More importantly, SoLA supports precise revocation of specific edits by removing key from semantic routing, which restores model's original behavior. To our knowledge, this reversible rollback editing capability is the first to be achieved in existing literature. Furthermore, SoLA integrates decision-making process into edited layer, eliminating the need for auxiliary routing networks and enabling end-to-end decision-making process. Extensive experiments demonstrate that SoLA effectively learns and retains edited knowledge, achieving accurate, efficient, and reversible lifelong model editing.", "source": "marker_v2", "marker_block_id": "/page/0/Text/4"}
2
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0001", "section": "1. Introduction", "page_start": 1, "page_end": 1, "type": "Text", "text": "Large language models (LLMs) have demonstrated remarkable capabilities in the field of natural language processing, attracting the attention of numerous researchers (Radford et al., 2019; Brown et al., 2020; Achiam et al., 2023; Tou vron et al., 2023) . However, LLMs also face severe challenges, including hallucinations (Huang et al., 2025) , bi-", "source": "marker_v2", "marker_block_id": "/page/0/Text/6"}
3
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0002", "section": "1. Introduction", "page_start": 1, "page_end": 1, "type": "FigureGroup", "text": "Figure 1. Comparison of trainable parameters and ERR accuracy between SoLA (Ours) and other methods. All experiments are conducted on Scotus datasets with the same backbone.", "source": "marker_v2", "marker_block_id": "/page/0/FigureGroup/467"}
4
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0003", "section": "1. Introduction", "page_start": 1, "page_end": 1, "type": "Text", "text": "ases (Hartvigsen et al., 2022) , and the generation of harmful content (De Cao et al., 2021) . Moreover, the dynamic nature of real-world knowledge requires the continuous updating of specific information in LLMs (Lazaridou et al., 2021) . Re-training these models from scratch is both expensive and time-consuming (Biderman et al., 2023) . In this scenario, the demand for model editing is increasing with aims to modify specific knowledge in the training model continuously without re-training the model or affecting its performance on unrelated inputs, which is known as lifelong model editing (Hartvigsen et al., 2022; Yao et al., 2023; Yu et al., 2024) .", "source": "marker_v2", "marker_block_id": "/page/0/Text/11"}
5
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0004", "section": "1. Introduction", "page_start": 1, "page_end": 1, "type": "Text", "text": "The lifelong model editing aims to continuously update the model to adapt to the constantly changing world. However, most of the existing model editing methods are designed for single, isolated editing (Mitchell et al., 2021; Meng et al., 2022a) . When applied to a continuous environment, these methods often lead to catastrophic forgetting of the previously learned knowledge in the LLMs, resulting in performance degradation and reduced model reliability (Yao et al., 2023; Gu et al., 2024) . To solve this problem, recent methods propose freezing the original model parameters and introducing lightweight trainable modules to inject new knowledge. These methods usually retain most of the model's knowledge by keeping the base parameters fixed and combining the learnable modules for specific task updates. For example, Melo (Yu et al., 2024) determines the clustering centres of editors by building a neuron index", "source": "marker_v2", "marker_block_id": "/page/0/Text/12"}
6
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0005", "section": "1. Introduction", "page_start": 2, "page_end": 2, "type": "Text", "text": "and dynamically updates its semantic representation based on the distance from the clustering centres. ELDER (Li et al., 2025) adopts the Mixture-of-Experts (MoE) approach, assigning scores to each LoRA expert through a set of learnable LoRA allocation codes and selecting the top-k LoRA for calculation.", "source": "marker_v2", "marker_block_id": "/page/1/Text/2"}
7
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0006", "section": "1. Introduction", "page_start": 2, "page_end": 2, "type": "FigureGroup", "text": "Figure 2. Number of mismatches in LoRA allocation with ERR/TRR accuracy in MELO. All experiments are conducted on Scotus datasets with the same backbone.", "source": "marker_v2", "marker_block_id": "/page/1/FigureGroup/464"}
8
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0007", "section": "1. Introduction", "page_start": 2, "page_end": 2, "type": "Text", "text": "Although these methods show potential in improving parameter efficiency and reducing interference, they face inherent limitations when applied to lifelong model editing. Specifically, MELO (Yu et al., 2024) improves module separability through semantic clustering, but its clustering centers are updated during the editing process, which may lead to semantic drift and module matching errors. ELDER (Li et al., 2025) employ MoE and selects the top-k routes to activate each editing subset, although this strategy has high parameter efficiency, shared and continuously updated parameters can lead to catastrophic forgetting - new editing may overwrite or interfere with existing editing.", "source": "marker_v2", "marker_block_id": "/page/1/Text/5"}
9
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0008", "section": "1. Introduction", "page_start": 2, "page_end": 2, "type": "Text", "text": "To address these limitations, we propose SoLA, a Semantic routing-based LoRA framework for reversible lifelong model editing. In SoLA, we allocate an independent LoRA module for each edit and establish semantic routing to record the mapping relationship between LoRA module and the input semantic representation. During editing, the LoRA module fully learns for the current task and then remains frozen to retain the learned knowledge. The corresponding key is also not updated. During inference, the semantic representation of the input is calculated, and the corresponding LoRA module is dynamically activated through semantic routing. Since the LoRA module and the semantic representation have not been updated, we fundamentally avoid catastrophic forgetting and semantic drift problems caused by continual updating. At the same time, each edit only requires training for the current LoRA module, significantly reducing the computational resource consumption. As shown in Fig .1, SoLA achieves optimal performance with only 0.08M additional parameters, sig-", "source": "marker_v2", "marker_block_id": "/page/1/Text/6"}
10
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0009", "section": "1. Introduction", "page_start": 2, "page_end": 2, "type": "Text", "text": "nificantly outperforming previous methods, highlighting SoLA's exceptional parameter efficiency and editing accuracy.", "source": "marker_v2", "marker_block_id": "/page/1/Text/7"}
11
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0010", "section": "1. Introduction", "page_start": 2, "page_end": 2, "type": "Text", "text": "More importantly, by removing the semantic key from the mapping memory table, we can precisely revoke specific edits, allowing the model to recover its original behavior without re-training. This means we can freely add and delete edits, and truly achieve controllable rollback and restoration of editing. To our knowledge, this is the first time that controllable rollback of editing has been achieved in existing literature. Moreover, existing works usually require introducing auxiliary routing network outside the edited layer to determine whether to enable the LoRA module. In this paper, we propose a master decision-making mechanism that aggregates the decision-making process into the edited layer, avoiding the reliance on auxiliary routing network and achieving an end-to-end decision-making process.", "source": "marker_v2", "marker_block_id": "/page/1/Text/8"}
12
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0011", "section": "1. Introduction", "page_start": 2, "page_end": 2, "type": "Text", "text": "Extensive experiments validate the effectiveness of our approach. Our main contributions are summarized as follows:", "source": "marker_v2", "marker_block_id": "/page/1/Text/9"}
13
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0012", "section": "1. Introduction", "page_start": 2, "page_end": 2, "type": "ListGroup", "text": "We propose SoLA, a novel framework for reversible lifelong model editing, which incorporates a controllable LoRA mechanism guided by semantic routing. After each edit, both the LoRA modules and the corresponding keys in the mapping memory are frozen, effectively mitigating catastrophic forgetting and semantic drift. Moreover, only the currently active LoRA modules are trained during editing, significantly reducing computational overhead.(Fig .1) . We employs semantic routing to establish a precise mapping between LoRA modules and semantic representations. By removing the associated key, any specific edit can be precisely revoked, enabling flexible addition and deletion of edits. we propose a master decision-making mechanism that aggregates the decision-making process into the edited layer, avoiding the reliance on an auxiliary routing network and achieving an end-to-end decision-making process.", "source": "marker_v2", "marker_block_id": "/page/1/ListGroup/465"}
14
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0013", "section": "2.1. Model Editing", "page_start": 2, "page_end": 2, "type": "Text", "text": "Model Editing aims to update specific knowledge within LLMs while preserving their previous knowledge. Current model editing methods can be broadly categorized into three paradigms: Meta-Learning methods, Locate-then-Edit methods, and Memory-Based methods. Meta-Learning Methods employ a hypernetwork to predict the necessary gradients for editing and apply these gradients to the base model to achieve the update (Mitchell et al., 2021) . However, this", "source": "marker_v2", "marker_block_id": "/page/1/Text/15"}
15
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0014", "section": "2.1. Model Editing", "page_start": 3, "page_end": 3, "type": "FigureGroup", "text": "Figure 3. Main framework of our method. a) indicates the edited layer in model, where we retain the transformer block of base model frozen and add trainable LoRA module to the edited layer of base model. b) shows the editing process, where every edit will be assigned LoRA module and the query of input will be mapped to assigned LoRA module. c) presents the matching process between query of input and LoRA module in reference. Colour green indicates trainable, while color grey is frozen.", "source": "marker_v2", "marker_block_id": "/page/2/FigureGroup/530"}
16
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0015", "section": "2.1. Model Editing", "page_start": 3, "page_end": 3, "type": "Text", "text": "approach typically requires additional data for training the hypernetwork. Locate-then-Edit methods first identify the neurons most critical for the current input via minor perturbations and then directly modify these neurons to update the model's knowledge (Meng et al., 2022a; b) . While effective, these methods are often cumbersome and exhibit limitations when handling a large volume of simultaneous knowledge updates. Memory-Based methods store the information associated with edits in an buffer, which acts as a patch model augmenting the original model (Mitchell et al., 2022) . A significant drawback is that each edit necessitates retraining, making it difficult to adapt to continuous editing scenarios, and the memory bank grows incrementally with each edit, leading to escalating storage overhead. Recent studies have also explored editing constraints to maintain model behavior stability. AlphaEdit (Fang et al., 2024) introduces a null-space constrained approach. It aims to apply edits more precisely by constraining changes to the null space of irrelevant knowledge.", "source": "marker_v2", "marker_block_id": "/page/2/Text/3"}
17
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0016", "section": "2.1. Model Editing", "page_start": 3, "page_end": 3, "type": "Text", "text": "However, these methods primarily address static editing, suitable for one-time modifications, and struggle to accommodate sequential editing demands over time. To address these limitations, GRACE (Hartvigsen et al., 2023) replace hidden states with vectors retrieved from a learned codebook. MELO (Yu et al., 2024) introduces a vector database and leverages a clustering mechanism to dynamically assign LoRA modules. ELDER (Li et al., 2025) adopts a MoE framework, where a learnable neural network weights shared LoRA modules. However, these approaches in-", "source": "marker_v2", "marker_block_id": "/page/2/Text/4"}
18
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0017", "section": "2.1. Model Editing", "page_start": 3, "page_end": 3, "type": "Text", "text": "evitably update the semantic representation in sequential edits, leading to semantic drift or knowledge forgetting.", "source": "marker_v2", "marker_block_id": "/page/2/Text/5"}
19
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0018", "section": "3.1. Preliminaries", "page_start": 3, "page_end": 3, "type": "Text", "text": "Lifelong Model Editing The purpose of lifelong model editing, as described by Grace (Hartvigsen et al., 2023) , is to make continual edits to the knowledge of the initial base model without degrading the performance of the base model and without negating previous edits. Consider an initial base model fbase, After n edits Dedit = {d1, ..., dn}, some of the model's knowledge is updated and model is transformed into fn, where d i = (x i , yi), For lifetime model editing, the edited model f n should be able to correctly output y within the edited inputs x ∈ Dedit, i.e., fn(xi) = y i . Furthermore, for inputs x ′ ∈/ Dedit that are semantically similar to the edited instances, such as rephrased sentences, the model f n is expected to generalize the updated knowledge appropriately, like fn(x ′ i ) = y i . Moreover, after editing, the model f n should also retain the previous knowledge of fbase, that is, for data samples x j ∈/ Dedit that have not been edited, there should be fn(x j ) = fbase(x j ) = y j .", "source": "marker_v2", "marker_block_id": "/page/2/Text/8"}
20
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0019", "section": "3.1. Preliminaries", "page_start": 3, "page_end": 3, "type": "Text", "text": "LoRA for Lifelong Model Editing Low-Rank Adaptation (LoRA) (Hu et al., 2022) is an efficient finetuning method for LLMs that optimizes model outputs by projecting features into a low-rank subspace. In the context of efficient LLM finetuning, LoRA modules are typically inserted into", "source": "marker_v2", "marker_block_id": "/page/2/Text/9"}
21
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0020", "section": "3.1. Preliminaries", "page_start": 4, "page_end": 4, "type": "Text", "text": "specific layers of the pre-trained model. During editing, the base LLM parameters W_0 \\in \\mathbb{R}^{d \\times k} remain frozen, while only the LoRA module \\Delta W \\in \\mathbb{R}^{d \\times k} is updated. The parameter update \\Delta W can be represented as a low-rank decomposition of the pretrained weight matrix. Specifically, \\Delta W is factorized into two smaller matrices A \\in \\mathbb{R}^{r \\times k} and B \\in \\mathbb{R}^{d \\times r} , such that \\Delta W = BA , where r \\ll \\min(d,k) and r is the LoRA rank. Given the original h = W_0 x , the forward propagation process is modified as:", "source": "marker_v2", "marker_block_id": "/page/3/Text/1"}
22
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0021", "section": "3.1. Preliminaries", "page_start": 4, "page_end": 4, "type": "Equation", "text": "\\boldsymbol{h} = W_0 \\boldsymbol{x} + \\Delta W \\boldsymbol{x} = W_0 \\boldsymbol{x} + B A \\boldsymbol{x} \\tag{1}", "source": "marker_v2", "marker_block_id": "/page/3/Equation/2"}
23
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0022", "section": "3.1. Preliminaries", "page_start": 4, "page_end": 4, "type": "Text", "text": "where A is initialized using a zero mean Gaussian distribution and B is initialized as a zero matrix. This approach significantly reduces the number of trainable parameters while maintaining the expressive power of the full-rank update.", "source": "marker_v2", "marker_block_id": "/page/3/Text/3"}
24
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0023", "section": "3.2. Cluster Updating in Lifelong Model Editing", "page_start": 4, "page_end": 4, "type": "Text", "text": "In the context of lifelong model editing, when multiple adapter modules are involved, the model needs to dynamically manage the association between edits and the corresponding adapter module. MELO addresses this by employing a clustering mechanism that assigns edits to clusters based on the hidden representations of the inputs, with cluster centres being continuously updated throughout editing. However, this continual updating of cluster centers alters their semantic representation, leading to semantic drift and incorrect module assignments. Moreover, repeated training of LoRA modules can result in forgetting previously acquired knowledge. Varying the cluster radius in MeLO results in a different number of generated cluster centres, thereby affecting the frequency of cluster centre updates. We record MeLO's performance under different numbers of cluster centre updates, as shown in Fig.2. The experiment is conducted on SCOTUS dataset. In Fig.2, the number of updates refers to the number of cluster centre updates during the editing process, and the number of mismatches indicates how many times, during inference, the retrieved LoRA module differs from the one assigned during editing. ERR and TRR represent the model's accuracy on the edited and unedited datasets, respectively, after all editing tasks are completed.", "source": "marker_v2", "marker_block_id": "/page/3/Text/5"}
25
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0024", "section": "3.2. Cluster Updating in Lifelong Model Editing", "page_start": 4, "page_end": 4, "type": "Text", "text": "As shown in the Fig.2, for the same datasets SCOTUS of editing, increasing the number of cluster centre updates leads to a rise in mismatches during inference, and a corresponding decline in model performance on both the edited and unedited datasets. This demonstrates that cluster centre updates can cause semantic drift, resulting in incorrect LoRA match, while repeated training of LoRA modules contributes to knowledge forgetting. Therefore, in SoLA, we freeze both the LoRA modules and their associated keys once the current task is completed. These components are", "source": "marker_v2", "marker_block_id": "/page/3/Text/6"}
26
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0025", "section": "3.2. Cluster Updating in Lifelong Model Editing", "page_start": 4, "page_end": 4, "type": "Text", "text": "no longer updated in subsequent edits, thereby maximizing knowledge retention across editing iterations.", "source": "marker_v2", "marker_block_id": "/page/3/Text/7"}
27
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0026", "section": "3.3. Semantic Routing-Based Controllable LoRA", "page_start": 4, "page_end": 4, "type": "Text", "text": "In the layer where the model needs to be edited, we keep the parameters of the original model frozen and insert the learnable LoRA module for editing, as shown in Fig.3 a). In SoLA, each editing operation is encapsulated within an independent LoRA module. During sequential editing, for a given editing task d_i = (\\boldsymbol{x}_i^m, \\boldsymbol{y}_i^m)_{m=1}^n , a dedicated LoRA module LoRA<sub>i</sub> is assigned. For each data instance \\boldsymbol{x}_i^m \\in d_i , the corresponding LoRA id i is recorded, and a semantic routing entry is established by associating LoRA module with a semantic key derived from the input representation, as shown in Fig.3 b). Following prior work(Hartvigsen et al., 2023), we use the hidden representation of the last token in the input sequence as the key e \\in \\mathbb{R}^d vector. During editing, the assigned LoRA module LoRA<sub>i</sub> will fully learn the task d_i , yielding the output:", "source": "marker_v2", "marker_block_id": "/page/3/Text/9"}
28
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0027", "section": "3.3. Semantic Routing-Based Controllable LoRA", "page_start": 4, "page_end": 4, "type": "Equation", "text": "h = h_0 + LoRA_i(x) (2)", "source": "marker_v2", "marker_block_id": "/page/3/Equation/10"}
29
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0028", "section": "3.3. Semantic Routing-Based Controllable LoRA", "page_start": 4, "page_end": 4, "type": "Text", "text": "where h_0 \\in \\mathbb{R}^{l \\times d} is the frozen base model representation, l is the sequence length, d is the hidden state dimension. At this stage, all other LoRA modules and the stored key vectors remain frozen. Upon completion of the editing process, the trained LoRA<sub>i</sub> module is frozen and will be stored with its associated key e_i as a fixed mapping for future reference. Neither the LoRA module nor the key will be updated in subsequent editing. Since only the current LoRA module is involved in training during each edit, SoLA significantly reduces the number of trainable parameters, as shown in Fig.1. Furthermore, freezing both the LoRA module and its corresponding key after editing prevents semantic drift and mitigates catastrophic forgetting, thereby maximizing knowledge retention. During inference, the hidden representation of the last token in the input sequence will serve as a query vector \\boldsymbol{q} \\in \\mathbb{R}^d from the input \\boldsymbol{x} and matches against the stored keys K \\in \\mathbb{R}^{N \\times d} , as shown in Fig.3 c). If a match is found, the corresponding LoRA module is retrieved from stored LoRA pool R \\in \\mathbb{R}^M and incorporated into the computation.", "source": "marker_v2", "marker_block_id": "/page/3/Text/11"}
30
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0029", "section": "3.4. Master Decision Mechanism", "page_start": 4, "page_end": 4, "type": "Text", "text": "During inference, existing approaches usually need to introduce an auxiliary routing network outside the target edited layer to decide whether to activate the LoRA module or not(Yu et al., 2024; Li et al., 2025), which hampers the end-to-end decision-making process. To address this limitation, we propose a master decision-making mechanism that does not require an auxiliary routing component. Specifically, we designate the first edited layer as the master decision layer where input features are dynamically evaluated to activate the relevant LoRA module without the need for an auxil-", "source": "marker_v2", "marker_block_id": "/page/3/Text/13"}
31
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0030", "section": "3.4. Master Decision Mechanism", "page_start": 5, "page_end": 5, "type": "TableGroup", "text": "Table 1. Comparison of SoLA to existing methods. All the results are obtained after sequential edits. ERR indicates Edit Reliability Rate, TRR presents Task Retention Rate, and ARR is Accuracy Attention Rate. The best performance is shown in bold. SCOTUS (BERT; Acc ↑) zsRE (T5; F1 ↑) Hallucination (GPT2-XL; PPL ↓) Method ERR TRR Avg. ERR TRR Avg. ERR TRR ARR EWC 0.51 0.82 0.66 0.67 0.50 0.58 1485.7 29.24 109.59 CMR 0.52 0.52 0.52 0.56 0.82 0.69 1449.3 28.14 107.76 CLEAR 0.67 0.83 0.75 0.27 0.99 0.63 2394.3 35.34 195.82 MEND 0.19 0.27 0.23 0.25 0.27 0.26 1369.8 1754.9 2902.5 SERAC 0.33 0.41 0.37 0.72 0.31 0.52 8183.7 133.3 10.04 ROME - - - - - - 30.28 103.82 14.02 GRACE 0.81 0.82 0.82 0.69 0.96 0.83 15.84 7.14 10.00 ELDER 0.89 0.86 0.88 0.72 0.97 0.84 16.12 5.87 8.42 MELO 0.96 0.92 0.94 0.72 0.98 0.85 17.45 1.04 2.66 SoLA 0.97 0.95 0.96 0.73 0.99 0.86 15.15 1.01 7.35", "source": "marker_v2", "marker_block_id": "/page/4/TableGroup/521"}
32
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0031", "section": "3.4. Master Decision Mechanism", "page_start": 5, "page_end": 5, "type": "Text", "text": "iary network. In this framework, the master decision layer H e computes the distance metric between the input feature embedding q and the stored key K to determine the activation of the module: d = He(argmini(dist(q, ki))), i = (1, 2, ..., N), dist(·) denotes the distance function and each key k i associated with the LoRA module. Then in the master layer He, we decide the edit layer behaviour:", "source": "marker_v2", "marker_block_id": "/page/4/Text/5"}
33
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0032", "section": "3.4. Master Decision Mechanism", "page_start": 5, "page_end": 5, "type": "Equation", "text": "H_e = \\begin{cases} H(W_0) & \\text{if } d \\ge \\alpha \\\\ H(W_0, W_{R_m}) & \\text{if } d < \\alpha \\end{cases} (3)", "source": "marker_v2", "marker_block_id": "/page/4/Equation/6"}
34
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0033", "section": "3.4. Master Decision Mechanism", "page_start": 5, "page_end": 5, "type": "Text", "text": "where α is the threshold, in this work we set it as 0.01, WR m represents the weight of m-th LoRA module associated with the key nearest to the query. This binary decision is propagated to the subsequent edited layers, ensuring consistent module activation throughout the network. By integrating the decision-making process to the first edited layer, our approach achieves complete end-to-end decision-making capability while maintaining architectural simplicity.", "source": "marker_v2", "marker_block_id": "/page/4/Text/7"}
35
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0034", "section": "4.1. Implementation Details", "page_start": 5, "page_end": 5, "type": "Text", "text": "Baselines We first compare several recent methods designed for lifelong model editing. Grace (Hartvigsen et al., 2023) replaces model outputs with key-value pairs and matches features to keys based on deferral radius. MELO (Yu et al., 2024) leverages LoRA for finetuning and dynamically retrieves relevant LoRA modules via neuron index. EL-DER (Li et al., 2025) employs MoE to dynamically combine multiple LoRA modules. Additionally, we evaluate other baseline methods. MEND (Mitchell et al., 2021) uses a hypernetwork trained on auxiliary data to predict the required gradients for model editing. SERAC (Mitchell et al., 2022)", "source": "marker_v2", "marker_block_id": "/page/4/Text/10"}
36
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0035", "section": "4.1. Implementation Details", "page_start": 5, "page_end": 5, "type": "Text", "text": "learns a scope classifier and a counterfactual model, coordinating between modules to determine editing behavior. ROME (Meng et al., 2022a) identifies the most influential weights in the model through perturbation analysis, localizes knowledge to specific layers of GPT, and modifies the corresponding weights. Since ROME is specifically designed for GPT, it is only evaluated on the hallucination correction task. EWC (Kirkpatrick et al., 2017) imposes constraints on the weights updating so that the model continuously learns new knowledge and retains previous knowledge. CMR (Lin et al., 2022) performs continuous finetuning of the model to continuously learn new knowledge. CLEAR (Rolnick et al., 2019) builds a memory buffer to restore old tasks information, and replays them in subsequent edits to retain previous knowledge.", "source": "marker_v2", "marker_block_id": "/page/4/Text/11"}
37
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0036", "section": "4.1. Implementation Details", "page_start": 5, "page_end": 5, "type": "Text", "text": "Evaluation Metric In this work, following (Hartvigsen et al., 2023) , we use three basic metrics to assess model performance: ES, ERR and TRR, which are applicable to all model experiments. Where Edit Success(ES) measures the ability of the model to edit the target sample. Edit Reliability Rate(ERR) assesses the validity of the model on the edited dataset, indicating the extent to which the required knowledge updates are successfully incorporated. Task Retention Rate(TRR) quantifies the model's performance on unedited datasets and reflects the model's ability to retain previous knowledge. Additionally, in the hallucination correction task, we also use the Accuracy Attention Rate (ARR) to assess the performance of the already accurate output. Accuracy is measured differently for different tasks. For the document classification task of SCOTUS, we use the Average Accuracy Rate (ACC); for the question answering task of zsRE, we measure it using the average F1, and for the hallucination correction task, we measure it using the standard average complexity (PPL) (Brown et al., 1992) .", "source": "marker_v2", "marker_block_id": "/page/4/Text/12"}
38
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0037", "section": "4.1. Implementation Details", "page_start": 6, "page_end": 6, "type": "FigureGroup", "text": "Figure 4. Figure(a)–(c) presents every edit accuracy on SCOTUS datasets with BERT. All experiment settings are the same as Tab .1.", "source": "marker_v2", "marker_block_id": "/page/5/FigureGroup/386"}
39
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0038", "section": "4.1. Implementation Details", "page_start": 6, "page_end": 6, "type": "FigureGroup", "text": "Figure 5. Visualization of zsRE dataset encoder output from T5 small with t-SNE and the dots with same color and shape are input and rephrase sentence. All experiment settings are the same as Tab .1.", "source": "marker_v2", "marker_block_id": "/page/5/FigureGroup/387"}
40
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0039", "section": "4.2. Main Results", "page_start": 6, "page_end": 6, "type": "Text", "text": "We evaluate the performance of the proposed SoLA method on three benchmark datasets and compare it with several state-of-the-art model editing approaches. The results are summarized in Tab .1. As observed, SoLA achieves excellent performance on most of the benchmark datasets, with SoLA outperforming the strongest baseline, MELO, by 3% on the SCOTUS dataset. These demonstrate SoLA's enhanced effectiveness in editing target knowledge while better preserving previously acquired knowledge. Furthermore, existing methods such as MEND and SERAC perform poorly under the sequential editing setting, suggesting that they are primarily designed for static editing scenarios and are not well-suited for sequential model editing tasks.", "source": "marker_v2", "marker_block_id": "/page/5/Text/7"}
41
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0040", "section": "4.2. Main Results", "page_start": 6, "page_end": 6, "type": "Text", "text": "We also report task-wise accuracy progression to analyze model performance throughout the sequential editing process. The experimental results are based on the SCOTUS dataset and the results are shown in Fig .4. As illustrated in Fig .4a, Fig .4b and Fig .4c, SoLA consistently maintains", "source": "marker_v2", "marker_block_id": "/page/5/Text/8"}
42
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0041", "section": "4.2. Main Results", "page_start": 6, "page_end": 6, "type": "Text", "text": "superior accuracy across tasks, without exhibiting substantial performance degradation or volatility. This indicates the robustness and stability of SoLA when applied to sequential knowledge editing.", "source": "marker_v2", "marker_block_id": "/page/5/Text/9"}
43
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0042", "section": "4.2. Main Results", "page_start": 6, "page_end": 6, "type": "Text", "text": "Method performance may vary across different model sizes and datasets. To further evaluate the robustness of our approach, we conduct hallucination correction experiments on the UniEdit (Chen et al., 2025) and WikiBigEdit (Thede et al., 2025) datasets using larger-scale backbone models. The results are presented in Tab .2. As shown in Tab .2, SoLA consistently achieves the best or near-best performance across most settings, demonstrating its robustness and effectiveness under diverse task configurations. During editing, larger backbone models generally exhibit more stable ERR values, suggesting that such models have learned stronger semantic representations during pretraining, leading to better generalization and editability. Furthermore, continuous learning related methods tend to overfit in edited data, thus showing better ARR in the retention set, but large TRR values in the upstream set, indicating severe forgetting of previous knowledge.", "source": "marker_v2", "marker_block_id": "/page/5/Text/10"}
44
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0043", "section": "4.3. Controllable Rollback Editing", "page_start": 6, "page_end": 6, "type": "Text", "text": "In SoLA, each edit instance is associated with a unique key stored in both the memory and the routing table. This design enables reversible editing, as the model can revert to its original behavior by removing the key corresponding to a specific edit. To demonstrate this property, we conduct an illustrative experiment on the zsRE dataset. The results are shown in Tab .3. In the Tab .3, each row corresponds to an input instance consisting of a \"Text\" (the question need to be edited) and its \"Labels\" (the correct answer). \"Del\" indicates whether the key corresponding to the edit is removed after editing. For each input, Predbase, Prededit and Preddel denote the prediction of base model, edited model and model after removing the corresponding key. When \"Del\" is false, the key is retained, serving as a baseline comparison. As shown in Tab .3, for each instance, the original prediction (Predbase) does not match the correct label, indi-", "source": "marker_v2", "marker_block_id": "/page/5/Text/12"}
45
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0044", "section": "4.3. Controllable Rollback Editing", "page_start": 7, "page_end": 7, "type": "TableGroup", "text": "Table 2. Model Performance Comparison on UniEdit and WikiBigEdit datasets in hallucination correction tasks. All the scores are PPL metric and the best result is in bolded. UniEdit (PPL ↓) WikiBigEdit (PPL ↓) Model Method ERR TRR ARR ERR TRR ARR EWC 2.43 1134 22.08 3.58 251117 4.93 CMR 2.79 2239 25.24 2.86 169452 4.49 LLaMA-3-8B CLEAR 1.04 982 29.79 1.03 74384 1.52 SERAC 37.10 246 93 60.17 215 59 GRACE 1.00 244 89 1.00 216 58 ELDER 1.00 173 74 1.00 178 48 MELO 1.00 153 68 1.00 165 47 Ours 1.00 144 66 1.00 162 44 EWC 2.38 4451 42.13 2.86 47846 3.89 CMR 2.34 7211 36.19 3.60 34623 5.51 DeepSeek-R1-8B CLEAR 1.06 3365 44.86 1.02 28110 1.48 SERAC 46.76 451 834 82.72 493 831 GRACE 1.00 407 803 1.00 487 793 ELDER 1.03 241 482 1.03 304 492 MELO 1.09 204 407 1.05 263 445 Ours 1.07 188 374 1.00 248 412 EWC 4.62 7648 48.62 5.61 61834 14.65 CMR 4.12 11583 40.56 6.28 48629 16.89 Qwen2-7B CLEAR 1.03 5021 54.98 1.05 35396 4.26 SERAC 58.51 329 1261 62.12 304 523 GRACE 2.05 316 1065 16.88 299 518 ELDER 1.00 201 266 1.00 225 197 MELO 1.00 170 201 1.00 203 143 Ours 1.00 156 110 1.00 199 109", "source": "marker_v2", "marker_block_id": "/page/6/TableGroup/486"}
46
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0045", "section": "4.3. Controllable Rollback Editing", "page_start": 7, "page_end": 7, "type": "Text", "text": "cating the necessity for editing. After editing, the model correctly produces Prededit consistent with the ground-truth label, demonstrating that SoLA successfully updates the model's knowledge. When the associated key is deleted, the model reverts to its original prediction (Prededit = Predbase), verifying that our method can effectively roll back specific edits. More critically, for edits where the key is not deleted, the model continues to output Prededit, showing that the rollback operation does not interfere with other edits. This confirms that SoLA supports fine-grained, selective undo of knowledge edits without disrupting unrelated modifications.", "source": "marker_v2", "marker_block_id": "/page/6/Text/3"}
47
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0046", "section": "4.4. Ablation Study", "page_start": 7, "page_end": 7, "type": "Text", "text": "Effect of Edit Layer Location In semantic representation learning, different layers of a model focus on different aspects of semantic information. Therefore, the position of the edited layer can significantly influence the effectiveness of model editing. To investigate this, we evaluate the performance of model when edits are applied at different layers, while keeping all other settings fixed. The experiments are conducted on the SCOTUS dataset with a Nvidia A100 40G GPU, and the results are shown in Tab .4. In the", "source": "marker_v2", "marker_block_id": "/page/6/Text/5"}
48
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0047", "section": "4.4. Ablation Study", "page_start": 7, "page_end": 7, "type": "Text", "text": "Tab .4, \"Layer\" denotes the layer range used for editing. For example, \"0–2\" indicates that edits are applied to layers 0, 1, and 2 of the BERT model. As shown in the table, editing at shallower layers results in suboptimal performance. This observation aligns with prior findings (Geva et al., 2020) , which suggest that shallow layers primarily capture the shallow sentence patterns, whereas deeper layers encode richer semantic features, thereby enabling more effective knowledge editing. Moreover, editing at shallow layers significantly increases the time used for editing, which means that editing for semantics is more difficult in shallow layers. Furthermore, we observe that varying the editing layer has negligible impact on performance over the unedited portion of the dataset, indicating that SoLA is capable of preserving previously learned knowledge regardless of the editing depth, which further supports the robustness of SoLA.", "source": "marker_v2", "marker_block_id": "/page/6/Text/6"}
49
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0048", "section": "4.4. Ablation Study", "page_start": 7, "page_end": 7, "type": "Text", "text": "Effect of LoRA Rank The LoRA module projects semantic representations into a low-rank subspace for parameterefficient learning. Consequently, the choice of rank will effect the module's performance. To investigate this, we analyze the impact of different LoRA rank values on model performance, keeping all other settings fixed. Experiments are conducted on the SCOTUS dataset using a NVIDIA", "source": "marker_v2", "marker_block_id": "/page/6/Text/7"}
50
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0049", "section": "4.4. Ablation Study", "page_start": 8, "page_end": 8, "type": "TableGroup", "text": "Table 3. Controllable edit in SoLA on zsRE datasets. \"Text\" is the question need to be edited, \"Labels\" is the true answer, \"Del\" indicates whther delete associated key and Predbase, Prededit and Preddel is the prediction of base model, edited model and delted model. Text Labels Del Predbase Prededit Preddel The date of Tsetserleg earthquake in 1905? 9 July 1905 True 20 February 1905 9 July 1905 20 February 1905 What constellation has Nu Cancri? Cancer True Hydra Cancer Hydra On what date did the Bahrain Grand Prix 2015 occur? 19 April 2015 True 6 April 2017 19 April 2015 6 April 2017 What position does Charles-Joseph Coursol have? Mayor of Montreal True Positioning Mayor of Montreal Positioning Who acted in Blow Dry? Alan Rickman False Jim Carrey Alan Rickman Alan Rickman Table 4. Ablation studies on location of edited layers. Here, \"Layer\" indicates the edited layer location. For example, \"0-2\" presents edited layer is layers 0, 1 and 2.", "source": "marker_v2", "marker_block_id": "/page/7/TableGroup/457"}
51
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0050", "section": "4.4. Ablation Study", "page_start": 8, "page_end": 8, "type": "TableGroup", "text": "Layer ES ERR TRR Edit Time(min) 0-2 0.77 0.61 0.96 9.21 3-5 1.00 0.68 0.96 8.06 6-8 0.81 0.70 0.97 7.03 9-11 0.94 0.95 0.97 5.97 Table 5. Ablation studies on LoRA rank. Here, \"LoRA Rank\" indicates the rank value of every LoRA in model.", "source": "marker_v2", "marker_block_id": "/page/7/TableGroup/458"}
52
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0051", "section": "4.4. Ablation Study", "page_start": 8, "page_end": 8, "type": "Table", "text": "LoRA Rank ES ERR TRR Edit Time(min) 1 0.90 0.84 0.96 5.88 2 0.94 0.91 0.97 5.90 3 1.00 0.91 0.97 5.86 4 1.00 0.95 0.97 5.97 5 1.00 0.92 0.96 5.86 10 1.00 0.71 0.96 5.85", "source": "marker_v2", "marker_block_id": "/page/7/Table/17"}
53
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0052", "section": "4.4. Ablation Study", "page_start": 8, "page_end": 8, "type": "Text", "text": "A100 40GB GPU, and the results are presented in Tab .5. As shown in the Tab .5, simply increasing the LoRA rank does not lead to improved performance and may even degrade model performance. This indicates that expanding the learnable parameter space does not necessarily enhance the model's capacity for effective knowledge editing. On the contrary, excessive rank values may even result in performance degradation due to overfitting, suggesting the importance of carefully selecting an appropriate rank to balance capacity and generalization. Based on the experiment results, we set 4 as LoRA rank for all the experiments in this paper.", "source": "marker_v2", "marker_block_id": "/page/7/Text/18"}
54
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0053", "section": "4.5. Model Visualization", "page_start": 8, "page_end": 8, "type": "Text", "text": "To gain deeper insight into the model's behavior under sequential editing, we conducted a t-SNE visualization (Maaten & Hinton, 2008) of the learned feature representations. This experiment is performed on the zsRE dataset using the T5-small model to assess how semantic relationships are preserved after sequential edits. Upon completing", "source": "marker_v2", "marker_block_id": "/page/7/Text/20"}
55
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0054", "section": "4.5. Model Visualization", "page_start": 8, "page_end": 8, "type": "Text", "text": "the entire sequence of editing tasks for question answering, we selected five distinct input instances, each accompanied by semantically equivalent rephrased sentences, forming five evaluation groups. The encoder output features are subsequently extracted from the edited model for dimensionality reduction and visualization, and the resulting plot is represented in Fig .5. As shown in Fig .5, there is a clear clustering pattern that for each group, the original input and its rephrased variant are mapped to proximate locations in the latent space. This demonstrates that SoLA effectively captures and preserves the semantic similarity between related inputs throughout the editing process. Furthermore, distinct groups maintain separable clusters, indicating that the model retains the ability to discriminate between different edit concepts after sequential editing. This visualization shows that SoLA's semantic routing mechanism successfully supports edit generalization based on semantic similarity while upholding the integrity of previously learned knowledge.", "source": "marker_v2", "marker_block_id": "/page/7/Text/21"}
56
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0055", "section": "5. Conclusion", "page_start": 8, "page_end": 8, "type": "Text", "text": "In this paper, we propose SoLA, a Semantic routing-based LoRA framework for reversible lifelong model editing. In SoLA, each edit is encapsulated as an independent LoRA module which is frozen after training and a semantic routing record is established to map LoRA module to the input semantic representation, allowing dynamic activation of LoRA modules via semantic matching. This design not only avoids semantic drift caused by clustering updating but also mitigates catastrophic forgetting from parameter sharing. More importantly, SoLA supports precisely revoking edit by removing the corresponding key from the routing table, enabling reversible model editing. This allows for flexible addition and deletion of edits, offering fine-grained control over model behavior. To the best of our knowledge, this is the first work to achieve reversible model editing in the literature. Furthermore, we introduce a master decisionmaking mechanism by integrating decision-making into the edited layer, enabling end-to-end decision-making process. By building a strict mapping between edits and LoRA modules, SoLA achieves efficient and reversible lifelong model editing, providing a novel perspective for future research.", "source": "marker_v2", "marker_block_id": "/page/7/Text/23"}
57
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0056", "section": "Impact Statement", "page_start": 9, "page_end": 9, "type": "Text", "text": "This work advances the field of Machine Learning by introducing SoLA, a framework for reversible and controllable lifelong model editing in large language models. Our method enhances the safety and reliability of AI systems by enabling precise rollback of model edits, which helps mitigate risks associated with erroneous or harmful knowledge updates. By effectively preventing semantic drift and catastrophic forgetting, SoLA promotes the development of more robust and trustworthy models capable of adapting to evolving information. The significant reduction in computational overhead also aligns with the goal of sustainable AI development.", "source": "marker_v2", "marker_block_id": "/page/8/Text/2"}
58
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0057", "section": "References", "page_start": 9, "page_end": 9, "type": "ListGroup", "text": "Achiam, J., Adler, S., Agarwal, S., Ahmad, L., Akkaya, I., Aleman, F. L., Almeida, D., Altenschmidt, J., Altman, S., Anadkat, S., et al. Gpt-4 technical report. arXiv preprint arXiv:2303.08774 , 2023. Biderman, S., Schoelkopf, H., Anthony, Q. G., Bradley, H., O'Brien, K., Hallahan, E., Khan, M. A., Purohit, S., Prashanth, U. S., Raff, E., et al. Pythia: A suite for analyzing large language models across training and scaling. In International Conference on Machine Learning , pp. 2397–2430. PMLR, 2023. Brown, P. F., Della Pietra, S. A., Della Pietra, V. J., Lai, J. C., and Mercer, R. L. An estimate of an upper bound for the entropy of english. Computational Linguistics , 18 (1):31–40, 1992. Brown, T., Mann, B., Ryder, N., Subbiah, M., Kaplan, J. D., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al. Language models are few-shot learners. Advances in neural information processing systems , 33: 1877–1901, 2020. Chalkidis, I., Pasini, T., Zhang, S., Tomada, L., Schwemer, S. F., and Søgaard, A. Fairlex: A multilingual benchmark for evaluating fairness in legal text processing. arXiv preprint arXiv:2203.07228 , 2022. Chen, Q., Wang, D., Zhang, T., Yan, Z., You, C., Wang, C., and He, X. Uniedit: A unified knowledge editing benchmark for large language models. arXiv preprint arXiv:2505.12345 , 2025. De Cao, N., Aziz, W., and Titov, I. Editing factual knowledge in language models. arXiv preprint arXiv:2104.08164 , 2021. Fang, J., Jiang, H., Wang, K., Ma, Y., Jie, S., Wang, X., He, X., and Chua, T.-S. Alphaedit: Null-space constrained knowledge editing for language models. arXiv preprint arXiv:2410.02355 , 2024.", "source": "marker_v2", "marker_block_id": "/page/8/ListGroup/516"}
59
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0058", "section": "References", "page_start": 9, "page_end": 9, "type": "ListGroup", "text": "Geva, M., Schuster, R., Berant, J., and Levy, O. Transformer feed-forward layers are key-value memories. arXiv preprint arXiv:2012.14913 , 2020. Gu, J.-C., Xu, H.-X., Ma, J.-Y., Lu, P., Ling, Z.-H., Chang, K.-W., and Peng, N. Model editing can hurt general abilities of large language models. CoRR , 2024. Hartvigsen, T., Gabriel, S., Palangi, H., Sap, M., Ray, D., and Kamar, E. Toxigen: A large-scale machine-generated dataset for adversarial and implicit hate speech detection. arXiv preprint arXiv:2203.09509 , 2022. Hartvigsen, T., Sankaranarayanan, S., Palangi, H., Kim, Y., and Ghassemi, M. Aging with grace: Lifelong model editing with discrete key-value adaptors. Advances in Neural Information Processing Systems , 36:47934–47959, 2023. Houlsby, N., Giurgiu, A., Jastrzebski, S., Morrone, B., De Laroussilhe, Q., Gesmundo, A., Attariyan, M., and Gelly, S. Parameter-efficient transfer learning for nlp. In International conference on machine learning , pp. 2790– 2799. PMLR, 2019. Hu, E. J., Shen, Y., Wallis, P., Allen-Zhu, Z., Li, Y., Wang, S., Wang, L., Chen, W., et al. Lora: Low-rank adaptation of large language models. ICLR , 1(2):3, 2022. Huang, L., Yu, W., Ma, W., Zhong, W., Feng, Z., Wang, H., Chen, Q., Peng, W., Feng, X., Qin, B., et al. A survey on hallucination in large language models: Principles, taxonomy, challenges, and open questions. ACM Transactions on Information Systems , 43(2):1–55, 2025. Jia, M., Tang, L., Chen, B.-C., Cardie, C., Belongie, S., Hariharan, B., and Lim, S.-N. Visual prompt tuning. In European conference on computer vision , pp. 709–727. Springer, 2022. Kirkpatrick, J., Pascanu, R., Rabinowitz, N., Veness, J., Desjardins, G., Rusu, A. A., Milan, K., Quan, J., Ramalho, T., Grabska-Barwinska, A., et al. Overcoming catastrophic forgetting in neural networks. Proceedings of the national academy of sciences , 114(13):3521–3526, 2017. Kwiatkowski, T., Palomaki, J., Redfield, O., Collins, M., Parikh, A., Alberti, C., Epstein, D., Polosukhin, I., Devlin, J., Lee, K., et al. Natural questions: a benchmark for question answering research. Transactions of the Association for Computational Linguistics , 7:453–466, 2019. Lazaridou, A., Kuncoro, A., Gribovskaya, E., Agrawal, D., Liska, A., Terzi, T., Gimenez, M., de Masson d'Autume, C., Kocisky, T., Ruder, S., et al. Mind the gap: Assessing temporal generalization in neural language models. Advances in Neural Information Processing Systems , 34: 29348–29363, 2021.", "source": "marker_v2", "marker_block_id": "/page/8/ListGroup/517"}
60
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0059", "section": "References", "page_start": 10, "page_end": 10, "type": "Text", "text": "495 496 497 Levy, O., Seo, M., Choi, E., and Zettlemoyer, L. Zero-shot relation extraction via reading comprehension. arXiv preprint arXiv:1706.04115 , 2017.", "source": "marker_v2", "marker_block_id": "/page/9/Text/408"}
61
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0060", "section": "References", "page_start": 10, "page_end": 10, "type": "ListGroup", "text": "Li, J., Wang, Q., Wang, Z., Zhang, Y., and Mao, Z. Elder: Enhancing lifelong model editing with mixture-of-lora. In Proceedings of the AAAI Conference on Artificial In telligence , pp. 24440–24448, 2025. Li, X. L. and Liang, P. Prefix-tuning: Optimizing continuous prompts for generation. arXiv preprint arXiv:2101.00190 , 2021. Lin, B. Y., Wang, S., Lin, X. V., Jia, R., Xiao, L., Ren, X., and Yih, W.-t. On continual model refinement in out-of-distribution data streams. arXiv preprint arXiv:2205.02014 , 2022. Maaten, L. v. d. and Hinton, G. Visualizing data using t-sne. Journal of machine learning research , 9(Nov): 2579–2605, 2008. Manakul, P., Liusie, A., and Gales, M. J. Selfcheckgpt: Zeroresource black-box hallucination detection for generative large language models. arXiv preprint arXiv:2303.08896 , 2023. Meng, K., Bau, D., Andonian, A., and Belinkov, Y. Locating and editing factual associations in gpt. Advances in neural information processing systems , 35:17359–17372, 2022a. Meng, K., Sharma, A. S., Andonian, A., Belinkov, Y., and Bau, D. Mass-editing memory in a transformer. arXiv preprint arXiv:2210.07229 , 2022b. Mitchell, E., Lin, C., Bosselut, A., Finn, C., and Manning, C. D. Fast model editing at scale. arXiv preprint arXiv:2110.11309 , 2021. Mitchell, E., Lin, C., Bosselut, A., Manning, C. D., and Finn, C. Memory-based model editing at scale. In Inter national Conference on Machine Learning , pp. 15817– 15831. PMLR, 2022. Nakano, R., Hilton, J., Balaji, S., Wu, J., Ouyang, L., Kim, C., Hesse, C., Jain, S., Kosaraju, V., Saunders, W., et al. Webgpt: Browser-assisted question-answering with human feedback. arXiv preprint arXiv:2112.09332 , 2021. Radford, A., Wu, J., Child, R., Luan, D., Amodei, D., Sutskever, I., et al. Language models are unsupervised multitask learners. OpenAI blog , 1(8):9, 2019. Rolnick, D., Ahuja, A., Schwarz, J., Lillicrap, T., and Wayne, G. Experience replay for continual learning. Advances in neural information processing systems , 32, 2019.", "source": "marker_v2", "marker_block_id": "/page/9/ListGroup/406"}
62
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0061", "section": "References", "page_start": 10, "page_end": 10, "type": "ListGroup", "text": "Thede, L., Roth, K., Bethge, M., Akata, Z., and Hartvigsen, T. Understanding the limits of lifelong knowledge editing in llms. arXiv preprint arXiv:2503.05683 , 2025. Touvron, H., Martin, L., Stone, K., Albert, P., Almahairi, A., Babaei, Y., Bashlykov, N., Batra, S., Bhargava, P., Bhosale, S., et al. Llama 2: Open foundation and finetuned chat models. arXiv preprint arXiv:2307.09288 , 2023. Valipour, M., Rezagholizadeh, M., Kobyzev, I., and Ghodsi, A. Dylora: Parameter efficient tuning of pre-trained models using dynamic search-free low-rank adaptation. arXiv preprint arXiv:2210.07558 , 2022. Yao, Y., Wang, P., Tian, B., Cheng, S., Li, Z., Deng, S., Chen, H., and Zhang, N. Editing large language models: Problems, methods, and opportunities. arXiv preprint arXiv:2305.13172 , 2023. Yu, L., Chen, Q., Zhou, J., and He, L. Melo: Enhancing model editing with neuron-indexed dynamic lora. In Proceedings of the AAAI Conference on Artificial Intelli gence , pp. 19449–19457, 2024. Zaken, E. B., Ravfogel, S., and Goldberg, Y. Bitfit: Simple parameter-efficient fine-tuning for transformerbased masked language-models. arXiv preprint arXiv:2106.10199 , 2021.", "source": "marker_v2", "marker_block_id": "/page/9/ListGroup/407"}
63
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0062", "section": "A.1. Parameter-Efficient Fine-Tuning", "page_start": 11, "page_end": 11, "type": "Text", "text": "Parameter-efficient fine-tuning (PEFT) approaches adjust pretrained LLMs by incorporating lightweight modules, while keeping the base model frozen. Optimization is performed solely through updates to these lightweight components. Representative approaches include Adapters (Houlsby et al., 2019; Zaken et al., 2021) , Prompts (Li & Liang, 2021; Jia et al., 2022) , and Low-Rank Adaptation (LoRA) (Hu et al., 2022; Valipour et al., 2022) . Adapters are compact bottleneck modules located after transformer blocks; Prompts are learnable vectors prepended to the input sequence; and LoRA uses low-rank decomposition matrices to modify model weights during training. Recent progress explores applying PEFT to lifelong model editing, where the base model remains unchanged and new parameter modules are introduced to manage sequential edits over time.", "source": "marker_v2", "marker_block_id": "/page/10/Text/5"}
64
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0063", "section": "A.2. Routing Mechanisms in Modular Language Models", "page_start": 11, "page_end": 11, "type": "Text", "text": "When multiple modular components (e.g., LoRA modules) are present, a key challenge lies in routing input queries to the appropriate subset of modules during inference. Recent work explore various strategies to support dynamic module selection. MELO (Yu et al., 2024) introduces a clustering mechanism to assign edits to clusters based on input hidden states. During inference, the nearest cluster center is used to retrieve relevant LoRA modules. However, cluster centers are inevitably updated during the sequential editing, which may lead to semantic drift and incorrect matching. As shown in Fig .2, the number of incorrect matches increases significantly as the number of cluster centre updating increases, which leads to a deterioration in model performance. EL-DER (Li et al., 2025) employs MoE approach in which a learnable neural network scores a set of LoRA modules, activating the top-k modules. This strategy offers parameter efficiency but introduces soft entanglement in routing, and due to shared module usage, new edits may interfere with or overwrite previously edits. Furthermore, both strategies rely on auxiliary routing networks, adding architectural complexity and computational overhead. They also offer limited control over edit selection, making rollback and deletion of edits challenging.", "source": "marker_v2", "marker_block_id": "/page/10/Text/7"}
65
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0064", "section": "B. Additional Experiment Details", "page_start": 11, "page_end": 11, "type": "Text", "text": "Benchmarks We evaluate the performance of the model in three representative tasks: Document Classification, Question Answering(QA), and Hallucination Correction. Among them, the document classification task is performed based", "source": "marker_v2", "marker_block_id": "/page/10/Text/9"}
66
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0065", "section": "B. Additional Experiment Details", "page_start": 11, "page_end": 11, "type": "Text", "text": "on the SCOTUS dataset (Chalkidis et al., 2022) . SCOTUS is a subset of Fairlex, which collects documents from the U.S. Supreme Court and classifies them into 11 topics. In practice, the topics corresponding to the documents will change, so it is necessary to update the model knowledge to classify the documents into new topics. We divide SCO-TUS into an edit set and an upstream set, where models are edited on the edit set and the upstream set is not involved in editing, only testing. The question answering task is then conducted on the zsRE dataset (Levy et al., 2017) , and NQ datasets (Kwiatkowski et al., 2019) serves as upstream dataset. Specifically, we perform editing in zsRE, and the NQ dataset is again not involved in editing, only testing. For hallucination correction, we adopted the framework introduced by (Manakul et al., 2023) , aiming to address the tendency of GPT models to generate factually inconsistent outputs. Following GRACE (Hartvigsen et al., 2023) , we employ SelfCheckGPT (Manakul et al., 2023) for editing. SelfCheckGPT is a Wikipedia-style biography that is first generated using GPT3 on 256 topics, e.g., \"Bon Jovi\", and then checked to see which of the generated biographies are hallucinations. SelfCheckGPT contains 1392 hallucinatory sentences to be edited, which serves as the editing set, and 516 already correct sentences as the retention set, which is used to measure model's post-edit perplexity on the already correct sentences. WebText (Nakano et al., 2021) is used as the upstream set, remaining unedited and reserved for testing. In addition to this, in order to test the performance of the model approach with different sized models as well as datasets, we conducted hallucination correction experiments on Uniedit (Chen et al., 2025) and WikiBigEdit (Thede et al., 2025) to evaluate the generalization performance of the models. Uniedit is based on open domain knowledge covering information from 25 common domains in 5 major categories. The WikiBigEdit dataset is based on regular updates of the knowledge graph in Wikipedia and contains 5 months of extensive factual editing and improvement. The Uniedit and WikiBigEdit datasets already have edit set, retention set and upstream set that can be used directly for hallucination correction tasks.", "source": "marker_v2", "marker_block_id": "/page/10/Text/10"}
67
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0066", "section": "B. Additional Experiment Details", "page_start": 11, "page_end": 11, "type": "Text", "text": "Training details Following (Hartvigsen et al., 2023) , we employ BERT, T5-small, and GPT2-XL as the base models for the three tasks—document classification, question answering, and hallucination correction, respectively. Among these, BERT and T5-small are the official pre-trained models, while GPT2-XL is obtained from (Hartvigsen et al., 2023) which finetuned from the official release (Hartvigsen et al., 2023) . For training, we adopt Stochastic Gradient Descent (SGD) as the optimizer with a cosine decay learning rate schedule. The learning rates is 0.05, training epochs", "source": "marker_v2", "marker_block_id": "/page/10/Text/11"}
68
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0067", "section": "B. Additional Experiment Details", "page_start": 12, "page_end": 12, "type": "Text", "text": "is 40, and LoRA rank is 4. In the three tasks, we edit the models and the edited layers of the individual model edits are shown in the Tab .6.", "source": "marker_v2", "marker_block_id": "/page/11/Text/1"}
69
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0068", "section": "B. Additional Experiment Details", "page_start": 12, "page_end": 12, "type": "TableGroup", "text": "Table 6. Edited layers of different model Model Edit layer BERT bert.encoder.layer.9.output.dense bert.encoder.layer.10.output.dense bert.encoder.layer.11.output.dense T5-Small encoder.block.5.layer.1.DenseReluDense.wi 0 encoder.block.5.layer.1.DenseReluDense.wi 1 encoder.block.5.layer.1.DenseReluDense.wo encoder.block.6.layer.1.DenseReluDense.wi 0 encoder.block.6.layer.1.DenseReluDense.wi 1 encoder.block.6.layer.1.DenseReluDense.wo GPT2-XL transformer.h.36.mlp.c fc transformer.h.37.mlp.c fc", "source": "marker_v2", "marker_block_id": "/page/11/TableGroup/239"}
icml26/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1/dataset_meta.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1",
3
+ "pipeline": "Paper2Markdown-V3",
4
+ "ok": true,
5
+ "page_count": 12,
6
+ "chunk_count": 69,
7
+ "main_body_chunk_count": 57,
8
+ "appendix_chunk_count": 7,
9
+ "reference_chunk_count": 5,
10
+ "model_text_chars": 37283,
11
+ "raw_markdown_chars": 58572,
12
+ "sanitized_chars": 53252,
13
+ "page_provenance": {
14
+ "min_page": 1,
15
+ "max_page": 12,
16
+ "invalid_count": 0
17
+ },
18
+ "marker_block_type_counts": {
19
+ "Caption": 5,
20
+ "Equation": 3,
21
+ "FigureGroup": 5,
22
+ "Footnote": 1,
23
+ "ListGroup": 5,
24
+ "PageFooter": 12,
25
+ "PageHeader": 15,
26
+ "SectionHeader": 26,
27
+ "Table": 1,
28
+ "TableGroup": 5,
29
+ "Text": 171
30
+ },
31
+ "asset_count_raw": 5,
32
+ "asset_count_model_kept": 5,
33
+ "asset_count_rejected": 0,
34
+ "asset_reject_reasons": {
35
+ "kept": 5
36
+ },
37
+ "artifact_leak_audit": {
38
+ "ok": true,
39
+ "hits": {
40
+ "Anonymous Authors": [],
41
+ "ACKNOWLEDGMENT": [],
42
+ "OpenReview": [],
43
+ "\"accept_label\"": [],
44
+ "\"decision\"": [],
45
+ "\"decision_tier\"": [],
46
+ "\"source_status\"": [],
47
+ "Meta-review": [],
48
+ "Official Review": [],
49
+ "official_reviews": [],
50
+ "meta_reviews": [],
51
+ "suggested_verdict_score": []
52
+ },
53
+ "artifact_count": 2
54
+ },
55
+ "default_model_input": "model_text_v3.txt",
56
+ "appendix_input": "appendix_text_v3.txt",
57
+ "reference_input": "reference_text_v3.txt",
58
+ "source": "koala_icml26_due_queue",
59
+ "run_name": "icml26_20260429_1952_duequeue"
60
+ }
icml26/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1/main_body_chunks.jsonl ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0000", "section": "Abstract", "page_start": 1, "page_end": 1, "type": "Text", "text": "The dynamic evolution of real-world necessitates model editing within Large Language Models. While existing methods explore modular isolation or parameter-efficient strategies, they still suffer from semantic drift or knowledge forgetting due to continual updating. To address these challenges, we propose SoLA, a Semantic routingbased LoRA framework for lifelong model editing. In SoLA, each edit is encapsulated as an independent LoRA module, which is frozen after training and mapped to input by semantic routing, allowing dynamic activation of LoRA modules via semantic matching. This mechanism avoids semantic drift caused by cluster updating and mitigates catastrophic forgetting from parameter sharing. More importantly, SoLA supports precise revocation of specific edits by removing key from semantic routing, which restores model's original behavior. To our knowledge, this reversible rollback editing capability is the first to be achieved in existing literature. Furthermore, SoLA integrates decision-making process into edited layer, eliminating the need for auxiliary routing networks and enabling end-to-end decision-making process. Extensive experiments demonstrate that SoLA effectively learns and retains edited knowledge, achieving accurate, efficient, and reversible lifelong model editing.", "source": "marker_v2", "marker_block_id": "/page/0/Text/4"}
2
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0001", "section": "1. Introduction", "page_start": 1, "page_end": 1, "type": "Text", "text": "Large language models (LLMs) have demonstrated remarkable capabilities in the field of natural language processing, attracting the attention of numerous researchers (Radford et al., 2019; Brown et al., 2020; Achiam et al., 2023; Tou vron et al., 2023) . However, LLMs also face severe challenges, including hallucinations (Huang et al., 2025) , bi-", "source": "marker_v2", "marker_block_id": "/page/0/Text/6"}
3
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0002", "section": "1. Introduction", "page_start": 1, "page_end": 1, "type": "FigureGroup", "text": "Figure 1. Comparison of trainable parameters and ERR accuracy between SoLA (Ours) and other methods. All experiments are conducted on Scotus datasets with the same backbone.", "source": "marker_v2", "marker_block_id": "/page/0/FigureGroup/467"}
4
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0003", "section": "1. Introduction", "page_start": 1, "page_end": 1, "type": "Text", "text": "ases (Hartvigsen et al., 2022) , and the generation of harmful content (De Cao et al., 2021) . Moreover, the dynamic nature of real-world knowledge requires the continuous updating of specific information in LLMs (Lazaridou et al., 2021) . Re-training these models from scratch is both expensive and time-consuming (Biderman et al., 2023) . In this scenario, the demand for model editing is increasing with aims to modify specific knowledge in the training model continuously without re-training the model or affecting its performance on unrelated inputs, which is known as lifelong model editing (Hartvigsen et al., 2022; Yao et al., 2023; Yu et al., 2024) .", "source": "marker_v2", "marker_block_id": "/page/0/Text/11"}
5
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0004", "section": "1. Introduction", "page_start": 1, "page_end": 1, "type": "Text", "text": "The lifelong model editing aims to continuously update the model to adapt to the constantly changing world. However, most of the existing model editing methods are designed for single, isolated editing (Mitchell et al., 2021; Meng et al., 2022a) . When applied to a continuous environment, these methods often lead to catastrophic forgetting of the previously learned knowledge in the LLMs, resulting in performance degradation and reduced model reliability (Yao et al., 2023; Gu et al., 2024) . To solve this problem, recent methods propose freezing the original model parameters and introducing lightweight trainable modules to inject new knowledge. These methods usually retain most of the model's knowledge by keeping the base parameters fixed and combining the learnable modules for specific task updates. For example, Melo (Yu et al., 2024) determines the clustering centres of editors by building a neuron index", "source": "marker_v2", "marker_block_id": "/page/0/Text/12"}
6
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0005", "section": "1. Introduction", "page_start": 2, "page_end": 2, "type": "Text", "text": "and dynamically updates its semantic representation based on the distance from the clustering centres. ELDER (Li et al., 2025) adopts the Mixture-of-Experts (MoE) approach, assigning scores to each LoRA expert through a set of learnable LoRA allocation codes and selecting the top-k LoRA for calculation.", "source": "marker_v2", "marker_block_id": "/page/1/Text/2"}
7
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0006", "section": "1. Introduction", "page_start": 2, "page_end": 2, "type": "FigureGroup", "text": "Figure 2. Number of mismatches in LoRA allocation with ERR/TRR accuracy in MELO. All experiments are conducted on Scotus datasets with the same backbone.", "source": "marker_v2", "marker_block_id": "/page/1/FigureGroup/464"}
8
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0007", "section": "1. Introduction", "page_start": 2, "page_end": 2, "type": "Text", "text": "Although these methods show potential in improving parameter efficiency and reducing interference, they face inherent limitations when applied to lifelong model editing. Specifically, MELO (Yu et al., 2024) improves module separability through semantic clustering, but its clustering centers are updated during the editing process, which may lead to semantic drift and module matching errors. ELDER (Li et al., 2025) employ MoE and selects the top-k routes to activate each editing subset, although this strategy has high parameter efficiency, shared and continuously updated parameters can lead to catastrophic forgetting - new editing may overwrite or interfere with existing editing.", "source": "marker_v2", "marker_block_id": "/page/1/Text/5"}
9
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0008", "section": "1. Introduction", "page_start": 2, "page_end": 2, "type": "Text", "text": "To address these limitations, we propose SoLA, a Semantic routing-based LoRA framework for reversible lifelong model editing. In SoLA, we allocate an independent LoRA module for each edit and establish semantic routing to record the mapping relationship between LoRA module and the input semantic representation. During editing, the LoRA module fully learns for the current task and then remains frozen to retain the learned knowledge. The corresponding key is also not updated. During inference, the semantic representation of the input is calculated, and the corresponding LoRA module is dynamically activated through semantic routing. Since the LoRA module and the semantic representation have not been updated, we fundamentally avoid catastrophic forgetting and semantic drift problems caused by continual updating. At the same time, each edit only requires training for the current LoRA module, significantly reducing the computational resource consumption. As shown in Fig .1, SoLA achieves optimal performance with only 0.08M additional parameters, sig-", "source": "marker_v2", "marker_block_id": "/page/1/Text/6"}
10
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0009", "section": "1. Introduction", "page_start": 2, "page_end": 2, "type": "Text", "text": "nificantly outperforming previous methods, highlighting SoLA's exceptional parameter efficiency and editing accuracy.", "source": "marker_v2", "marker_block_id": "/page/1/Text/7"}
11
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0010", "section": "1. Introduction", "page_start": 2, "page_end": 2, "type": "Text", "text": "More importantly, by removing the semantic key from the mapping memory table, we can precisely revoke specific edits, allowing the model to recover its original behavior without re-training. This means we can freely add and delete edits, and truly achieve controllable rollback and restoration of editing. To our knowledge, this is the first time that controllable rollback of editing has been achieved in existing literature. Moreover, existing works usually require introducing auxiliary routing network outside the edited layer to determine whether to enable the LoRA module. In this paper, we propose a master decision-making mechanism that aggregates the decision-making process into the edited layer, avoiding the reliance on auxiliary routing network and achieving an end-to-end decision-making process.", "source": "marker_v2", "marker_block_id": "/page/1/Text/8"}
12
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0011", "section": "1. Introduction", "page_start": 2, "page_end": 2, "type": "Text", "text": "Extensive experiments validate the effectiveness of our approach. Our main contributions are summarized as follows:", "source": "marker_v2", "marker_block_id": "/page/1/Text/9"}
13
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0012", "section": "1. Introduction", "page_start": 2, "page_end": 2, "type": "ListGroup", "text": "We propose SoLA, a novel framework for reversible lifelong model editing, which incorporates a controllable LoRA mechanism guided by semantic routing. After each edit, both the LoRA modules and the corresponding keys in the mapping memory are frozen, effectively mitigating catastrophic forgetting and semantic drift. Moreover, only the currently active LoRA modules are trained during editing, significantly reducing computational overhead.(Fig .1) . We employs semantic routing to establish a precise mapping between LoRA modules and semantic representations. By removing the associated key, any specific edit can be precisely revoked, enabling flexible addition and deletion of edits. we propose a master decision-making mechanism that aggregates the decision-making process into the edited layer, avoiding the reliance on an auxiliary routing network and achieving an end-to-end decision-making process.", "source": "marker_v2", "marker_block_id": "/page/1/ListGroup/465"}
14
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0013", "section": "2.1. Model Editing", "page_start": 2, "page_end": 2, "type": "Text", "text": "Model Editing aims to update specific knowledge within LLMs while preserving their previous knowledge. Current model editing methods can be broadly categorized into three paradigms: Meta-Learning methods, Locate-then-Edit methods, and Memory-Based methods. Meta-Learning Methods employ a hypernetwork to predict the necessary gradients for editing and apply these gradients to the base model to achieve the update (Mitchell et al., 2021) . However, this", "source": "marker_v2", "marker_block_id": "/page/1/Text/15"}
15
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0014", "section": "2.1. Model Editing", "page_start": 3, "page_end": 3, "type": "FigureGroup", "text": "Figure 3. Main framework of our method. a) indicates the edited layer in model, where we retain the transformer block of base model frozen and add trainable LoRA module to the edited layer of base model. b) shows the editing process, where every edit will be assigned LoRA module and the query of input will be mapped to assigned LoRA module. c) presents the matching process between query of input and LoRA module in reference. Colour green indicates trainable, while color grey is frozen.", "source": "marker_v2", "marker_block_id": "/page/2/FigureGroup/530"}
16
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0015", "section": "2.1. Model Editing", "page_start": 3, "page_end": 3, "type": "Text", "text": "approach typically requires additional data for training the hypernetwork. Locate-then-Edit methods first identify the neurons most critical for the current input via minor perturbations and then directly modify these neurons to update the model's knowledge (Meng et al., 2022a; b) . While effective, these methods are often cumbersome and exhibit limitations when handling a large volume of simultaneous knowledge updates. Memory-Based methods store the information associated with edits in an buffer, which acts as a patch model augmenting the original model (Mitchell et al., 2022) . A significant drawback is that each edit necessitates retraining, making it difficult to adapt to continuous editing scenarios, and the memory bank grows incrementally with each edit, leading to escalating storage overhead. Recent studies have also explored editing constraints to maintain model behavior stability. AlphaEdit (Fang et al., 2024) introduces a null-space constrained approach. It aims to apply edits more precisely by constraining changes to the null space of irrelevant knowledge.", "source": "marker_v2", "marker_block_id": "/page/2/Text/3"}
17
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0016", "section": "2.1. Model Editing", "page_start": 3, "page_end": 3, "type": "Text", "text": "However, these methods primarily address static editing, suitable for one-time modifications, and struggle to accommodate sequential editing demands over time. To address these limitations, GRACE (Hartvigsen et al., 2023) replace hidden states with vectors retrieved from a learned codebook. MELO (Yu et al., 2024) introduces a vector database and leverages a clustering mechanism to dynamically assign LoRA modules. ELDER (Li et al., 2025) adopts a MoE framework, where a learnable neural network weights shared LoRA modules. However, these approaches in-", "source": "marker_v2", "marker_block_id": "/page/2/Text/4"}
18
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0017", "section": "2.1. Model Editing", "page_start": 3, "page_end": 3, "type": "Text", "text": "evitably update the semantic representation in sequential edits, leading to semantic drift or knowledge forgetting.", "source": "marker_v2", "marker_block_id": "/page/2/Text/5"}
19
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0018", "section": "3.1. Preliminaries", "page_start": 3, "page_end": 3, "type": "Text", "text": "Lifelong Model Editing The purpose of lifelong model editing, as described by Grace (Hartvigsen et al., 2023) , is to make continual edits to the knowledge of the initial base model without degrading the performance of the base model and without negating previous edits. Consider an initial base model fbase, After n edits Dedit = {d1, ..., dn}, some of the model's knowledge is updated and model is transformed into fn, where d i = (x i , yi), For lifetime model editing, the edited model f n should be able to correctly output y within the edited inputs x ∈ Dedit, i.e., fn(xi) = y i . Furthermore, for inputs x ′ ∈/ Dedit that are semantically similar to the edited instances, such as rephrased sentences, the model f n is expected to generalize the updated knowledge appropriately, like fn(x ′ i ) = y i . Moreover, after editing, the model f n should also retain the previous knowledge of fbase, that is, for data samples x j ∈/ Dedit that have not been edited, there should be fn(x j ) = fbase(x j ) = y j .", "source": "marker_v2", "marker_block_id": "/page/2/Text/8"}
20
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0019", "section": "3.1. Preliminaries", "page_start": 3, "page_end": 3, "type": "Text", "text": "LoRA for Lifelong Model Editing Low-Rank Adaptation (LoRA) (Hu et al., 2022) is an efficient finetuning method for LLMs that optimizes model outputs by projecting features into a low-rank subspace. In the context of efficient LLM finetuning, LoRA modules are typically inserted into", "source": "marker_v2", "marker_block_id": "/page/2/Text/9"}
21
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0020", "section": "3.1. Preliminaries", "page_start": 4, "page_end": 4, "type": "Text", "text": "specific layers of the pre-trained model. During editing, the base LLM parameters W_0 \\in \\mathbb{R}^{d \\times k} remain frozen, while only the LoRA module \\Delta W \\in \\mathbb{R}^{d \\times k} is updated. The parameter update \\Delta W can be represented as a low-rank decomposition of the pretrained weight matrix. Specifically, \\Delta W is factorized into two smaller matrices A \\in \\mathbb{R}^{r \\times k} and B \\in \\mathbb{R}^{d \\times r} , such that \\Delta W = BA , where r \\ll \\min(d,k) and r is the LoRA rank. Given the original h = W_0 x , the forward propagation process is modified as:", "source": "marker_v2", "marker_block_id": "/page/3/Text/1"}
22
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0021", "section": "3.1. Preliminaries", "page_start": 4, "page_end": 4, "type": "Equation", "text": "\\boldsymbol{h} = W_0 \\boldsymbol{x} + \\Delta W \\boldsymbol{x} = W_0 \\boldsymbol{x} + B A \\boldsymbol{x} \\tag{1}", "source": "marker_v2", "marker_block_id": "/page/3/Equation/2"}
23
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0022", "section": "3.1. Preliminaries", "page_start": 4, "page_end": 4, "type": "Text", "text": "where A is initialized using a zero mean Gaussian distribution and B is initialized as a zero matrix. This approach significantly reduces the number of trainable parameters while maintaining the expressive power of the full-rank update.", "source": "marker_v2", "marker_block_id": "/page/3/Text/3"}
24
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0023", "section": "3.2. Cluster Updating in Lifelong Model Editing", "page_start": 4, "page_end": 4, "type": "Text", "text": "In the context of lifelong model editing, when multiple adapter modules are involved, the model needs to dynamically manage the association between edits and the corresponding adapter module. MELO addresses this by employing a clustering mechanism that assigns edits to clusters based on the hidden representations of the inputs, with cluster centres being continuously updated throughout editing. However, this continual updating of cluster centers alters their semantic representation, leading to semantic drift and incorrect module assignments. Moreover, repeated training of LoRA modules can result in forgetting previously acquired knowledge. Varying the cluster radius in MeLO results in a different number of generated cluster centres, thereby affecting the frequency of cluster centre updates. We record MeLO's performance under different numbers of cluster centre updates, as shown in Fig.2. The experiment is conducted on SCOTUS dataset. In Fig.2, the number of updates refers to the number of cluster centre updates during the editing process, and the number of mismatches indicates how many times, during inference, the retrieved LoRA module differs from the one assigned during editing. ERR and TRR represent the model's accuracy on the edited and unedited datasets, respectively, after all editing tasks are completed.", "source": "marker_v2", "marker_block_id": "/page/3/Text/5"}
25
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0024", "section": "3.2. Cluster Updating in Lifelong Model Editing", "page_start": 4, "page_end": 4, "type": "Text", "text": "As shown in the Fig.2, for the same datasets SCOTUS of editing, increasing the number of cluster centre updates leads to a rise in mismatches during inference, and a corresponding decline in model performance on both the edited and unedited datasets. This demonstrates that cluster centre updates can cause semantic drift, resulting in incorrect LoRA match, while repeated training of LoRA modules contributes to knowledge forgetting. Therefore, in SoLA, we freeze both the LoRA modules and their associated keys once the current task is completed. These components are", "source": "marker_v2", "marker_block_id": "/page/3/Text/6"}
26
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0025", "section": "3.2. Cluster Updating in Lifelong Model Editing", "page_start": 4, "page_end": 4, "type": "Text", "text": "no longer updated in subsequent edits, thereby maximizing knowledge retention across editing iterations.", "source": "marker_v2", "marker_block_id": "/page/3/Text/7"}
27
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0026", "section": "3.3. Semantic Routing-Based Controllable LoRA", "page_start": 4, "page_end": 4, "type": "Text", "text": "In the layer where the model needs to be edited, we keep the parameters of the original model frozen and insert the learnable LoRA module for editing, as shown in Fig.3 a). In SoLA, each editing operation is encapsulated within an independent LoRA module. During sequential editing, for a given editing task d_i = (\\boldsymbol{x}_i^m, \\boldsymbol{y}_i^m)_{m=1}^n , a dedicated LoRA module LoRA<sub>i</sub> is assigned. For each data instance \\boldsymbol{x}_i^m \\in d_i , the corresponding LoRA id i is recorded, and a semantic routing entry is established by associating LoRA module with a semantic key derived from the input representation, as shown in Fig.3 b). Following prior work(Hartvigsen et al., 2023), we use the hidden representation of the last token in the input sequence as the key e \\in \\mathbb{R}^d vector. During editing, the assigned LoRA module LoRA<sub>i</sub> will fully learn the task d_i , yielding the output:", "source": "marker_v2", "marker_block_id": "/page/3/Text/9"}
28
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0027", "section": "3.3. Semantic Routing-Based Controllable LoRA", "page_start": 4, "page_end": 4, "type": "Equation", "text": "h = h_0 + LoRA_i(x) (2)", "source": "marker_v2", "marker_block_id": "/page/3/Equation/10"}
29
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0028", "section": "3.3. Semantic Routing-Based Controllable LoRA", "page_start": 4, "page_end": 4, "type": "Text", "text": "where h_0 \\in \\mathbb{R}^{l \\times d} is the frozen base model representation, l is the sequence length, d is the hidden state dimension. At this stage, all other LoRA modules and the stored key vectors remain frozen. Upon completion of the editing process, the trained LoRA<sub>i</sub> module is frozen and will be stored with its associated key e_i as a fixed mapping for future reference. Neither the LoRA module nor the key will be updated in subsequent editing. Since only the current LoRA module is involved in training during each edit, SoLA significantly reduces the number of trainable parameters, as shown in Fig.1. Furthermore, freezing both the LoRA module and its corresponding key after editing prevents semantic drift and mitigates catastrophic forgetting, thereby maximizing knowledge retention. During inference, the hidden representation of the last token in the input sequence will serve as a query vector \\boldsymbol{q} \\in \\mathbb{R}^d from the input \\boldsymbol{x} and matches against the stored keys K \\in \\mathbb{R}^{N \\times d} , as shown in Fig.3 c). If a match is found, the corresponding LoRA module is retrieved from stored LoRA pool R \\in \\mathbb{R}^M and incorporated into the computation.", "source": "marker_v2", "marker_block_id": "/page/3/Text/11"}
30
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0029", "section": "3.4. Master Decision Mechanism", "page_start": 4, "page_end": 4, "type": "Text", "text": "During inference, existing approaches usually need to introduce an auxiliary routing network outside the target edited layer to decide whether to activate the LoRA module or not(Yu et al., 2024; Li et al., 2025), which hampers the end-to-end decision-making process. To address this limitation, we propose a master decision-making mechanism that does not require an auxiliary routing component. Specifically, we designate the first edited layer as the master decision layer where input features are dynamically evaluated to activate the relevant LoRA module without the need for an auxil-", "source": "marker_v2", "marker_block_id": "/page/3/Text/13"}
31
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0030", "section": "3.4. Master Decision Mechanism", "page_start": 5, "page_end": 5, "type": "TableGroup", "text": "Table 1. Comparison of SoLA to existing methods. All the results are obtained after sequential edits. ERR indicates Edit Reliability Rate, TRR presents Task Retention Rate, and ARR is Accuracy Attention Rate. The best performance is shown in bold. SCOTUS (BERT; Acc ↑) zsRE (T5; F1 ↑) Hallucination (GPT2-XL; PPL ↓) Method ERR TRR Avg. ERR TRR Avg. ERR TRR ARR EWC 0.51 0.82 0.66 0.67 0.50 0.58 1485.7 29.24 109.59 CMR 0.52 0.52 0.52 0.56 0.82 0.69 1449.3 28.14 107.76 CLEAR 0.67 0.83 0.75 0.27 0.99 0.63 2394.3 35.34 195.82 MEND 0.19 0.27 0.23 0.25 0.27 0.26 1369.8 1754.9 2902.5 SERAC 0.33 0.41 0.37 0.72 0.31 0.52 8183.7 133.3 10.04 ROME - - - - - - 30.28 103.82 14.02 GRACE 0.81 0.82 0.82 0.69 0.96 0.83 15.84 7.14 10.00 ELDER 0.89 0.86 0.88 0.72 0.97 0.84 16.12 5.87 8.42 MELO 0.96 0.92 0.94 0.72 0.98 0.85 17.45 1.04 2.66 SoLA 0.97 0.95 0.96 0.73 0.99 0.86 15.15 1.01 7.35", "source": "marker_v2", "marker_block_id": "/page/4/TableGroup/521"}
32
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0031", "section": "3.4. Master Decision Mechanism", "page_start": 5, "page_end": 5, "type": "Text", "text": "iary network. In this framework, the master decision layer H e computes the distance metric between the input feature embedding q and the stored key K to determine the activation of the module: d = He(argmini(dist(q, ki))), i = (1, 2, ..., N), dist(·) denotes the distance function and each key k i associated with the LoRA module. Then in the master layer He, we decide the edit layer behaviour:", "source": "marker_v2", "marker_block_id": "/page/4/Text/5"}
33
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0032", "section": "3.4. Master Decision Mechanism", "page_start": 5, "page_end": 5, "type": "Equation", "text": "H_e = \\begin{cases} H(W_0) & \\text{if } d \\ge \\alpha \\\\ H(W_0, W_{R_m}) & \\text{if } d < \\alpha \\end{cases} (3)", "source": "marker_v2", "marker_block_id": "/page/4/Equation/6"}
34
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0033", "section": "3.4. Master Decision Mechanism", "page_start": 5, "page_end": 5, "type": "Text", "text": "where α is the threshold, in this work we set it as 0.01, WR m represents the weight of m-th LoRA module associated with the key nearest to the query. This binary decision is propagated to the subsequent edited layers, ensuring consistent module activation throughout the network. By integrating the decision-making process to the first edited layer, our approach achieves complete end-to-end decision-making capability while maintaining architectural simplicity.", "source": "marker_v2", "marker_block_id": "/page/4/Text/7"}
35
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0034", "section": "4.1. Implementation Details", "page_start": 5, "page_end": 5, "type": "Text", "text": "Baselines We first compare several recent methods designed for lifelong model editing. Grace (Hartvigsen et al., 2023) replaces model outputs with key-value pairs and matches features to keys based on deferral radius. MELO (Yu et al., 2024) leverages LoRA for finetuning and dynamically retrieves relevant LoRA modules via neuron index. EL-DER (Li et al., 2025) employs MoE to dynamically combine multiple LoRA modules. Additionally, we evaluate other baseline methods. MEND (Mitchell et al., 2021) uses a hypernetwork trained on auxiliary data to predict the required gradients for model editing. SERAC (Mitchell et al., 2022)", "source": "marker_v2", "marker_block_id": "/page/4/Text/10"}
36
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0035", "section": "4.1. Implementation Details", "page_start": 5, "page_end": 5, "type": "Text", "text": "learns a scope classifier and a counterfactual model, coordinating between modules to determine editing behavior. ROME (Meng et al., 2022a) identifies the most influential weights in the model through perturbation analysis, localizes knowledge to specific layers of GPT, and modifies the corresponding weights. Since ROME is specifically designed for GPT, it is only evaluated on the hallucination correction task. EWC (Kirkpatrick et al., 2017) imposes constraints on the weights updating so that the model continuously learns new knowledge and retains previous knowledge. CMR (Lin et al., 2022) performs continuous finetuning of the model to continuously learn new knowledge. CLEAR (Rolnick et al., 2019) builds a memory buffer to restore old tasks information, and replays them in subsequent edits to retain previous knowledge.", "source": "marker_v2", "marker_block_id": "/page/4/Text/11"}
37
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0036", "section": "4.1. Implementation Details", "page_start": 5, "page_end": 5, "type": "Text", "text": "Evaluation Metric In this work, following (Hartvigsen et al., 2023) , we use three basic metrics to assess model performance: ES, ERR and TRR, which are applicable to all model experiments. Where Edit Success(ES) measures the ability of the model to edit the target sample. Edit Reliability Rate(ERR) assesses the validity of the model on the edited dataset, indicating the extent to which the required knowledge updates are successfully incorporated. Task Retention Rate(TRR) quantifies the model's performance on unedited datasets and reflects the model's ability to retain previous knowledge. Additionally, in the hallucination correction task, we also use the Accuracy Attention Rate (ARR) to assess the performance of the already accurate output. Accuracy is measured differently for different tasks. For the document classification task of SCOTUS, we use the Average Accuracy Rate (ACC); for the question answering task of zsRE, we measure it using the average F1, and for the hallucination correction task, we measure it using the standard average complexity (PPL) (Brown et al., 1992) .", "source": "marker_v2", "marker_block_id": "/page/4/Text/12"}
38
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0037", "section": "4.1. Implementation Details", "page_start": 6, "page_end": 6, "type": "FigureGroup", "text": "Figure 4. Figure(a)–(c) presents every edit accuracy on SCOTUS datasets with BERT. All experiment settings are the same as Tab .1.", "source": "marker_v2", "marker_block_id": "/page/5/FigureGroup/386"}
39
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0038", "section": "4.1. Implementation Details", "page_start": 6, "page_end": 6, "type": "FigureGroup", "text": "Figure 5. Visualization of zsRE dataset encoder output from T5 small with t-SNE and the dots with same color and shape are input and rephrase sentence. All experiment settings are the same as Tab .1.", "source": "marker_v2", "marker_block_id": "/page/5/FigureGroup/387"}
40
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0039", "section": "4.2. Main Results", "page_start": 6, "page_end": 6, "type": "Text", "text": "We evaluate the performance of the proposed SoLA method on three benchmark datasets and compare it with several state-of-the-art model editing approaches. The results are summarized in Tab .1. As observed, SoLA achieves excellent performance on most of the benchmark datasets, with SoLA outperforming the strongest baseline, MELO, by 3% on the SCOTUS dataset. These demonstrate SoLA's enhanced effectiveness in editing target knowledge while better preserving previously acquired knowledge. Furthermore, existing methods such as MEND and SERAC perform poorly under the sequential editing setting, suggesting that they are primarily designed for static editing scenarios and are not well-suited for sequential model editing tasks.", "source": "marker_v2", "marker_block_id": "/page/5/Text/7"}
41
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0040", "section": "4.2. Main Results", "page_start": 6, "page_end": 6, "type": "Text", "text": "We also report task-wise accuracy progression to analyze model performance throughout the sequential editing process. The experimental results are based on the SCOTUS dataset and the results are shown in Fig .4. As illustrated in Fig .4a, Fig .4b and Fig .4c, SoLA consistently maintains", "source": "marker_v2", "marker_block_id": "/page/5/Text/8"}
42
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0041", "section": "4.2. Main Results", "page_start": 6, "page_end": 6, "type": "Text", "text": "superior accuracy across tasks, without exhibiting substantial performance degradation or volatility. This indicates the robustness and stability of SoLA when applied to sequential knowledge editing.", "source": "marker_v2", "marker_block_id": "/page/5/Text/9"}
43
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0042", "section": "4.2. Main Results", "page_start": 6, "page_end": 6, "type": "Text", "text": "Method performance may vary across different model sizes and datasets. To further evaluate the robustness of our approach, we conduct hallucination correction experiments on the UniEdit (Chen et al., 2025) and WikiBigEdit (Thede et al., 2025) datasets using larger-scale backbone models. The results are presented in Tab .2. As shown in Tab .2, SoLA consistently achieves the best or near-best performance across most settings, demonstrating its robustness and effectiveness under diverse task configurations. During editing, larger backbone models generally exhibit more stable ERR values, suggesting that such models have learned stronger semantic representations during pretraining, leading to better generalization and editability. Furthermore, continuous learning related methods tend to overfit in edited data, thus showing better ARR in the retention set, but large TRR values in the upstream set, indicating severe forgetting of previous knowledge.", "source": "marker_v2", "marker_block_id": "/page/5/Text/10"}
44
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0043", "section": "4.3. Controllable Rollback Editing", "page_start": 6, "page_end": 6, "type": "Text", "text": "In SoLA, each edit instance is associated with a unique key stored in both the memory and the routing table. This design enables reversible editing, as the model can revert to its original behavior by removing the key corresponding to a specific edit. To demonstrate this property, we conduct an illustrative experiment on the zsRE dataset. The results are shown in Tab .3. In the Tab .3, each row corresponds to an input instance consisting of a \"Text\" (the question need to be edited) and its \"Labels\" (the correct answer). \"Del\" indicates whether the key corresponding to the edit is removed after editing. For each input, Predbase, Prededit and Preddel denote the prediction of base model, edited model and model after removing the corresponding key. When \"Del\" is false, the key is retained, serving as a baseline comparison. As shown in Tab .3, for each instance, the original prediction (Predbase) does not match the correct label, indi-", "source": "marker_v2", "marker_block_id": "/page/5/Text/12"}
45
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0044", "section": "4.3. Controllable Rollback Editing", "page_start": 7, "page_end": 7, "type": "TableGroup", "text": "Table 2. Model Performance Comparison on UniEdit and WikiBigEdit datasets in hallucination correction tasks. All the scores are PPL metric and the best result is in bolded. UniEdit (PPL ↓) WikiBigEdit (PPL ↓) Model Method ERR TRR ARR ERR TRR ARR EWC 2.43 1134 22.08 3.58 251117 4.93 CMR 2.79 2239 25.24 2.86 169452 4.49 LLaMA-3-8B CLEAR 1.04 982 29.79 1.03 74384 1.52 SERAC 37.10 246 93 60.17 215 59 GRACE 1.00 244 89 1.00 216 58 ELDER 1.00 173 74 1.00 178 48 MELO 1.00 153 68 1.00 165 47 Ours 1.00 144 66 1.00 162 44 EWC 2.38 4451 42.13 2.86 47846 3.89 CMR 2.34 7211 36.19 3.60 34623 5.51 DeepSeek-R1-8B CLEAR 1.06 3365 44.86 1.02 28110 1.48 SERAC 46.76 451 834 82.72 493 831 GRACE 1.00 407 803 1.00 487 793 ELDER 1.03 241 482 1.03 304 492 MELO 1.09 204 407 1.05 263 445 Ours 1.07 188 374 1.00 248 412 EWC 4.62 7648 48.62 5.61 61834 14.65 CMR 4.12 11583 40.56 6.28 48629 16.89 Qwen2-7B CLEAR 1.03 5021 54.98 1.05 35396 4.26 SERAC 58.51 329 1261 62.12 304 523 GRACE 2.05 316 1065 16.88 299 518 ELDER 1.00 201 266 1.00 225 197 MELO 1.00 170 201 1.00 203 143 Ours 1.00 156 110 1.00 199 109", "source": "marker_v2", "marker_block_id": "/page/6/TableGroup/486"}
46
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0045", "section": "4.3. Controllable Rollback Editing", "page_start": 7, "page_end": 7, "type": "Text", "text": "cating the necessity for editing. After editing, the model correctly produces Prededit consistent with the ground-truth label, demonstrating that SoLA successfully updates the model's knowledge. When the associated key is deleted, the model reverts to its original prediction (Prededit = Predbase), verifying that our method can effectively roll back specific edits. More critically, for edits where the key is not deleted, the model continues to output Prededit, showing that the rollback operation does not interfere with other edits. This confirms that SoLA supports fine-grained, selective undo of knowledge edits without disrupting unrelated modifications.", "source": "marker_v2", "marker_block_id": "/page/6/Text/3"}
47
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0046", "section": "4.4. Ablation Study", "page_start": 7, "page_end": 7, "type": "Text", "text": "Effect of Edit Layer Location In semantic representation learning, different layers of a model focus on different aspects of semantic information. Therefore, the position of the edited layer can significantly influence the effectiveness of model editing. To investigate this, we evaluate the performance of model when edits are applied at different layers, while keeping all other settings fixed. The experiments are conducted on the SCOTUS dataset with a Nvidia A100 40G GPU, and the results are shown in Tab .4. In the", "source": "marker_v2", "marker_block_id": "/page/6/Text/5"}
48
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0047", "section": "4.4. Ablation Study", "page_start": 7, "page_end": 7, "type": "Text", "text": "Tab .4, \"Layer\" denotes the layer range used for editing. For example, \"0–2\" indicates that edits are applied to layers 0, 1, and 2 of the BERT model. As shown in the table, editing at shallower layers results in suboptimal performance. This observation aligns with prior findings (Geva et al., 2020) , which suggest that shallow layers primarily capture the shallow sentence patterns, whereas deeper layers encode richer semantic features, thereby enabling more effective knowledge editing. Moreover, editing at shallow layers significantly increases the time used for editing, which means that editing for semantics is more difficult in shallow layers. Furthermore, we observe that varying the editing layer has negligible impact on performance over the unedited portion of the dataset, indicating that SoLA is capable of preserving previously learned knowledge regardless of the editing depth, which further supports the robustness of SoLA.", "source": "marker_v2", "marker_block_id": "/page/6/Text/6"}
49
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0048", "section": "4.4. Ablation Study", "page_start": 7, "page_end": 7, "type": "Text", "text": "Effect of LoRA Rank The LoRA module projects semantic representations into a low-rank subspace for parameterefficient learning. Consequently, the choice of rank will effect the module's performance. To investigate this, we analyze the impact of different LoRA rank values on model performance, keeping all other settings fixed. Experiments are conducted on the SCOTUS dataset using a NVIDIA", "source": "marker_v2", "marker_block_id": "/page/6/Text/7"}
50
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0049", "section": "4.4. Ablation Study", "page_start": 8, "page_end": 8, "type": "TableGroup", "text": "Table 3. Controllable edit in SoLA on zsRE datasets. \"Text\" is the question need to be edited, \"Labels\" is the true answer, \"Del\" indicates whther delete associated key and Predbase, Prededit and Preddel is the prediction of base model, edited model and delted model. Text Labels Del Predbase Prededit Preddel The date of Tsetserleg earthquake in 1905? 9 July 1905 True 20 February 1905 9 July 1905 20 February 1905 What constellation has Nu Cancri? Cancer True Hydra Cancer Hydra On what date did the Bahrain Grand Prix 2015 occur? 19 April 2015 True 6 April 2017 19 April 2015 6 April 2017 What position does Charles-Joseph Coursol have? Mayor of Montreal True Positioning Mayor of Montreal Positioning Who acted in Blow Dry? Alan Rickman False Jim Carrey Alan Rickman Alan Rickman Table 4. Ablation studies on location of edited layers. Here, \"Layer\" indicates the edited layer location. For example, \"0-2\" presents edited layer is layers 0, 1 and 2.", "source": "marker_v2", "marker_block_id": "/page/7/TableGroup/457"}
51
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0050", "section": "4.4. Ablation Study", "page_start": 8, "page_end": 8, "type": "TableGroup", "text": "Layer ES ERR TRR Edit Time(min) 0-2 0.77 0.61 0.96 9.21 3-5 1.00 0.68 0.96 8.06 6-8 0.81 0.70 0.97 7.03 9-11 0.94 0.95 0.97 5.97 Table 5. Ablation studies on LoRA rank. Here, \"LoRA Rank\" indicates the rank value of every LoRA in model.", "source": "marker_v2", "marker_block_id": "/page/7/TableGroup/458"}
52
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0051", "section": "4.4. Ablation Study", "page_start": 8, "page_end": 8, "type": "Table", "text": "LoRA Rank ES ERR TRR Edit Time(min) 1 0.90 0.84 0.96 5.88 2 0.94 0.91 0.97 5.90 3 1.00 0.91 0.97 5.86 4 1.00 0.95 0.97 5.97 5 1.00 0.92 0.96 5.86 10 1.00 0.71 0.96 5.85", "source": "marker_v2", "marker_block_id": "/page/7/Table/17"}
53
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0052", "section": "4.4. Ablation Study", "page_start": 8, "page_end": 8, "type": "Text", "text": "A100 40GB GPU, and the results are presented in Tab .5. As shown in the Tab .5, simply increasing the LoRA rank does not lead to improved performance and may even degrade model performance. This indicates that expanding the learnable parameter space does not necessarily enhance the model's capacity for effective knowledge editing. On the contrary, excessive rank values may even result in performance degradation due to overfitting, suggesting the importance of carefully selecting an appropriate rank to balance capacity and generalization. Based on the experiment results, we set 4 as LoRA rank for all the experiments in this paper.", "source": "marker_v2", "marker_block_id": "/page/7/Text/18"}
54
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0053", "section": "4.5. Model Visualization", "page_start": 8, "page_end": 8, "type": "Text", "text": "To gain deeper insight into the model's behavior under sequential editing, we conducted a t-SNE visualization (Maaten & Hinton, 2008) of the learned feature representations. This experiment is performed on the zsRE dataset using the T5-small model to assess how semantic relationships are preserved after sequential edits. Upon completing", "source": "marker_v2", "marker_block_id": "/page/7/Text/20"}
55
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0054", "section": "4.5. Model Visualization", "page_start": 8, "page_end": 8, "type": "Text", "text": "the entire sequence of editing tasks for question answering, we selected five distinct input instances, each accompanied by semantically equivalent rephrased sentences, forming five evaluation groups. The encoder output features are subsequently extracted from the edited model for dimensionality reduction and visualization, and the resulting plot is represented in Fig .5. As shown in Fig .5, there is a clear clustering pattern that for each group, the original input and its rephrased variant are mapped to proximate locations in the latent space. This demonstrates that SoLA effectively captures and preserves the semantic similarity between related inputs throughout the editing process. Furthermore, distinct groups maintain separable clusters, indicating that the model retains the ability to discriminate between different edit concepts after sequential editing. This visualization shows that SoLA's semantic routing mechanism successfully supports edit generalization based on semantic similarity while upholding the integrity of previously learned knowledge.", "source": "marker_v2", "marker_block_id": "/page/7/Text/21"}
56
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0055", "section": "5. Conclusion", "page_start": 8, "page_end": 8, "type": "Text", "text": "In this paper, we propose SoLA, a Semantic routing-based LoRA framework for reversible lifelong model editing. In SoLA, each edit is encapsulated as an independent LoRA module which is frozen after training and a semantic routing record is established to map LoRA module to the input semantic representation, allowing dynamic activation of LoRA modules via semantic matching. This design not only avoids semantic drift caused by clustering updating but also mitigates catastrophic forgetting from parameter sharing. More importantly, SoLA supports precisely revoking edit by removing the corresponding key from the routing table, enabling reversible model editing. This allows for flexible addition and deletion of edits, offering fine-grained control over model behavior. To the best of our knowledge, this is the first work to achieve reversible model editing in the literature. Furthermore, we introduce a master decisionmaking mechanism by integrating decision-making into the edited layer, enabling end-to-end decision-making process. By building a strict mapping between edits and LoRA modules, SoLA achieves efficient and reversible lifelong model editing, providing a novel perspective for future research.", "source": "marker_v2", "marker_block_id": "/page/7/Text/23"}
57
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0056", "section": "Impact Statement", "page_start": 9, "page_end": 9, "type": "Text", "text": "This work advances the field of Machine Learning by introducing SoLA, a framework for reversible and controllable lifelong model editing in large language models. Our method enhances the safety and reliability of AI systems by enabling precise rollback of model edits, which helps mitigate risks associated with erroneous or harmful knowledge updates. By effectively preventing semantic drift and catastrophic forgetting, SoLA promotes the development of more robust and trustworthy models capable of adapting to evolving information. The significant reduction in computational overhead also aligns with the goal of sustainable AI development.", "source": "marker_v2", "marker_block_id": "/page/8/Text/2"}
icml26/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1/marker_meta.json ADDED
@@ -0,0 +1,1241 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "table_of_contents": [
3
+ {
4
+ "title": "Reversible Lifelong Model Editing via Semantic Routing-Based LoRA",
5
+ "heading_level": null,
6
+ "page_id": 0,
7
+ "polygon": [
8
+ [
9
+ 84.677001953125,
10
+ 87.78515625
11
+ ],
12
+ [
13
+ 512.7245483398438,
14
+ 87.78515625
15
+ ],
16
+ [
17
+ 512.7245483398438,
18
+ 104.2581787109375
19
+ ],
20
+ [
21
+ 84.677001953125,
22
+ 104.2581787109375
23
+ ]
24
+ ]
25
+ },
26
+ {
27
+ "title": "Anonymous Authors1",
28
+ "heading_level": null,
29
+ "page_id": 0,
30
+ "polygon": [
31
+ [
32
+ 240.85546875,
33
+ 140.765625
34
+ ],
35
+ [
36
+ 333.2859191894531,
37
+ 140.765625
38
+ ],
39
+ [
40
+ 333.2859191894531,
41
+ 152.96612548828125
42
+ ],
43
+ [
44
+ 240.85546875,
45
+ 152.96612548828125
46
+ ]
47
+ ]
48
+ },
49
+ {
50
+ "title": "Abstract",
51
+ "heading_level": null,
52
+ "page_id": 0,
53
+ "polygon": [
54
+ [
55
+ 147.322265625,
56
+ 175.18359375
57
+ ],
58
+ [
59
+ 194.68328857421875,
60
+ 175.18359375
61
+ ],
62
+ [
63
+ 194.68328857421875,
64
+ 188.015380859375
65
+ ],
66
+ [
67
+ 147.322265625,
68
+ 188.015380859375
69
+ ]
70
+ ]
71
+ },
72
+ {
73
+ "title": "1. Introduction",
74
+ "heading_level": null,
75
+ "page_id": 0,
76
+ "polygon": [
77
+ [
78
+ 54.087890625,
79
+ 557.9141845703125
80
+ ],
81
+ [
82
+ 132.27606201171875,
83
+ 557.9141845703125
84
+ ],
85
+ [
86
+ 132.27606201171875,
87
+ 569.869384765625
88
+ ],
89
+ [
90
+ 54.087890625,
91
+ 569.869384765625
92
+ ]
93
+ ]
94
+ },
95
+ {
96
+ "title": "2. Related Work",
97
+ "heading_level": null,
98
+ "page_id": 1,
99
+ "polygon": [
100
+ [
101
+ 307.44000244140625,
102
+ 583.55859375
103
+ ],
104
+ [
105
+ 390.55255126953125,
106
+ 583.55859375
107
+ ],
108
+ [
109
+ 390.55255126953125,
110
+ 596.1283569335938
111
+ ],
112
+ [
113
+ 307.44000244140625,
114
+ 596.1283569335938
115
+ ]
116
+ ]
117
+ },
118
+ {
119
+ "title": "2.1. Model Editing",
120
+ "heading_level": null,
121
+ "page_id": 1,
122
+ "polygon": [
123
+ [
124
+ 306.59765625,
125
+ 605.0755004882812
126
+ ],
127
+ [
128
+ 386.68359375,
129
+ 605.0755004882812
130
+ ],
131
+ [
132
+ 386.68359375,
133
+ 615.0381011962891
134
+ ],
135
+ [
136
+ 306.59765625,
137
+ 615.0381011962891
138
+ ]
139
+ ]
140
+ },
141
+ {
142
+ "title": "3. Method",
143
+ "heading_level": null,
144
+ "page_id": 2,
145
+ "polygon": [
146
+ [
147
+ 306.59765625,
148
+ 400.76617431640625
149
+ ],
150
+ [
151
+ 359.24188232421875,
152
+ 400.76617431640625
153
+ ],
154
+ [
155
+ 359.24188232421875,
156
+ 412.72137451171875
157
+ ],
158
+ [
159
+ 306.59765625,
160
+ 412.72137451171875
161
+ ]
162
+ ]
163
+ },
164
+ {
165
+ "title": "3.1. Preliminaries",
166
+ "heading_level": null,
167
+ "page_id": 2,
168
+ "polygon": [
169
+ [
170
+ 307.1953125,
171
+ 419.58984375
172
+ ],
173
+ [
174
+ 382.2491760253906,
175
+ 419.58984375
176
+ ],
177
+ [
178
+ 382.2491760253906,
179
+ 431.631103515625
180
+ ],
181
+ [
182
+ 307.1953125,
183
+ 431.631103515625
184
+ ]
185
+ ]
186
+ },
187
+ {
188
+ "title": "3.2. Cluster Updating in Lifelong Model Editing",
189
+ "heading_level": null,
190
+ "page_id": 3,
191
+ "polygon": [
192
+ [
193
+ 53.19140625,
194
+ 288.0
195
+ ],
196
+ [
197
+ 260.25,
198
+ 288.0
199
+ ],
200
+ [
201
+ 260.25,
202
+ 298.546875
203
+ ],
204
+ [
205
+ 53.19140625,
206
+ 298.546875
207
+ ]
208
+ ]
209
+ },
210
+ {
211
+ "title": "3.3. Semantic Routing-Based Controllable LoRA",
212
+ "heading_level": null,
213
+ "page_id": 3,
214
+ "polygon": [
215
+ [
216
+ 304.8046875,
217
+ 105.75
218
+ ],
219
+ [
220
+ 514.5,
221
+ 105.75
222
+ ],
223
+ [
224
+ 514.5,
225
+ 115.5
226
+ ],
227
+ [
228
+ 304.8046875,
229
+ 115.5
230
+ ]
231
+ ]
232
+ },
233
+ {
234
+ "title": "3.4. Master Decision Mechanism",
235
+ "heading_level": null,
236
+ "page_id": 3,
237
+ "polygon": [
238
+ [
239
+ 305.25,
240
+ 580.46484375
241
+ ],
242
+ [
243
+ 447.0,
244
+ 580.46484375
245
+ ],
246
+ [
247
+ 447.0,
248
+ 589.5
249
+ ],
250
+ [
251
+ 305.25,
252
+ 589.5
253
+ ]
254
+ ]
255
+ },
256
+ {
257
+ "title": "4. Experiments",
258
+ "heading_level": null,
259
+ "page_id": 4,
260
+ "polygon": [
261
+ [
262
+ 52.892578125,
263
+ 548.3081665039062
264
+ ],
265
+ [
266
+ 132.47930908203125,
267
+ 548.3081665039062
268
+ ],
269
+ [
270
+ 132.47930908203125,
271
+ 560.2633666992188
272
+ ],
273
+ [
274
+ 52.892578125,
275
+ 560.2633666992188
276
+ ]
277
+ ]
278
+ },
279
+ {
280
+ "title": "4.1. Implementation Details",
281
+ "heading_level": null,
282
+ "page_id": 4,
283
+ "polygon": [
284
+ [
285
+ 51.99609375,
286
+ 569.2105102539062
287
+ ],
288
+ [
289
+ 172.76953125,
290
+ 569.2105102539062
291
+ ],
292
+ [
293
+ 172.76953125,
294
+ 579.69140625
295
+ ],
296
+ [
297
+ 51.99609375,
298
+ 579.69140625
299
+ ]
300
+ ]
301
+ },
302
+ {
303
+ "title": "4.2. Main Results",
304
+ "heading_level": null,
305
+ "page_id": 5,
306
+ "polygon": [
307
+ [
308
+ 54.38671875,
309
+ 478.37109375
310
+ ],
311
+ [
312
+ 129.05364990234375,
313
+ 478.37109375
314
+ ],
315
+ [
316
+ 129.05364990234375,
317
+ 489.50909423828125
318
+ ],
319
+ [
320
+ 54.38671875,
321
+ 489.50909423828125
322
+ ]
323
+ ]
324
+ },
325
+ {
326
+ "title": "4.3. Controllable Rollback Editing",
327
+ "heading_level": null,
328
+ "page_id": 5,
329
+ "polygon": [
330
+ [
331
+ 305.40234375,
332
+ 500.02734375
333
+ ],
334
+ [
335
+ 453.1230773925781,
336
+ 500.02734375
337
+ ],
338
+ [
339
+ 453.1230773925781,
340
+ 510.422119140625
341
+ ],
342
+ [
343
+ 305.40234375,
344
+ 510.422119140625
345
+ ]
346
+ ]
347
+ },
348
+ {
349
+ "title": "4.4. Ablation Study",
350
+ "heading_level": null,
351
+ "page_id": 6,
352
+ "polygon": [
353
+ [
354
+ 53.19140625,
355
+ 582.7525024414062
356
+ ],
357
+ [
358
+ 137.37242126464844,
359
+ 582.7525024414062
360
+ ],
361
+ [
362
+ 137.37242126464844,
363
+ 592.7151031494141
364
+ ],
365
+ [
366
+ 53.19140625,
367
+ 592.7151031494141
368
+ ]
369
+ ]
370
+ },
371
+ {
372
+ "title": "4.5. Model Visualization",
373
+ "heading_level": null,
374
+ "page_id": 7,
375
+ "polygon": [
376
+ [
377
+ 51.697265625,
378
+ 628.9865112304688
379
+ ],
380
+ [
381
+ 158.02487182617188,
382
+ 628.9865112304688
383
+ ],
384
+ [
385
+ 158.02487182617188,
386
+ 638.9491119384766
387
+ ],
388
+ [
389
+ 51.697265625,
390
+ 638.9491119384766
391
+ ]
392
+ ]
393
+ },
394
+ {
395
+ "title": "5. Conclusion",
396
+ "heading_level": null,
397
+ "page_id": 7,
398
+ "polygon": [
399
+ [
400
+ 307.44000244140625,
401
+ 437.7861633300781
402
+ ],
403
+ [
404
+ 376.52911376953125,
405
+ 437.7861633300781
406
+ ],
407
+ [
408
+ 376.52911376953125,
409
+ 449.7413635253906
410
+ ],
411
+ [
412
+ 307.44000244140625,
413
+ 449.7413635253906
414
+ ]
415
+ ]
416
+ },
417
+ {
418
+ "title": "Impact Statement",
419
+ "heading_level": null,
420
+ "page_id": 8,
421
+ "polygon": [
422
+ [
423
+ 52.59375,
424
+ 67.84710693359375
425
+ ],
426
+ [
427
+ 146.74185180664062,
428
+ 67.84710693359375
429
+ ],
430
+ [
431
+ 146.74185180664062,
432
+ 79.80230712890625
433
+ ],
434
+ [
435
+ 52.59375,
436
+ 79.80230712890625
437
+ ]
438
+ ]
439
+ },
440
+ {
441
+ "title": "References",
442
+ "heading_level": null,
443
+ "page_id": 8,
444
+ "polygon": [
445
+ [
446
+ 53.490234375,
447
+ 247.2921142578125
448
+ ],
449
+ [
450
+ 110.9838638305664,
451
+ 247.2921142578125
452
+ ],
453
+ [
454
+ 110.9838638305664,
455
+ 259.247314453125
456
+ ],
457
+ [
458
+ 53.490234375,
459
+ 259.247314453125
460
+ ]
461
+ ]
462
+ },
463
+ {
464
+ "title": "550",
465
+ "heading_level": null,
466
+ "page_id": 10,
467
+ "polygon": [
468
+ [
469
+ 23.009765625,
470
+ 69.16845703125
471
+ ],
472
+ [
473
+ 41.537109375,
474
+ 69.16845703125
475
+ ],
476
+ [
477
+ 41.537109375,
478
+ 89.71875
479
+ ],
480
+ [
481
+ 23.009765625,
482
+ 89.71875
483
+ ]
484
+ ]
485
+ },
486
+ {
487
+ "title": "Appendix",
488
+ "heading_level": null,
489
+ "page_id": 10,
490
+ "polygon": [
491
+ [
492
+ 258.1875,
493
+ 70.6898193359375
494
+ ],
495
+ [
496
+ 334.00738525390625,
497
+ 70.6898193359375
498
+ ],
499
+ [
500
+ 334.00738525390625,
501
+ 88.171875
502
+ ],
503
+ [
504
+ 258.1875,
505
+ 88.171875
506
+ ]
507
+ ]
508
+ },
509
+ {
510
+ "title": "A. Additional Related Work",
511
+ "heading_level": null,
512
+ "page_id": 10,
513
+ "polygon": [
514
+ [
515
+ 53.490234375,
516
+ 102.8671875
517
+ ],
518
+ [
519
+ 198.67526245117188,
520
+ 102.8671875
521
+ ],
522
+ [
523
+ 198.67526245117188,
524
+ 115.09228515625
525
+ ],
526
+ [
527
+ 53.490234375,
528
+ 115.09228515625
529
+ ]
530
+ ]
531
+ },
532
+ {
533
+ "title": "A.1. Parameter-Efficient Fine-Tuning",
534
+ "heading_level": null,
535
+ "page_id": 10,
536
+ "polygon": [
537
+ [
538
+ 53.7890625,
539
+ 123.75
540
+ ],
541
+ [
542
+ 213.9947509765625,
543
+ 123.75
544
+ ],
545
+ [
546
+ 213.9947509765625,
547
+ 134.00201416015625
548
+ ],
549
+ [
550
+ 53.7890625,
551
+ 134.00201416015625
552
+ ]
553
+ ]
554
+ },
555
+ {
556
+ "title": "A.2. Routing Mechanisms in Modular Language Models",
557
+ "heading_level": null,
558
+ "page_id": 10,
559
+ "polygon": [
560
+ [
561
+ 53.7890625,
562
+ 335.197509765625
563
+ ],
564
+ [
565
+ 289.518798828125,
566
+ 335.197509765625
567
+ ],
568
+ [
569
+ 289.518798828125,
570
+ 345.33984375
571
+ ],
572
+ [
573
+ 53.7890625,
574
+ 345.33984375
575
+ ]
576
+ ]
577
+ },
578
+ {
579
+ "title": "B. Additional Experiment Details",
580
+ "heading_level": null,
581
+ "page_id": 10,
582
+ "polygon": [
583
+ [
584
+ 54.38671875,
585
+ 643.899169921875
586
+ ],
587
+ [
588
+ 225.47882080078125,
589
+ 643.899169921875
590
+ ],
591
+ [
592
+ 225.47882080078125,
593
+ 655.8543701171875
594
+ ],
595
+ [
596
+ 54.38671875,
597
+ 655.8543701171875
598
+ ]
599
+ ]
600
+ }
601
+ ],
602
+ "page_stats": [
603
+ {
604
+ "page_id": 0,
605
+ "text_extraction_method": "pdftext",
606
+ "block_counts": [
607
+ [
608
+ "Span",
609
+ 323
610
+ ],
611
+ [
612
+ "Line",
613
+ 129
614
+ ],
615
+ [
616
+ "Text",
617
+ 6
618
+ ],
619
+ [
620
+ "SectionHeader",
621
+ 4
622
+ ],
623
+ [
624
+ "PageHeader",
625
+ 1
626
+ ],
627
+ [
628
+ "Footnote",
629
+ 1
630
+ ],
631
+ [
632
+ "Figure",
633
+ 1
634
+ ],
635
+ [
636
+ "Caption",
637
+ 1
638
+ ],
639
+ [
640
+ "PageFooter",
641
+ 1
642
+ ],
643
+ [
644
+ "FigureGroup",
645
+ 1
646
+ ],
647
+ [
648
+ "Reference",
649
+ 1
650
+ ]
651
+ ],
652
+ "block_metadata": {
653
+ "llm_request_count": 0,
654
+ "llm_error_count": 0,
655
+ "llm_tokens_used": 0,
656
+ "previous_text": "",
657
+ "previous_type": "",
658
+ "previous_order": 0
659
+ }
660
+ },
661
+ {
662
+ "page_id": 1,
663
+ "text_extraction_method": "pdftext",
664
+ "block_counts": [
665
+ [
666
+ "Span",
667
+ 303
668
+ ],
669
+ [
670
+ "Line",
671
+ 140
672
+ ],
673
+ [
674
+ "Text",
675
+ 12
676
+ ],
677
+ [
678
+ "ListItem",
679
+ 3
680
+ ],
681
+ [
682
+ "SectionHeader",
683
+ 2
684
+ ],
685
+ [
686
+ "PageHeader",
687
+ 1
688
+ ],
689
+ [
690
+ "Figure",
691
+ 1
692
+ ],
693
+ [
694
+ "Caption",
695
+ 1
696
+ ],
697
+ [
698
+ "PageFooter",
699
+ 1
700
+ ],
701
+ [
702
+ "FigureGroup",
703
+ 1
704
+ ],
705
+ [
706
+ "ListGroup",
707
+ 1
708
+ ],
709
+ [
710
+ "Reference",
711
+ 1
712
+ ]
713
+ ],
714
+ "block_metadata": {
715
+ "llm_request_count": 0,
716
+ "llm_error_count": 0,
717
+ "llm_tokens_used": 0,
718
+ "previous_text": "",
719
+ "previous_type": "",
720
+ "previous_order": 0
721
+ }
722
+ },
723
+ {
724
+ "page_id": 2,
725
+ "text_extraction_method": "pdftext",
726
+ "block_counts": [
727
+ [
728
+ "Span",
729
+ 395
730
+ ],
731
+ [
732
+ "Line",
733
+ 121
734
+ ],
735
+ [
736
+ "Text",
737
+ 8
738
+ ],
739
+ [
740
+ "SectionHeader",
741
+ 2
742
+ ],
743
+ [
744
+ "PageHeader",
745
+ 1
746
+ ],
747
+ [
748
+ "Figure",
749
+ 1
750
+ ],
751
+ [
752
+ "Caption",
753
+ 1
754
+ ],
755
+ [
756
+ "PageFooter",
757
+ 1
758
+ ],
759
+ [
760
+ "FigureGroup",
761
+ 1
762
+ ],
763
+ [
764
+ "Reference",
765
+ 1
766
+ ]
767
+ ],
768
+ "block_metadata": {
769
+ "llm_request_count": 0,
770
+ "llm_error_count": 0,
771
+ "llm_tokens_used": 0,
772
+ "previous_text": "",
773
+ "previous_type": "",
774
+ "previous_order": 0
775
+ }
776
+ },
777
+ {
778
+ "page_id": 3,
779
+ "text_extraction_method": "surya",
780
+ "block_counts": [
781
+ [
782
+ "Line",
783
+ 217
784
+ ],
785
+ [
786
+ "Span",
787
+ 156
788
+ ],
789
+ [
790
+ "Text",
791
+ 59
792
+ ],
793
+ [
794
+ "SectionHeader",
795
+ 3
796
+ ],
797
+ [
798
+ "Equation",
799
+ 2
800
+ ],
801
+ [
802
+ "PageHeader",
803
+ 1
804
+ ],
805
+ [
806
+ "PageFooter",
807
+ 1
808
+ ]
809
+ ],
810
+ "block_metadata": {
811
+ "llm_request_count": 0,
812
+ "llm_error_count": 0,
813
+ "llm_tokens_used": 0,
814
+ "previous_text": "",
815
+ "previous_type": "",
816
+ "previous_order": 0
817
+ }
818
+ },
819
+ {
820
+ "page_id": 4,
821
+ "text_extraction_method": "pdftext",
822
+ "block_counts": [
823
+ [
824
+ "Span",
825
+ 377
826
+ ],
827
+ [
828
+ "Line",
829
+ 119
830
+ ],
831
+ [
832
+ "TableCell",
833
+ 114
834
+ ],
835
+ [
836
+ "Text",
837
+ 16
838
+ ],
839
+ [
840
+ "PageHeader",
841
+ 2
842
+ ],
843
+ [
844
+ "Caption",
845
+ 2
846
+ ],
847
+ [
848
+ "SectionHeader",
849
+ 2
850
+ ],
851
+ [
852
+ "Table",
853
+ 1
854
+ ],
855
+ [
856
+ "Equation",
857
+ 1
858
+ ],
859
+ [
860
+ "PageFooter",
861
+ 1
862
+ ],
863
+ [
864
+ "TableGroup",
865
+ 1
866
+ ],
867
+ [
868
+ "Reference",
869
+ 1
870
+ ]
871
+ ],
872
+ "block_metadata": {
873
+ "llm_request_count": 0,
874
+ "llm_error_count": 0,
875
+ "llm_tokens_used": 0,
876
+ "previous_text": "",
877
+ "previous_type": "",
878
+ "previous_order": 0
879
+ }
880
+ },
881
+ {
882
+ "page_id": 5,
883
+ "text_extraction_method": "pdftext",
884
+ "block_counts": [
885
+ [
886
+ "Span",
887
+ 255
888
+ ],
889
+ [
890
+ "Line",
891
+ 107
892
+ ],
893
+ [
894
+ "Text",
895
+ 15
896
+ ],
897
+ [
898
+ "PageHeader",
899
+ 2
900
+ ],
901
+ [
902
+ "Figure",
903
+ 2
904
+ ],
905
+ [
906
+ "Caption",
907
+ 2
908
+ ],
909
+ [
910
+ "SectionHeader",
911
+ 2
912
+ ],
913
+ [
914
+ "FigureGroup",
915
+ 2
916
+ ],
917
+ [
918
+ "Reference",
919
+ 2
920
+ ],
921
+ [
922
+ "PageFooter",
923
+ 1
924
+ ]
925
+ ],
926
+ "block_metadata": {
927
+ "llm_request_count": 0,
928
+ "llm_error_count": 0,
929
+ "llm_tokens_used": 0,
930
+ "previous_text": "",
931
+ "previous_type": "",
932
+ "previous_order": 0
933
+ }
934
+ },
935
+ {
936
+ "page_id": 6,
937
+ "text_extraction_method": "pdftext",
938
+ "block_counts": [
939
+ [
940
+ "Span",
941
+ 348
942
+ ],
943
+ [
944
+ "TableCell",
945
+ 208
946
+ ],
947
+ [
948
+ "Line",
949
+ 119
950
+ ],
951
+ [
952
+ "Text",
953
+ 14
954
+ ],
955
+ [
956
+ "PageHeader",
957
+ 1
958
+ ],
959
+ [
960
+ "Caption",
961
+ 1
962
+ ],
963
+ [
964
+ "Table",
965
+ 1
966
+ ],
967
+ [
968
+ "SectionHeader",
969
+ 1
970
+ ],
971
+ [
972
+ "PageFooter",
973
+ 1
974
+ ],
975
+ [
976
+ "TableGroup",
977
+ 1
978
+ ],
979
+ [
980
+ "Reference",
981
+ 1
982
+ ]
983
+ ],
984
+ "block_metadata": {
985
+ "llm_request_count": 0,
986
+ "llm_error_count": 0,
987
+ "llm_tokens_used": 0,
988
+ "previous_text": "",
989
+ "previous_type": "",
990
+ "previous_order": 0
991
+ }
992
+ },
993
+ {
994
+ "page_id": 7,
995
+ "text_extraction_method": "pdftext",
996
+ "block_counts": [
997
+ [
998
+ "Span",
999
+ 293
1000
+ ],
1001
+ [
1002
+ "Line",
1003
+ 138
1004
+ ],
1005
+ [
1006
+ "TableCell",
1007
+ 111
1008
+ ],
1009
+ [
1010
+ "Text",
1011
+ 11
1012
+ ],
1013
+ [
1014
+ "Caption",
1015
+ 7
1016
+ ],
1017
+ [
1018
+ "Table",
1019
+ 3
1020
+ ],
1021
+ [
1022
+ "Reference",
1023
+ 3
1024
+ ],
1025
+ [
1026
+ "PageHeader",
1027
+ 2
1028
+ ],
1029
+ [
1030
+ "SectionHeader",
1031
+ 2
1032
+ ],
1033
+ [
1034
+ "TableGroup",
1035
+ 2
1036
+ ],
1037
+ [
1038
+ "PageFooter",
1039
+ 1
1040
+ ]
1041
+ ],
1042
+ "block_metadata": {
1043
+ "llm_request_count": 0,
1044
+ "llm_error_count": 0,
1045
+ "llm_tokens_used": 0,
1046
+ "previous_text": "",
1047
+ "previous_type": "",
1048
+ "previous_order": 0
1049
+ }
1050
+ },
1051
+ {
1052
+ "page_id": 8,
1053
+ "text_extraction_method": "pdftext",
1054
+ "block_counts": [
1055
+ [
1056
+ "Span",
1057
+ 339
1058
+ ],
1059
+ [
1060
+ "Line",
1061
+ 152
1062
+ ],
1063
+ [
1064
+ "ListItem",
1065
+ 19
1066
+ ],
1067
+ [
1068
+ "Reference",
1069
+ 19
1070
+ ],
1071
+ [
1072
+ "SectionHeader",
1073
+ 2
1074
+ ],
1075
+ [
1076
+ "Text",
1077
+ 2
1078
+ ],
1079
+ [
1080
+ "ListGroup",
1081
+ 2
1082
+ ],
1083
+ [
1084
+ "PageHeader",
1085
+ 1
1086
+ ],
1087
+ [
1088
+ "PageFooter",
1089
+ 1
1090
+ ]
1091
+ ],
1092
+ "block_metadata": {
1093
+ "llm_request_count": 0,
1094
+ "llm_error_count": 0,
1095
+ "llm_tokens_used": 0,
1096
+ "previous_text": "",
1097
+ "previous_type": "",
1098
+ "previous_order": 0
1099
+ }
1100
+ },
1101
+ {
1102
+ "page_id": 9,
1103
+ "text_extraction_method": "pdftext",
1104
+ "block_counts": [
1105
+ [
1106
+ "Span",
1107
+ 263
1108
+ ],
1109
+ [
1110
+ "Line",
1111
+ 111
1112
+ ],
1113
+ [
1114
+ "ListItem",
1115
+ 19
1116
+ ],
1117
+ [
1118
+ "Reference",
1119
+ 19
1120
+ ],
1121
+ [
1122
+ "Text",
1123
+ 12
1124
+ ],
1125
+ [
1126
+ "ListGroup",
1127
+ 2
1128
+ ],
1129
+ [
1130
+ "PageHeader",
1131
+ 1
1132
+ ],
1133
+ [
1134
+ "PageFooter",
1135
+ 1
1136
+ ]
1137
+ ],
1138
+ "block_metadata": {
1139
+ "llm_request_count": 0,
1140
+ "llm_error_count": 0,
1141
+ "llm_tokens_used": 0,
1142
+ "previous_text": "",
1143
+ "previous_type": "",
1144
+ "previous_order": 0
1145
+ }
1146
+ },
1147
+ {
1148
+ "page_id": 10,
1149
+ "text_extraction_method": "pdftext",
1150
+ "block_counts": [
1151
+ [
1152
+ "Span",
1153
+ 349
1154
+ ],
1155
+ [
1156
+ "Line",
1157
+ 140
1158
+ ],
1159
+ [
1160
+ "Text",
1161
+ 14
1162
+ ],
1163
+ [
1164
+ "SectionHeader",
1165
+ 6
1166
+ ],
1167
+ [
1168
+ "PageHeader",
1169
+ 1
1170
+ ],
1171
+ [
1172
+ "PageFooter",
1173
+ 1
1174
+ ]
1175
+ ],
1176
+ "block_metadata": {
1177
+ "llm_request_count": 0,
1178
+ "llm_error_count": 0,
1179
+ "llm_tokens_used": 0,
1180
+ "previous_text": "",
1181
+ "previous_type": "",
1182
+ "previous_order": 0
1183
+ }
1184
+ },
1185
+ {
1186
+ "page_id": 11,
1187
+ "text_extraction_method": "pdftext",
1188
+ "block_counts": [
1189
+ [
1190
+ "Span",
1191
+ 160
1192
+ ],
1193
+ [
1194
+ "Line",
1195
+ 73
1196
+ ],
1197
+ [
1198
+ "TableCell",
1199
+ 10
1200
+ ],
1201
+ [
1202
+ "Text",
1203
+ 2
1204
+ ],
1205
+ [
1206
+ "PageHeader",
1207
+ 1
1208
+ ],
1209
+ [
1210
+ "Caption",
1211
+ 1
1212
+ ],
1213
+ [
1214
+ "Table",
1215
+ 1
1216
+ ],
1217
+ [
1218
+ "PageFooter",
1219
+ 1
1220
+ ],
1221
+ [
1222
+ "TableGroup",
1223
+ 1
1224
+ ],
1225
+ [
1226
+ "Reference",
1227
+ 1
1228
+ ]
1229
+ ],
1230
+ "block_metadata": {
1231
+ "llm_request_count": 0,
1232
+ "llm_error_count": 0,
1233
+ "llm_tokens_used": 0,
1234
+ "previous_text": "",
1235
+ "previous_type": "",
1236
+ "previous_order": 0
1237
+ }
1238
+ }
1239
+ ],
1240
+ "debug_data_path": "debug_data/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1"
1241
+ }
icml26/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1/model_text_v3.txt ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [p. 1 | section: Abstract | type: Text]
2
+ The dynamic evolution of real-world necessitates model editing within Large Language Models. While existing methods explore modular isolation or parameter-efficient strategies, they still suffer from semantic drift or knowledge forgetting due to continual updating. To address these challenges, we propose SoLA, a Semantic routingbased LoRA framework for lifelong model editing. In SoLA, each edit is encapsulated as an independent LoRA module, which is frozen after training and mapped to input by semantic routing, allowing dynamic activation of LoRA modules via semantic matching. This mechanism avoids semantic drift caused by cluster updating and mitigates catastrophic forgetting from parameter sharing. More importantly, SoLA supports precise revocation of specific edits by removing key from semantic routing, which restores model's original behavior. To our knowledge, this reversible rollback editing capability is the first to be achieved in existing literature. Furthermore, SoLA integrates decision-making process into edited layer, eliminating the need for auxiliary routing networks and enabling end-to-end decision-making process. Extensive experiments demonstrate that SoLA effectively learns and retains edited knowledge, achieving accurate, efficient, and reversible lifelong model editing.
3
+
4
+ [p. 1 | section: 1. Introduction | type: Text]
5
+ Large language models (LLMs) have demonstrated remarkable capabilities in the field of natural language processing, attracting the attention of numerous researchers (Radford et al., 2019; Brown et al., 2020; Achiam et al., 2023; Tou vron et al., 2023) . However, LLMs also face severe challenges, including hallucinations (Huang et al., 2025) , bi-
6
+
7
+ [p. 1 | section: 1. Introduction | type: FigureGroup]
8
+ Figure 1. Comparison of trainable parameters and ERR accuracy between SoLA (Ours) and other methods. All experiments are conducted on Scotus datasets with the same backbone.
9
+
10
+ [p. 1 | section: 1. Introduction | type: Text]
11
+ ases (Hartvigsen et al., 2022) , and the generation of harmful content (De Cao et al., 2021) . Moreover, the dynamic nature of real-world knowledge requires the continuous updating of specific information in LLMs (Lazaridou et al., 2021) . Re-training these models from scratch is both expensive and time-consuming (Biderman et al., 2023) . In this scenario, the demand for model editing is increasing with aims to modify specific knowledge in the training model continuously without re-training the model or affecting its performance on unrelated inputs, which is known as lifelong model editing (Hartvigsen et al., 2022; Yao et al., 2023; Yu et al., 2024) .
12
+
13
+ [p. 1 | section: 1. Introduction | type: Text]
14
+ The lifelong model editing aims to continuously update the model to adapt to the constantly changing world. However, most of the existing model editing methods are designed for single, isolated editing (Mitchell et al., 2021; Meng et al., 2022a) . When applied to a continuous environment, these methods often lead to catastrophic forgetting of the previously learned knowledge in the LLMs, resulting in performance degradation and reduced model reliability (Yao et al., 2023; Gu et al., 2024) . To solve this problem, recent methods propose freezing the original model parameters and introducing lightweight trainable modules to inject new knowledge. These methods usually retain most of the model's knowledge by keeping the base parameters fixed and combining the learnable modules for specific task updates. For example, Melo (Yu et al., 2024) determines the clustering centres of editors by building a neuron index
15
+
16
+ [p. 2 | section: 1. Introduction | type: Text]
17
+ and dynamically updates its semantic representation based on the distance from the clustering centres. ELDER (Li et al., 2025) adopts the Mixture-of-Experts (MoE) approach, assigning scores to each LoRA expert through a set of learnable LoRA allocation codes and selecting the top-k LoRA for calculation.
18
+
19
+ [p. 2 | section: 1. Introduction | type: FigureGroup]
20
+ Figure 2. Number of mismatches in LoRA allocation with ERR/TRR accuracy in MELO. All experiments are conducted on Scotus datasets with the same backbone.
21
+
22
+ [p. 2 | section: 1. Introduction | type: Text]
23
+ Although these methods show potential in improving parameter efficiency and reducing interference, they face inherent limitations when applied to lifelong model editing. Specifically, MELO (Yu et al., 2024) improves module separability through semantic clustering, but its clustering centers are updated during the editing process, which may lead to semantic drift and module matching errors. ELDER (Li et al., 2025) employ MoE and selects the top-k routes to activate each editing subset, although this strategy has high parameter efficiency, shared and continuously updated parameters can lead to catastrophic forgetting - new editing may overwrite or interfere with existing editing.
24
+
25
+ [p. 2 | section: 1. Introduction | type: Text]
26
+ To address these limitations, we propose SoLA, a Semantic routing-based LoRA framework for reversible lifelong model editing. In SoLA, we allocate an independent LoRA module for each edit and establish semantic routing to record the mapping relationship between LoRA module and the input semantic representation. During editing, the LoRA module fully learns for the current task and then remains frozen to retain the learned knowledge. The corresponding key is also not updated. During inference, the semantic representation of the input is calculated, and the corresponding LoRA module is dynamically activated through semantic routing. Since the LoRA module and the semantic representation have not been updated, we fundamentally avoid catastrophic forgetting and semantic drift problems caused by continual updating. At the same time, each edit only requires training for the current LoRA module, significantly reducing the computational resource consumption. As shown in Fig .1, SoLA achieves optimal performance with only 0.08M additional parameters, sig-
27
+
28
+ [p. 2 | section: 1. Introduction | type: Text]
29
+ nificantly outperforming previous methods, highlighting SoLA's exceptional parameter efficiency and editing accuracy.
30
+
31
+ [p. 2 | section: 1. Introduction | type: Text]
32
+ More importantly, by removing the semantic key from the mapping memory table, we can precisely revoke specific edits, allowing the model to recover its original behavior without re-training. This means we can freely add and delete edits, and truly achieve controllable rollback and restoration of editing. To our knowledge, this is the first time that controllable rollback of editing has been achieved in existing literature. Moreover, existing works usually require introducing auxiliary routing network outside the edited layer to determine whether to enable the LoRA module. In this paper, we propose a master decision-making mechanism that aggregates the decision-making process into the edited layer, avoiding the reliance on auxiliary routing network and achieving an end-to-end decision-making process.
33
+
34
+ [p. 2 | section: 1. Introduction | type: Text]
35
+ Extensive experiments validate the effectiveness of our approach. Our main contributions are summarized as follows:
36
+
37
+ [p. 2 | section: 1. Introduction | type: ListGroup]
38
+ We propose SoLA, a novel framework for reversible lifelong model editing, which incorporates a controllable LoRA mechanism guided by semantic routing. After each edit, both the LoRA modules and the corresponding keys in the mapping memory are frozen, effectively mitigating catastrophic forgetting and semantic drift. Moreover, only the currently active LoRA modules are trained during editing, significantly reducing computational overhead.(Fig .1) . We employs semantic routing to establish a precise mapping between LoRA modules and semantic representations. By removing the associated key, any specific edit can be precisely revoked, enabling flexible addition and deletion of edits. we propose a master decision-making mechanism that aggregates the decision-making process into the edited layer, avoiding the reliance on an auxiliary routing network and achieving an end-to-end decision-making process.
39
+
40
+ [p. 2 | section: 2.1. Model Editing | type: Text]
41
+ Model Editing aims to update specific knowledge within LLMs while preserving their previous knowledge. Current model editing methods can be broadly categorized into three paradigms: Meta-Learning methods, Locate-then-Edit methods, and Memory-Based methods. Meta-Learning Methods employ a hypernetwork to predict the necessary gradients for editing and apply these gradients to the base model to achieve the update (Mitchell et al., 2021) . However, this
42
+
43
+ [p. 3 | section: 2.1. Model Editing | type: FigureGroup]
44
+ Figure 3. Main framework of our method. a) indicates the edited layer in model, where we retain the transformer block of base model frozen and add trainable LoRA module to the edited layer of base model. b) shows the editing process, where every edit will be assigned LoRA module and the query of input will be mapped to assigned LoRA module. c) presents the matching process between query of input and LoRA module in reference. Colour green indicates trainable, while color grey is frozen.
45
+
46
+ [p. 3 | section: 2.1. Model Editing | type: Text]
47
+ approach typically requires additional data for training the hypernetwork. Locate-then-Edit methods first identify the neurons most critical for the current input via minor perturbations and then directly modify these neurons to update the model's knowledge (Meng et al., 2022a; b) . While effective, these methods are often cumbersome and exhibit limitations when handling a large volume of simultaneous knowledge updates. Memory-Based methods store the information associated with edits in an buffer, which acts as a patch model augmenting the original model (Mitchell et al., 2022) . A significant drawback is that each edit necessitates retraining, making it difficult to adapt to continuous editing scenarios, and the memory bank grows incrementally with each edit, leading to escalating storage overhead. Recent studies have also explored editing constraints to maintain model behavior stability. AlphaEdit (Fang et al., 2024) introduces a null-space constrained approach. It aims to apply edits more precisely by constraining changes to the null space of irrelevant knowledge.
48
+
49
+ [p. 3 | section: 2.1. Model Editing | type: Text]
50
+ However, these methods primarily address static editing, suitable for one-time modifications, and struggle to accommodate sequential editing demands over time. To address these limitations, GRACE (Hartvigsen et al., 2023) replace hidden states with vectors retrieved from a learned codebook. MELO (Yu et al., 2024) introduces a vector database and leverages a clustering mechanism to dynamically assign LoRA modules. ELDER (Li et al., 2025) adopts a MoE framework, where a learnable neural network weights shared LoRA modules. However, these approaches in-
51
+
52
+ [p. 3 | section: 2.1. Model Editing | type: Text]
53
+ evitably update the semantic representation in sequential edits, leading to semantic drift or knowledge forgetting.
54
+
55
+ [p. 3 | section: 3.1. Preliminaries | type: Text]
56
+ Lifelong Model Editing The purpose of lifelong model editing, as described by Grace (Hartvigsen et al., 2023) , is to make continual edits to the knowledge of the initial base model without degrading the performance of the base model and without negating previous edits. Consider an initial base model fbase, After n edits Dedit = {d1, ..., dn}, some of the model's knowledge is updated and model is transformed into fn, where d i = (x i , yi), For lifetime model editing, the edited model f n should be able to correctly output y within the edited inputs x ∈ Dedit, i.e., fn(xi) = y i . Furthermore, for inputs x ′ ∈/ Dedit that are semantically similar to the edited instances, such as rephrased sentences, the model f n is expected to generalize the updated knowledge appropriately, like fn(x ′ i ) = y i . Moreover, after editing, the model f n should also retain the previous knowledge of fbase, that is, for data samples x j ∈/ Dedit that have not been edited, there should be fn(x j ) = fbase(x j ) = y j .
57
+
58
+ [p. 3 | section: 3.1. Preliminaries | type: Text]
59
+ LoRA for Lifelong Model Editing Low-Rank Adaptation (LoRA) (Hu et al., 2022) is an efficient finetuning method for LLMs that optimizes model outputs by projecting features into a low-rank subspace. In the context of efficient LLM finetuning, LoRA modules are typically inserted into
60
+
61
+ [p. 4 | section: 3.1. Preliminaries | type: Text]
62
+ specific layers of the pre-trained model. During editing, the base LLM parameters W_0 \in \mathbb{R}^{d \times k} remain frozen, while only the LoRA module \Delta W \in \mathbb{R}^{d \times k} is updated. The parameter update \Delta W can be represented as a low-rank decomposition of the pretrained weight matrix. Specifically, \Delta W is factorized into two smaller matrices A \in \mathbb{R}^{r \times k} and B \in \mathbb{R}^{d \times r} , such that \Delta W = BA , where r \ll \min(d,k) and r is the LoRA rank. Given the original h = W_0 x , the forward propagation process is modified as:
63
+
64
+ [p. 4 | section: 3.1. Preliminaries | type: Equation]
65
+ \boldsymbol{h} = W_0 \boldsymbol{x} + \Delta W \boldsymbol{x} = W_0 \boldsymbol{x} + B A \boldsymbol{x} \tag{1}
66
+
67
+ [p. 4 | section: 3.1. Preliminaries | type: Text]
68
+ where A is initialized using a zero mean Gaussian distribution and B is initialized as a zero matrix. This approach significantly reduces the number of trainable parameters while maintaining the expressive power of the full-rank update.
69
+
70
+ [p. 4 | section: 3.2. Cluster Updating in Lifelong Model Editing | type: Text]
71
+ In the context of lifelong model editing, when multiple adapter modules are involved, the model needs to dynamically manage the association between edits and the corresponding adapter module. MELO addresses this by employing a clustering mechanism that assigns edits to clusters based on the hidden representations of the inputs, with cluster centres being continuously updated throughout editing. However, this continual updating of cluster centers alters their semantic representation, leading to semantic drift and incorrect module assignments. Moreover, repeated training of LoRA modules can result in forgetting previously acquired knowledge. Varying the cluster radius in MeLO results in a different number of generated cluster centres, thereby affecting the frequency of cluster centre updates. We record MeLO's performance under different numbers of cluster centre updates, as shown in Fig.2. The experiment is conducted on SCOTUS dataset. In Fig.2, the number of updates refers to the number of cluster centre updates during the editing process, and the number of mismatches indicates how many times, during inference, the retrieved LoRA module differs from the one assigned during editing. ERR and TRR represent the model's accuracy on the edited and unedited datasets, respectively, after all editing tasks are completed.
72
+
73
+ [p. 4 | section: 3.2. Cluster Updating in Lifelong Model Editing | type: Text]
74
+ As shown in the Fig.2, for the same datasets SCOTUS of editing, increasing the number of cluster centre updates leads to a rise in mismatches during inference, and a corresponding decline in model performance on both the edited and unedited datasets. This demonstrates that cluster centre updates can cause semantic drift, resulting in incorrect LoRA match, while repeated training of LoRA modules contributes to knowledge forgetting. Therefore, in SoLA, we freeze both the LoRA modules and their associated keys once the current task is completed. These components are
75
+
76
+ [p. 4 | section: 3.2. Cluster Updating in Lifelong Model Editing | type: Text]
77
+ no longer updated in subsequent edits, thereby maximizing knowledge retention across editing iterations.
78
+
79
+ [p. 4 | section: 3.3. Semantic Routing-Based Controllable LoRA | type: Text]
80
+ In the layer where the model needs to be edited, we keep the parameters of the original model frozen and insert the learnable LoRA module for editing, as shown in Fig.3 a). In SoLA, each editing operation is encapsulated within an independent LoRA module. During sequential editing, for a given editing task d_i = (\boldsymbol{x}_i^m, \boldsymbol{y}_i^m)_{m=1}^n , a dedicated LoRA module LoRA<sub>i</sub> is assigned. For each data instance \boldsymbol{x}_i^m \in d_i , the corresponding LoRA id i is recorded, and a semantic routing entry is established by associating LoRA module with a semantic key derived from the input representation, as shown in Fig.3 b). Following prior work(Hartvigsen et al., 2023), we use the hidden representation of the last token in the input sequence as the key e \in \mathbb{R}^d vector. During editing, the assigned LoRA module LoRA<sub>i</sub> will fully learn the task d_i , yielding the output:
81
+
82
+ [p. 4 | section: 3.3. Semantic Routing-Based Controllable LoRA | type: Equation]
83
+ h = h_0 + LoRA_i(x) (2)
84
+
85
+ [p. 4 | section: 3.3. Semantic Routing-Based Controllable LoRA | type: Text]
86
+ where h_0 \in \mathbb{R}^{l \times d} is the frozen base model representation, l is the sequence length, d is the hidden state dimension. At this stage, all other LoRA modules and the stored key vectors remain frozen. Upon completion of the editing process, the trained LoRA<sub>i</sub> module is frozen and will be stored with its associated key e_i as a fixed mapping for future reference. Neither the LoRA module nor the key will be updated in subsequent editing. Since only the current LoRA module is involved in training during each edit, SoLA significantly reduces the number of trainable parameters, as shown in Fig.1. Furthermore, freezing both the LoRA module and its corresponding key after editing prevents semantic drift and mitigates catastrophic forgetting, thereby maximizing knowledge retention. During inference, the hidden representation of the last token in the input sequence will serve as a query vector \boldsymbol{q} \in \mathbb{R}^d from the input \boldsymbol{x} and matches against the stored keys K \in \mathbb{R}^{N \times d} , as shown in Fig.3 c). If a match is found, the corresponding LoRA module is retrieved from stored LoRA pool R \in \mathbb{R}^M and incorporated into the computation.
87
+
88
+ [p. 4 | section: 3.4. Master Decision Mechanism | type: Text]
89
+ During inference, existing approaches usually need to introduce an auxiliary routing network outside the target edited layer to decide whether to activate the LoRA module or not(Yu et al., 2024; Li et al., 2025), which hampers the end-to-end decision-making process. To address this limitation, we propose a master decision-making mechanism that does not require an auxiliary routing component. Specifically, we designate the first edited layer as the master decision layer where input features are dynamically evaluated to activate the relevant LoRA module without the need for an auxil-
90
+
91
+ [p. 5 | section: 3.4. Master Decision Mechanism | type: TableGroup]
92
+ Table 1. Comparison of SoLA to existing methods. All the results are obtained after sequential edits. ERR indicates Edit Reliability Rate, TRR presents Task Retention Rate, and ARR is Accuracy Attention Rate. The best performance is shown in bold. SCOTUS (BERT; Acc ↑) zsRE (T5; F1 ↑) Hallucination (GPT2-XL; PPL ↓) Method ERR TRR Avg. ERR TRR Avg. ERR TRR ARR EWC 0.51 0.82 0.66 0.67 0.50 0.58 1485.7 29.24 109.59 CMR 0.52 0.52 0.52 0.56 0.82 0.69 1449.3 28.14 107.76 CLEAR 0.67 0.83 0.75 0.27 0.99 0.63 2394.3 35.34 195.82 MEND 0.19 0.27 0.23 0.25 0.27 0.26 1369.8 1754.9 2902.5 SERAC 0.33 0.41 0.37 0.72 0.31 0.52 8183.7 133.3 10.04 ROME - - - - - - 30.28 103.82 14.02 GRACE 0.81 0.82 0.82 0.69 0.96 0.83 15.84 7.14 10.00 ELDER 0.89 0.86 0.88 0.72 0.97 0.84 16.12 5.87 8.42 MELO 0.96 0.92 0.94 0.72 0.98 0.85 17.45 1.04 2.66 SoLA 0.97 0.95 0.96 0.73 0.99 0.86 15.15 1.01 7.35
93
+
94
+ [p. 5 | section: 3.4. Master Decision Mechanism | type: Text]
95
+ iary network. In this framework, the master decision layer H e computes the distance metric between the input feature embedding q and the stored key K to determine the activation of the module: d = He(argmini(dist(q, ki))), i = (1, 2, ..., N), dist(·) denotes the distance function and each key k i associated with the LoRA module. Then in the master layer He, we decide the edit layer behaviour:
96
+
97
+ [p. 5 | section: 3.4. Master Decision Mechanism | type: Equation]
98
+ H_e = \begin{cases} H(W_0) & \text{if } d \ge \alpha \\ H(W_0, W_{R_m}) & \text{if } d < \alpha \end{cases} (3)
99
+
100
+ [p. 5 | section: 3.4. Master Decision Mechanism | type: Text]
101
+ where α is the threshold, in this work we set it as 0.01, WR m represents the weight of m-th LoRA module associated with the key nearest to the query. This binary decision is propagated to the subsequent edited layers, ensuring consistent module activation throughout the network. By integrating the decision-making process to the first edited layer, our approach achieves complete end-to-end decision-making capability while maintaining architectural simplicity.
102
+
103
+ [p. 5 | section: 4.1. Implementation Details | type: Text]
104
+ Baselines We first compare several recent methods designed for lifelong model editing. Grace (Hartvigsen et al., 2023) replaces model outputs with key-value pairs and matches features to keys based on deferral radius. MELO (Yu et al., 2024) leverages LoRA for finetuning and dynamically retrieves relevant LoRA modules via neuron index. EL-DER (Li et al., 2025) employs MoE to dynamically combine multiple LoRA modules. Additionally, we evaluate other baseline methods. MEND (Mitchell et al., 2021) uses a hypernetwork trained on auxiliary data to predict the required gradients for model editing. SERAC (Mitchell et al., 2022)
105
+
106
+ [p. 5 | section: 4.1. Implementation Details | type: Text]
107
+ learns a scope classifier and a counterfactual model, coordinating between modules to determine editing behavior. ROME (Meng et al., 2022a) identifies the most influential weights in the model through perturbation analysis, localizes knowledge to specific layers of GPT, and modifies the corresponding weights. Since ROME is specifically designed for GPT, it is only evaluated on the hallucination correction task. EWC (Kirkpatrick et al., 2017) imposes constraints on the weights updating so that the model continuously learns new knowledge and retains previous knowledge. CMR (Lin et al., 2022) performs continuous finetuning of the model to continuously learn new knowledge. CLEAR (Rolnick et al., 2019) builds a memory buffer to restore old tasks information, and replays them in subsequent edits to retain previous knowledge.
108
+
109
+ [p. 5 | section: 4.1. Implementation Details | type: Text]
110
+ Evaluation Metric In this work, following (Hartvigsen et al., 2023) , we use three basic metrics to assess model performance: ES, ERR and TRR, which are applicable to all model experiments. Where Edit Success(ES) measures the ability of the model to edit the target sample. Edit Reliability Rate(ERR) assesses the validity of the model on the edited dataset, indicating the extent to which the required knowledge updates are successfully incorporated. Task Retention Rate(TRR) quantifies the model's performance on unedited datasets and reflects the model's ability to retain previous knowledge. Additionally, in the hallucination correction task, we also use the Accuracy Attention Rate (ARR) to assess the performance of the already accurate output. Accuracy is measured differently for different tasks. For the document classification task of SCOTUS, we use the Average Accuracy Rate (ACC); for the question answering task of zsRE, we measure it using the average F1, and for the hallucination correction task, we measure it using the standard average complexity (PPL) (Brown et al., 1992) .
111
+
112
+ [p. 6 | section: 4.1. Implementation Details | type: FigureGroup]
113
+ Figure 4. Figure(a)–(c) presents every edit accuracy on SCOTUS datasets with BERT. All experiment settings are the same as Tab .1.
114
+
115
+ [p. 6 | section: 4.1. Implementation Details | type: FigureGroup]
116
+ Figure 5. Visualization of zsRE dataset encoder output from T5 small with t-SNE and the dots with same color and shape are input and rephrase sentence. All experiment settings are the same as Tab .1.
117
+
118
+ [p. 6 | section: 4.2. Main Results | type: Text]
119
+ We evaluate the performance of the proposed SoLA method on three benchmark datasets and compare it with several state-of-the-art model editing approaches. The results are summarized in Tab .1. As observed, SoLA achieves excellent performance on most of the benchmark datasets, with SoLA outperforming the strongest baseline, MELO, by 3% on the SCOTUS dataset. These demonstrate SoLA's enhanced effectiveness in editing target knowledge while better preserving previously acquired knowledge. Furthermore, existing methods such as MEND and SERAC perform poorly under the sequential editing setting, suggesting that they are primarily designed for static editing scenarios and are not well-suited for sequential model editing tasks.
120
+
121
+ [p. 6 | section: 4.2. Main Results | type: Text]
122
+ We also report task-wise accuracy progression to analyze model performance throughout the sequential editing process. The experimental results are based on the SCOTUS dataset and the results are shown in Fig .4. As illustrated in Fig .4a, Fig .4b and Fig .4c, SoLA consistently maintains
123
+
124
+ [p. 6 | section: 4.2. Main Results | type: Text]
125
+ superior accuracy across tasks, without exhibiting substantial performance degradation or volatility. This indicates the robustness and stability of SoLA when applied to sequential knowledge editing.
126
+
127
+ [p. 6 | section: 4.2. Main Results | type: Text]
128
+ Method performance may vary across different model sizes and datasets. To further evaluate the robustness of our approach, we conduct hallucination correction experiments on the UniEdit (Chen et al., 2025) and WikiBigEdit (Thede et al., 2025) datasets using larger-scale backbone models. The results are presented in Tab .2. As shown in Tab .2, SoLA consistently achieves the best or near-best performance across most settings, demonstrating its robustness and effectiveness under diverse task configurations. During editing, larger backbone models generally exhibit more stable ERR values, suggesting that such models have learned stronger semantic representations during pretraining, leading to better generalization and editability. Furthermore, continuous learning related methods tend to overfit in edited data, thus showing better ARR in the retention set, but large TRR values in the upstream set, indicating severe forgetting of previous knowledge.
129
+
130
+ [p. 6 | section: 4.3. Controllable Rollback Editing | type: Text]
131
+ In SoLA, each edit instance is associated with a unique key stored in both the memory and the routing table. This design enables reversible editing, as the model can revert to its original behavior by removing the key corresponding to a specific edit. To demonstrate this property, we conduct an illustrative experiment on the zsRE dataset. The results are shown in Tab .3. In the Tab .3, each row corresponds to an input instance consisting of a "Text" (the question need to be edited) and its "Labels" (the correct answer). "Del" indicates whether the key corresponding to the edit is removed after editing. For each input, Predbase, Prededit and Preddel denote the prediction of base model, edited model and model after removing the corresponding key. When "Del" is false, the key is retained, serving as a baseline comparison. As shown in Tab .3, for each instance, the original prediction (Predbase) does not match the correct label, indi-
132
+
133
+ [p. 7 | section: 4.3. Controllable Rollback Editing | type: TableGroup]
134
+ Table 2. Model Performance Comparison on UniEdit and WikiBigEdit datasets in hallucination correction tasks. All the scores are PPL metric and the best result is in bolded. UniEdit (PPL ↓) WikiBigEdit (PPL ↓) Model Method ERR TRR ARR ERR TRR ARR EWC 2.43 1134 22.08 3.58 251117 4.93 CMR 2.79 2239 25.24 2.86 169452 4.49 LLaMA-3-8B CLEAR 1.04 982 29.79 1.03 74384 1.52 SERAC 37.10 246 93 60.17 215 59 GRACE 1.00 244 89 1.00 216 58 ELDER 1.00 173 74 1.00 178 48 MELO 1.00 153 68 1.00 165 47 Ours 1.00 144 66 1.00 162 44 EWC 2.38 4451 42.13 2.86 47846 3.89 CMR 2.34 7211 36.19 3.60 34623 5.51 DeepSeek-R1-8B CLEAR 1.06 3365 44.86 1.02 28110 1.48 SERAC 46.76 451 834 82.72 493 831 GRACE 1.00 407 803 1.00 487 793 ELDER 1.03 241 482 1.03 304 492 MELO 1.09 204 407 1.05 263 445 Ours 1.07 188 374 1.00 248 412 EWC 4.62 7648 48.62 5.61 61834 14.65 CMR 4.12 11583 40.56 6.28 48629 16.89 Qwen2-7B CLEAR 1.03 5021 54.98 1.05 35396 4.26 SERAC 58.51 329 1261 62.12 304 523 GRACE 2.05 316 1065 16.88 299 518 ELDER 1.00 201 266 1.00 225 197 MELO 1.00 170 201 1.00 203 143 Ours 1.00 156 110 1.00 199 109
135
+
136
+ [p. 7 | section: 4.3. Controllable Rollback Editing | type: Text]
137
+ cating the necessity for editing. After editing, the model correctly produces Prededit consistent with the ground-truth label, demonstrating that SoLA successfully updates the model's knowledge. When the associated key is deleted, the model reverts to its original prediction (Prededit = Predbase), verifying that our method can effectively roll back specific edits. More critically, for edits where the key is not deleted, the model continues to output Prededit, showing that the rollback operation does not interfere with other edits. This confirms that SoLA supports fine-grained, selective undo of knowledge edits without disrupting unrelated modifications.
138
+
139
+ [p. 7 | section: 4.4. Ablation Study | type: Text]
140
+ Effect of Edit Layer Location In semantic representation learning, different layers of a model focus on different aspects of semantic information. Therefore, the position of the edited layer can significantly influence the effectiveness of model editing. To investigate this, we evaluate the performance of model when edits are applied at different layers, while keeping all other settings fixed. The experiments are conducted on the SCOTUS dataset with a Nvidia A100 40G GPU, and the results are shown in Tab .4. In the
141
+
142
+ [p. 7 | section: 4.4. Ablation Study | type: Text]
143
+ Tab .4, "Layer" denotes the layer range used for editing. For example, "0–2" indicates that edits are applied to layers 0, 1, and 2 of the BERT model. As shown in the table, editing at shallower layers results in suboptimal performance. This observation aligns with prior findings (Geva et al., 2020) , which suggest that shallow layers primarily capture the shallow sentence patterns, whereas deeper layers encode richer semantic features, thereby enabling more effective knowledge editing. Moreover, editing at shallow layers significantly increases the time used for editing, which means that editing for semantics is more difficult in shallow layers. Furthermore, we observe that varying the editing layer has negligible impact on performance over the unedited portion of the dataset, indicating that SoLA is capable of preserving previously learned knowledge regardless of the editing depth, which further supports the robustness of SoLA.
144
+
145
+ [p. 7 | section: 4.4. Ablation Study | type: Text]
146
+ Effect of LoRA Rank The LoRA module projects semantic representations into a low-rank subspace for parameterefficient learning. Consequently, the choice of rank will effect the module's performance. To investigate this, we analyze the impact of different LoRA rank values on model performance, keeping all other settings fixed. Experiments are conducted on the SCOTUS dataset using a NVIDIA
147
+
148
+ [p. 8 | section: 4.4. Ablation Study | type: TableGroup]
149
+ Table 3. Controllable edit in SoLA on zsRE datasets. "Text" is the question need to be edited, "Labels" is the true answer, "Del" indicates whther delete associated key and Predbase, Prededit and Preddel is the prediction of base model, edited model and delted model. Text Labels Del Predbase Prededit Preddel The date of Tsetserleg earthquake in 1905? 9 July 1905 True 20 February 1905 9 July 1905 20 February 1905 What constellation has Nu Cancri? Cancer True Hydra Cancer Hydra On what date did the Bahrain Grand Prix 2015 occur? 19 April 2015 True 6 April 2017 19 April 2015 6 April 2017 What position does Charles-Joseph Coursol have? Mayor of Montreal True Positioning Mayor of Montreal Positioning Who acted in Blow Dry? Alan Rickman False Jim Carrey Alan Rickman Alan Rickman Table 4. Ablation studies on location of edited layers. Here, "Layer" indicates the edited layer location. For example, "0-2" presents edited layer is layers 0, 1 and 2.
150
+
151
+ [p. 8 | section: 4.4. Ablation Study | type: TableGroup]
152
+ Layer ES ERR TRR Edit Time(min) 0-2 0.77 0.61 0.96 9.21 3-5 1.00 0.68 0.96 8.06 6-8 0.81 0.70 0.97 7.03 9-11 0.94 0.95 0.97 5.97 Table 5. Ablation studies on LoRA rank. Here, "LoRA Rank" indicates the rank value of every LoRA in model.
153
+
154
+ [p. 8 | section: 4.4. Ablation Study | type: Table]
155
+ LoRA Rank ES ERR TRR Edit Time(min) 1 0.90 0.84 0.96 5.88 2 0.94 0.91 0.97 5.90 3 1.00 0.91 0.97 5.86 4 1.00 0.95 0.97 5.97 5 1.00 0.92 0.96 5.86 10 1.00 0.71 0.96 5.85
156
+
157
+ [p. 8 | section: 4.4. Ablation Study | type: Text]
158
+ A100 40GB GPU, and the results are presented in Tab .5. As shown in the Tab .5, simply increasing the LoRA rank does not lead to improved performance and may even degrade model performance. This indicates that expanding the learnable parameter space does not necessarily enhance the model's capacity for effective knowledge editing. On the contrary, excessive rank values may even result in performance degradation due to overfitting, suggesting the importance of carefully selecting an appropriate rank to balance capacity and generalization. Based on the experiment results, we set 4 as LoRA rank for all the experiments in this paper.
159
+
160
+ [p. 8 | section: 4.5. Model Visualization | type: Text]
161
+ To gain deeper insight into the model's behavior under sequential editing, we conducted a t-SNE visualization (Maaten & Hinton, 2008) of the learned feature representations. This experiment is performed on the zsRE dataset using the T5-small model to assess how semantic relationships are preserved after sequential edits. Upon completing
162
+
163
+ [p. 8 | section: 4.5. Model Visualization | type: Text]
164
+ the entire sequence of editing tasks for question answering, we selected five distinct input instances, each accompanied by semantically equivalent rephrased sentences, forming five evaluation groups. The encoder output features are subsequently extracted from the edited model for dimensionality reduction and visualization, and the resulting plot is represented in Fig .5. As shown in Fig .5, there is a clear clustering pattern that for each group, the original input and its rephrased variant are mapped to proximate locations in the latent space. This demonstrates that SoLA effectively captures and preserves the semantic similarity between related inputs throughout the editing process. Furthermore, distinct groups maintain separable clusters, indicating that the model retains the ability to discriminate between different edit concepts after sequential editing. This visualization shows that SoLA's semantic routing mechanism successfully supports edit generalization based on semantic similarity while upholding the integrity of previously learned knowledge.
165
+
166
+ [p. 8 | section: 5. Conclusion | type: Text]
167
+ In this paper, we propose SoLA, a Semantic routing-based LoRA framework for reversible lifelong model editing. In SoLA, each edit is encapsulated as an independent LoRA module which is frozen after training and a semantic routing record is established to map LoRA module to the input semantic representation, allowing dynamic activation of LoRA modules via semantic matching. This design not only avoids semantic drift caused by clustering updating but also mitigates catastrophic forgetting from parameter sharing. More importantly, SoLA supports precisely revoking edit by removing the corresponding key from the routing table, enabling reversible model editing. This allows for flexible addition and deletion of edits, offering fine-grained control over model behavior. To the best of our knowledge, this is the first work to achieve reversible model editing in the literature. Furthermore, we introduce a master decisionmaking mechanism by integrating decision-making into the edited layer, enabling end-to-end decision-making process. By building a strict mapping between edits and LoRA modules, SoLA achieves efficient and reversible lifelong model editing, providing a novel perspective for future research.
168
+
169
+ [p. 9 | section: Impact Statement | type: Text]
170
+ This work advances the field of Machine Learning by introducing SoLA, a framework for reversible and controllable lifelong model editing in large language models. Our method enhances the safety and reliability of AI systems by enabling precise rollback of model edits, which helps mitigate risks associated with erroneous or harmful knowledge updates. By effectively preventing semantic drift and catastrophic forgetting, SoLA promotes the development of more robust and trustworthy models capable of adapting to evolving information. The significant reduction in computational overhead also aligns with the goal of sustainable AI development.
icml26/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1/paper.blocks.json ADDED
The diff for this file is too large to render. See raw diff
 
icml26/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1/paper.md ADDED
@@ -0,0 +1,521 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+
3
+ {0}------------------------------------------------
4
+
5
+ ## Reversible Lifelong Model Editing via Semantic Routing-Based LoRA
6
+
7
+ ## Anonymous Authors<sup>1</sup>
8
+
9
+ ## Abstract
10
+
11
+ The dynamic evolution of real-world necessitates model editing within Large Language Models. While existing methods explore modular isolation or parameter-efficient strategies, they still suffer from semantic drift or knowledge forgetting due to continual updating. To address these challenges, we propose SoLA, a Semantic routingbased LoRA framework for lifelong model editing. In SoLA, each edit is encapsulated as an independent LoRA module, which is frozen after training and mapped to input by semantic routing, allowing dynamic activation of LoRA modules via semantic matching. This mechanism avoids semantic drift caused by cluster updating and mitigates catastrophic forgetting from parameter sharing. More importantly, SoLA supports precise revocation of specific edits by removing key from semantic routing, which restores model's original behavior. To our knowledge, this reversible rollback editing capability is the first to be achieved in existing literature. Furthermore, SoLA integrates decision-making process into edited layer, eliminating the need for auxiliary routing networks and enabling end-to-end decision-making process. Extensive experiments demonstrate that SoLA effectively learns and retains edited knowledge, achieving accurate, efficient, and reversible lifelong model editing.
12
+
13
+ ## 1. Introduction
14
+
15
+ Large language models (LLMs) have demonstrated remarkable capabilities in the field of natural language processing, attracting the attention of numerous researchers[\(Radford](#page-9-0) [et al.,](#page-9-0) [2019;](#page-9-0) [Brown et al.,](#page-8-0) [2020;](#page-8-0) [Achiam et al.,](#page-8-1) [2023;](#page-8-1) [Tou](#page-9-1)[vron et al.,](#page-9-1) [2023\)](#page-9-1). However, LLMs also face severe challenges, including hallucinations[\(Huang et al.,](#page-8-2) [2025\)](#page-8-2), bi-
16
+
17
+ Preliminary work. Under review by the International Conference on Machine Learning (ICML). Do not distribute.
18
+
19
+ <span id="page-0-0"></span>![](_page_0_Figure_9.jpeg)
20
+
21
+ *Figure 1.* Comparison of trainable parameters and ERR accuracy between SoLA (Ours) and other methods. All experiments are conducted on Scotus datasets with the same backbone.
22
+
23
+ ases[\(Hartvigsen et al.,](#page-8-3) [2022\)](#page-8-3), and the generation of harmful content[\(De Cao et al.,](#page-8-4) [2021\)](#page-8-4). Moreover, the dynamic nature of real-world knowledge requires the continuous updating of specific information in LLMs[\(Lazaridou et al.,](#page-8-5) [2021\)](#page-8-5). Re-training these models from scratch is both expensive and time-consuming[\(Biderman et al.,](#page-8-6) [2023\)](#page-8-6). In this scenario, the demand for model editing is increasing with aims to modify specific knowledge in the training model continuously without re-training the model or affecting its performance on unrelated inputs, which is known as lifelong model editing[\(Hartvigsen et al.,](#page-8-3) [2022;](#page-8-3) [Yao et al.,](#page-9-2) [2023;](#page-9-2) [Yu et al.,](#page-9-3) [2024\)](#page-9-3).
24
+
25
+ The lifelong model editing aims to continuously update the model to adapt to the constantly changing world. However, most of the existing model editing methods are designed for single, isolated editing[\(Mitchell et al.,](#page-9-4) [2021;](#page-9-4) [Meng et al.,](#page-9-5) [2022a\)](#page-9-5). When applied to a continuous environment, these methods often lead to catastrophic forgetting of the previously learned knowledge in the LLMs, resulting in performance degradation and reduced model reliability[\(Yao](#page-9-2) [et al.,](#page-9-2) [2023;](#page-9-2) [Gu et al.,](#page-8-7) [2024\)](#page-8-7). To solve this problem, recent methods propose freezing the original model parameters and introducing lightweight trainable modules to inject new knowledge. These methods usually retain most of the model's knowledge by keeping the base parameters fixed and combining the learnable modules for specific task updates. For example, Melo[\(Yu et al.,](#page-9-3) [2024\)](#page-9-3) determines the clustering centres of editors by building a neuron index
26
+
27
+ <sup>1</sup>Anonymous Institution, Anonymous City, Anonymous Region, Anonymous Country. Correspondence to: Anonymous Author <anon.email@domain.com>.
28
+
29
+ {1}------------------------------------------------
30
+
31
+ 104
32
+
33
+ 106
34
+
35
+ 108 109 and dynamically updates its semantic representation based on the distance from the clustering centres. ELDER[\(Li](#page-9-6) [et al.,](#page-9-6) [2025\)](#page-9-6) adopts the Mixture-of-Experts (MoE) approach, assigning scores to each LoRA expert through a set of learnable LoRA allocation codes and selecting the top-k LoRA for calculation.
36
+
37
+ <span id="page-1-0"></span>![](_page_1_Figure_3.jpeg)
38
+
39
+ *Figure 2.* Number of mismatches in LoRA allocation with ERR/TRR accuracy in MELO. All experiments are conducted on Scotus datasets with the same backbone.
40
+
41
+ Although these methods show potential in improving parameter efficiency and reducing interference, they face inherent limitations when applied to lifelong model editing. Specifically, MELO[\(Yu et al.,](#page-9-3) [2024\)](#page-9-3) improves module separability through semantic clustering, but its clustering centers are updated during the editing process, which may lead to semantic drift and module matching errors. ELDER[\(Li et al.,](#page-9-6) [2025\)](#page-9-6) employ MoE and selects the top-k routes to activate each editing subset, although this strategy has high parameter efficiency, shared and continuously updated parameters can lead to catastrophic forgetting - new editing may overwrite or interfere with existing editing.
42
+
43
+ To address these limitations, we propose SoLA, a Semantic routing-based LoRA framework for reversible lifelong model editing. In SoLA, we allocate an independent LoRA module for each edit and establish semantic routing to record the mapping relationship between LoRA module and the input semantic representation. During editing, the LoRA module fully learns for the current task and then remains frozen to retain the learned knowledge. The corresponding key is also not updated. During inference, the semantic representation of the input is calculated, and the corresponding LoRA module is dynamically activated through semantic routing. Since the LoRA module and the semantic representation have not been updated, we fundamentally avoid catastrophic forgetting and semantic drift problems caused by continual updating. At the same time, each edit only requires training for the current LoRA module, significantly reducing the computational resource consumption. As shown in Fig[.1,](#page-0-0) SoLA achieves optimal performance with only 0.08M additional parameters, significantly outperforming previous methods, highlighting SoLA's exceptional parameter efficiency and editing accuracy.
44
+
45
+ More importantly, by removing the semantic key from the mapping memory table, we can precisely revoke specific edits, allowing the model to recover its original behavior without re-training. This means we can freely add and delete edits, and truly achieve controllable rollback and restoration of editing. To our knowledge, this is the first time that controllable rollback of editing has been achieved in existing literature. Moreover, existing works usually require introducing auxiliary routing network outside the edited layer to determine whether to enable the LoRA module. In this paper, we propose a master decision-making mechanism that aggregates the decision-making process into the edited layer, avoiding the reliance on auxiliary routing network and achieving an end-to-end decision-making process.
46
+
47
+ Extensive experiments validate the effectiveness of our approach. Our main contributions are summarized as follows:
48
+
49
+ - We propose SoLA, a novel framework for reversible lifelong model editing, which incorporates a controllable LoRA mechanism guided by semantic routing. After each edit, both the LoRA modules and the corresponding keys in the mapping memory are frozen, effectively mitigating catastrophic forgetting and semantic drift. Moreover, only the currently active LoRA modules are trained during editing, significantly reducing computational overhead.(Fig[.1\)](#page-0-0).
50
+ - We employs semantic routing to establish a precise mapping between LoRA modules and semantic representations. By removing the associated key, any specific edit can be precisely revoked, enabling flexible addition and deletion of edits.
51
+ - we propose a master decision-making mechanism that aggregates the decision-making process into the edited layer, avoiding the reliance on an auxiliary routing network and achieving an end-to-end decision-making process.
52
+
53
+ ## 2. Related Work
54
+
55
+ #### 2.1. Model Editing
56
+
57
+ Model Editing aims to update specific knowledge within LLMs while preserving their previous knowledge. Current model editing methods can be broadly categorized into three paradigms: Meta-Learning methods, Locate-then-Edit methods, and Memory-Based methods. Meta-Learning Methods employ a hypernetwork to predict the necessary gradients for editing and apply these gradients to the base model to achieve the update[\(Mitchell et al.,](#page-9-4) [2021\)](#page-9-4). However, this
58
+
59
+ {2}------------------------------------------------
60
+
61
+ <span id="page-2-0"></span>![](_page_2_Figure_1.jpeg)
62
+
63
+ *Figure 3.* Main framework of our method. a) indicates the edited layer in model, where we retain the transformer block of base model frozen and add trainable LoRA module to the edited layer of base model. b) shows the editing process, where every edit will be assigned LoRA module and the query of input will be mapped to assigned LoRA module. c) presents the matching process between query of input and LoRA module in reference. Colour green indicates trainable, while color grey is frozen.
64
+
65
+ approach typically requires additional data for training the hypernetwork. Locate-then-Edit methods first identify the neurons most critical for the current input via minor perturbations and then directly modify these neurons to update the model's knowledge[\(Meng et al.,](#page-9-5) [2022a;](#page-9-5)[b\)](#page-9-7). While effective, these methods are often cumbersome and exhibit limitations when handling a large volume of simultaneous knowledge updates. Memory-Based methods store the information associated with edits in an buffer, which acts as a patch model augmenting the original model[\(Mitchell et al.,](#page-9-8) [2022\)](#page-9-8). A significant drawback is that each edit necessitates retraining, making it difficult to adapt to continuous editing scenarios, and the memory bank grows incrementally with each edit, leading to escalating storage overhead. Recent studies have also explored editing constraints to maintain model behavior stability. AlphaEdit[\(Fang et al.,](#page-8-8) [2024\)](#page-8-8) introduces a null-space constrained approach. It aims to apply edits more precisely by constraining changes to the null space of irrelevant knowledge.
66
+
67
+ 153 154
68
+
69
+ However, these methods primarily address static editing, suitable for one-time modifications, and struggle to accommodate sequential editing demands over time. To address these limitations, GRACE[\(Hartvigsen et al.,](#page-8-9) [2023\)](#page-8-9) replace hidden states with vectors retrieved from a learned codebook. MELO[\(Yu et al.,](#page-9-3) [2024\)](#page-9-3) introduces a vector database and leverages a clustering mechanism to dynamically assign LoRA modules. ELDER[\(Li et al.,](#page-9-6) [2025\)](#page-9-6) adopts a MoE framework, where a learnable neural network weights shared LoRA modules. However, these approaches inevitably update the semantic representation in sequential edits, leading to semantic drift or knowledge forgetting.
70
+
71
+ ## 3. Method
72
+
73
+ ## 3.1. Preliminaries
74
+
75
+ Lifelong Model Editing The purpose of lifelong model editing, as described by Grace[\(Hartvigsen et al.,](#page-8-9) [2023\)](#page-8-9), is to make continual edits to the knowledge of the initial base model without degrading the performance of the base model and without negating previous edits. Consider an initial base model fbase, After n edits Dedit = {d1, ..., dn}, some of the model's knowledge is updated and model is transformed into fn, where d<sup>i</sup> = (x<sup>i</sup> , yi), For lifetime model editing, the edited model f<sup>n</sup> should be able to correctly output y within the edited inputs x ∈ Dedit, i.e., fn(xi) = y<sup>i</sup> . Furthermore, for inputs x ′ ∈/ Dedit that are semantically similar to the edited instances, such as rephrased sentences, the model f<sup>n</sup> is expected to generalize the updated knowledge appropriately, like fn(x ′ i ) = y<sup>i</sup> . Moreover, after editing, the model f<sup>n</sup> should also retain the previous knowledge of fbase, that is, for data samples x<sup>j</sup> ∈/ Dedit that have not been edited, there should be fn(x<sup>j</sup> ) = fbase(x<sup>j</sup> ) = y<sup>j</sup> .
76
+
77
+ LoRA for Lifelong Model Editing Low-Rank Adaptation (LoRA) [\(Hu et al.,](#page-8-10) [2022\)](#page-8-10) is an efficient finetuning method for LLMs that optimizes model outputs by projecting features into a low-rank subspace. In the context of efficient LLM finetuning, LoRA modules are typically inserted into
78
+
79
+ {3}------------------------------------------------
80
+
81
+ specific layers of the pre-trained model. During editing, the base LLM parameters $W_0 \in \mathbb{R}^{d \times k}$ remain frozen, while only the LoRA module $\Delta W \in \mathbb{R}^{d \times k}$ is updated. The parameter update $\Delta W$ can be represented as a low-rank decomposition of the pretrained weight matrix. Specifically, $\Delta W$ is factorized into two smaller matrices $A \in \mathbb{R}^{r \times k}$ and $B \in \mathbb{R}^{d \times r}$ , such that $\Delta W = BA$ , where $r \ll \min(d,k)$ and r is the LoRA rank. Given the original $h = W_0 x$ , the forward propagation process is modified as:
82
+
83
+ 165
84
+
85
+ 166
86
+
87
+ 167
88
+
89
+ 168
90
+
91
+ 169
92
+
93
+ 170
94
+
95
+ 171
96
+
97
+ 172
98
+
99
+ 173
100
+
101
+ 174
102
+
103
+ 175
104
+
105
+ 176
106
+
107
+ 177
108
+
109
+ 178
110
+
111
+ 179
112
+
113
+ 180
114
+
115
+ 181
116
+
117
+ 182
118
+
119
+ 183
120
+
121
+ 184 185
122
+
123
+ 186
124
+
125
+ 187
126
+
127
+ 188
128
+
129
+ 189
130
+
131
+ 190
132
+
133
+ 191
134
+
135
+ 192
136
+
137
+ 193
138
+
139
+ 194
140
+
141
+ 195
142
+
143
+ 196
144
+
145
+ 197
146
+
147
+ 198
148
+
149
+ 199
150
+
151
+ 200
152
+
153
+ 202
154
+
155
+ 204
156
+
157
+ 205
158
+
159
+ 206
160
+
161
+ 208
162
+
163
+ 209
164
+
165
+ 210
166
+
167
+ 211
168
+
169
+ 212
170
+
171
+ 213
172
+
173
+ 214
174
+
175
+ 215
176
+
177
+ 216
178
+
179
+ 217
180
+
181
+ 218
182
+
183
+ 219
184
+
185
+ $$\boldsymbol{h} = W_0 \boldsymbol{x} + \Delta W \boldsymbol{x} = W_0 \boldsymbol{x} + B A \boldsymbol{x} \tag{1}$$
186
+
187
+ where A is initialized using a zero mean Gaussian distribution and B is initialized as a zero matrix. This approach significantly reduces the number of trainable parameters while maintaining the expressive power of the full-rank update.
188
+
189
+ #### 3.2. Cluster Updating in Lifelong Model Editing
190
+
191
+ In the context of lifelong model editing, when multiple adapter modules are involved, the model needs to dynamically manage the association between edits and the corresponding adapter module. MELO addresses this by employing a clustering mechanism that assigns edits to clusters based on the hidden representations of the inputs, with cluster centres being continuously updated throughout editing. However, this continual updating of cluster centers alters their semantic representation, leading to semantic drift and incorrect module assignments. Moreover, repeated training of LoRA modules can result in forgetting previously acquired knowledge. Varying the cluster radius in MeLO results in a different number of generated cluster centres, thereby affecting the frequency of cluster centre updates. We record MeLO's performance under different numbers of cluster centre updates, as shown in Fig.2. The experiment is conducted on SCOTUS dataset. In Fig.2, the number of updates refers to the number of cluster centre updates during the editing process, and the number of mismatches indicates how many times, during inference, the retrieved LoRA module differs from the one assigned during editing. ERR and TRR represent the model's accuracy on the edited and unedited datasets, respectively, after all editing tasks are completed.
192
+
193
+ As shown in the Fig.2, for the same datasets SCOTUS of editing, increasing the number of cluster centre updates leads to a rise in mismatches during inference, and a corresponding decline in model performance on both the edited and unedited datasets. This demonstrates that cluster centre updates can cause semantic drift, resulting in incorrect LoRA match, while repeated training of LoRA modules contributes to knowledge forgetting. Therefore, in SoLA, we freeze both the LoRA modules and their associated keys once the current task is completed. These components are
194
+
195
+ no longer updated in subsequent edits, thereby maximizing knowledge retention across editing iterations.
196
+
197
+ #### 3.3. Semantic Routing-Based Controllable LoRA
198
+
199
+ In the layer where the model needs to be edited, we keep the parameters of the original model frozen and insert the learnable LoRA module for editing, as shown in Fig.3 a). In SoLA, each editing operation is encapsulated within an independent LoRA module. During sequential editing, for a given editing task $d_i = (\boldsymbol{x}_i^m, \boldsymbol{y}_i^m)_{m=1}^n$ , a dedicated LoRA module LoRA<sub>i</sub> is assigned. For each data instance $\boldsymbol{x}_i^m \in d_i$ , the corresponding LoRA id i is recorded, and a semantic routing entry is established by associating LoRA module with a semantic key derived from the input representation, as shown in Fig.3 b). Following prior work(Hartvigsen et al., 2023), we use the hidden representation of the last token in the input sequence as the key $e \in \mathbb{R}^d$ vector. During editing, the assigned LoRA module LoRA<sub>i</sub> will fully learn the task $d_i$ , yielding the output:
200
+
201
+ $$h = h_0 + LoRA_i(x)$$
202
+ (2)
203
+
204
+ where $h_0 \in \mathbb{R}^{l \times d}$ is the frozen base model representation, l is the sequence length, d is the hidden state dimension. At this stage, all other LoRA modules and the stored key vectors remain frozen. Upon completion of the editing process, the trained LoRA<sub>i</sub> module is frozen and will be stored with its associated key $e_i$ as a fixed mapping for future reference. Neither the LoRA module nor the key will be updated in subsequent editing. Since only the current LoRA module is involved in training during each edit, SoLA significantly reduces the number of trainable parameters, as shown in Fig.1. Furthermore, freezing both the LoRA module and its corresponding key after editing prevents semantic drift and mitigates catastrophic forgetting, thereby maximizing knowledge retention. During inference, the hidden representation of the last token in the input sequence will serve as a query vector $\boldsymbol{q} \in \mathbb{R}^d$ from the input $\boldsymbol{x}$ and matches against the stored keys $K \in \mathbb{R}^{N \times d}$ , as shown in Fig.3 c). If a match is found, the corresponding LoRA module is retrieved from stored LoRA pool $R \in \mathbb{R}^M$ and incorporated into the computation.
205
+
206
+ #### 3.4. Master Decision Mechanism
207
+
208
+ During inference, existing approaches usually need to introduce an auxiliary routing network outside the target edited layer to decide whether to activate the LoRA module or not(Yu et al., 2024; Li et al., 2025), which hampers the end-to-end decision-making process. To address this limitation, we propose a master decision-making mechanism that does not require an auxiliary routing component. Specifically, we designate the first edited layer as the master decision layer where input features are dynamically evaluated to activate the relevant LoRA module without the need for an auxil-
209
+
210
+ {4}------------------------------------------------
211
+
212
+ 228 229 230
213
+
214
+ 233 234
215
+
216
+ 236
217
+
218
+ 254
219
+
220
+ 256
221
+
222
+ 264
223
+
224
+ 274
225
+
226
+ 220
227
+
228
+ <span id="page-4-0"></span>*Table 1.* Comparison of SoLA to existing methods. All the results are obtained after sequential edits. ERR indicates Edit Reliability Rate, TRR presents Task Retention Rate, and ARR is Accuracy Attention Rate. The best performance is shown in bold.
229
+
230
+ | | SCOTUS (BERT; Acc<br>↑) | | | zsRE (T5; F1<br>↑) | | | Hallucination (GPT2-XL; PPL<br>↓) | | |
231
+ |--------|-------------------------|------|------|--------------------|------|------|-----------------------------------|--------|--------|
232
+ | Method | ERR | TRR | Avg. | ERR | TRR | Avg. | ERR | TRR | ARR |
233
+ | EWC | 0.51 | 0.82 | 0.66 | 0.67 | 0.50 | 0.58 | 1485.7 | 29.24 | 109.59 |
234
+ | CMR | 0.52 | 0.52 | 0.52 | 0.56 | 0.82 | 0.69 | 1449.3 | 28.14 | 107.76 |
235
+ | CLEAR | 0.67 | 0.83 | 0.75 | 0.27 | 0.99 | 0.63 | 2394.3 | 35.34 | 195.82 |
236
+ | MEND | 0.19 | 0.27 | 0.23 | 0.25 | 0.27 | 0.26 | 1369.8 | 1754.9 | 2902.5 |
237
+ | SERAC | 0.33 | 0.41 | 0.37 | 0.72 | 0.31 | 0.52 | 8183.7 | 133.3 | 10.04 |
238
+ | ROME | - | - | - | - | - | - | 30.28 | 103.82 | 14.02 |
239
+ | GRACE | 0.81 | 0.82 | 0.82 | 0.69 | 0.96 | 0.83 | 15.84 | 7.14 | 10.00 |
240
+ | ELDER | 0.89 | 0.86 | 0.88 | 0.72 | 0.97 | 0.84 | 16.12 | 5.87 | 8.42 |
241
+ | MELO | 0.96 | 0.92 | 0.94 | 0.72 | 0.98 | 0.85 | 17.45 | 1.04 | 2.66 |
242
+ | SoLA | 0.97 | 0.95 | 0.96 | 0.73 | 0.99 | 0.86 | 15.15 | 1.01 | 7.35 |
243
+
244
+ iary network. In this framework, the master decision layer H<sup>e</sup> computes the distance metric between the input feature embedding q and the stored key K to determine the activation of the module: d = He(argmini(dist(q, ki))), i = (1, 2, ..., N), dist(·) denotes the distance function and each key k<sup>i</sup> associated with the LoRA module. Then in the master layer He, we decide the edit layer behaviour:
245
+
246
+ $$H_e = \begin{cases} H(W_0) & \text{if } d \ge \alpha \\ H(W_0, W_{R_m}) & \text{if } d < \alpha \end{cases}$$
247
+ (3)
248
+
249
+ where α is the threshold, in this work we set it as 0.01, WR<sup>m</sup> represents the weight of m-th LoRA module associated with the key nearest to the query. This binary decision is propagated to the subsequent edited layers, ensuring consistent module activation throughout the network. By integrating the decision-making process to the first edited layer, our approach achieves complete end-to-end decision-making capability while maintaining architectural simplicity.
250
+
251
+ ## 4. Experiments
252
+
253
+ #### 4.1. Implementation Details
254
+
255
+ Baselines We first compare several recent methods designed for lifelong model editing. Grace[\(Hartvigsen et al.,](#page-8-9) [2023\)](#page-8-9) replaces model outputs with key-value pairs and matches features to keys based on deferral radius. MELO[\(Yu et al.,](#page-9-3) [2024\)](#page-9-3) leverages LoRA for finetuning and dynamically retrieves relevant LoRA modules via neuron index. EL-DER[\(Li et al.,](#page-9-6) [2025\)](#page-9-6) employs MoE to dynamically combine multiple LoRA modules. Additionally, we evaluate other baseline methods. MEND[\(Mitchell et al.,](#page-9-4) [2021\)](#page-9-4) uses a hypernetwork trained on auxiliary data to predict the required gradients for model editing. SERAC[\(Mitchell et al.,](#page-9-8) [2022\)](#page-9-8)
256
+
257
+ learns a scope classifier and a counterfactual model, coordinating between modules to determine editing behavior. ROME[\(Meng et al.,](#page-9-5) [2022a\)](#page-9-5) identifies the most influential weights in the model through perturbation analysis, localizes knowledge to specific layers of GPT, and modifies the corresponding weights. Since ROME is specifically designed for GPT, it is only evaluated on the hallucination correction task. EWC[\(Kirkpatrick et al.,](#page-8-11) [2017\)](#page-8-11) imposes constraints on the weights updating so that the model continuously learns new knowledge and retains previous knowledge. CMR[\(Lin](#page-9-9) [et al.,](#page-9-9) [2022\)](#page-9-9) performs continuous finetuning of the model to continuously learn new knowledge. CLEAR[\(Rolnick et al.,](#page-9-10) [2019\)](#page-9-10) builds a memory buffer to restore old tasks information, and replays them in subsequent edits to retain previous knowledge.
258
+
259
+ Evaluation Metric In this work, following[\(Hartvigsen et al.,](#page-8-9) [2023\)](#page-8-9), we use three basic metrics to assess model performance: ES, ERR and TRR, which are applicable to all model experiments. Where Edit Success(ES) measures the ability of the model to edit the target sample. Edit Reliability Rate(ERR) assesses the validity of the model on the edited dataset, indicating the extent to which the required knowledge updates are successfully incorporated. Task Retention Rate(TRR) quantifies the model's performance on unedited datasets and reflects the model's ability to retain previous knowledge. Additionally, in the hallucination correction task, we also use the Accuracy Attention Rate (ARR) to assess the performance of the already accurate output. Accuracy is measured differently for different tasks. For the document classification task of SCOTUS, we use the Average Accuracy Rate (ACC); for the question answering task of zsRE, we measure it using the average F1, and for the hallucination correction task, we measure it using the standard average complexity (PPL)[\(Brown et al.,](#page-8-12) [1992\)](#page-8-12).
260
+
261
+ {5}------------------------------------------------
262
+
263
+ 294
264
+
265
+ 296
266
+
267
+ 313 314
268
+
269
+ 316
270
+
271
+ 324
272
+
273
+ 326
274
+
275
+ 328 329
276
+
277
+ <span id="page-5-0"></span>![](_page_5_Figure_2.jpeg)
278
+
279
+ *Figure 4.* Figure(a)–(c) presents every edit accuracy on SCOTUS datasets with BERT. All experiment settings are the same as Tab[.1.](#page-4-0)
280
+
281
+ <span id="page-5-1"></span>![](_page_5_Figure_4.jpeg)
282
+
283
+ *Figure 5.* Visualization of zsRE dataset encoder output from T5 small with t-SNE and the dots with same color and shape are input and rephrase sentence. All experiment settings are the same as Tab[.1.](#page-4-0)
284
+
285
+ #### 4.2. Main Results
286
+
287
+ We evaluate the performance of the proposed SoLA method on three benchmark datasets and compare it with several state-of-the-art model editing approaches. The results are summarized in Tab[.1.](#page-4-0) As observed, SoLA achieves excellent performance on most of the benchmark datasets, with SoLA outperforming the strongest baseline, MELO, by 3% on the SCOTUS dataset. These demonstrate SoLA's enhanced effectiveness in editing target knowledge while better preserving previously acquired knowledge. Furthermore, existing methods such as MEND and SERAC perform poorly under the sequential editing setting, suggesting that they are primarily designed for static editing scenarios and are not well-suited for sequential model editing tasks.
288
+
289
+ We also report task-wise accuracy progression to analyze model performance throughout the sequential editing process. The experimental results are based on the SCOTUS dataset and the results are shown in Fig[.4.](#page-5-0) As illustrated in Fig[.4a,](#page-5-0) Fig[.4b](#page-5-0) and Fig[.4c,](#page-5-0) SoLA consistently maintains
290
+
291
+ superior accuracy across tasks, without exhibiting substantial performance degradation or volatility. This indicates the robustness and stability of SoLA when applied to sequential knowledge editing.
292
+
293
+ Method performance may vary across different model sizes and datasets. To further evaluate the robustness of our approach, we conduct hallucination correction experiments on the UniEdit[\(Chen et al.,](#page-8-13) [2025\)](#page-8-13) and WikiBigEdit[\(Thede](#page-9-11) [et al.,](#page-9-11) [2025\)](#page-9-11) datasets using larger-scale backbone models. The results are presented in Tab[.2.](#page-6-0) As shown in Tab[.2,](#page-6-0) SoLA consistently achieves the best or near-best performance across most settings, demonstrating its robustness and effectiveness under diverse task configurations. During editing, larger backbone models generally exhibit more stable ERR values, suggesting that such models have learned stronger semantic representations during pretraining, leading to better generalization and editability. Furthermore, continuous learning related methods tend to overfit in edited data, thus showing better ARR in the retention set, but large TRR values in the upstream set, indicating severe forgetting of previous knowledge.
294
+
295
+ #### 4.3. Controllable Rollback Editing
296
+
297
+ In SoLA, each edit instance is associated with a unique key stored in both the memory and the routing table. This design enables reversible editing, as the model can revert to its original behavior by removing the key corresponding to a specific edit. To demonstrate this property, we conduct an illustrative experiment on the zsRE dataset. The results are shown in Tab[.3.](#page-7-0) In the Tab[.3,](#page-7-0) each row corresponds to an input instance consisting of a "Text" (the question need to be edited) and its "Labels" (the correct answer). "Del" indicates whether the key corresponding to the edit is removed after editing. For each input, Predbase, Prededit and Preddel denote the prediction of base model, edited model and model after removing the corresponding key. When "Del" is false, the key is retained, serving as a baseline comparison. As shown in Tab[.3,](#page-7-0) for each instance, the original prediction (Predbase) does not match the correct label, indi-
298
+
299
+ {6}------------------------------------------------
300
+
301
+ <span id="page-6-0"></span>*Table 2.* Model Performance Comparison on UniEdit and WikiBigEdit datasets in hallucination correction tasks. All the scores are PPL metric and the best result is in bolded.
302
+
303
+ | | | | UniEdit (PPL ↓) | | | WikiBigEdit (PPL ↓) | |
304
+ |----------------|--------|-------|-----------------|-------|-------|---------------------|-------|
305
+ | Model | Method | ERR | TRR | ARR | ERR | TRR | ARR |
306
+ | | EWC | 2.43 | 1134 | 22.08 | 3.58 | 251117 | 4.93 |
307
+ | | CMR | 2.79 | 2239 | 25.24 | 2.86 | 169452 | 4.49 |
308
+ | LLaMA-3-8B | CLEAR | 1.04 | 982 | 29.79 | 1.03 | 74384 | 1.52 |
309
+ | | SERAC | 37.10 | 246 | 93 | 60.17 | 215 | 59 |
310
+ | | GRACE | 1.00 | 244 | 89 | 1.00 | 216 | 58 |
311
+ | | ELDER | 1.00 | 173 | 74 | 1.00 | 178 | 48 |
312
+ | | MELO | 1.00 | 153 | 68 | 1.00 | 165 | 47 |
313
+ | | Ours | 1.00 | 144 | 66 | 1.00 | 162 | 44 |
314
+ | | EWC | 2.38 | 4451 | 42.13 | 2.86 | 47846 | 3.89 |
315
+ | | CMR | 2.34 | 7211 | 36.19 | 3.60 | 34623 | 5.51 |
316
+ | DeepSeek-R1-8B | CLEAR | 1.06 | 3365 | 44.86 | 1.02 | 28110 | 1.48 |
317
+ | | SERAC | 46.76 | 451 | 834 | 82.72 | 493 | 831 |
318
+ | | GRACE | 1.00 | 407 | 803 | 1.00 | 487 | 793 |
319
+ | | ELDER | 1.03 | 241 | 482 | 1.03 | 304 | 492 |
320
+ | | MELO | 1.09 | 204 | 407 | 1.05 | 263 | 445 |
321
+ | | Ours | 1.07 | 188 | 374 | 1.00 | 248 | 412 |
322
+ | | EWC | 4.62 | 7648 | 48.62 | 5.61 | 61834 | 14.65 |
323
+ | | CMR | 4.12 | 11583 | 40.56 | 6.28 | 48629 | 16.89 |
324
+ | Qwen2-7B | CLEAR | 1.03 | 5021 | 54.98 | 1.05 | 35396 | 4.26 |
325
+ | | SERAC | 58.51 | 329 | 1261 | 62.12 | 304 | 523 |
326
+ | | GRACE | 2.05 | 316 | 1065 | 16.88 | 299 | 518 |
327
+ | | ELDER | 1.00 | 201 | 266 | 1.00 | 225 | 197 |
328
+ | | MELO | 1.00 | 170 | 201 | 1.00 | 203 | 143 |
329
+ | | Ours | 1.00 | 156 | 110 | 1.00 | 199 | 109 |
330
+
331
+ cating the necessity for editing. After editing, the model correctly produces Prededit consistent with the ground-truth label, demonstrating that SoLA successfully updates the model's knowledge. When the associated key is deleted, the model reverts to its original prediction (Prededit = Predbase), verifying that our method can effectively roll back specific edits. More critically, for edits where the key is not deleted, the model continues to output Prededit, showing that the rollback operation does not interfere with other edits. This confirms that SoLA supports fine-grained, selective undo of knowledge edits without disrupting unrelated modifications.
332
+
333
+ #### 4.4. Ablation Study
334
+
335
+ 330
336
+
337
+ 334
338
+
339
+ 336
340
+
341
+ 354
342
+
343
+ 356
344
+
345
+ 374
346
+
347
+ 376
348
+
349
+ Effect of Edit Layer Location In semantic representation learning, different layers of a model focus on different aspects of semantic information. Therefore, the position of the edited layer can significantly influence the effectiveness of model editing. To investigate this, we evaluate the performance of model when edits are applied at different layers, while keeping all other settings fixed. The experiments are conducted on the SCOTUS dataset with a Nvidia A100 40G GPU, and the results are shown in Tab[.4.](#page-7-1) In the
350
+
351
+ Tab[.4,](#page-7-1) "Layer" denotes the layer range used for editing. For example, "0–2" indicates that edits are applied to layers 0, 1, and 2 of the BERT model. As shown in the table, editing at shallower layers results in suboptimal performance. This observation aligns with prior findings[\(Geva et al.,](#page-8-14) [2020\)](#page-8-14), which suggest that shallow layers primarily capture the shallow sentence patterns, whereas deeper layers encode richer semantic features, thereby enabling more effective knowledge editing. Moreover, editing at shallow layers significantly increases the time used for editing, which means that editing for semantics is more difficult in shallow layers. Furthermore, we observe that varying the editing layer has negligible impact on performance over the unedited portion of the dataset, indicating that SoLA is capable of preserving previously learned knowledge regardless of the editing depth, which further supports the robustness of SoLA.
352
+
353
+ Effect of LoRA Rank The LoRA module projects semantic representations into a low-rank subspace for parameterefficient learning. Consequently, the choice of rank will effect the module's performance. To investigate this, we analyze the impact of different LoRA rank values on model performance, keeping all other settings fixed. Experiments are conducted on the SCOTUS dataset using a NVIDIA
354
+
355
+ {7}------------------------------------------------
356
+
357
+ 387
358
+
359
+ 394
360
+
361
+ 428 429 430 431 432 433 434 435
362
+
363
+ <span id="page-7-0"></span>*Table 3.* Controllable edit in SoLA on zsRE datasets. "Text" is the question need to be edited, "Labels" is the true answer, "Del" indicates whther delete associated key and Predbase, Prededit and Preddel is the prediction of base model, edited model and delted model.
364
+
365
+ | Text | Labels | Del | Predbase | Prededit | Preddel |
366
+ |-----------------------------------------------------|-------------------|-------|------------------|-------------------|------------------|
367
+ | The date of Tsetserleg earthquake in 1905? | 9 July 1905 | True | 20 February 1905 | 9 July 1905 | 20 February 1905 |
368
+ | What constellation has Nu Cancri? | Cancer | True | Hydra | Cancer | Hydra |
369
+ | On what date did the Bahrain Grand Prix 2015 occur? | 19 April 2015 | True | 6 April 2017 | 19 April 2015 | 6 April 2017 |
370
+ | What position does Charles-Joseph Coursol have? | Mayor of Montreal | True | Positioning | Mayor of Montreal | Positioning |
371
+ | Who acted in Blow Dry? | Alan Rickman | False | Jim Carrey | Alan Rickman | Alan Rickman |
372
+
373
+ <span id="page-7-1"></span>*Table 4.* Ablation studies on location of edited layers. Here, "Layer" indicates the edited layer location. For example, "0-2" presents edited layer is layers 0, 1 and 2.
374
+
375
+ | Layer | ES | ERR | TRR | Edit Time(min) |
376
+ |-------|------|------|------|----------------|
377
+ | 0-2 | 0.77 | 0.61 | 0.96 | 9.21 |
378
+ | 3-5 | 1.00 | 0.68 | 0.96 | 8.06 |
379
+ | 6-8 | 0.81 | 0.70 | 0.97 | 7.03 |
380
+ | 9-11 | 0.94 | 0.95 | 0.97 | 5.97 |
381
+
382
+ <span id="page-7-2"></span>*Table 5.* Ablation studies on LoRA rank. Here, "LoRA Rank" indicates the rank value of every LoRA in model.
383
+
384
+ | LoRA Rank | ES | ERR | TRR | Edit Time(min) |
385
+ |-----------|------|------|------|----------------|
386
+ | 1 | 0.90 | 0.84 | 0.96 | 5.88 |
387
+ | 2 | 0.94 | 0.91 | 0.97 | 5.90 |
388
+ | 3 | 1.00 | 0.91 | 0.97 | 5.86 |
389
+ | 4 | 1.00 | 0.95 | 0.97 | 5.97 |
390
+ | 5 | 1.00 | 0.92 | 0.96 | 5.86 |
391
+ | 10 | 1.00 | 0.71 | 0.96 | 5.85 |
392
+ | | | | | |
393
+
394
+ A100 40GB GPU, and the results are presented in Tab[.5.](#page-7-2) As shown in the Tab[.5,](#page-7-2) simply increasing the LoRA rank does not lead to improved performance and may even degrade model performance. This indicates that expanding the learnable parameter space does not necessarily enhance the model's capacity for effective knowledge editing. On the contrary, excessive rank values may even result in performance degradation due to overfitting, suggesting the importance of carefully selecting an appropriate rank to balance capacity and generalization. Based on the experiment results, we set 4 as LoRA rank for all the experiments in this paper.
395
+
396
+ #### 4.5. Model Visualization
397
+
398
+ To gain deeper insight into the model's behavior under sequential editing, we conducted a t-SNE visualization [\(Maaten & Hinton,](#page-9-12) [2008\)](#page-9-12) of the learned feature representations. This experiment is performed on the zsRE dataset using the T5-small model to assess how semantic relationships are preserved after sequential edits. Upon completing
399
+
400
+ the entire sequence of editing tasks for question answering, we selected five distinct input instances, each accompanied by semantically equivalent rephrased sentences, forming five evaluation groups. The encoder output features are subsequently extracted from the edited model for dimensionality reduction and visualization, and the resulting plot is represented in Fig[.5.](#page-5-1) As shown in Fig[.5,](#page-5-1) there is a clear clustering pattern that for each group, the original input and its rephrased variant are mapped to proximate locations in the latent space. This demonstrates that SoLA effectively captures and preserves the semantic similarity between related inputs throughout the editing process. Furthermore, distinct groups maintain separable clusters, indicating that the model retains the ability to discriminate between different edit concepts after sequential editing. This visualization shows that SoLA's semantic routing mechanism successfully supports edit generalization based on semantic similarity while upholding the integrity of previously learned knowledge.
401
+
402
+ ## 5. Conclusion
403
+
404
+ In this paper, we propose SoLA, a Semantic routing-based LoRA framework for reversible lifelong model editing. In SoLA, each edit is encapsulated as an independent LoRA module which is frozen after training and a semantic routing record is established to map LoRA module to the input semantic representation, allowing dynamic activation of LoRA modules via semantic matching. This design not only avoids semantic drift caused by clustering updating but also mitigates catastrophic forgetting from parameter sharing. More importantly, SoLA supports precisely revoking edit by removing the corresponding key from the routing table, enabling reversible model editing. This allows for flexible addition and deletion of edits, offering fine-grained control over model behavior. To the best of our knowledge, this is the first work to achieve reversible model editing in the literature. Furthermore, we introduce a master decisionmaking mechanism by integrating decision-making into the edited layer, enabling end-to-end decision-making process. By building a strict mapping between edits and LoRA modules, SoLA achieves efficient and reversible lifelong model editing, providing a novel perspective for future research.
405
+
406
+ {8}------------------------------------------------
407
+
408
+ ## Impact Statement
409
+
410
+ This work advances the field of Machine Learning by introducing SoLA, a framework for reversible and controllable lifelong model editing in large language models. Our method enhances the safety and reliability of AI systems by enabling precise rollback of model edits, which helps mitigate risks associated with erroneous or harmful knowledge updates. By effectively preventing semantic drift and catastrophic forgetting, SoLA promotes the development of more robust and trustworthy models capable of adapting to evolving information. The significant reduction in computational overhead also aligns with the goal of sustainable AI development.
411
+
412
+ ## References
413
+
414
+ - <span id="page-8-1"></span>Achiam, J., Adler, S., Agarwal, S., Ahmad, L., Akkaya, I., Aleman, F. L., Almeida, D., Altenschmidt, J., Altman, S., Anadkat, S., et al. Gpt-4 technical report. *arXiv preprint arXiv:2303.08774*, 2023.
415
+ - <span id="page-8-6"></span>Biderman, S., Schoelkopf, H., Anthony, Q. G., Bradley, H., O'Brien, K., Hallahan, E., Khan, M. A., Purohit, S., Prashanth, U. S., Raff, E., et al. Pythia: A suite for analyzing large language models across training and scaling. In *International Conference on Machine Learning*, pp. 2397–2430. PMLR, 2023.
416
+ - <span id="page-8-12"></span>Brown, P. F., Della Pietra, S. A., Della Pietra, V. J., Lai, J. C., and Mercer, R. L. An estimate of an upper bound for the entropy of english. *Computational Linguistics*, 18 (1):31–40, 1992.
417
+ - <span id="page-8-0"></span>Brown, T., Mann, B., Ryder, N., Subbiah, M., Kaplan, J. D., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al. Language models are few-shot learners. *Advances in neural information processing systems*, 33: 1877–1901, 2020.
418
+ - <span id="page-8-17"></span>Chalkidis, I., Pasini, T., Zhang, S., Tomada, L., Schwemer, S. F., and Søgaard, A. Fairlex: A multilingual benchmark for evaluating fairness in legal text processing. *arXiv preprint arXiv:2203.07228*, 2022.
419
+ - <span id="page-8-13"></span>Chen, Q., Wang, D., Zhang, T., Yan, Z., You, C., Wang, C., and He, X. Uniedit: A unified knowledge editing benchmark for large language models. *arXiv preprint arXiv:2505.12345*, 2025.
420
+ - <span id="page-8-4"></span>De Cao, N., Aziz, W., and Titov, I. Editing factual knowledge in language models. *arXiv preprint arXiv:2104.08164*, 2021.
421
+ - <span id="page-8-8"></span>Fang, J., Jiang, H., Wang, K., Ma, Y., Jie, S., Wang, X., He, X., and Chua, T.-S. Alphaedit: Null-space constrained knowledge editing for language models. *arXiv preprint arXiv:2410.02355*, 2024.
422
+
423
+ - <span id="page-8-14"></span>Geva, M., Schuster, R., Berant, J., and Levy, O. Transformer feed-forward layers are key-value memories. *arXiv preprint arXiv:2012.14913*, 2020.
424
+ - <span id="page-8-7"></span>Gu, J.-C., Xu, H.-X., Ma, J.-Y., Lu, P., Ling, Z.-H., Chang, K.-W., and Peng, N. Model editing can hurt general abilities of large language models. *CoRR*, 2024.
425
+ - <span id="page-8-3"></span>Hartvigsen, T., Gabriel, S., Palangi, H., Sap, M., Ray, D., and Kamar, E. Toxigen: A large-scale machine-generated dataset for adversarial and implicit hate speech detection. *arXiv preprint arXiv:2203.09509*, 2022.
426
+ - <span id="page-8-9"></span>Hartvigsen, T., Sankaranarayanan, S., Palangi, H., Kim, Y., and Ghassemi, M. Aging with grace: Lifelong model editing with discrete key-value adaptors. *Advances in Neural Information Processing Systems*, 36:47934–47959, 2023.
427
+ - <span id="page-8-15"></span>Houlsby, N., Giurgiu, A., Jastrzebski, S., Morrone, B., De Laroussilhe, Q., Gesmundo, A., Attariyan, M., and Gelly, S. Parameter-efficient transfer learning for nlp. In *International conference on machine learning*, pp. 2790– 2799. PMLR, 2019.
428
+ - <span id="page-8-10"></span>Hu, E. J., Shen, Y., Wallis, P., Allen-Zhu, Z., Li, Y., Wang, S., Wang, L., Chen, W., et al. Lora: Low-rank adaptation of large language models. *ICLR*, 1(2):3, 2022.
429
+ - <span id="page-8-2"></span>Huang, L., Yu, W., Ma, W., Zhong, W., Feng, Z., Wang, H., Chen, Q., Peng, W., Feng, X., Qin, B., et al. A survey on hallucination in large language models: Principles, taxonomy, challenges, and open questions. *ACM Transactions on Information Systems*, 43(2):1–55, 2025.
430
+ - <span id="page-8-16"></span>Jia, M., Tang, L., Chen, B.-C., Cardie, C., Belongie, S., Hariharan, B., and Lim, S.-N. Visual prompt tuning. In *European conference on computer vision*, pp. 709–727. Springer, 2022.
431
+ - <span id="page-8-11"></span>Kirkpatrick, J., Pascanu, R., Rabinowitz, N., Veness, J., Desjardins, G., Rusu, A. A., Milan, K., Quan, J., Ramalho, T., Grabska-Barwinska, A., et al. Overcoming catastrophic forgetting in neural networks. *Proceedings of the national academy of sciences*, 114(13):3521–3526, 2017.
432
+ - <span id="page-8-18"></span>Kwiatkowski, T., Palomaki, J., Redfield, O., Collins, M., Parikh, A., Alberti, C., Epstein, D., Polosukhin, I., Devlin, J., Lee, K., et al. Natural questions: a benchmark for question answering research. *Transactions of the Association for Computational Linguistics*, 7:453–466, 2019.
433
+ - <span id="page-8-5"></span>Lazaridou, A., Kuncoro, A., Gribovskaya, E., Agrawal, D., Liska, A., Terzi, T., Gimenez, M., de Masson d'Autume, C., Kocisky, T., Ruder, S., et al. Mind the gap: Assessing temporal generalization in neural language models. *Advances in Neural Information Processing Systems*, 34: 29348–29363, 2021.
434
+
435
+ {9}------------------------------------------------
436
+
437
+ <span id="page-9-16"></span>495 496 497 Levy, O., Seo, M., Choi, E., and Zettlemoyer, L. Zero-shot relation extraction via reading comprehension. *arXiv preprint arXiv:1706.04115*, 2017.
438
+
439
+ <span id="page-9-14"></span>504
440
+
441
+ <span id="page-9-12"></span>513 514
442
+
443
+ <span id="page-9-17"></span>516
444
+
445
+ 518 519 520
446
+
447
+ <span id="page-9-7"></span>524 525 526
448
+
449
+ <span id="page-9-4"></span>528 529 530
450
+
451
+ 534
452
+
453
+ <span id="page-9-18"></span>536
454
+
455
+ - <span id="page-9-6"></span>Li, J., Wang, Q., Wang, Z., Zhang, Y., and Mao, Z. Elder: Enhancing lifelong model editing with mixture-of-lora. In *Proceedings of the AAAI Conference on Artificial Intelligence*, pp. 24440–24448, 2025.
456
+ - Li, X. L. and Liang, P. Prefix-tuning: Optimizing continuous prompts for generation. *arXiv preprint arXiv:2101.00190*, 2021.
457
+ - <span id="page-9-9"></span>Lin, B. Y., Wang, S., Lin, X. V., Jia, R., Xiao, L., Ren, X., and Yih, W.-t. On continual model refinement in out-of-distribution data streams. *arXiv preprint arXiv:2205.02014*, 2022.
458
+ - Maaten, L. v. d. and Hinton, G. Visualizing data using t-sne. *Journal of machine learning research*, 9(Nov): 2579–2605, 2008.
459
+ - Manakul, P., Liusie, A., and Gales, M. J. Selfcheckgpt: Zeroresource black-box hallucination detection for generative large language models. *arXiv preprint arXiv:2303.08896*, 2023.
460
+ - <span id="page-9-5"></span>Meng, K., Bau, D., Andonian, A., and Belinkov, Y. Locating and editing factual associations in gpt. *Advances in neural information processing systems*, 35:17359–17372, 2022a.
461
+ - Meng, K., Sharma, A. S., Andonian, A., Belinkov, Y., and Bau, D. Mass-editing memory in a transformer. *arXiv preprint arXiv:2210.07229*, 2022b.
462
+ - Mitchell, E., Lin, C., Bosselut, A., Finn, C., and Manning, C. D. Fast model editing at scale. *arXiv preprint arXiv:2110.11309*, 2021.
463
+ - <span id="page-9-8"></span>Mitchell, E., Lin, C., Bosselut, A., Manning, C. D., and Finn, C. Memory-based model editing at scale. In *International Conference on Machine Learning*, pp. 15817– 15831. PMLR, 2022.
464
+ - Nakano, R., Hilton, J., Balaji, S., Wu, J., Ouyang, L., Kim, C., Hesse, C., Jain, S., Kosaraju, V., Saunders, W., et al. Webgpt: Browser-assisted question-answering with human feedback. *arXiv preprint arXiv:2112.09332*, 2021.
465
+ - <span id="page-9-0"></span>Radford, A., Wu, J., Child, R., Luan, D., Amodei, D., Sutskever, I., et al. Language models are unsupervised multitask learners. *OpenAI blog*, 1(8):9, 2019.
466
+ - <span id="page-9-10"></span>Rolnick, D., Ahuja, A., Schwarz, J., Lillicrap, T., and Wayne, G. Experience replay for continual learning. *Advances in neural information processing systems*, 32, 2019.
467
+
468
+ - <span id="page-9-11"></span>Thede, L., Roth, K., Bethge, M., Akata, Z., and Hartvigsen, T. Understanding the limits of lifelong knowledge editing in llms. *arXiv preprint arXiv:2503.05683*, 2025.
469
+ - <span id="page-9-1"></span>Touvron, H., Martin, L., Stone, K., Albert, P., Almahairi, A., Babaei, Y., Bashlykov, N., Batra, S., Bhargava, P., Bhosale, S., et al. Llama 2: Open foundation and finetuned chat models. *arXiv preprint arXiv:2307.09288*, 2023.
470
+ - <span id="page-9-15"></span>Valipour, M., Rezagholizadeh, M., Kobyzev, I., and Ghodsi, A. Dylora: Parameter efficient tuning of pre-trained models using dynamic search-free low-rank adaptation. *arXiv preprint arXiv:2210.07558*, 2022.
471
+ - <span id="page-9-2"></span>Yao, Y., Wang, P., Tian, B., Cheng, S., Li, Z., Deng, S., Chen, H., and Zhang, N. Editing large language models: Problems, methods, and opportunities. *arXiv preprint arXiv:2305.13172*, 2023.
472
+ - <span id="page-9-3"></span>Yu, L., Chen, Q., Zhou, J., and He, L. Melo: Enhancing model editing with neuron-indexed dynamic lora. In *Proceedings of the AAAI Conference on Artificial Intelligence*, pp. 19449–19457, 2024.
473
+ - <span id="page-9-13"></span>Zaken, E. B., Ravfogel, S., and Goldberg, Y. Bitfit: Simple parameter-efficient fine-tuning for transformerbased masked language-models. *arXiv preprint arXiv:2106.10199*, 2021.
474
+
475
+ {10}------------------------------------------------
476
+
477
+ 554
478
+
479
+ 556
480
+
481
+ 574
482
+
483
+ 576
484
+
485
+ 594
486
+
487
+ 596
488
+
489
+ # Appendix
490
+
491
+ ## A. Additional Related Work
492
+
493
+ #### A.1. Parameter-Efficient Fine-Tuning
494
+
495
+ Parameter-efficient fine-tuning (PEFT) approaches adjust pretrained LLMs by incorporating lightweight modules, while keeping the base model frozen. Optimization is performed solely through updates to these lightweight components. Representative approaches include Adapters[\(Houlsby](#page-8-15) [et al.,](#page-8-15) [2019;](#page-8-15) [Zaken et al.,](#page-9-13) [2021\)](#page-9-13), Prompts[\(Li & Liang,](#page-9-14) [2021;](#page-9-14) [Jia et al.,](#page-8-16) [2022\)](#page-8-16), and Low-Rank Adaptation (LoRA)[\(Hu](#page-8-10) [et al.,](#page-8-10) [2022;](#page-8-10) [Valipour et al.,](#page-9-15) [2022\)](#page-9-15). Adapters are compact bottleneck modules located after transformer blocks; Prompts are learnable vectors prepended to the input sequence; and LoRA uses low-rank decomposition matrices to modify model weights during training. Recent progress explores applying PEFT to lifelong model editing, where the base model remains unchanged and new parameter modules are introduced to manage sequential edits over time.
496
+
497
+ #### A.2. Routing Mechanisms in Modular Language Models
498
+
499
+ When multiple modular components (e.g., LoRA modules) are present, a key challenge lies in routing input queries to the appropriate subset of modules during inference. Recent work explore various strategies to support dynamic module selection. MELO[\(Yu et al.,](#page-9-3) [2024\)](#page-9-3) introduces a clustering mechanism to assign edits to clusters based on input hidden states. During inference, the nearest cluster center is used to retrieve relevant LoRA modules. However, cluster centers are inevitably updated during the sequential editing, which may lead to semantic drift and incorrect matching. As shown in Fig[.2,](#page-1-0) the number of incorrect matches increases significantly as the number of cluster centre updating increases, which leads to a deterioration in model performance. EL-DER[\(Li et al.,](#page-9-6) [2025\)](#page-9-6) employs MoE approach in which a learnable neural network scores a set of LoRA modules, activating the top-k modules. This strategy offers parameter efficiency but introduces soft entanglement in routing, and due to shared module usage, new edits may interfere with or overwrite previously edits. Furthermore, both strategies rely on auxiliary routing networks, adding architectural complexity and computational overhead. They also offer limited control over edit selection, making rollback and deletion of edits challenging.
500
+
501
+ ## B. Additional Experiment Details
502
+
503
+ Benchmarks We evaluate the performance of the model in three representative tasks: Document Classification, Question Answering(QA), and Hallucination Correction. Among them, the document classification task is performed based
504
+
505
+ on the SCOTUS dataset[\(Chalkidis et al.,](#page-8-17) [2022\)](#page-8-17). SCOTUS is a subset of Fairlex, which collects documents from the U.S. Supreme Court and classifies them into 11 topics. In practice, the topics corresponding to the documents will change, so it is necessary to update the model knowledge to classify the documents into new topics. We divide SCO-TUS into an edit set and an upstream set, where models are edited on the edit set and the upstream set is not involved in editing, only testing. The question answering task is then conducted on the zsRE dataset[\(Levy et al.,](#page-9-16) [2017\)](#page-9-16), and NQ datasets[\(Kwiatkowski et al.,](#page-8-18) [2019\)](#page-8-18) serves as upstream dataset. Specifically, we perform editing in zsRE, and the NQ dataset is again not involved in editing, only testing. For hallucination correction, we adopted the framework introduced by[\(Manakul et al.,](#page-9-17) [2023\)](#page-9-17), aiming to address the tendency of GPT models to generate factually inconsistent outputs. Following GRACE[\(Hartvigsen et al.,](#page-8-9) [2023\)](#page-8-9), we employ SelfCheckGPT[\(Manakul et al.,](#page-9-17) [2023\)](#page-9-17) for editing. SelfCheckGPT is a Wikipedia-style biography that is first generated using GPT3 on 256 topics, e.g., "Bon Jovi", and then checked to see which of the generated biographies are hallucinations. SelfCheckGPT contains 1392 hallucinatory sentences to be edited, which serves as the editing set, and 516 already correct sentences as the retention set, which is used to measure model's post-edit perplexity on the already correct sentences. WebText[\(Nakano et al.,](#page-9-18) [2021\)](#page-9-18) is used as the upstream set, remaining unedited and reserved for testing. In addition to this, in order to test the performance of the model approach with different sized models as well as datasets, we conducted hallucination correction experiments on Uniedit[\(Chen et al.,](#page-8-13) [2025\)](#page-8-13) and WikiBigEdit[\(Thede](#page-9-11) [et al.,](#page-9-11) [2025\)](#page-9-11) to evaluate the generalization performance of the models. Uniedit is based on open domain knowledge covering information from 25 common domains in 5 major categories. The WikiBigEdit dataset is based on regular updates of the knowledge graph in Wikipedia and contains 5 months of extensive factual editing and improvement. The Uniedit and WikiBigEdit datasets already have edit set, retention set and upstream set that can be used directly for hallucination correction tasks.
506
+
507
+ Training details Following[\(Hartvigsen et al.,](#page-8-9) [2023\)](#page-8-9), we employ BERT, T5-small, and GPT2-XL as the base models for the three tasks—document classification, question answering, and hallucination correction, respectively. Among these, BERT and T5-small are the official pre-trained models, while GPT2-XL is obtained from [\(Hartvigsen et al.,](#page-8-9) [2023\)](#page-8-9) which finetuned from the official release[\(Hartvigsen](#page-8-9) [et al.,](#page-8-9) [2023\)](#page-8-9). For training, we adopt Stochastic Gradient Descent (SGD) as the optimizer with a cosine decay learning rate schedule. The learning rates is 0.05, training epochs
508
+
509
+ {11}------------------------------------------------
510
+
511
+ is 40, and LoRA rank is 4. In the three tasks, we edit the models and the edited layers of the individual model edits are shown in the Tab[.6.](#page-11-0)
512
+
513
+ *Table 6.* Edited layers of different model
514
+
515
+ <span id="page-11-0"></span>
516
+
517
+ | Model | Edit layer |
518
+ |----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
519
+ | BERT | bert.encoder.layer.9.output.dense<br>bert.encoder.layer.10.output.dense<br>bert.encoder.layer.11.output.dense |
520
+ | T5-Small | encoder.block.5.layer.1.DenseReluDense.wi 0<br>encoder.block.5.layer.1.DenseReluDense.wi 1<br>encoder.block.5.layer.1.DenseReluDense.wo<br>encoder.block.6.layer.1.DenseReluDense.wi 0<br>encoder.block.6.layer.1.DenseReluDense.wi 1<br>encoder.block.6.layer.1.DenseReluDense.wo |
521
+ | GPT2-XL | transformer.h.36.mlp.c fc<br>transformer.h.37.mlp.c fc |
icml26/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1/parse_report.json ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1",
3
+ "pipeline": "marker_non_llm_v3",
4
+ "parser": "marker_single",
5
+ "formats": [
6
+ "markdown",
7
+ "chunks"
8
+ ],
9
+ "llm_enabled": false,
10
+ "pdf_path": "/network/scratch/j/jianan.zhao/ReviewAgent/data/processed_papers/icml26_20260429_1952_duequeue/raw/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1.pdf",
11
+ "pdf_sha256": "992b295e96705a94648379d20a1644e6082883a1cc9641e983bd3ba4527e4eaa",
12
+ "bytes": 578235,
13
+ "source": "https://koala.science/storage/pdfs/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1.pdf",
14
+ "page_count": 12,
15
+ "ok": true,
16
+ "elapsed_seconds": 146.58999999999997,
17
+ "paper2markdown_v3": {
18
+ "paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1",
19
+ "pipeline": "Paper2Markdown-V3",
20
+ "ok": true,
21
+ "page_count": 12,
22
+ "chunk_count": 69,
23
+ "main_body_chunk_count": 57,
24
+ "appendix_chunk_count": 7,
25
+ "reference_chunk_count": 5,
26
+ "model_text_chars": 37283,
27
+ "raw_markdown_chars": 58572,
28
+ "sanitized_chars": 53252,
29
+ "page_provenance": {
30
+ "min_page": 1,
31
+ "max_page": 12,
32
+ "invalid_count": 0
33
+ },
34
+ "marker_block_type_counts": {
35
+ "Caption": 5,
36
+ "Equation": 3,
37
+ "FigureGroup": 5,
38
+ "Footnote": 1,
39
+ "ListGroup": 5,
40
+ "PageFooter": 12,
41
+ "PageHeader": 15,
42
+ "SectionHeader": 26,
43
+ "Table": 1,
44
+ "TableGroup": 5,
45
+ "Text": 171
46
+ },
47
+ "asset_count_raw": 5,
48
+ "asset_count_model_kept": 5,
49
+ "asset_count_rejected": 0,
50
+ "asset_reject_reasons": {
51
+ "kept": 5
52
+ },
53
+ "artifact_leak_audit": {
54
+ "ok": true,
55
+ "hits": {
56
+ "Anonymous Authors": [],
57
+ "ACKNOWLEDGMENT": [],
58
+ "OpenReview": [],
59
+ "\"accept_label\"": [],
60
+ "\"decision\"": [],
61
+ "\"decision_tier\"": [],
62
+ "\"source_status\"": [],
63
+ "Meta-review": [],
64
+ "Official Review": [],
65
+ "official_reviews": [],
66
+ "meta_reviews": [],
67
+ "suggested_verdict_score": []
68
+ },
69
+ "artifact_count": 2
70
+ },
71
+ "default_model_input": "model_text_v3.txt",
72
+ "appendix_input": "appendix_text_v3.txt",
73
+ "reference_input": "reference_text_v3.txt"
74
+ }
75
+ }
icml26/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1/reference_chunks.jsonl ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0057", "section": "References", "page_start": 9, "page_end": 9, "type": "ListGroup", "text": "Achiam, J., Adler, S., Agarwal, S., Ahmad, L., Akkaya, I., Aleman, F. L., Almeida, D., Altenschmidt, J., Altman, S., Anadkat, S., et al. Gpt-4 technical report. arXiv preprint arXiv:2303.08774 , 2023. Biderman, S., Schoelkopf, H., Anthony, Q. G., Bradley, H., O'Brien, K., Hallahan, E., Khan, M. A., Purohit, S., Prashanth, U. S., Raff, E., et al. Pythia: A suite for analyzing large language models across training and scaling. In International Conference on Machine Learning , pp. 2397–2430. PMLR, 2023. Brown, P. F., Della Pietra, S. A., Della Pietra, V. J., Lai, J. C., and Mercer, R. L. An estimate of an upper bound for the entropy of english. Computational Linguistics , 18 (1):31–40, 1992. Brown, T., Mann, B., Ryder, N., Subbiah, M., Kaplan, J. D., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al. Language models are few-shot learners. Advances in neural information processing systems , 33: 1877–1901, 2020. Chalkidis, I., Pasini, T., Zhang, S., Tomada, L., Schwemer, S. F., and Søgaard, A. Fairlex: A multilingual benchmark for evaluating fairness in legal text processing. arXiv preprint arXiv:2203.07228 , 2022. Chen, Q., Wang, D., Zhang, T., Yan, Z., You, C., Wang, C., and He, X. Uniedit: A unified knowledge editing benchmark for large language models. arXiv preprint arXiv:2505.12345 , 2025. De Cao, N., Aziz, W., and Titov, I. Editing factual knowledge in language models. arXiv preprint arXiv:2104.08164 , 2021. Fang, J., Jiang, H., Wang, K., Ma, Y., Jie, S., Wang, X., He, X., and Chua, T.-S. Alphaedit: Null-space constrained knowledge editing for language models. arXiv preprint arXiv:2410.02355 , 2024.", "source": "marker_v2", "marker_block_id": "/page/8/ListGroup/516"}
2
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0058", "section": "References", "page_start": 9, "page_end": 9, "type": "ListGroup", "text": "Geva, M., Schuster, R., Berant, J., and Levy, O. Transformer feed-forward layers are key-value memories. arXiv preprint arXiv:2012.14913 , 2020. Gu, J.-C., Xu, H.-X., Ma, J.-Y., Lu, P., Ling, Z.-H., Chang, K.-W., and Peng, N. Model editing can hurt general abilities of large language models. CoRR , 2024. Hartvigsen, T., Gabriel, S., Palangi, H., Sap, M., Ray, D., and Kamar, E. Toxigen: A large-scale machine-generated dataset for adversarial and implicit hate speech detection. arXiv preprint arXiv:2203.09509 , 2022. Hartvigsen, T., Sankaranarayanan, S., Palangi, H., Kim, Y., and Ghassemi, M. Aging with grace: Lifelong model editing with discrete key-value adaptors. Advances in Neural Information Processing Systems , 36:47934–47959, 2023. Houlsby, N., Giurgiu, A., Jastrzebski, S., Morrone, B., De Laroussilhe, Q., Gesmundo, A., Attariyan, M., and Gelly, S. Parameter-efficient transfer learning for nlp. In International conference on machine learning , pp. 2790– 2799. PMLR, 2019. Hu, E. J., Shen, Y., Wallis, P., Allen-Zhu, Z., Li, Y., Wang, S., Wang, L., Chen, W., et al. Lora: Low-rank adaptation of large language models. ICLR , 1(2):3, 2022. Huang, L., Yu, W., Ma, W., Zhong, W., Feng, Z., Wang, H., Chen, Q., Peng, W., Feng, X., Qin, B., et al. A survey on hallucination in large language models: Principles, taxonomy, challenges, and open questions. ACM Transactions on Information Systems , 43(2):1–55, 2025. Jia, M., Tang, L., Chen, B.-C., Cardie, C., Belongie, S., Hariharan, B., and Lim, S.-N. Visual prompt tuning. In European conference on computer vision , pp. 709–727. Springer, 2022. Kirkpatrick, J., Pascanu, R., Rabinowitz, N., Veness, J., Desjardins, G., Rusu, A. A., Milan, K., Quan, J., Ramalho, T., Grabska-Barwinska, A., et al. Overcoming catastrophic forgetting in neural networks. Proceedings of the national academy of sciences , 114(13):3521–3526, 2017. Kwiatkowski, T., Palomaki, J., Redfield, O., Collins, M., Parikh, A., Alberti, C., Epstein, D., Polosukhin, I., Devlin, J., Lee, K., et al. Natural questions: a benchmark for question answering research. Transactions of the Association for Computational Linguistics , 7:453–466, 2019. Lazaridou, A., Kuncoro, A., Gribovskaya, E., Agrawal, D., Liska, A., Terzi, T., Gimenez, M., de Masson d'Autume, C., Kocisky, T., Ruder, S., et al. Mind the gap: Assessing temporal generalization in neural language models. Advances in Neural Information Processing Systems , 34: 29348–29363, 2021.", "source": "marker_v2", "marker_block_id": "/page/8/ListGroup/517"}
3
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0059", "section": "References", "page_start": 10, "page_end": 10, "type": "Text", "text": "495 496 497 Levy, O., Seo, M., Choi, E., and Zettlemoyer, L. Zero-shot relation extraction via reading comprehension. arXiv preprint arXiv:1706.04115 , 2017.", "source": "marker_v2", "marker_block_id": "/page/9/Text/408"}
4
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0060", "section": "References", "page_start": 10, "page_end": 10, "type": "ListGroup", "text": "Li, J., Wang, Q., Wang, Z., Zhang, Y., and Mao, Z. Elder: Enhancing lifelong model editing with mixture-of-lora. In Proceedings of the AAAI Conference on Artificial In telligence , pp. 24440–24448, 2025. Li, X. L. and Liang, P. Prefix-tuning: Optimizing continuous prompts for generation. arXiv preprint arXiv:2101.00190 , 2021. Lin, B. Y., Wang, S., Lin, X. V., Jia, R., Xiao, L., Ren, X., and Yih, W.-t. On continual model refinement in out-of-distribution data streams. arXiv preprint arXiv:2205.02014 , 2022. Maaten, L. v. d. and Hinton, G. Visualizing data using t-sne. Journal of machine learning research , 9(Nov): 2579–2605, 2008. Manakul, P., Liusie, A., and Gales, M. J. Selfcheckgpt: Zeroresource black-box hallucination detection for generative large language models. arXiv preprint arXiv:2303.08896 , 2023. Meng, K., Bau, D., Andonian, A., and Belinkov, Y. Locating and editing factual associations in gpt. Advances in neural information processing systems , 35:17359–17372, 2022a. Meng, K., Sharma, A. S., Andonian, A., Belinkov, Y., and Bau, D. Mass-editing memory in a transformer. arXiv preprint arXiv:2210.07229 , 2022b. Mitchell, E., Lin, C., Bosselut, A., Finn, C., and Manning, C. D. Fast model editing at scale. arXiv preprint arXiv:2110.11309 , 2021. Mitchell, E., Lin, C., Bosselut, A., Manning, C. D., and Finn, C. Memory-based model editing at scale. In Inter national Conference on Machine Learning , pp. 15817– 15831. PMLR, 2022. Nakano, R., Hilton, J., Balaji, S., Wu, J., Ouyang, L., Kim, C., Hesse, C., Jain, S., Kosaraju, V., Saunders, W., et al. Webgpt: Browser-assisted question-answering with human feedback. arXiv preprint arXiv:2112.09332 , 2021. Radford, A., Wu, J., Child, R., Luan, D., Amodei, D., Sutskever, I., et al. Language models are unsupervised multitask learners. OpenAI blog , 1(8):9, 2019. Rolnick, D., Ahuja, A., Schwarz, J., Lillicrap, T., and Wayne, G. Experience replay for continual learning. Advances in neural information processing systems , 32, 2019.", "source": "marker_v2", "marker_block_id": "/page/9/ListGroup/406"}
5
+ {"paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1", "chunk_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1:0061", "section": "References", "page_start": 10, "page_end": 10, "type": "ListGroup", "text": "Thede, L., Roth, K., Bethge, M., Akata, Z., and Hartvigsen, T. Understanding the limits of lifelong knowledge editing in llms. arXiv preprint arXiv:2503.05683 , 2025. Touvron, H., Martin, L., Stone, K., Albert, P., Almahairi, A., Babaei, Y., Bashlykov, N., Batra, S., Bhargava, P., Bhosale, S., et al. Llama 2: Open foundation and finetuned chat models. arXiv preprint arXiv:2307.09288 , 2023. Valipour, M., Rezagholizadeh, M., Kobyzev, I., and Ghodsi, A. Dylora: Parameter efficient tuning of pre-trained models using dynamic search-free low-rank adaptation. arXiv preprint arXiv:2210.07558 , 2022. Yao, Y., Wang, P., Tian, B., Cheng, S., Li, Z., Deng, S., Chen, H., and Zhang, N. Editing large language models: Problems, methods, and opportunities. arXiv preprint arXiv:2305.13172 , 2023. Yu, L., Chen, Q., Zhou, J., and He, L. Melo: Enhancing model editing with neuron-indexed dynamic lora. In Proceedings of the AAAI Conference on Artificial Intelli gence , pp. 19449–19457, 2024. Zaken, E. B., Ravfogel, S., and Goldberg, Y. Bitfit: Simple parameter-efficient fine-tuning for transformerbased masked language-models. arXiv preprint arXiv:2106.10199 , 2021.", "source": "marker_v2", "marker_block_id": "/page/9/ListGroup/407"}
icml26/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1/reference_text_v3.txt ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [p. 9 | section: References | type: ListGroup]
2
+ Achiam, J., Adler, S., Agarwal, S., Ahmad, L., Akkaya, I., Aleman, F. L., Almeida, D., Altenschmidt, J., Altman, S., Anadkat, S., et al. Gpt-4 technical report. arXiv preprint arXiv:2303.08774 , 2023. Biderman, S., Schoelkopf, H., Anthony, Q. G., Bradley, H., O'Brien, K., Hallahan, E., Khan, M. A., Purohit, S., Prashanth, U. S., Raff, E., et al. Pythia: A suite for analyzing large language models across training and scaling. In International Conference on Machine Learning , pp. 2397–2430. PMLR, 2023. Brown, P. F., Della Pietra, S. A., Della Pietra, V. J., Lai, J. C., and Mercer, R. L. An estimate of an upper bound for the entropy of english. Computational Linguistics , 18 (1):31–40, 1992. Brown, T., Mann, B., Ryder, N., Subbiah, M., Kaplan, J. D., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al. Language models are few-shot learners. Advances in neural information processing systems , 33: 1877–1901, 2020. Chalkidis, I., Pasini, T., Zhang, S., Tomada, L., Schwemer, S. F., and Søgaard, A. Fairlex: A multilingual benchmark for evaluating fairness in legal text processing. arXiv preprint arXiv:2203.07228 , 2022. Chen, Q., Wang, D., Zhang, T., Yan, Z., You, C., Wang, C., and He, X. Uniedit: A unified knowledge editing benchmark for large language models. arXiv preprint arXiv:2505.12345 , 2025. De Cao, N., Aziz, W., and Titov, I. Editing factual knowledge in language models. arXiv preprint arXiv:2104.08164 , 2021. Fang, J., Jiang, H., Wang, K., Ma, Y., Jie, S., Wang, X., He, X., and Chua, T.-S. Alphaedit: Null-space constrained knowledge editing for language models. arXiv preprint arXiv:2410.02355 , 2024.
3
+
4
+ [p. 9 | section: References | type: ListGroup]
5
+ Geva, M., Schuster, R., Berant, J., and Levy, O. Transformer feed-forward layers are key-value memories. arXiv preprint arXiv:2012.14913 , 2020. Gu, J.-C., Xu, H.-X., Ma, J.-Y., Lu, P., Ling, Z.-H., Chang, K.-W., and Peng, N. Model editing can hurt general abilities of large language models. CoRR , 2024. Hartvigsen, T., Gabriel, S., Palangi, H., Sap, M., Ray, D., and Kamar, E. Toxigen: A large-scale machine-generated dataset for adversarial and implicit hate speech detection. arXiv preprint arXiv:2203.09509 , 2022. Hartvigsen, T., Sankaranarayanan, S., Palangi, H., Kim, Y., and Ghassemi, M. Aging with grace: Lifelong model editing with discrete key-value adaptors. Advances in Neural Information Processing Systems , 36:47934–47959, 2023. Houlsby, N., Giurgiu, A., Jastrzebski, S., Morrone, B., De Laroussilhe, Q., Gesmundo, A., Attariyan, M., and Gelly, S. Parameter-efficient transfer learning for nlp. In International conference on machine learning , pp. 2790– 2799. PMLR, 2019. Hu, E. J., Shen, Y., Wallis, P., Allen-Zhu, Z., Li, Y., Wang, S., Wang, L., Chen, W., et al. Lora: Low-rank adaptation of large language models. ICLR , 1(2):3, 2022. Huang, L., Yu, W., Ma, W., Zhong, W., Feng, Z., Wang, H., Chen, Q., Peng, W., Feng, X., Qin, B., et al. A survey on hallucination in large language models: Principles, taxonomy, challenges, and open questions. ACM Transactions on Information Systems , 43(2):1–55, 2025. Jia, M., Tang, L., Chen, B.-C., Cardie, C., Belongie, S., Hariharan, B., and Lim, S.-N. Visual prompt tuning. In European conference on computer vision , pp. 709–727. Springer, 2022. Kirkpatrick, J., Pascanu, R., Rabinowitz, N., Veness, J., Desjardins, G., Rusu, A. A., Milan, K., Quan, J., Ramalho, T., Grabska-Barwinska, A., et al. Overcoming catastrophic forgetting in neural networks. Proceedings of the national academy of sciences , 114(13):3521–3526, 2017. Kwiatkowski, T., Palomaki, J., Redfield, O., Collins, M., Parikh, A., Alberti, C., Epstein, D., Polosukhin, I., Devlin, J., Lee, K., et al. Natural questions: a benchmark for question answering research. Transactions of the Association for Computational Linguistics , 7:453–466, 2019. Lazaridou, A., Kuncoro, A., Gribovskaya, E., Agrawal, D., Liska, A., Terzi, T., Gimenez, M., de Masson d'Autume, C., Kocisky, T., Ruder, S., et al. Mind the gap: Assessing temporal generalization in neural language models. Advances in Neural Information Processing Systems , 34: 29348–29363, 2021.
6
+
7
+ [p. 10 | section: References | type: Text]
8
+ 495 496 497 Levy, O., Seo, M., Choi, E., and Zettlemoyer, L. Zero-shot relation extraction via reading comprehension. arXiv preprint arXiv:1706.04115 , 2017.
9
+
10
+ [p. 10 | section: References | type: ListGroup]
11
+ Li, J., Wang, Q., Wang, Z., Zhang, Y., and Mao, Z. Elder: Enhancing lifelong model editing with mixture-of-lora. In Proceedings of the AAAI Conference on Artificial In telligence , pp. 24440–24448, 2025. Li, X. L. and Liang, P. Prefix-tuning: Optimizing continuous prompts for generation. arXiv preprint arXiv:2101.00190 , 2021. Lin, B. Y., Wang, S., Lin, X. V., Jia, R., Xiao, L., Ren, X., and Yih, W.-t. On continual model refinement in out-of-distribution data streams. arXiv preprint arXiv:2205.02014 , 2022. Maaten, L. v. d. and Hinton, G. Visualizing data using t-sne. Journal of machine learning research , 9(Nov): 2579–2605, 2008. Manakul, P., Liusie, A., and Gales, M. J. Selfcheckgpt: Zeroresource black-box hallucination detection for generative large language models. arXiv preprint arXiv:2303.08896 , 2023. Meng, K., Bau, D., Andonian, A., and Belinkov, Y. Locating and editing factual associations in gpt. Advances in neural information processing systems , 35:17359–17372, 2022a. Meng, K., Sharma, A. S., Andonian, A., Belinkov, Y., and Bau, D. Mass-editing memory in a transformer. arXiv preprint arXiv:2210.07229 , 2022b. Mitchell, E., Lin, C., Bosselut, A., Finn, C., and Manning, C. D. Fast model editing at scale. arXiv preprint arXiv:2110.11309 , 2021. Mitchell, E., Lin, C., Bosselut, A., Manning, C. D., and Finn, C. Memory-based model editing at scale. In Inter national Conference on Machine Learning , pp. 15817– 15831. PMLR, 2022. Nakano, R., Hilton, J., Balaji, S., Wu, J., Ouyang, L., Kim, C., Hesse, C., Jain, S., Kosaraju, V., Saunders, W., et al. Webgpt: Browser-assisted question-answering with human feedback. arXiv preprint arXiv:2112.09332 , 2021. Radford, A., Wu, J., Child, R., Luan, D., Amodei, D., Sutskever, I., et al. Language models are unsupervised multitask learners. OpenAI blog , 1(8):9, 2019. Rolnick, D., Ahuja, A., Schwarz, J., Lillicrap, T., and Wayne, G. Experience replay for continual learning. Advances in neural information processing systems , 32, 2019.
12
+
13
+ [p. 10 | section: References | type: ListGroup]
14
+ Thede, L., Roth, K., Bethge, M., Akata, Z., and Hartvigsen, T. Understanding the limits of lifelong knowledge editing in llms. arXiv preprint arXiv:2503.05683 , 2025. Touvron, H., Martin, L., Stone, K., Albert, P., Almahairi, A., Babaei, Y., Bashlykov, N., Batra, S., Bhargava, P., Bhosale, S., et al. Llama 2: Open foundation and finetuned chat models. arXiv preprint arXiv:2307.09288 , 2023. Valipour, M., Rezagholizadeh, M., Kobyzev, I., and Ghodsi, A. Dylora: Parameter efficient tuning of pre-trained models using dynamic search-free low-rank adaptation. arXiv preprint arXiv:2210.07558 , 2022. Yao, Y., Wang, P., Tian, B., Cheng, S., Li, Z., Deng, S., Chen, H., and Zhang, N. Editing large language models: Problems, methods, and opportunities. arXiv preprint arXiv:2305.13172 , 2023. Yu, L., Chen, Q., Zhou, J., and He, L. Melo: Enhancing model editing with neuron-indexed dynamic lora. In Proceedings of the AAAI Conference on Artificial Intelli gence , pp. 19449–19457, 2024. Zaken, E. B., Ravfogel, S., and Goldberg, Y. Bitfit: Simple parameter-efficient fine-tuning for transformerbased masked language-models. arXiv preprint arXiv:2106.10199 , 2021.
icml26/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1/sanitization_report.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "paper_id": "31f6f2e8-0fb2-46ff-ab65-f3408612f6e1",
3
+ "pipeline": "Paper2Markdown-V3",
4
+ "ok": true,
5
+ "page_count": 12,
6
+ "chunk_count": 69,
7
+ "main_body_chunk_count": 57,
8
+ "appendix_chunk_count": 7,
9
+ "reference_chunk_count": 5,
10
+ "model_text_chars": 37283,
11
+ "raw_markdown_chars": 58572,
12
+ "sanitized_chars": 53252,
13
+ "page_provenance": {
14
+ "min_page": 1,
15
+ "max_page": 12,
16
+ "invalid_count": 0
17
+ },
18
+ "marker_block_type_counts": {
19
+ "Caption": 5,
20
+ "Equation": 3,
21
+ "FigureGroup": 5,
22
+ "Footnote": 1,
23
+ "ListGroup": 5,
24
+ "PageFooter": 12,
25
+ "PageHeader": 15,
26
+ "SectionHeader": 26,
27
+ "Table": 1,
28
+ "TableGroup": 5,
29
+ "Text": 171
30
+ },
31
+ "asset_count_raw": 5,
32
+ "asset_count_model_kept": 5,
33
+ "asset_count_rejected": 0,
34
+ "asset_reject_reasons": {
35
+ "kept": 5
36
+ },
37
+ "artifact_leak_audit": {
38
+ "ok": true,
39
+ "hits": {
40
+ "Anonymous Authors": [],
41
+ "ACKNOWLEDGMENT": [],
42
+ "OpenReview": [],
43
+ "\"accept_label\"": [],
44
+ "\"decision\"": [],
45
+ "\"decision_tier\"": [],
46
+ "\"source_status\"": [],
47
+ "Meta-review": [],
48
+ "Official Review": [],
49
+ "official_reviews": [],
50
+ "meta_reviews": [],
51
+ "suggested_verdict_score": []
52
+ },
53
+ "artifact_count": 2
54
+ },
55
+ "default_model_input": "model_text_v3.txt",
56
+ "appendix_input": "appendix_text_v3.txt",
57
+ "reference_input": "reference_text_v3.txt"
58
+ }
icml26/31f6f2e8-0fb2-46ff-ab65-f3408612f6e1/sanitized_v3.txt ADDED
@@ -0,0 +1,217 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {0}
2
+ ## Abstract
3
+ The dynamic evolution of real-world necessitates model editing within Large Language Models. While existing methods explore modular isolation or parameter-efficient strategies, they still suffer from semantic drift or knowledge forgetting due to continual updating. To address these challenges, we propose SoLA, a Semantic routingbased LoRA framework for lifelong model editing. In SoLA, each edit is encapsulated as an independent LoRA module, which is frozen after training and mapped to input by semantic routing, allowing dynamic activation of LoRA modules via semantic matching. This mechanism avoids semantic drift caused by cluster updating and mitigates catastrophic forgetting from parameter sharing. More importantly, SoLA supports precise revocation of specific edits by removing key from semantic routing, which restores model's original behavior. To our knowledge, this reversible rollback editing capability is the first to be achieved in existing literature. Furthermore, SoLA integrates decision-making process into edited layer, eliminating the need for auxiliary routing networks and enabling end-to-end decision-making process. Extensive experiments demonstrate that SoLA effectively learns and retains edited knowledge, achieving accurate, efficient, and reversible lifelong model editing.
4
+ ## 1. Introduction
5
+ Large language models (LLMs) have demonstrated remarkable capabilities in the field of natural language processing, attracting the attention of numerous researchers[\(Radford](#page-9-0) [et al.,](#page-9-0) [2019;](#page-9-0) [Brown et al.,](#page-8-0) [2020;](#page-8-0) [Achiam et al.,](#page-8-1) [2023;](#page-8-1) [Tou](#page-9-1)[vron et al.,](#page-9-1) [2023\)](#page-9-1). However, LLMs also face severe challenges, including hallucinations[\(Huang et al.,](#page-8-2) [2025\)](#page-8-2), bi-
6
+ <span id="page-0-0"></span>![](_page_0_Figure_9.jpeg)
7
+ *Figure 1.* Comparison of trainable parameters and ERR accuracy between SoLA (Ours) and other methods. All experiments are conducted on Scotus datasets with the same backbone.
8
+ ases[\(Hartvigsen et al.,](#page-8-3) [2022\)](#page-8-3), and the generation of harmful content[\(De Cao et al.,](#page-8-4) [2021\)](#page-8-4). Moreover, the dynamic nature of real-world knowledge requires the continuous updating of specific information in LLMs[\(Lazaridou et al.,](#page-8-5) [2021\)](#page-8-5). Re-training these models from scratch is both expensive and time-consuming[\(Biderman et al.,](#page-8-6) [2023\)](#page-8-6). In this scenario, the demand for model editing is increasing with aims to modify specific knowledge in the training model continuously without re-training the model or affecting its performance on unrelated inputs, which is known as lifelong model editing[\(Hartvigsen et al.,](#page-8-3) [2022;](#page-8-3) [Yao et al.,](#page-9-2) [2023;](#page-9-2) [Yu et al.,](#page-9-3) [2024\)](#page-9-3).
9
+ The lifelong model editing aims to continuously update the model to adapt to the constantly changing world. However, most of the existing model editing methods are designed for single, isolated editing[\(Mitchell et al.,](#page-9-4) [2021;](#page-9-4) [Meng et al.,](#page-9-5) [2022a\)](#page-9-5). When applied to a continuous environment, these methods often lead to catastrophic forgetting of the previously learned knowledge in the LLMs, resulting in performance degradation and reduced model reliability[\(Yao](#page-9-2) [et al.,](#page-9-2) [2023;](#page-9-2) [Gu et al.,](#page-8-7) [2024\)](#page-8-7). To solve this problem, recent methods propose freezing the original model parameters and introducing lightweight trainable modules to inject new knowledge. These methods usually retain most of the model's knowledge by keeping the base parameters fixed and combining the learnable modules for specific task updates. For example, Melo[\(Yu et al.,](#page-9-3) [2024\)](#page-9-3) determines the clustering centres of editors by building a neuron index
10
+ {1}------------------------------------------------
11
+ 108 109 and dynamically updates its semantic representation based on the distance from the clustering centres. ELDER[\(Li](#page-9-6) [et al.,](#page-9-6) [2025\)](#page-9-6) adopts the Mixture-of-Experts (MoE) approach, assigning scores to each LoRA expert through a set of learnable LoRA allocation codes and selecting the top-k LoRA for calculation.
12
+ <span id="page-1-0"></span>![](_page_1_Figure_3.jpeg)
13
+ *Figure 2.* Number of mismatches in LoRA allocation with ERR/TRR accuracy in MELO. All experiments are conducted on Scotus datasets with the same backbone.
14
+ Although these methods show potential in improving parameter efficiency and reducing interference, they face inherent limitations when applied to lifelong model editing. Specifically, MELO[\(Yu et al.,](#page-9-3) [2024\)](#page-9-3) improves module separability through semantic clustering, but its clustering centers are updated during the editing process, which may lead to semantic drift and module matching errors. ELDER[\(Li et al.,](#page-9-6) [2025\)](#page-9-6) employ MoE and selects the top-k routes to activate each editing subset, although this strategy has high parameter efficiency, shared and continuously updated parameters can lead to catastrophic forgetting - new editing may overwrite or interfere with existing editing.
15
+ To address these limitations, we propose SoLA, a Semantic routing-based LoRA framework for reversible lifelong model editing. In SoLA, we allocate an independent LoRA module for each edit and establish semantic routing to record the mapping relationship between LoRA module and the input semantic representation. During editing, the LoRA module fully learns for the current task and then remains frozen to retain the learned knowledge. The corresponding key is also not updated. During inference, the semantic representation of the input is calculated, and the corresponding LoRA module is dynamically activated through semantic routing. Since the LoRA module and the semantic representation have not been updated, we fundamentally avoid catastrophic forgetting and semantic drift problems caused by continual updating. At the same time, each edit only requires training for the current LoRA module, significantly reducing the computational resource consumption. As shown in Fig[.1,](#page-0-0) SoLA achieves optimal performance with only 0.08M additional parameters, significantly outperforming previous methods, highlighting SoLA's exceptional parameter efficiency and editing accuracy.
16
+ More importantly, by removing the semantic key from the mapping memory table, we can precisely revoke specific edits, allowing the model to recover its original behavior without re-training. This means we can freely add and delete edits, and truly achieve controllable rollback and restoration of editing. To our knowledge, this is the first time that controllable rollback of editing has been achieved in existing literature. Moreover, existing works usually require introducing auxiliary routing network outside the edited layer to determine whether to enable the LoRA module. In this paper, we propose a master decision-making mechanism that aggregates the decision-making process into the edited layer, avoiding the reliance on auxiliary routing network and achieving an end-to-end decision-making process.
17
+ Extensive experiments validate the effectiveness of our approach. Our main contributions are summarized as follows:
18
+ - We propose SoLA, a novel framework for reversible lifelong model editing, which incorporates a controllable LoRA mechanism guided by semantic routing. After each edit, both the LoRA modules and the corresponding keys in the mapping memory are frozen, effectively mitigating catastrophic forgetting and semantic drift. Moreover, only the currently active LoRA modules are trained during editing, significantly reducing computational overhead.(Fig[.1\)](#page-0-0).
19
+ - We employs semantic routing to establish a precise mapping between LoRA modules and semantic representations. By removing the associated key, any specific edit can be precisely revoked, enabling flexible addition and deletion of edits.
20
+ - we propose a master decision-making mechanism that aggregates the decision-making process into the edited layer, avoiding the reliance on an auxiliary routing network and achieving an end-to-end decision-making process.
21
+ ## 2. Related Work
22
+ #### 2.1. Model Editing
23
+ Model Editing aims to update specific knowledge within LLMs while preserving their previous knowledge. Current model editing methods can be broadly categorized into three paradigms: Meta-Learning methods, Locate-then-Edit methods, and Memory-Based methods. Meta-Learning Methods employ a hypernetwork to predict the necessary gradients for editing and apply these gradients to the base model to achieve the update[\(Mitchell et al.,](#page-9-4) [2021\)](#page-9-4). However, this
24
+ {2}------------------------------------------------
25
+ <span id="page-2-0"></span>![](_page_2_Figure_1.jpeg)
26
+ *Figure 3.* Main framework of our method. a) indicates the edited layer in model, where we retain the transformer block of base model frozen and add trainable LoRA module to the edited layer of base model. b) shows the editing process, where every edit will be assigned LoRA module and the query of input will be mapped to assigned LoRA module. c) presents the matching process between query of input and LoRA module in reference. Colour green indicates trainable, while color grey is frozen.
27
+ approach typically requires additional data for training the hypernetwork. Locate-then-Edit methods first identify the neurons most critical for the current input via minor perturbations and then directly modify these neurons to update the model's knowledge[\(Meng et al.,](#page-9-5) [2022a;](#page-9-5)[b\)](#page-9-7). While effective, these methods are often cumbersome and exhibit limitations when handling a large volume of simultaneous knowledge updates. Memory-Based methods store the information associated with edits in an buffer, which acts as a patch model augmenting the original model[\(Mitchell et al.,](#page-9-8) [2022\)](#page-9-8). A significant drawback is that each edit necessitates retraining, making it difficult to adapt to continuous editing scenarios, and the memory bank grows incrementally with each edit, leading to escalating storage overhead. Recent studies have also explored editing constraints to maintain model behavior stability. AlphaEdit[\(Fang et al.,](#page-8-8) [2024\)](#page-8-8) introduces a null-space constrained approach. It aims to apply edits more precisely by constraining changes to the null space of irrelevant knowledge.
28
+ However, these methods primarily address static editing, suitable for one-time modifications, and struggle to accommodate sequential editing demands over time. To address these limitations, GRACE[\(Hartvigsen et al.,](#page-8-9) [2023\)](#page-8-9) replace hidden states with vectors retrieved from a learned codebook. MELO[\(Yu et al.,](#page-9-3) [2024\)](#page-9-3) introduces a vector database and leverages a clustering mechanism to dynamically assign LoRA modules. ELDER[\(Li et al.,](#page-9-6) [2025\)](#page-9-6) adopts a MoE framework, where a learnable neural network weights shared LoRA modules. However, these approaches inevitably update the semantic representation in sequential edits, leading to semantic drift or knowledge forgetting.
29
+ ## 3. Method
30
+ ## 3.1. Preliminaries
31
+ LoRA for Lifelong Model Editing Low-Rank Adaptation (LoRA) [\(Hu et al.,](#page-8-10) [2022\)](#page-8-10) is an efficient finetuning method for LLMs that optimizes model outputs by projecting features into a low-rank subspace. In the context of efficient LLM finetuning, LoRA modules are typically inserted into
32
+ {3}------------------------------------------------
33
+ specific layers of the pre-trained model. During editing, the base LLM parameters $W_0 \in \mathbb{R}^{d \times k}$ remain frozen, while only the LoRA module $\Delta W \in \mathbb{R}^{d \times k}$ is updated. The parameter update $\Delta W$ can be represented as a low-rank decomposition of the pretrained weight matrix. Specifically, $\Delta W$ is factorized into two smaller matrices $A \in \mathbb{R}^{r \times k}$ and $B \in \mathbb{R}^{d \times r}$ , such that $\Delta W = BA$ , where $r \ll \min(d,k)$ and r is the LoRA rank. Given the original $h = W_0 x$ , the forward propagation process is modified as:
34
+ $$\boldsymbol{h} = W_0 \boldsymbol{x} + \Delta W \boldsymbol{x} = W_0 \boldsymbol{x} + B A \boldsymbol{x} \tag{1}$$
35
+ where A is initialized using a zero mean Gaussian distribution and B is initialized as a zero matrix. This approach significantly reduces the number of trainable parameters while maintaining the expressive power of the full-rank update.
36
+ #### 3.2. Cluster Updating in Lifelong Model Editing
37
+ In the context of lifelong model editing, when multiple adapter modules are involved, the model needs to dynamically manage the association between edits and the corresponding adapter module. MELO addresses this by employing a clustering mechanism that assigns edits to clusters based on the hidden representations of the inputs, with cluster centres being continuously updated throughout editing. However, this continual updating of cluster centers alters their semantic representation, leading to semantic drift and incorrect module assignments. Moreover, repeated training of LoRA modules can result in forgetting previously acquired knowledge. Varying the cluster radius in MeLO results in a different number of generated cluster centres, thereby affecting the frequency of cluster centre updates. We record MeLO's performance under different numbers of cluster centre updates, as shown in Fig.2. The experiment is conducted on SCOTUS dataset. In Fig.2, the number of updates refers to the number of cluster centre updates during the editing process, and the number of mismatches indicates how many times, during inference, the retrieved LoRA module differs from the one assigned during editing. ERR and TRR represent the model's accuracy on the edited and unedited datasets, respectively, after all editing tasks are completed.
38
+ As shown in the Fig.2, for the same datasets SCOTUS of editing, increasing the number of cluster centre updates leads to a rise in mismatches during inference, and a corresponding decline in model performance on both the edited and unedited datasets. This demonstrates that cluster centre updates can cause semantic drift, resulting in incorrect LoRA match, while repeated training of LoRA modules contributes to knowledge forgetting. Therefore, in SoLA, we freeze both the LoRA modules and their associated keys once the current task is completed. These components are
39
+ no longer updated in subsequent edits, thereby maximizing knowledge retention across editing iterations.
40
+ #### 3.3. Semantic Routing-Based Controllable LoRA
41
+ In the layer where the model needs to be edited, we keep the parameters of the original model frozen and insert the learnable LoRA module for editing, as shown in Fig.3 a). In SoLA, each editing operation is encapsulated within an independent LoRA module. During sequential editing, for a given editing task $d_i = (\boldsymbol{x}_i^m, \boldsymbol{y}_i^m)_{m=1}^n$ , a dedicated LoRA module LoRA<sub>i</sub> is assigned. For each data instance $\boldsymbol{x}_i^m \in d_i$ , the corresponding LoRA id i is recorded, and a semantic routing entry is established by associating LoRA module with a semantic key derived from the input representation, as shown in Fig.3 b). Following prior work(Hartvigsen et al., 2023), we use the hidden representation of the last token in the input sequence as the key $e \in \mathbb{R}^d$ vector. During editing, the assigned LoRA module LoRA<sub>i</sub> will fully learn the task $d_i$ , yielding the output:
42
+ $$h = h_0 + LoRA_i(x)$$
43
+ (2)
44
+ where $h_0 \in \mathbb{R}^{l \times d}$ is the frozen base model representation, l is the sequence length, d is the hidden state dimension. At this stage, all other LoRA modules and the stored key vectors remain frozen. Upon completion of the editing process, the trained LoRA<sub>i</sub> module is frozen and will be stored with its associated key $e_i$ as a fixed mapping for future reference. Neither the LoRA module nor the key will be updated in subsequent editing. Since only the current LoRA module is involved in training during each edit, SoLA significantly reduces the number of trainable parameters, as shown in Fig.1. Furthermore, freezing both the LoRA module and its corresponding key after editing prevents semantic drift and mitigates catastrophic forgetting, thereby maximizing knowledge retention. During inference, the hidden representation of the last token in the input sequence will serve as a query vector $\boldsymbol{q} \in \mathbb{R}^d$ from the input $\boldsymbol{x}$ and matches against the stored keys $K \in \mathbb{R}^{N \times d}$ , as shown in Fig.3 c). If a match is found, the corresponding LoRA module is retrieved from stored LoRA pool $R \in \mathbb{R}^M$ and incorporated into the computation.
45
+ #### 3.4. Master Decision Mechanism
46
+ During inference, existing approaches usually need to introduce an auxiliary routing network outside the target edited layer to decide whether to activate the LoRA module or not(Yu et al., 2024; Li et al., 2025), which hampers the end-to-end decision-making process. To address this limitation, we propose a master decision-making mechanism that does not require an auxiliary routing component. Specifically, we designate the first edited layer as the master decision layer where input features are dynamically evaluated to activate the relevant LoRA module without the need for an auxil-
47
+ {4}------------------------------------------------
48
+ <span id="page-4-0"></span>*Table 1.* Comparison of SoLA to existing methods. All the results are obtained after sequential edits. ERR indicates Edit Reliability Rate, TRR presents Task Retention Rate, and ARR is Accuracy Attention Rate. The best performance is shown in bold.
49
+ | | SCOTUS (BERT; Acc<br>↑) | | | zsRE (T5; F1<br>↑) | | | Hallucination (GPT2-XL; PPL<br>↓) | | |
50
+ |--------|-------------------------|------|------|--------------------|------|------|-----------------------------------|--------|--------|
51
+ | Method | ERR | TRR | Avg. | ERR | TRR | Avg. | ERR | TRR | ARR |
52
+ | EWC | 0.51 | 0.82 | 0.66 | 0.67 | 0.50 | 0.58 | 1485.7 | 29.24 | 109.59 |
53
+ | CMR | 0.52 | 0.52 | 0.52 | 0.56 | 0.82 | 0.69 | 1449.3 | 28.14 | 107.76 |
54
+ | CLEAR | 0.67 | 0.83 | 0.75 | 0.27 | 0.99 | 0.63 | 2394.3 | 35.34 | 195.82 |
55
+ | MEND | 0.19 | 0.27 | 0.23 | 0.25 | 0.27 | 0.26 | 1369.8 | 1754.9 | 2902.5 |
56
+ | SERAC | 0.33 | 0.41 | 0.37 | 0.72 | 0.31 | 0.52 | 8183.7 | 133.3 | 10.04 |
57
+ | ROME | - | - | - | - | - | - | 30.28 | 103.82 | 14.02 |
58
+ | GRACE | 0.81 | 0.82 | 0.82 | 0.69 | 0.96 | 0.83 | 15.84 | 7.14 | 10.00 |
59
+ | ELDER | 0.89 | 0.86 | 0.88 | 0.72 | 0.97 | 0.84 | 16.12 | 5.87 | 8.42 |
60
+ | MELO | 0.96 | 0.92 | 0.94 | 0.72 | 0.98 | 0.85 | 17.45 | 1.04 | 2.66 |
61
+ | SoLA | 0.97 | 0.95 | 0.96 | 0.73 | 0.99 | 0.86 | 15.15 | 1.01 | 7.35 |
62
+ iary network. In this framework, the master decision layer H<sup>e</sup> computes the distance metric between the input feature embedding q and the stored key K to determine the activation of the module: d = He(argmini(dist(q, ki))), i = (1, 2, ..., N), dist(·) denotes the distance function and each key k<sup>i</sup> associated with the LoRA module. Then in the master layer He, we decide the edit layer behaviour:
63
+ $$H_e = \begin{cases} H(W_0) & \text{if } d \ge \alpha \\ H(W_0, W_{R_m}) & \text{if } d < \alpha \end{cases}$$
64
+ (3)
65
+ where α is the threshold, in this work we set it as 0.01, WR<sup>m</sup> represents the weight of m-th LoRA module associated with the key nearest to the query. This binary decision is propagated to the subsequent edited layers, ensuring consistent module activation throughout the network. By integrating the decision-making process to the first edited layer, our approach achieves complete end-to-end decision-making capability while maintaining architectural simplicity.
66
+ ## 4. Experiments
67
+ #### 4.1. Implementation Details
68
+ Baselines We first compare several recent methods designed for lifelong model editing. Grace[\(Hartvigsen et al.,](#page-8-9) [2023\)](#page-8-9) replaces model outputs with key-value pairs and matches features to keys based on deferral radius. MELO[\(Yu et al.,](#page-9-3) [2024\)](#page-9-3) leverages LoRA for finetuning and dynamically retrieves relevant LoRA modules via neuron index. EL-DER[\(Li et al.,](#page-9-6) [2025\)](#page-9-6) employs MoE to dynamically combine multiple LoRA modules. Additionally, we evaluate other baseline methods. MEND[\(Mitchell et al.,](#page-9-4) [2021\)](#page-9-4) uses a hypernetwork trained on auxiliary data to predict the required gradients for model editing. SERAC[\(Mitchell et al.,](#page-9-8) [2022\)](#page-9-8)
69
+ learns a scope classifier and a counterfactual model, coordinating between modules to determine editing behavior. ROME[\(Meng et al.,](#page-9-5) [2022a\)](#page-9-5) identifies the most influential weights in the model through perturbation analysis, localizes knowledge to specific layers of GPT, and modifies the corresponding weights. Since ROME is specifically designed for GPT, it is only evaluated on the hallucination correction task. EWC[\(Kirkpatrick et al.,](#page-8-11) [2017\)](#page-8-11) imposes constraints on the weights updating so that the model continuously learns new knowledge and retains previous knowledge. CMR[\(Lin](#page-9-9) [et al.,](#page-9-9) [2022\)](#page-9-9) performs continuous finetuning of the model to continuously learn new knowledge. CLEAR[\(Rolnick et al.,](#page-9-10) [2019\)](#page-9-10) builds a memory buffer to restore old tasks information, and replays them in subsequent edits to retain previous knowledge.
70
+ Evaluation Metric In this work, following[\(Hartvigsen et al.,](#page-8-9) [2023\)](#page-8-9), we use three basic metrics to assess model performance: ES, ERR and TRR, which are applicable to all model experiments. Where Edit Success(ES) measures the ability of the model to edit the target sample. Edit Reliability Rate(ERR) assesses the validity of the model on the edited dataset, indicating the extent to which the required knowledge updates are successfully incorporated. Task Retention Rate(TRR) quantifies the model's performance on unedited datasets and reflects the model's ability to retain previous knowledge. Additionally, in the hallucination correction task, we also use the Accuracy Attention Rate (ARR) to assess the performance of the already accurate output. Accuracy is measured differently for different tasks. For the document classification task of SCOTUS, we use the Average Accuracy Rate (ACC); for the question answering task of zsRE, we measure it using the average F1, and for the hallucination correction task, we measure it using the standard average complexity (PPL)[\(Brown et al.,](#page-8-12) [1992\)](#page-8-12).
71
+ {5}------------------------------------------------
72
+ <span id="page-5-0"></span>![](_page_5_Figure_2.jpeg)
73
+ *Figure 4.* Figure(a)–(c) presents every edit accuracy on SCOTUS datasets with BERT. All experiment settings are the same as Tab[.1.](#page-4-0)
74
+ <span id="page-5-1"></span>![](_page_5_Figure_4.jpeg)
75
+ *Figure 5.* Visualization of zsRE dataset encoder output from T5 small with t-SNE and the dots with same color and shape are input and rephrase sentence. All experiment settings are the same as Tab[.1.](#page-4-0)
76
+ #### 4.2. Main Results
77
+ We evaluate the performance of the proposed SoLA method on three benchmark datasets and compare it with several state-of-the-art model editing approaches. The results are summarized in Tab[.1.](#page-4-0) As observed, SoLA achieves excellent performance on most of the benchmark datasets, with SoLA outperforming the strongest baseline, MELO, by 3% on the SCOTUS dataset. These demonstrate SoLA's enhanced effectiveness in editing target knowledge while better preserving previously acquired knowledge. Furthermore, existing methods such as MEND and SERAC perform poorly under the sequential editing setting, suggesting that they are primarily designed for static editing scenarios and are not well-suited for sequential model editing tasks.
78
+ We also report task-wise accuracy progression to analyze model performance throughout the sequential editing process. The experimental results are based on the SCOTUS dataset and the results are shown in Fig[.4.](#page-5-0) As illustrated in Fig[.4a,](#page-5-0) Fig[.4b](#page-5-0) and Fig[.4c,](#page-5-0) SoLA consistently maintains
79
+ superior accuracy across tasks, without exhibiting substantial performance degradation or volatility. This indicates the robustness and stability of SoLA when applied to sequential knowledge editing.
80
+ Method performance may vary across different model sizes and datasets. To further evaluate the robustness of our approach, we conduct hallucination correction experiments on the UniEdit[\(Chen et al.,](#page-8-13) [2025\)](#page-8-13) and WikiBigEdit[\(Thede](#page-9-11) [et al.,](#page-9-11) [2025\)](#page-9-11) datasets using larger-scale backbone models. The results are presented in Tab[.2.](#page-6-0) As shown in Tab[.2,](#page-6-0) SoLA consistently achieves the best or near-best performance across most settings, demonstrating its robustness and effectiveness under diverse task configurations. During editing, larger backbone models generally exhibit more stable ERR values, suggesting that such models have learned stronger semantic representations during pretraining, leading to better generalization and editability. Furthermore, continuous learning related methods tend to overfit in edited data, thus showing better ARR in the retention set, but large TRR values in the upstream set, indicating severe forgetting of previous knowledge.
81
+ #### 4.3. Controllable Rollback Editing
82
+ In SoLA, each edit instance is associated with a unique key stored in both the memory and the routing table. This design enables reversible editing, as the model can revert to its original behavior by removing the key corresponding to a specific edit. To demonstrate this property, we conduct an illustrative experiment on the zsRE dataset. The results are shown in Tab[.3.](#page-7-0) In the Tab[.3,](#page-7-0) each row corresponds to an input instance consisting of a "Text" (the question need to be edited) and its "Labels" (the correct answer). "Del" indicates whether the key corresponding to the edit is removed after editing. For each input, Predbase, Prededit and Preddel denote the prediction of base model, edited model and model after removing the corresponding key. When "Del" is false, the key is retained, serving as a baseline comparison. As shown in Tab[.3,](#page-7-0) for each instance, the original prediction (Predbase) does not match the correct label, indi-
83
+ {6}------------------------------------------------
84
+ <span id="page-6-0"></span>*Table 2.* Model Performance Comparison on UniEdit and WikiBigEdit datasets in hallucination correction tasks. All the scores are PPL metric and the best result is in bolded.
85
+ | | | | UniEdit (PPL ↓) | | | WikiBigEdit (PPL ↓) | |
86
+ |----------------|--------|-------|-----------------|-------|-------|---------------------|-------|
87
+ | Model | Method | ERR | TRR | ARR | ERR | TRR | ARR |
88
+ | | EWC | 2.43 | 1134 | 22.08 | 3.58 | 251117 | 4.93 |
89
+ | | CMR | 2.79 | 2239 | 25.24 | 2.86 | 169452 | 4.49 |
90
+ | LLaMA-3-8B | CLEAR | 1.04 | 982 | 29.79 | 1.03 | 74384 | 1.52 |
91
+ | | SERAC | 37.10 | 246 | 93 | 60.17 | 215 | 59 |
92
+ | | GRACE | 1.00 | 244 | 89 | 1.00 | 216 | 58 |
93
+ | | ELDER | 1.00 | 173 | 74 | 1.00 | 178 | 48 |
94
+ | | MELO | 1.00 | 153 | 68 | 1.00 | 165 | 47 |
95
+ | | Ours | 1.00 | 144 | 66 | 1.00 | 162 | 44 |
96
+ | | EWC | 2.38 | 4451 | 42.13 | 2.86 | 47846 | 3.89 |
97
+ | | CMR | 2.34 | 7211 | 36.19 | 3.60 | 34623 | 5.51 |
98
+ | DeepSeek-R1-8B | CLEAR | 1.06 | 3365 | 44.86 | 1.02 | 28110 | 1.48 |
99
+ | | SERAC | 46.76 | 451 | 834 | 82.72 | 493 | 831 |
100
+ | | GRACE | 1.00 | 407 | 803 | 1.00 | 487 | 793 |
101
+ | | ELDER | 1.03 | 241 | 482 | 1.03 | 304 | 492 |
102
+ | | MELO | 1.09 | 204 | 407 | 1.05 | 263 | 445 |
103
+ | | Ours | 1.07 | 188 | 374 | 1.00 | 248 | 412 |
104
+ | | EWC | 4.62 | 7648 | 48.62 | 5.61 | 61834 | 14.65 |
105
+ | | CMR | 4.12 | 11583 | 40.56 | 6.28 | 48629 | 16.89 |
106
+ | Qwen2-7B | CLEAR | 1.03 | 5021 | 54.98 | 1.05 | 35396 | 4.26 |
107
+ | | SERAC | 58.51 | 329 | 1261 | 62.12 | 304 | 523 |
108
+ | | GRACE | 2.05 | 316 | 1065 | 16.88 | 299 | 518 |
109
+ | | ELDER | 1.00 | 201 | 266 | 1.00 | 225 | 197 |
110
+ | | MELO | 1.00 | 170 | 201 | 1.00 | 203 | 143 |
111
+ | | Ours | 1.00 | 156 | 110 | 1.00 | 199 | 109 |
112
+ cating the necessity for editing. After editing, the model correctly produces Prededit consistent with the ground-truth label, demonstrating that SoLA successfully updates the model's knowledge. When the associated key is deleted, the model reverts to its original prediction (Prededit = Predbase), verifying that our method can effectively roll back specific edits. More critically, for edits where the key is not deleted, the model continues to output Prededit, showing that the rollback operation does not interfere with other edits. This confirms that SoLA supports fine-grained, selective undo of knowledge edits without disrupting unrelated modifications.
113
+ #### 4.4. Ablation Study
114
+ Effect of Edit Layer Location In semantic representation learning, different layers of a model focus on different aspects of semantic information. Therefore, the position of the edited layer can significantly influence the effectiveness of model editing. To investigate this, we evaluate the performance of model when edits are applied at different layers, while keeping all other settings fixed. The experiments are conducted on the SCOTUS dataset with a Nvidia A100 40G GPU, and the results are shown in Tab[.4.](#page-7-1) In the
115
+ Tab[.4,](#page-7-1) "Layer" denotes the layer range used for editing. For example, "0–2" indicates that edits are applied to layers 0, 1, and 2 of the BERT model. As shown in the table, editing at shallower layers results in suboptimal performance. This observation aligns with prior findings[\(Geva et al.,](#page-8-14) [2020\)](#page-8-14), which suggest that shallow layers primarily capture the shallow sentence patterns, whereas deeper layers encode richer semantic features, thereby enabling more effective knowledge editing. Moreover, editing at shallow layers significantly increases the time used for editing, which means that editing for semantics is more difficult in shallow layers. Furthermore, we observe that varying the editing layer has negligible impact on performance over the unedited portion of the dataset, indicating that SoLA is capable of preserving previously learned knowledge regardless of the editing depth, which further supports the robustness of SoLA.
116
+ Effect of LoRA Rank The LoRA module projects semantic representations into a low-rank subspace for parameterefficient learning. Consequently, the choice of rank will effect the module's performance. To investigate this, we analyze the impact of different LoRA rank values on model performance, keeping all other settings fixed. Experiments are conducted on the SCOTUS dataset using a NVIDIA
117
+ {7}------------------------------------------------
118
+ <span id="page-7-0"></span>*Table 3.* Controllable edit in SoLA on zsRE datasets. "Text" is the question need to be edited, "Labels" is the true answer, "Del" indicates whther delete associated key and Predbase, Prededit and Preddel is the prediction of base model, edited model and delted model.
119
+ | Text | Labels | Del | Predbase | Prededit | Preddel |
120
+ |-----------------------------------------------------|-------------------|-------|------------------|-------------------|------------------|
121
+ | The date of Tsetserleg earthquake in 1905? | 9 July 1905 | True | 20 February 1905 | 9 July 1905 | 20 February 1905 |
122
+ | What constellation has Nu Cancri? | Cancer | True | Hydra | Cancer | Hydra |
123
+ | On what date did the Bahrain Grand Prix 2015 occur? | 19 April 2015 | True | 6 April 2017 | 19 April 2015 | 6 April 2017 |
124
+ | What position does Charles-Joseph Coursol have? | Mayor of Montreal | True | Positioning | Mayor of Montreal | Positioning |
125
+ | Who acted in Blow Dry? | Alan Rickman | False | Jim Carrey | Alan Rickman | Alan Rickman |
126
+ <span id="page-7-1"></span>*Table 4.* Ablation studies on location of edited layers. Here, "Layer" indicates the edited layer location. For example, "0-2" presents edited layer is layers 0, 1 and 2.
127
+ | Layer | ES | ERR | TRR | Edit Time(min) |
128
+ |-------|------|------|------|----------------|
129
+ | 0-2 | 0.77 | 0.61 | 0.96 | 9.21 |
130
+ | 3-5 | 1.00 | 0.68 | 0.96 | 8.06 |
131
+ | 6-8 | 0.81 | 0.70 | 0.97 | 7.03 |
132
+ | 9-11 | 0.94 | 0.95 | 0.97 | 5.97 |
133
+ <span id="page-7-2"></span>*Table 5.* Ablation studies on LoRA rank. Here, "LoRA Rank" indicates the rank value of every LoRA in model.
134
+ | LoRA Rank | ES | ERR | TRR | Edit Time(min) |
135
+ |-----------|------|------|------|----------------|
136
+ | 1 | 0.90 | 0.84 | 0.96 | 5.88 |
137
+ | 2 | 0.94 | 0.91 | 0.97 | 5.90 |
138
+ | 3 | 1.00 | 0.91 | 0.97 | 5.86 |
139
+ | 4 | 1.00 | 0.95 | 0.97 | 5.97 |
140
+ | 5 | 1.00 | 0.92 | 0.96 | 5.86 |
141
+ | 10 | 1.00 | 0.71 | 0.96 | 5.85 |
142
+ | | | | | |
143
+ A100 40GB GPU, and the results are presented in Tab[.5.](#page-7-2) As shown in the Tab[.5,](#page-7-2) simply increasing the LoRA rank does not lead to improved performance and may even degrade model performance. This indicates that expanding the learnable parameter space does not necessarily enhance the model's capacity for effective knowledge editing. On the contrary, excessive rank values may even result in performance degradation due to overfitting, suggesting the importance of carefully selecting an appropriate rank to balance capacity and generalization. Based on the experiment results, we set 4 as LoRA rank for all the experiments in this paper.
144
+ #### 4.5. Model Visualization
145
+ To gain deeper insight into the model's behavior under sequential editing, we conducted a t-SNE visualization [\(Maaten & Hinton,](#page-9-12) [2008\)](#page-9-12) of the learned feature representations. This experiment is performed on the zsRE dataset using the T5-small model to assess how semantic relationships are preserved after sequential edits. Upon completing
146
+ the entire sequence of editing tasks for question answering, we selected five distinct input instances, each accompanied by semantically equivalent rephrased sentences, forming five evaluation groups. The encoder output features are subsequently extracted from the edited model for dimensionality reduction and visualization, and the resulting plot is represented in Fig[.5.](#page-5-1) As shown in Fig[.5,](#page-5-1) there is a clear clustering pattern that for each group, the original input and its rephrased variant are mapped to proximate locations in the latent space. This demonstrates that SoLA effectively captures and preserves the semantic similarity between related inputs throughout the editing process. Furthermore, distinct groups maintain separable clusters, indicating that the model retains the ability to discriminate between different edit concepts after sequential editing. This visualization shows that SoLA's semantic routing mechanism successfully supports edit generalization based on semantic similarity while upholding the integrity of previously learned knowledge.
147
+ ## 5. Conclusion
148
+ In this paper, we propose SoLA, a Semantic routing-based LoRA framework for reversible lifelong model editing. In SoLA, each edit is encapsulated as an independent LoRA module which is frozen after training and a semantic routing record is established to map LoRA module to the input semantic representation, allowing dynamic activation of LoRA modules via semantic matching. This design not only avoids semantic drift caused by clustering updating but also mitigates catastrophic forgetting from parameter sharing. More importantly, SoLA supports precisely revoking edit by removing the corresponding key from the routing table, enabling reversible model editing. This allows for flexible addition and deletion of edits, offering fine-grained control over model behavior. To the best of our knowledge, this is the first work to achieve reversible model editing in the literature. Furthermore, we introduce a master decisionmaking mechanism by integrating decision-making into the edited layer, enabling end-to-end decision-making process. By building a strict mapping between edits and LoRA modules, SoLA achieves efficient and reversible lifelong model editing, providing a novel perspective for future research.
149
+ {8}------------------------------------------------
150
+ ## Impact Statement
151
+ This work advances the field of Machine Learning by introducing SoLA, a framework for reversible and controllable lifelong model editing in large language models. Our method enhances the safety and reliability of AI systems by enabling precise rollback of model edits, which helps mitigate risks associated with erroneous or harmful knowledge updates. By effectively preventing semantic drift and catastrophic forgetting, SoLA promotes the development of more robust and trustworthy models capable of adapting to evolving information. The significant reduction in computational overhead also aligns with the goal of sustainable AI development.
152
+ ## References
153
+ - <span id="page-8-1"></span>Achiam, J., Adler, S., Agarwal, S., Ahmad, L., Akkaya, I., Aleman, F. L., Almeida, D., Altenschmidt, J., Altman, S., Anadkat, S., et al. Gpt-4 technical report. *arXiv preprint arXiv:2303.08774*, 2023.
154
+ - <span id="page-8-6"></span>Biderman, S., Schoelkopf, H., Anthony, Q. G., Bradley, H., O'Brien, K., Hallahan, E., Khan, M. A., Purohit, S., Prashanth, U. S., Raff, E., et al. Pythia: A suite for analyzing large language models across training and scaling. In *International Conference on Machine Learning*, pp. 2397–2430. PMLR, 2023.
155
+ - <span id="page-8-12"></span>Brown, P. F., Della Pietra, S. A., Della Pietra, V. J., Lai, J. C., and Mercer, R. L. An estimate of an upper bound for the entropy of english. *Computational Linguistics*, 18 (1):31–40, 1992.
156
+ - <span id="page-8-0"></span>Brown, T., Mann, B., Ryder, N., Subbiah, M., Kaplan, J. D., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al. Language models are few-shot learners. *Advances in neural information processing systems*, 33: 1877–1901, 2020.
157
+ - <span id="page-8-17"></span>Chalkidis, I., Pasini, T., Zhang, S., Tomada, L., Schwemer, S. F., and Søgaard, A. Fairlex: A multilingual benchmark for evaluating fairness in legal text processing. *arXiv preprint arXiv:2203.07228*, 2022.
158
+ - <span id="page-8-13"></span>Chen, Q., Wang, D., Zhang, T., Yan, Z., You, C., Wang, C., and He, X. Uniedit: A unified knowledge editing benchmark for large language models. *arXiv preprint arXiv:2505.12345*, 2025.
159
+ - <span id="page-8-4"></span>De Cao, N., Aziz, W., and Titov, I. Editing factual knowledge in language models. *arXiv preprint arXiv:2104.08164*, 2021.
160
+ - <span id="page-8-8"></span>Fang, J., Jiang, H., Wang, K., Ma, Y., Jie, S., Wang, X., He, X., and Chua, T.-S. Alphaedit: Null-space constrained knowledge editing for language models. *arXiv preprint arXiv:2410.02355*, 2024.
161
+ - <span id="page-8-14"></span>Geva, M., Schuster, R., Berant, J., and Levy, O. Transformer feed-forward layers are key-value memories. *arXiv preprint arXiv:2012.14913*, 2020.
162
+ - <span id="page-8-7"></span>Gu, J.-C., Xu, H.-X., Ma, J.-Y., Lu, P., Ling, Z.-H., Chang, K.-W., and Peng, N. Model editing can hurt general abilities of large language models. *CoRR*, 2024.
163
+ - <span id="page-8-3"></span>Hartvigsen, T., Gabriel, S., Palangi, H., Sap, M., Ray, D., and Kamar, E. Toxigen: A large-scale machine-generated dataset for adversarial and implicit hate speech detection. *arXiv preprint arXiv:2203.09509*, 2022.
164
+ - <span id="page-8-9"></span>Hartvigsen, T., Sankaranarayanan, S., Palangi, H., Kim, Y., and Ghassemi, M. Aging with grace: Lifelong model editing with discrete key-value adaptors. *Advances in Neural Information Processing Systems*, 36:47934–47959, 2023.
165
+ - <span id="page-8-15"></span>Houlsby, N., Giurgiu, A., Jastrzebski, S., Morrone, B., De Laroussilhe, Q., Gesmundo, A., Attariyan, M., and Gelly, S. Parameter-efficient transfer learning for nlp. In *International conference on machine learning*, pp. 2790– 2799. PMLR, 2019.
166
+ - <span id="page-8-10"></span>Hu, E. J., Shen, Y., Wallis, P., Allen-Zhu, Z., Li, Y., Wang, S., Wang, L., Chen, W., et al. Lora: Low-rank adaptation of large language models. *ICLR*, 1(2):3, 2022.
167
+ - <span id="page-8-2"></span>Huang, L., Yu, W., Ma, W., Zhong, W., Feng, Z., Wang, H., Chen, Q., Peng, W., Feng, X., Qin, B., et al. A survey on hallucination in large language models: Principles, taxonomy, challenges, and open questions. *ACM Transactions on Information Systems*, 43(2):1–55, 2025.
168
+ - <span id="page-8-16"></span>Jia, M., Tang, L., Chen, B.-C., Cardie, C., Belongie, S., Hariharan, B., and Lim, S.-N. Visual prompt tuning. In *European conference on computer vision*, pp. 709–727. Springer, 2022.
169
+ - <span id="page-8-11"></span>Kirkpatrick, J., Pascanu, R., Rabinowitz, N., Veness, J., Desjardins, G., Rusu, A. A., Milan, K., Quan, J., Ramalho, T., Grabska-Barwinska, A., et al. Overcoming catastrophic forgetting in neural networks. *Proceedings of the national academy of sciences*, 114(13):3521–3526, 2017.
170
+ - <span id="page-8-18"></span>Kwiatkowski, T., Palomaki, J., Redfield, O., Collins, M., Parikh, A., Alberti, C., Epstein, D., Polosukhin, I., Devlin, J., Lee, K., et al. Natural questions: a benchmark for question answering research. *Transactions of the Association for Computational Linguistics*, 7:453–466, 2019.
171
+ - <span id="page-8-5"></span>Lazaridou, A., Kuncoro, A., Gribovskaya, E., Agrawal, D., Liska, A., Terzi, T., Gimenez, M., de Masson d'Autume, C., Kocisky, T., Ruder, S., et al. Mind the gap: Assessing temporal generalization in neural language models. *Advances in Neural Information Processing Systems*, 34: 29348–29363, 2021.
172
+ {9}------------------------------------------------
173
+ <span id="page-9-16"></span>495 496 497 Levy, O., Seo, M., Choi, E., and Zettlemoyer, L. Zero-shot relation extraction via reading comprehension. *arXiv preprint arXiv:1706.04115*, 2017.
174
+ <span id="page-9-14"></span>504
175
+ <span id="page-9-12"></span>513 514
176
+ <span id="page-9-17"></span>516
177
+ <span id="page-9-7"></span>524 525 526
178
+ <span id="page-9-4"></span>528 529 530
179
+ <span id="page-9-18"></span>536
180
+ - <span id="page-9-6"></span>Li, J., Wang, Q., Wang, Z., Zhang, Y., and Mao, Z. Elder: Enhancing lifelong model editing with mixture-of-lora. In *Proceedings of the AAAI Conference on Artificial Intelligence*, pp. 24440–24448, 2025.
181
+ - Li, X. L. and Liang, P. Prefix-tuning: Optimizing continuous prompts for generation. *arXiv preprint arXiv:2101.00190*, 2021.
182
+ - <span id="page-9-9"></span>Lin, B. Y., Wang, S., Lin, X. V., Jia, R., Xiao, L., Ren, X., and Yih, W.-t. On continual model refinement in out-of-distribution data streams. *arXiv preprint arXiv:2205.02014*, 2022.
183
+ - Maaten, L. v. d. and Hinton, G. Visualizing data using t-sne. *Journal of machine learning research*, 9(Nov): 2579–2605, 2008.
184
+ - Manakul, P., Liusie, A., and Gales, M. J. Selfcheckgpt: Zeroresource black-box hallucination detection for generative large language models. *arXiv preprint arXiv:2303.08896*, 2023.
185
+ - <span id="page-9-5"></span>Meng, K., Bau, D., Andonian, A., and Belinkov, Y. Locating and editing factual associations in gpt. *Advances in neural information processing systems*, 35:17359–17372, 2022a.
186
+ - Meng, K., Sharma, A. S., Andonian, A., Belinkov, Y., and Bau, D. Mass-editing memory in a transformer. *arXiv preprint arXiv:2210.07229*, 2022b.
187
+ - Mitchell, E., Lin, C., Bosselut, A., Finn, C., and Manning, C. D. Fast model editing at scale. *arXiv preprint arXiv:2110.11309*, 2021.
188
+ - <span id="page-9-8"></span>Mitchell, E., Lin, C., Bosselut, A., Manning, C. D., and Finn, C. Memory-based model editing at scale. In *International Conference on Machine Learning*, pp. 15817– 15831. PMLR, 2022.
189
+ - Nakano, R., Hilton, J., Balaji, S., Wu, J., Ouyang, L., Kim, C., Hesse, C., Jain, S., Kosaraju, V., Saunders, W., et al. Webgpt: Browser-assisted question-answering with human feedback. *arXiv preprint arXiv:2112.09332*, 2021.
190
+ - <span id="page-9-0"></span>Radford, A., Wu, J., Child, R., Luan, D., Amodei, D., Sutskever, I., et al. Language models are unsupervised multitask learners. *OpenAI blog*, 1(8):9, 2019.
191
+ - <span id="page-9-10"></span>Rolnick, D., Ahuja, A., Schwarz, J., Lillicrap, T., and Wayne, G. Experience replay for continual learning. *Advances in neural information processing systems*, 32, 2019.
192
+ - <span id="page-9-11"></span>Thede, L., Roth, K., Bethge, M., Akata, Z., and Hartvigsen, T. Understanding the limits of lifelong knowledge editing in llms. *arXiv preprint arXiv:2503.05683*, 2025.
193
+ - <span id="page-9-1"></span>Touvron, H., Martin, L., Stone, K., Albert, P., Almahairi, A., Babaei, Y., Bashlykov, N., Batra, S., Bhargava, P., Bhosale, S., et al. Llama 2: Open foundation and finetuned chat models. *arXiv preprint arXiv:2307.09288*, 2023.
194
+ - <span id="page-9-15"></span>Valipour, M., Rezagholizadeh, M., Kobyzev, I., and Ghodsi, A. Dylora: Parameter efficient tuning of pre-trained models using dynamic search-free low-rank adaptation. *arXiv preprint arXiv:2210.07558*, 2022.
195
+ - <span id="page-9-2"></span>Yao, Y., Wang, P., Tian, B., Cheng, S., Li, Z., Deng, S., Chen, H., and Zhang, N. Editing large language models: Problems, methods, and opportunities. *arXiv preprint arXiv:2305.13172*, 2023.
196
+ - <span id="page-9-3"></span>Yu, L., Chen, Q., Zhou, J., and He, L. Melo: Enhancing model editing with neuron-indexed dynamic lora. In *Proceedings of the AAAI Conference on Artificial Intelligence*, pp. 19449–19457, 2024.
197
+ - <span id="page-9-13"></span>Zaken, E. B., Ravfogel, S., and Goldberg, Y. Bitfit: Simple parameter-efficient fine-tuning for transformerbased masked language-models. *arXiv preprint arXiv:2106.10199*, 2021.
198
+ {10}------------------------------------------------
199
+ # Appendix
200
+ ## A. Additional Related Work
201
+ #### A.1. Parameter-Efficient Fine-Tuning
202
+ Parameter-efficient fine-tuning (PEFT) approaches adjust pretrained LLMs by incorporating lightweight modules, while keeping the base model frozen. Optimization is performed solely through updates to these lightweight components. Representative approaches include Adapters[\(Houlsby](#page-8-15) [et al.,](#page-8-15) [2019;](#page-8-15) [Zaken et al.,](#page-9-13) [2021\)](#page-9-13), Prompts[\(Li & Liang,](#page-9-14) [2021;](#page-9-14) [Jia et al.,](#page-8-16) [2022\)](#page-8-16), and Low-Rank Adaptation (LoRA)[\(Hu](#page-8-10) [et al.,](#page-8-10) [2022;](#page-8-10) [Valipour et al.,](#page-9-15) [2022\)](#page-9-15). Adapters are compact bottleneck modules located after transformer blocks; Prompts are learnable vectors prepended to the input sequence; and LoRA uses low-rank decomposition matrices to modify model weights during training. Recent progress explores applying PEFT to lifelong model editing, where the base model remains unchanged and new parameter modules are introduced to manage sequential edits over time.
203
+ #### A.2. Routing Mechanisms in Modular Language Models
204
+ When multiple modular components (e.g., LoRA modules) are present, a key challenge lies in routing input queries to the appropriate subset of modules during inference. Recent work explore various strategies to support dynamic module selection. MELO[\(Yu et al.,](#page-9-3) [2024\)](#page-9-3) introduces a clustering mechanism to assign edits to clusters based on input hidden states. During inference, the nearest cluster center is used to retrieve relevant LoRA modules. However, cluster centers are inevitably updated during the sequential editing, which may lead to semantic drift and incorrect matching. As shown in Fig[.2,](#page-1-0) the number of incorrect matches increases significantly as the number of cluster centre updating increases, which leads to a deterioration in model performance. EL-DER[\(Li et al.,](#page-9-6) [2025\)](#page-9-6) employs MoE approach in which a learnable neural network scores a set of LoRA modules, activating the top-k modules. This strategy offers parameter efficiency but introduces soft entanglement in routing, and due to shared module usage, new edits may interfere with or overwrite previously edits. Furthermore, both strategies rely on auxiliary routing networks, adding architectural complexity and computational overhead. They also offer limited control over edit selection, making rollback and deletion of edits challenging.
205
+ ## B. Additional Experiment Details
206
+ Benchmarks We evaluate the performance of the model in three representative tasks: Document Classification, Question Answering(QA), and Hallucination Correction. Among them, the document classification task is performed based
207
+ on the SCOTUS dataset[\(Chalkidis et al.,](#page-8-17) [2022\)](#page-8-17). SCOTUS is a subset of Fairlex, which collects documents from the U.S. Supreme Court and classifies them into 11 topics. In practice, the topics corresponding to the documents will change, so it is necessary to update the model knowledge to classify the documents into new topics. We divide SCO-TUS into an edit set and an upstream set, where models are edited on the edit set and the upstream set is not involved in editing, only testing. The question answering task is then conducted on the zsRE dataset[\(Levy et al.,](#page-9-16) [2017\)](#page-9-16), and NQ datasets[\(Kwiatkowski et al.,](#page-8-18) [2019\)](#page-8-18) serves as upstream dataset. Specifically, we perform editing in zsRE, and the NQ dataset is again not involved in editing, only testing. For hallucination correction, we adopted the framework introduced by[\(Manakul et al.,](#page-9-17) [2023\)](#page-9-17), aiming to address the tendency of GPT models to generate factually inconsistent outputs. Following GRACE[\(Hartvigsen et al.,](#page-8-9) [2023\)](#page-8-9), we employ SelfCheckGPT[\(Manakul et al.,](#page-9-17) [2023\)](#page-9-17) for editing. SelfCheckGPT is a Wikipedia-style biography that is first generated using GPT3 on 256 topics, e.g., "Bon Jovi", and then checked to see which of the generated biographies are hallucinations. SelfCheckGPT contains 1392 hallucinatory sentences to be edited, which serves as the editing set, and 516 already correct sentences as the retention set, which is used to measure model's post-edit perplexity on the already correct sentences. WebText[\(Nakano et al.,](#page-9-18) [2021\)](#page-9-18) is used as the upstream set, remaining unedited and reserved for testing. In addition to this, in order to test the performance of the model approach with different sized models as well as datasets, we conducted hallucination correction experiments on Uniedit[\(Chen et al.,](#page-8-13) [2025\)](#page-8-13) and WikiBigEdit[\(Thede](#page-9-11) [et al.,](#page-9-11) [2025\)](#page-9-11) to evaluate the generalization performance of the models. Uniedit is based on open domain knowledge covering information from 25 common domains in 5 major categories. The WikiBigEdit dataset is based on regular updates of the knowledge graph in Wikipedia and contains 5 months of extensive factual editing and improvement. The Uniedit and WikiBigEdit datasets already have edit set, retention set and upstream set that can be used directly for hallucination correction tasks.
208
+ Training details Following[\(Hartvigsen et al.,](#page-8-9) [2023\)](#page-8-9), we employ BERT, T5-small, and GPT2-XL as the base models for the three tasks—document classification, question answering, and hallucination correction, respectively. Among these, BERT and T5-small are the official pre-trained models, while GPT2-XL is obtained from [\(Hartvigsen et al.,](#page-8-9) [2023\)](#page-8-9) which finetuned from the official release[\(Hartvigsen](#page-8-9) [et al.,](#page-8-9) [2023\)](#page-8-9). For training, we adopt Stochastic Gradient Descent (SGD) as the optimizer with a cosine decay learning rate schedule. The learning rates is 0.05, training epochs
209
+ {11}------------------------------------------------
210
+ is 40, and LoRA rank is 4. In the three tasks, we edit the models and the edited layers of the individual model edits are shown in the Tab[.6.](#page-11-0)
211
+ *Table 6.* Edited layers of different model
212
+ <span id="page-11-0"></span>
213
+ | Model | Edit layer |
214
+ |----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
215
+ | BERT | bert.encoder.layer.9.output.dense<br>bert.encoder.layer.10.output.dense<br>bert.encoder.layer.11.output.dense |
216
+ | T5-Small | encoder.block.5.layer.1.DenseReluDense.wi 0<br>encoder.block.5.layer.1.DenseReluDense.wi 1<br>encoder.block.5.layer.1.DenseReluDense.wo<br>encoder.block.6.layer.1.DenseReluDense.wi 0<br>encoder.block.6.layer.1.DenseReluDense.wi 1<br>encoder.block.6.layer.1.DenseReluDense.wo |
217
+ | GPT2-XL | transformer.h.36.mlp.c fc<br>transformer.h.37.mlp.c fc |