arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.03523cs.LGcs.AI
收藏

关于大型语言模型遗忘与对齐的概率视角

A Probabilistic Perspective on Unlearning and Alignment for Large Language Models

Technical University of Munich(慕尼黑工业大学);Munich Data Science Institute(慕尼黑数据科学研究所)

Yan Scholten, Stephan Günnemann, Leo Schwinn

AI总结:

本文提出首个针对LLMs的形式化概率评估框架,通过高概率保证的新指标更可靠地评估模型能力,并引入基于熵优化的损失和自适应温度缩放显著增强概率设置下的遗忘效果。

摘要:

对大型语言模型(LLMs)的全面评估是一个开放的研究问题。现有的评估依赖于通过贪婪解码生成的确定性点估计。然而,我们发现确定性评估无法捕捉模型的整个输出分布,导致对模型能力的估计不准确。这在遗忘和对齐等关键情境中尤为成问题,因为精确的模型评估至关重要。为了解决这个问题,我们引入了首个针对LLMs的形式化概率评估框架。即,我们提出了关于模型输出分布的具有高概率保证的新颖指标。我们的指标独立于应用,允许从业者在部署前对模型能力做出更可靠的估计。我们的实验分析表明,确定性评估错误地指示了成功的遗忘和对齐,而我们的概率评估更好地捕捉了模型能力。我们通过在遗忘的案例研究中引入(1)基于熵优化的新颖损失,和(2)自适应温度缩放,展示了如何克服与概率输出相关的挑战。我们证明,我们的方法在最近的基准上显著增强了概率设置下的遗忘。总体而言,我们提出的从点估计到输出分布的概率评估的转变,代表了对LLMs全面评估的重要一步。代码可在 https://www.cs.cit.tum.de/daml/probabilistic-unlearning/ 获取。

英文摘要:

Comprehensive evaluation of Large Language Models (LLMs) is an open research problem. Existing evaluations rely on deterministic point estimates generated via greedy decoding. However, we find that deterministic evaluations fail to capture the whole output distribution of a model, yielding inaccurate estimations of model capabilities. This is particularly problematic in critical contexts such as unlearning and alignment, where precise model evaluations are crucial. To remedy this, we introduce the first formal probabilistic evaluation framework for LLMs. Namely, we propose novel metrics with high probability guarantees concerning the output distribution of a model. Our metrics are application-independent and allow practitioners to make more reliable estimates about model capabilities before deployment. Our experimental analysis reveals that deterministic evaluations falsely indicate successful unlearning and alignment, whereas our probabilistic evaluations better capture model capabilities. We show how to overcome challenges associated with probabilistic outputs in a case study on unlearning by introducing (1) a novel loss based on entropy optimization, and (2) adaptive temperature scaling. We demonstrate that our approach significantly enhances unlearning in probabilistic settings on recent benchmarks. Overall, our proposed shift from point estimates to probabilistic evaluations of output distributions represents an important step toward comprehensive evaluations of LLMs. Code available at https://www.cs.cit.tum.de/daml/probabilistic-unlearning/.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑