arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.08414cs.LG
收藏

发现偏好优化算法:面向大语言模型并借助大语言模型

Discovering Preference Optimization Algorithms with and for Large Language Models

Sakana AI;FLAIR;University of Cambridge(剑桥大学);University of Oxford(牛津大学);Spotify

Chris Lu, Samuel Holt, Claudio Fanconi, Alex J. Chan, Jakob Foerster, Mihaela van der Schaar, Robert Tjarko Lange

AI总结:

本文提出利用大语言模型自动发现新的偏好优化算法,无需人工干预,迭代生成并评估损失函数,最终得到自适应融合逻辑与指数损失的DiscoPOP算法,实验证明其性能达到最先进水平。

摘要:

离线偏好优化是提升和控制大语言模型(LLM)输出质量的关键方法。通常,偏好优化被视为一项离线监督学习任务,使用手工设计的凸损失函数。尽管这些方法基于理论洞见,但它们本质上受限于人类的创造力,因此可能的损失函数的大搜索空间仍未得到充分探索。我们通过执行由LLM驱动的目标发现来解决这一问题,无需(专家)人工干预即可自动发现新的最先进的偏好优化算法。具体而言,我们迭代地提示一个LLM基于先前评估的性能指标提出并实现新的偏好优化损失函数。这一过程导致了先前未知且性能优越的偏好优化算法的发现。其中表现最佳的算法我们称之为“发现式偏好优化”(DiscoPOP),这是一种新颖的算法,能够自适应地融合逻辑损失和指数损失。实验证明了DiscoPOP的最先进性能及其向保留任务的成功迁移。

英文摘要:

Offline preference optimization is a key method for enhancing and controlling the quality of Large Language Model (LLM) outputs. Typically, preference optimization is approached as an offline supervised learning task using manually-crafted convex loss functions. While these methods are based on theoretical insights, they are inherently constrained by human creativity, so the large search space of possible loss functions remains under explored. We address this by performing LLM-driven objective discovery to automatically discover new state-of-the-art preference optimization algorithms without (expert) human intervention. Specifically, we iteratively prompt an LLM to propose and implement new preference optimization loss functions based on previously-evaluated performance metrics. This process leads to the discovery of previously-unknown and performant preference optimization algorithms. The best performing of these we call Discovered Preference Optimization (DiscoPOP), a novel algorithm that adaptively blends logistic and exponential losses. Experiments demonstrate the state-of-the-art performance of DiscoPOP and its successful transfer to held-out tasks.

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

↑