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

阈值过滤打包用于监督微调:在包内训练相关样本

Threshold Filtering Packing for Supervised Fine-Tuning: Training Related Samples within Packs

University of Illinois Chicago(伊利诺伊大学芝加哥分校);Emory University(埃默里大学)

Jiancheng Dong, Lei Jiang, Wei Jin, Lu Cheng

AI总结:

针对监督微调中随机打包导致的序列交叉污染问题,提出阈值过滤打包(TFP)方法,在包内选择相关且多样的样本,显著提升性能(GSM8K提升7%,HumanEval提升4%,公平性提升15%)。

摘要:

在自回归模型的监督微调(SFT)中,打包涉及将不同长度的数据点拼接起来,直到达到设计的最长长度,以促进GPU处理。然而,随机拼接数据点可能因主题差异显著而导致序列交叉污染。SFT中的主流方法确保注意力计算阶段中的每个token仅关注其自身短序列内的token,而不为前文上下文提供额外的学习信号。为解决这些挑战,我们引入了阈值过滤打包(TFP),一种在保持同一包内足够多样性的同时选择具有相关上下文的样本的方法。我们的实验表明,TFP提供了一种易于实现且可扩展的方法,显著提升了SFT性能,在GSM8K上观察到高达7%的提升,在HumanEval上提升4%。此外,偏见基准数据集的结果突显了TFP在提高公平性方面的有前景表现,同时将预测准确性提升了15%。

英文摘要:

Packing for Supervised Fine-Tuning (SFT) in autoregressive models involves concatenating data points of varying lengths until reaching the designed maximum length to facilitate GPU processing. However, randomly concatenating data points can lead to cross-contamination of sequences due to the significant difference in their subject matter. The mainstream approaches in SFT ensure that each token in the attention calculation phase only focuses on tokens within its own short sequence, without providing additional learning signals for the preceding context. To address these challenges, we introduce Threshold Filtering Packing (TFP), a method that selects samples with related context while maintaining sufficient diversity within the same pack. Our experiments show that TFP offers a simple-to-implement and scalable approach that significantly enhances SFT performance, with observed improvements of up to 7\% on GSM8K, 4\% on HumanEval. Furthermore, results from bias benchmark datasets highlight TFP's promising performance in improving fairness while also boosting prediction accuracy by 15\%.

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

↑