模型编辑作为 DPO 的鲁棒且去噪变体:以毒性为案例研究
Model Editing as a Robust and Denoised variant of DPO: A Case Study on Toxicity
AI总结:
本文提出免微调的模型编辑方法 ProFS,通过识别并投影去除模型参数空间中的毒性子空间来降低大语言模型毒性,比 DPO 更具样本效率与抗噪鲁棒性,理论上是单步 DPO 的去噪版本。
摘要:
诸如直接偏好优化(DPO)等近期的对齐算法,通过训练大语言模型(LLMs)以匹配偏好数据所例证的人类行为,已被开发用于提升其安全性。然而,这些方法计算量大且缺乏可控性和透明度,阻碍了其广泛使用。此外,这些基于微调的方法需要大规模偏好数据进行训练,且容易受到噪声偏好数据的影响。在本文中,我们引入了一种免微调的对齐替代方案 ProFS(子空间投影滤波器),并在毒性降低的用例下展示了其有效性。基于因子分析理论,ProFS 是一种样本高效的模型编辑方法,它在模型参数空间中识别毒性子空间,并通过投影去除检测到的子空间来降低模型毒性。毒性子空间是通过从语言模型中提取偏好数据嵌入,并从这些嵌入中移除非毒性信息来识别的。我们表明 ProFS 比 DPO 更具样本效率,并进一步展示了对噪声数据更强的鲁棒性。最后,我们尝试将基于微调的对齐与编辑联系起来,通过在 ProFS 和 DPO 之间建立理论和经验联系,表明 ProFS 可以被解释为单个 DPO 步骤的去噪版本。
英文摘要:
Recent alignment algorithms such as direct preference optimization (DPO) have been developed to improve the safety of large language models (LLMs) by training these models to match human behaviors exemplified by preference data. However, these methods are both computationally intensive and lacking in controllability and transparency, inhibiting their widespread use. Furthermore, these tuning-based methods require large-scale preference data for training and are susceptible to noisy preference data. In this paper, we introduce a tuning-free alignment alternative, ProFS (Projection Filter for Subspaces), and demonstrate its effectiveness under the use case of toxicity reduction. Grounded on theory from factor analysis, ProFS is a sample-efficient model editing approach that identifies a toxic subspace in the model parameter space and reduces model toxicity by projecting away the detected subspace. The toxic subspace is identified by extracting preference data embeddings from the language model, and removing non-toxic information from these embeddings. We show that ProFS is more sample-efficient than DPO, further showcasing greater robustness to noisy data. Finally, we attempt to connect tuning based alignment with editing, by establishing both theoretical and empirical connections between ProFS and DPO, showing that ProFS can be interpreted as a denoised version of a single DPO step.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。