最大化关键区域的局部熵:基于前缀的局部化大语言模型去敏感化
Maximizing Local Entropy Where It Matters: Prefix-Aware Localized LLM Unlearning
AI总结:
本文提出PALU框架,通过局部熵最大化减少冗余优化,提升大语言模型的去敏感化效果与通用性能。
摘要:
机器去敏感化旨在让大型语言模型(LLMs)忘记敏感知识同时保持通用性。然而,现有方法通常对响应中的所有标记一视同仁,并在整个词汇上施加不确定性。这种全局处理导致不必要的通用性下降,并将优化扩展到内容无关的区域。为了解决这些限制,我们提出PALU(前缀感知局部化去敏感化),该框架由跨时间和词汇维度的局部熵最大化目标驱动。PALU揭示了(i)仅抑制敏感前缀足以切断因果生成链接,(ii)仅扁平化前k个logits足以在关键子空间中最大化不确定性。这些发现使PALU能够在不损害通用模型性能的情况下减少对整个词汇和参数空间的冗余优化。大量实验验证了PALU在去敏感化效果和通用性保持方面优于现有最先进基线。我们的代码可在https://github.com/nxZhai/PALU获取。
英文摘要:
Machine unlearning aims to forget sensitive knowledge from Large Language Models (LLMs) while maintaining general utility. However, existing approaches typically treat all tokens in a response indiscriminately and enforce uncertainty over the entire vocabulary. This global treatment results in unnecessary utility degradation and extends optimization to content-agnostic regions. To address these limitations, we propose PALU (Prefix-Aware Localized Unlearning), a framework driven by a local entropy maximization objective across both temporal and vocabulary dimensions. PALU reveals that (i) suppressing the sensitive prefix alone is sufficient to sever the causal generation link, and (ii) flattening only the top-$k$ logits is adequate to maximize uncertainty in the critical subspace. These findings allow PALU to alleviate redundant optimization across the full vocabulary and parameter space while minimizing collateral damage to general model performance. Comprehensive evaluations validate that PALU achieves superior forgetting efficacy and utility preservation compared to state-of-the-art baselines. Our code is available at https://github.com/nxZhai/PALU.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。