基于划分拟阵约束梯度匹配的小批量选择
Minibatch Selection for Language Models via Partition Matroid Constrained Gradient Matching
AI总结:
提出PartitionSel方法,通过划分拟阵约束下的梯度匹配效用最大化,实现跨域小批量选择,减少冗余并提升训练兼容性,在LLM微调中取得鲁棒性提升。
摘要:
在异构数据上训练大型语言模型(LLMs)需要选择能够平衡收敛速度与跨领域覆盖的小批量。现有方法要么在每个领域内独立选择样本,要么依赖计算昂贵的代理模型来学习连续的领域权重。我们提出PartitionSel,一种跨领域小批量选择方法,它在每个领域的预算(编码为划分拟阵约束)下最大化验证引导的梯度匹配效用。通过单一效用耦合每个领域的预算,PartitionSel旨在减少跨领域选择中的冗余。所提出的目标是弱子模的,并允许使用正交匹配追踪算法,具有可证明的近似保证。在实验中,我们在MetaMathQA和Mol-Instructions上对Qwen2.5和Llama-3进行微调时,评估了PartitionSel的小批量选择。PartitionSel在两个基准测试中均比每个领域和领域无关的基线获得了鲁棒的提升。它还减少了每个批次内冲突梯度对的数量,表明跨领域耦合转化为更兼容的训练更新。
英文摘要:
Training large language models (LLMs) on heterogeneous data requires selecting minibatches that balance convergence speed with coverage across domains. Existing methods either select samples independently within each domain or rely on computationally expensive proxy models to learn continuous domain weights. We propose PartitionSel, a cross-domain minibatch selection approach that maximizes a validation-guided gradient-matching utility under per-domain budgets encoded as a partition-matroid constraint. By coupling the per-domain budgets through a single utility, PartitionSel is designed to reduce redundancy in selections across domains. The proposed objective is weakly submodular and admits an orthogonal matching pursuit algorithm with provable approximation guarantees. Empirically, we evaluate PartitionSel for minibatch selection during the fine-tuning of Qwen2.5 and Llama-3 on MetaMathQA and Mol-Instructions. PartitionSel achieves robust gains over per-domain and domain-agnostic baselines on both benchmarks. It also reduces the number of conflicting gradient pairs within each batch, indicating that the cross-domain coupling translates into more compatible training updates.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。