arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.16882cs.LGcs.AIcs.CL
收藏

面向LLM监督微调的效用-多样性感知在线批次选择

Utility-Diversity Aware Online Batch Selection for LLM Supervised Fine-tuning

University of Science and Technology of China(中国科学技术大学)

Heming Zou, Yixiu Mao, Yun Qu, Qi Wang, Xiangyang Ji

AI总结:

提出UDS框架,利用logits矩阵核范数和轻量记忆缓冲实现高效在线批次选择,兼顾数据效用与多样性,无需外部资源,在多个基准上优于现有方法并降低训练时间。

摘要:

监督微调(SFT)是一种常用的技术,用于将大型语言模型(LLM)适配到下游任务。在实践中,对整个数据集进行SFT计算成本高昂,且有时会导致过拟合或偏差放大。这促进了SFT中数据筛选的兴起,即优先选择最有价值的数据进行优化。本文研究了在线批次选择系列方法,这些方法在训练过程中动态评分和过滤样本。然而,现有的流行方法通常(i)仅依赖数据的效用选择子集,而忽略多样性等其他关键因素,(ii)依赖外部资源如参考模型或验证集,以及(iii)相对于全数据集训练增加了额外训练时间。为解决这些局限,本文开发了UDS(效用-多样性采样),一个用于SFT中高效在线批次选择的框架。UDS利用logits矩阵的核范数来捕获数据效用和样本内多样性,同时通过与历史样本的轻量内存缓冲进行高效低维嵌入比较来估计样本间多样性。这种设计消除了对外部资源和不必要反向传播的需求,确保了计算效率。在多个基准上的实验表明,UDS在不同数据预算下始终优于最先进的在线批次选择方法,并且与全数据集微调相比显著减少了训练时间。代码可在该https URL获取。

英文摘要:

Supervised fine-tuning (SFT) is a commonly used technique to adapt large language models (LLMs) to downstream tasks. In practice, SFT on a full dataset is computationally expensive and sometimes suffers from overfitting or bias amplification. This facilitates the rise of data curation in SFT, which prioritizes the most valuable data to optimze. This work studies the online batch selection family that dynamically scores and filters samples during the training process. However, existing popular methods often (i) rely merely on the utility of data to select a subset while neglecting other crucial factors like diversity, (ii) rely on external resources such as reference models or validation sets, and (iii) incur extra training time over full-dataset training. To address these limitations, this work develops UDS (Utility-Diversity Sampling), a framework for efficient online batch selection in SFT. UDS leverages the nuclear norm of the logits matrix to capture both data utility and intra-sample diversity, while estimating inter-sample diversity through efficient low-dimensional embedding comparisons with a lightweight memory buffer of historical samples. Such a design eliminates the need for external resources and unnecessary backpropagation, securing computational efficiency. Experiments on multiple benchmarks demonstrate that UDS consistently outperforms state-of-the-art online batch selection methods under varying data budgets, and significantly reduces training time compared to full-dataset fine-tuning. Code is available at https://github.com/gfyddha/UDS.

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

↑