用负例微调低秩适配器,高效删除大模型特定知识
LUNE: Efficient LLM Unlearning via LoRA Fine-Tuning with Negative Examples
- 仅更新低秩适配器,冻结主干模型实现局部知识删减
- 计算开销比全量微调降低一个数量级,效果相当
- 适合需要快速移除隐私或错误信息的部署场景
大型语言模型(LLMs)从海量训练数据中获取了广泛知识,但难以在需要时删除特定信息,导致隐私泄露、偏见消除和知识修正困难。传统方法需昂贵的全量微调或直接权重修改,难以实际应用。本文提出基于LoRA的负例未学习框架LUNE,通过仅更新低秩适配器并冻结主干模型,实现仅负例的未学习。利用低秩适配(LoRA),LUNE聚焦中间表示,以近一个数量级更低的计算与内存开销,抑制或替换指定知识。多任务事实性未学习实验表明:(I)效果接近全量微调与权重编辑方法;(II)计算成本降低约一个数量级。
原文摘要 · Abstract (English)
Large language models (LLMs) possess vast knowledge acquired from extensive training corpora, but they often cannot remove specific pieces of information when needed, which makes it hard to handle privacy, bias mitigation, and knowledge correction. Traditional model unlearning approaches require computationally expensive fine-tuning or direct weight editing, making them impractical for real-world deployment. In this work, we introduce LoRA-based Unlearning with Negative Examples (LUNE), a lightweight framework that performs negative-only unlearning by updating only low-rank adapters while freezing the backbone, thereby localizing edits and avoiding disruptive global changes. Leveraging Low-Rank Adaptation (LoRA), LUNE targets intermediate representations to suppress (or replace) requested knowledge with an order-of-magnitude lower compute and memory than full fine-tuning or direct weight editing. Extensive experiments on multiple factual unlearning tasks show that LUNE: (I) achieves effectiveness comparable to full fine-tuning and memory-editing methods, and (II) reduces computational cost by about an order of magnitude.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。