EMNLP 2024industry1 citations

ULMR: Unlearning Large Language Models via Negative Response and Model Parameter Average

Shaojie Shi, Xiaoyu Tan, Xihe Qiu, Chao Qu, Kexin Nie, Yuan Cheng, Wei Chu, Xu Yinghui

Abstract

In recent years, large language models (LLMs) have attracted significant interest from the research community due to their broad applicability in many language-oriented tasks, and are now widely used in numerous areas of production and daily life. One source of the powerful capabilities of LLMs is the massive scale of their pre-training dataset. However, these pre-training datasets contain many outdated, harmful, and personally sensitive information, which inevitably becomes memorized by LLM during the pre-training process. Eliminating this undesirable data is crucial for ensuring the model’s safety and enhancing the user experience. However, the cost of extensively cleaning the pre-training dataset and retraining the model from scratch is very high. In this work, we propose ULMR , a unlearning framework for LLMs , which first uses carefully designed prompts to rewrite the instructions in the specified dataset, and generate corresponding negative responses. Subsequently, to ensure that the model does not excessively deviate post-training, we perform model parameter averaging to preserve the performance of the original LLM. We conducted experiments on two public datasets, TOFU and RWKU, demonstrating that our method can effectively forget specified information while retaining the capabilities of the original LLM.

BibTeX
@inproceedings{shi-etal-2024-ulmr,
    title = "{ULMR}: Unlearning Large Language Models via Negative Response and Model Parameter Average",
    author = "Shi, Shaojie  and
      Tan, Xiaoyu  and
      Qiu, Xihe  and
      Qu, Chao  and
      Nie, Kexin  and
      Cheng, Yuan  and
      Chu, Wei  and
      Yinghui, Xu  and
      Qi, Yuan",
    editor = "Dernoncourt, Franck  and
      Preo{\c{t}}iuc-Pietro, Daniel  and
      Shimorina, Anastasia",
    booktitle = "Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing: Industry Track",
    month = nov,
    year = "2024",
    address = "Miami, Florida, US",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2024.emnlp-industry.57/",
    doi = "10.18653/v1/2024.emnlp-industry.57",
    pages = "755--762"
}
ULMR: Unlearning Large Language Models via Negative Response and Model Parameter Average · EMNLP 2024