arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.23244cs.LG
收藏

单GPU上的对齐与偏好学习的凸优化

Convex Optimization for Alignment and Preference Learning on a Single GPU

Department of Electrical Engineering, Stanford University, California, United States(斯坦福大学电气工程系,加州,美国)

Miria Feng, Mert Pilanci

AI总结:

提出COALA算法,利用凸优化重表述消除参考模型,在单GPU上高效训练,性能与DPO相当但计算量仅为其17.6%。

摘要:

微调大型语言模型(LLMs)以符合人类偏好推动了Gemini和ChatGPT等系统的成功。然而,从人类反馈中强化学习(RLHF)等方法仍然计算昂贵且复杂。直接偏好优化(DPO)提供了一种更简单的替代方案,但存在排名准确性不一致、对GPU资源依赖度高以及超参数调优成本高等局限性。我们提出了对齐与偏好学习的凸优化算法(COALA):一种具有强理论保证的新型轻量级策略。通过利用神经网络的凸优化重表述,COALA消除了对参考模型的需求,并在训练时间和VRAM消耗上实现了显著减少,从而能够在单个GPU上进行高效训练。在四个数据集(包括一个26621样本的合成教育反馈数据集)和六个模型(包括Llama-3.1-8B)上的实验表明,COALA在仅使用DPO总TFLOPs约17.6%的情况下,展现了具有竞争力的性能和效率。与DPO和ORPO等传统方法相比,COALA表现出稳定、单调递增的奖励,并在显著更短的时间内达到峰值边际。据我们所知,这是首次将凸优化有效应用于LLMs的偏好微调。

英文摘要:

Fine-tuning large language models (LLMs) to align with human preferences has driven the success of systems such as Gemini and ChatGPT. However, approaches like Reinforcement Learning from Human Feedback (RLHF) remain computationally expensive and complex. Direct Preference Optimization (DPO) offers a simpler alternative but has limitations such as inconsistent ranking accuracy, high dependence on GPU resources, and expensive hyperparameter tuning. We propose the Convex Optimization for Alignment and Preference Learning Algorithm (COALA): a novel lightweight strategy with strong theoretical guarantees. By leveraging the convex optimization reformulation of neural networks, COALA eliminates the need for a reference model and obtains significant reduction in both training time and VRAM consumption, thus enabling efficient training on a single GPU. Experiments across four datasets--including a 26621-sample synthetic Educational Feedback dataset--and six models (including Llama-3.1-8B) demonstrate COALA's competitive performance and efficiency while utilizing as little as ~17.6% of DPO's total TFLOPs. COALA exhibits stable, monotonically increasing rewards and reaches peak margins in significantly shorter time in comparison to traditional methods such as DPO and ORPO. To the best of our knowledge, this is the first time convex optimization has been effectively applied to preference fine-tuning of LLMs.

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

↑