ContraSolver:通过解决内部偏好矛盾实现语言模型的自对齐
ContraSolver: Self-Alignment of Language Models by Resolving Internal Preference Contradictions
AI总结:
本文提出 ContraSolver 算法,通过构建偏好图并解决内部偏好矛盾,实现大型语言模型的无监督自对齐,在多个生成任务上显著提升模型性能。
摘要:
尽管在开发大型语言模型(LLMs)方面已经取得了实质性进展,但对其行为进行控制仍然可能很困难。直接偏好优化(DPO)假设存在一个隐式奖励函数来评估大型语言模型的响应。这一假设表明,对同一输入的不同响应存在严格的偏好排序。然而,根据我们的实验观察,大型语言模型中始终存在偏好矛盾。在本文中,我们通过自标注构建了不同响应之间偏好关系的图结构,以发现偏好中的矛盾。我们提出了 ContraSolver,这是一种遍历偏好图上所有边以识别可能引起矛盾的边的算法。ContraSolver 使用最大生成树初始化图,并识别矛盾边,优先解决低置信度偏好,同时保留高置信度偏好。在四个不同生成任务上的实验结果表明,通过我们完全无监督的自对齐,不同大型语言模型的性能可以得到大幅提升。此外,通过分析使用和未使用 ContraSolver 进行自对齐的大型语言模型的偏好图,我们量化了矛盾的减少,表明解决偏好矛盾对于实现更好的对齐性能至关重要。
英文摘要:
While substantial advancements have been made in developing large language models (LLMs), achieving control over their behavior can be difficult. Direct preference optimization (DPO) assumes the existence of a latent reward function to evaluate the responses of LLMs. This assumption indicates a strict preference ordering of different responses to the same input. However, there always exist contradictions of preference in LLMs according to our experimental observations. In this paper, we construct a graph structure of the preference relationship among different responses with self-annotation to find contradictions in the preference order. We propose ContraSolver, an algorithm that traverses all edges on the preference graph to identify those that might cause contradictions. ContraSolver initializes the graph with a maximum spanning tree and identifies contradictory edges, prioritizing the resolution of low-confidence preferences while preserving high-confidence ones. Experimental results on four different generation tasks show that the performance of different LLMs can be largely improved through our completely unsupervised self-alignment. Furthermore, by analyzing the preference graphs of LLMs with and without self-alignment by ContraSolver, we quantify the reduction in contradictions, suggesting that resolving preference contradictions is crucial for achieving better alignment performance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。