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

AutoMixAlign:面向大语言模型多任务偏好优化的自适应数据混合方法

AutoMixAlign: Adaptive Data Mixing for Multi-Task Preference Optimization in LLMs

University of Wisconsin–Madison(威斯康星大学麦迪逊分校);Amazon(亚马逊);Georgia Institute of Technology(佐治亚理工学院)

Nicholas E. Corrado, Julian Katz-Samuels, Adithya Devraj, Hyokun Yun, Chao Zhang, Yi Xu, Yi Pan, Bing Yin, Trishul Chilimbi

AI总结:

本文提出AutoMixAlign(AMA),通过自适应数据混合与极小极大优化平衡大语言模型多任务偏好对齐性能,其AMA-R和AMA-S算法在实验中优于标准对齐与模型合并方法。

摘要:

在对大语言模型(LLMs)进行对齐时,其在各类任务(如有用性、无害性和诚实性)上的表现高度依赖于训练数据的构成。然而,选择一种能够在所有任务上都取得强性能的数据混合方案十分困难。现有方法依赖大规模消融实验、启发式规则或人工直觉,但这些方式可能成本过高且并非最优。我们在基于DPO的偏好优化设定下研究该问题,并提出AutoMixAlign(AMA),一种具有理论依据的算法,能够在训练过程中自适应地混合数据集,以平衡各任务之间的性能。AMA首先为每个任务训练“专家模型”,以确定与强任务性能相对应的损失。然后,利用一种新颖的极小极大优化方法训练通用模型,该方法优先处理通用模型损失与专家模型损失偏差最大的任务。为求解该优化问题,我们提出两种算法:(1)AMA-R,通过自适应重加权目标函数来优先处理任务;(2)AMA-S,通过自适应调整从每个任务中采样的数据量来优先处理任务。两种算法在凸情形下均达到$O(1/\sqrt{T})$的收敛速率。AMA-R的收敛结果源自Sagawa等人(2019),我们则利用EXP3等在线学习技术为AMA-S提供了收敛性证明。我们在多个多任务对齐设置上评估AMA,发现AMA优于标准对齐方法——即简单优化所有任务总损失的方法——并且也优于模型合并方法。

英文摘要:

When aligning large language models (LLMs), their performance on various tasks (such as being helpful, harmless, and honest) depends heavily on the composition of their training data. However, selecting a data mixture that achieves strong performance across all tasks is challenging. Existing approaches rely on large ablation studies, heuristics, or human intuition, but these can be prohibitively expensive and suboptimal. We study this problem in the setting of preference optimization via DPO and introduce AutoMixAlign (AMA), a theoretically-grounded algorithm that adaptively mixes datasets during training to balance performance across tasks. AMA first trains \textit{specialist models} for each task to determine losses that correspond to strong task performance. Then, it trains a generalist model using a novel minimax optimization that prioritizes tasks for which generalist model losses deviate most from specialist model losses. To optimize this problem, we propose two algorithms: (1) AMA-R, which adaptively reweights the objective to prioritize tasks, and (2) AMA-S, which adaptively adjusts how much data is sampled from each task to prioritize tasks. Both algorithms achieve a convergence rate of $O(1/\sqrt{T})$ in the convex case. AMA-R's convergence result follows from Sagawa et al. (2019), and we provide a convergence proof for AMA-S using online learning techniques such as EXP3. We evaluate AMA on several multitask alignment setups and find that AMA outperforms the standard alignment approach -- which simply optimizes the total loss across all tasks -- and also outperforms model merging methods.

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

↑