arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2406.19976cs.LGmath.OC
收藏

ScaleBiO:面向LLM数据重加权的可扩展双层优化

ScaleBiO: Scalable Bilevel Optimization for LLM Data Reweighting

University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);The Hong Kong University of Science and Technology(香港科学与技术大学)

Rui Pan, Dylan Zhang, Hanning Zhang, Xingyuan Pan, Minrui Xu, Jipeng Zhang, Renjie Pi, Xiaoyu Wang, Tong Zhang

AI总结:

本文提出ScaleBiO,首个可扩展的一阶双层优化算法,结合LISA技术实现大规模LLM数据重加权,在多种模型上验证了指令跟随和数学推理任务的有效性,并提供了理论收敛保证。

摘要:

双层优化已在各种机器学习设置中展现出其效用,然而实践中的大多数算法需要二阶信息,这使得它们难以扩展。直到最近,理论文献中才出现了一种一阶算法范式,能够有效处理双层优化问题。然而,该范式的实际效率仍未得到验证,特别是在大型语言模型(LLM)的背景下。本文介绍了该范式的首个可扩展实例,称为ScaleBiO,专注于大规模LLM数据重加权的双层优化。通过结合最近提出的名为LISA的内存高效训练技术,我们的新算法使该范式能够扩展到在8×H100 GPU上训练约300亿规模的LLM,标志着双层优化在大型LLM实际场景中的首次成功应用。在实证方面,针对数据重加权的广泛实验验证了ScaleBiO在不同规模模型(包括Llama-3-8B、Gemma-2-9B、Qwen-2-7B和Qwen-2.5-32B)上的有效性,其中双层优化成功应用于指令跟随和数学推理任务,优于几种流行的基线方法,包括均匀采样、基于影响力的数据过滤和基于参考模型的采样方法。在理论方面,ScaleBiO确保了学习数据权重的最优性,并提供了与平滑且强凸目标上的传统一阶双层优化范式相匹配的收敛保证。

英文摘要:

Bilevel optimization has shown its utility across various machine learning settings, yet most algorithms in practice require second-order information, making it challenging to scale them up. Only recently, a paradigm of first-order algorithms has emerged in the theoretical literature, capable of effectively addressing bilevel optimization problems. Nevertheless, the practical efficiency of this paradigm remains unverified, particularly in the context of large language models (LLMs). This paper introduces the first scalable instantiation of this paradigm called ScaleBiO, focusing on bilevel optimization for large-scale LLM data reweighting. By combining with a recently proposed memory-efficient training technique called LISA, our novel algorithm allows the paradigm to scale to $\sim$30B-sized LLMs on $8\times$H100 GPUs, marking the first successful application of bilevel optimization under practical scenarios for large-sized LLMs. Empirically, extensive experiments on data reweighting verify the effectiveness of ScaleBiO for different-scaled models, including Llama-3-8B, Gemma-2-9B, Qwen-2-7B, and Qwen-2.5-32B, where bilevel optimization succeeds in instruction-following and math reasoning tasks, outperforming several popular baselines, including uniform sampling, influence-aware data filtering, and reference-model-based sampling methods. Theoretically, ScaleBiO ensures the optimality of the learned data weights, along with a convergence guarantee matching the conventional first-order bilevel optimization paradigm on smooth and strongly convex objectives.

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

↑