降级到升级:优化器简化增强了大语言模型去学习的鲁棒性
Downgrade to Upgrade: Optimizer Simplification Enhances Robustness in LLM Unlearning
AI总结:
本文研究优化器对大语言模型去学习鲁棒性的影响,发现降级优化器能提升鲁棒性,提出混合优化器提升去学习效果。
摘要:
大语言模型(LLM)去学习旨在从现有模型中外科切除不想要的数据或知识的影响,同时保持对无关任务的效用。这一范式已在解决隐私和安全问题中展现出潜力。然而,最近的研究发现去学习效果往往脆弱:去学习后进行的操纵,如权重量化或微调,可以快速中和遗忘的意图。先前的努力主要通过重新公式化去学习目标来提高鲁棒性,通过显式假设漏洞来源。在本文中,我们从不同的角度出发,研究优化器在塑造去学习鲁棒性中的作用,独立于去学习目标和公式化。我们发现优化器的'等级',由其利用的信息水平决定,从零阶(梯度无关)到一阶(梯度基)到二阶(Hessian基),与去学习的韧性紧密相关。令人惊讶的是,我们发现降级优化器,如使用零阶方法或压缩梯度变体(例如梯度符号基优化器),往往导致更强的鲁棒性。尽管这些优化器产生更嘈杂和不精确的更新,但它们鼓励收敛到更难扰动的损失景观盆地,从而抵抗训练后扰动。通过将零阶方法与随机平滑连接,我们进一步突显其对鲁棒去学习的自然优势。受这些见解启发,我们提出了一种混合优化器,结合一阶和零阶更新,保持去学习效果的同时增强鲁棒性。在MUSE和WMDP基准测试中,跨多种LLM去学习算法的广泛实验验证了我们的方法在不牺牲去学习质量的情况下实现了更坚固的遗忘。
英文摘要:
Large language model (LLM) unlearning aims to surgically remove the influence of undesired data or knowledge from an existing model while preserving its utility on unrelated tasks. This paradigm has shown promise in addressing privacy and safety concerns. However, recent findings reveal that unlearning effects are often fragile: post-unlearning manipulations such as weight quantization or fine-tuning can quickly neutralize the intended forgetting. Prior efforts to improve robustness primarily reformulate unlearning objectives by explicitly assuming the role of vulnerability sources. In this work, we take a different perspective by investigating the role of the optimizer, independent of unlearning objectives and formulations, in shaping unlearning robustness. We show that the 'grade' of the optimizer, defined by the level of information it exploits, ranging from zeroth-order (gradient-free) to first-order (gradient-based) to second-order (Hessian-based), is tightly linked to the resilience of unlearning. Surprisingly, we find that downgrading the optimizer, such as using zeroth-order methods or compressed-gradient variants (e.g., gradient sign-based optimizers), often leads to stronger robustness. While these optimizers produce noisier and less precise updates, they encourage convergence to harder-to-disturb basins in the loss landscape, thereby resisting post-training perturbations. By connecting zeroth-order methods with randomized smoothing, we further highlight their natural advantage for robust unlearning. Motivated by these insights, we propose a hybrid optimizer that combines first-order and zeroth-order updates, preserving unlearning efficacy while enhancing robustness. Extensive experiments on the MUSE and WMDP benchmarks, across multiple LLM unlearning algorithms, validate that our approach achieves more resilient forgetting without sacrificing unlearning quality.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。