ELDER: Enhancing Lifelong Model Editing with Mixture-of-LoRA

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Li, Jiaang, Wang, Quan, Wang, Zhongnan, Zhang, Yongdong, Mao, Zhendong
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915101675618304
author Li, Jiaang
Wang, Quan
Wang, Zhongnan
Zhang, Yongdong
Mao, Zhendong
author_facet Li, Jiaang
Wang, Quan
Wang, Zhongnan
Zhang, Yongdong
Mao, Zhendong
contents Large language models (LLMs) require model editing to efficiently update specific knowledge within them and avoid factual errors. Most model editing methods are solely designed for single-time use and result in a significant forgetting effect in lifelong editing scenarios, where sequential edits are conducted over time. Previous approaches manage sequential edits by freezing original parameters and discretely allocating new parameters for each knowledge update. However, these methods lack robustness to minor input variations due to the discrete mapping between data and parameters. To overcome this challenge, we propose ELDER, a novel approach to create a continuous association between data and adapters. ELDER integrates multiple LoRAs through a router network and is trained to establish a smooth data-adapter association, thereby enhancing the edit robustness and generalization of semantically equivalent inputs. To ensure inputs containing the same knowledge will be processed by the same LoRAs, we design a novel loss to guide the model link LoRA allocations with edit knowledge. Furthermore, we propose a deferral mechanism to retain the original LLM capabilities post-edit. Extensive experiments on GPT-2 XL and LLaMA2-7B demonstrate that ELDER effectively edits models in the lifelong setting, outperforming eight baselines while exhibiting strong scalability and preserving LLMs' general abilities on downstream tasks. Our code is available at https://github.com/JiaangL/ELDER.
format Preprint
id arxiv_https___arxiv_org_abs_2408_11869
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle ELDER: Enhancing Lifelong Model Editing with Mixture-of-LoRA
Li, Jiaang
Wang, Quan
Wang, Zhongnan
Zhang, Yongdong
Mao, Zhendong
Computation and Language
Artificial Intelligence
Machine Learning
Large language models (LLMs) require model editing to efficiently update specific knowledge within them and avoid factual errors. Most model editing methods are solely designed for single-time use and result in a significant forgetting effect in lifelong editing scenarios, where sequential edits are conducted over time. Previous approaches manage sequential edits by freezing original parameters and discretely allocating new parameters for each knowledge update. However, these methods lack robustness to minor input variations due to the discrete mapping between data and parameters. To overcome this challenge, we propose ELDER, a novel approach to create a continuous association between data and adapters. ELDER integrates multiple LoRAs through a router network and is trained to establish a smooth data-adapter association, thereby enhancing the edit robustness and generalization of semantically equivalent inputs. To ensure inputs containing the same knowledge will be processed by the same LoRAs, we design a novel loss to guide the model link LoRA allocations with edit knowledge. Furthermore, we propose a deferral mechanism to retain the original LLM capabilities post-edit. Extensive experiments on GPT-2 XL and LLaMA2-7B demonstrate that ELDER effectively edits models in the lifelong setting, outperforming eight baselines while exhibiting strong scalability and preserving LLMs' general abilities on downstream tasks. Our code is available at https://github.com/JiaangL/ELDER.
title ELDER: Enhancing Lifelong Model Editing with Mixture-of-LoRA
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2408.11869