arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.01968cs.CLcs.AI
收藏

令牌清理:面向LLM监督微调的细粒度数据选择

Token Cleaning: Fine-Grained Data Selection for LLM Supervised Fine-Tuning

Jinlong Pang, Na Di, Zhaowei Zhu, Jiaheng Wei, Hao Cheng, Chen Qian, Yang Liu

AI总结:

本文提出了一种令牌清洗方法,通过评估令牌质量并过滤无信息令牌,提升LLM监督微调的下游性能。

摘要:

近期研究表明,在大型语言模型(LLM)的监督微调(SFT)中,数据质量比数量更为重要。虽然大多数数据清洗方法集中在过滤整个样本上,但样本中单个令牌的质量可能会显著变化。在预训练之后,即使在高质量样本中,一些与任务无关的模式或短语也可能冗余、无信息,甚至有害。继续对这些模式进行微调可能提供有限的好处,甚至会降低下游任务的性能。在本文中,我们从噪声标签的角度研究令牌质量,并提出了一种通用的令牌清洗流程用于SFT任务。我们的方法过滤掉无信息的令牌,同时保留那些承载关键任务特定信息的令牌。具体来说,我们首先通过检查模型更新对每个令牌的影响来评估令牌质量,然后应用基于阈值的分离。令牌影响可以通过单次通过固定参考模型或通过自演化参考模型迭代测量。通过误差上界分析两种方法的优缺点。大量实验表明,我们的框架能够一致地提升下游性能。代码可在https://github.com/UCSC-REAL/TokenCleaning上获得。

英文摘要:

Recent studies show that in supervised fine-tuning (SFT) of large language models (LLMs), data quality matters more than quantity. While most data cleaning methods concentrate on filtering entire samples, the quality of individual tokens within a sample can vary significantly. After pre-training, even in high-quality samples, patterns or phrases that are not task-related can be redundant, uninformative, or even harmful. Continuing to fine-tune on these patterns may offer limited benefit and even degrade downstream task performance. In this paper, we investigate token quality from a noisy-label perspective and propose a generic token cleaning pipeline for SFT tasks. Our method filters out uninformative tokens while preserving those carrying key task-specific information. Specifically, we first evaluate token quality by examining the influence of model updates on each token, then apply a threshold-based separation. The token influence can be measured in a single pass with a fixed reference model or iteratively with self-evolving reference models. The benefits and limitations of both methods are analyzed theoretically by error upper bounds. Extensive experiments show that our framework consistently improves downstream performance. Code is available at https://github.com/UCSC-REAL/TokenCleaning.

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

↑