迎难而上:困难样本重加权持续训练提升 LLM 泛化能力
Take the Bull by the Horns: Hard Sample-Reweighted Continual Training Improves LLM Generalization
AI总结:
本文提出 IR-DRO 框架,在持续预训练和指令微调中动态重加权中高损失的信息性样本,显著提升 LLM 在多基准上的泛化性能。
摘要:
在快速发展的大语言模型(LLM)领域,一个关键挑战是在高质量训练数据日益短缺的情况下增强其能力。我们的研究始于一种经验性策略:利用 LLM 的原始预训练数据集进行轻量级持续训练,并特别关注选择性地保留产生中高损失的样本。这些样本被认为具有信息量,有利于模型精炼;与之相对,最高损失的样本会因其与数据噪声和复杂性的相关性而被丢弃。随后,我们将该策略形式化为一个有原则的框架,即实例重加权分布鲁棒优化(Instance-Reweighted Distributionally Robust Optimization,IR-DRO)。IR-DRO 旨在通过实例重加权机制,动态地将训练重点优先放在信息丰富的样本上,并借助闭式解简化流程,以便直接集成到现有训练协议中。通过在多种模型和数据集上进行严格实验,我们的研究结果表明,在持续预训练和指令微调两种场景下,这种面向样本的方法都在多个基准上显著提升了 LLM 性能。代码可在 https://github.com/VITA-Group/HardFocusTraining 获取。
英文摘要:
In the rapidly advancing arena of large language models (LLMs), a key challenge is to enhance their capabilities amid a looming shortage of high-quality training data. Our study starts from an empirical strategy for the light continual training of LLMs using their original pre-training data sets, with a specific focus on selective retention of samples that incur moderately high losses. These samples are deemed informative and beneficial for model refinement, contrasting with the highest-loss samples, which would be discarded due to their correlation with data noise and complexity. We then formalize this strategy into a principled framework of Instance-Reweighted Distributionally Robust Optimization (IR-DRO). IR-DRO is designed to dynamically prioritize the training focus on informative samples through an instance reweighting mechanism, streamlined by a closed-form solution for straightforward integration into established training protocols. Through rigorous experimentation with various models and datasets, our findings indicate that our sample-targeted methods significantly improve LLM performance across multiple benchmarks, in both continual pre-training and instruction tuning scenarios. Our codes are available at https://github.com/VITA-Group/HardFocusTraining.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。