CRAFT: 用于适应性训练数据过滤的聚类回归
CRAFT: Clustered Regression for Adaptive Filtering of Training data
AI总结:
CRAFT通过聚类回归方法高效筛选高质量训练数据,提升序列到序列模型微调效果,实验显示其在翻译任务中BLEU分数更高且速度更快。
摘要:
在大规模语料库中选择高质量子集对微调至关重要,本文提出CRAFT方法,通过聚类回归实现训练数据筛选。CRAFT分解源-目标分布并分两阶段选择:首先通过比例预算分配匹配验证集源分布,其次在每个源聚类中选择目标嵌入最小化条件期望距离的训练对。证明比例聚类分配界定了所选与验证分布间的连续KL散度,残差受聚类直径控制。在英印翻译中,从3300万NLLB句子对中筛选数据并微调mBART,CRAFT取得43.34 BLEU分数,优于TSDS,且筛选速度提升40倍。使用TF-IDF向量化,整个流程在CPU上仅需不到一分钟。TAROT达到45.61 BLEU,但CRAFT筛选速度比TAROT快2.8倍。
英文摘要:
Selecting a small, high-quality subset from a large corpus for fine-tuning is increasingly important as corpora grow to tens of millions of datapoints, making full fine-tuning expensive and often unnecessary. We propose CRAFT (Clustered Regression for Adaptive Filtering of Training data), a vectorization-agnostic selection method for training sequence-to-sequence models. CRAFT decomposes the joint source-target distribution and performs a two-stage selection: (i) match the validation source distribution through proportional budget allocation across k-means clusters, and (ii) within each source cluster, select training pairs whose target embeddings minimize a conditional expected distance derived from the validation target distribution. We prove that proportional cluster allocation bounds the continuous KL divergence between selected and validation distributions, with the residual controlled by cluster diameters. We evaluate CRAFT on English-Hindi translation by selecting training data from 33 million NLLB sentence pairs and fine-tuning mBART via LoRA. CRAFT achieves 43.34 BLEU, outperforming TSDS (41.21) by 2.13 points on the same candidate pool and encoder while completing selection over 40 times faster. With TF-IDF vectorization, the entire pipeline completes in under one minute on CPU. TAROT achieves 45.61 BLEU, but CRAFT completes selection in 26.86 seconds versus TAROT's 75.6 seconds, a 2.8 time speedup.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。