2024-10-27 · 进阶 · 机器学习

ZIP-FIT: Embedding-Free Data Selection via Compression-Based Alignment

ZIP-FIT 通过利用 gzip 压缩直接测量潜在训练数据与目标任务分布之间的对齐程度,实现了一种无嵌入的数据选择框架,显著提升了语言模型在特定任务上的性能。

更新于 2026-07-30。作者:Elyas Obbad、Iddah Mlauzi、Brando Miranda、Rylan Schaeffer、Kamal Obbad、Suhana Bedi、Sanmi Koyejo。

中文摘要

数据选择对于优化特定任务上的语言模型(LM)性能至关重要,然而,大多数现有方法未能有效地考虑目标任务分布。当前的方法要么完全忽略特定任务的需求,要么依赖于无法捕捉像自动形式化或代码生成等任务所需微妙模式的近似。考虑目标分布的方法通常依赖于简单、有时是嘈杂的表示,如哈希n-gram特征,这可能导致冲突并引入噪声。我们引入了ZIP-FIT,这是一个数据选择框架,它使用gzip压缩来直接衡量潜在训练数据与目标任务分布之间的对齐程度。在自动形式化和Python代码生成的广泛评估中,ZIP-FIT显著优于领先的基线方法如DSIR和D4。在ZIP-FIT选定的数据上训练的模型达到其最低交叉熵损失的速度比基线快85.1%,这表明更好的任务对齐能带来更有效的学习。此外,ZIP-FIT的选区速度比DSIR快65.8%,比D4快一个数量级。值得注意的是,ZIP-FIT表明,更小但更对齐的数据集往往优于更大但不太针对特定任务的那些,这表明少量高质量的数据比大量低质量的数据更优越。我们的结果表明,任务感知数据选择对于高效的领域适应至关重要,而压缩提供了一种衡量任务对齐的原则性方法。通过表明有针对性的数据选择可以显著提高特定任务的性能,我们的研究为数据质量、任务对齐和模型学习效率之间的关系提供了新的见解。

英文摘要

Data selection is crucial for optimizing language model (LM) performance on specific tasks, yet most existing methods fail to effectively consider the target task distribution. Current approaches either ignore task-specific requirements entirely or rely on approximations that fail to capture the nuanced patterns needed for tasks like Autoformalization or code generation. Methods that do consider the target distribution often rely on simplistic, sometimes noisy, representations, like hashed n-gram features, which can lead to collisions and introduce noise. We introduce ZIP-FIT, a data selection framework that uses gzip compression to directly measure alignment between potential training data and the target task distribution. In extensive evaluations on Autoformalization and Python code generation, ZIP-FIT significantly outperforms leading baselines like DSIR and D4. Models trained on ZIP-FIT-selected data achieve their lowest cross-entropy loss up to 85.1\% faster than baselines, demonstrating that better task alignment leads to more efficient learning. In addition, ZIP-FIT performs selection up to 65.8\% faster than DSIR and two orders of magnitude faster than D4. Notably, ZIP-FIT shows that smaller, well-aligned datasets often outperform larger but less targeted ones, demonstrating that a small amount of higher quality data is superior to a large amount of lower quality data. Our results imply that task-aware data selection is crucial for efficient domain adaptation, and that compression offers a principled way to measure task alignment. By showing that targeted data selection can dramatically improve task-specific performance, our work provides new insights into the relationship between data quality, task alignment, and model learning efficiency.

解读

一句话总结

ZIP-FIT 通过利用 gzip 压缩直接测量潜在训练数据与目标任务分布之间的对齐程度,实现了一种无嵌入的数据选择框架,显著提升了语言模型在特定任务上的性能。

问题1:这篇论文想要解决什么具体问题?

• 问题背景:数据选择对于优化特定任务上的语言模型性能至关重要,但现有方法往往未能有效地考虑目标任务的分布。 • 现有方案不足:现有方法要么完全忽略特定任务的要求,要么依赖于无法捕捉所需复杂模式的近似方法,如哈希 n-gram 特征,这可能导致冲突和引入噪声。 • 研究目标:提出 ZIP-FIT,一种使用 gzip 压缩直接测量潜在训练数据与目标任务分布对齐程度的数据选择框架。

问题2:论文的核心创新点是什么?

• 技术创新:ZIP-FIT 利用 gzip 压缩作为对齐度量,提供了一种无嵌入的数据选择方法。 • 方法改进:ZIP-FIT 通过计算正常压缩距离 (NCD) 来评估数据与目标任务的对齐程度。 • 优势:ZIP-FIT 能够捕捉与目标任务相关的语法和结构模式,从而实现更精确的数据选择。

问题3:实验结果如何验证了方法的有效性?

• 关键实验:在 Autoformalization 和 Python 代码生成任务上对 ZIP-FIT 进行了广泛的评估。 • 性能提升:ZIP-FIT 在 Autoformalization 和 Python 代码生成任务上显著优于基线方法,例如 DSIR 和 D4,实现了高达 85.1% 的收敛速度提升。 • 对比结果:ZIP-FIT 在数据选择方面比 DSIR 快 65.8%,比 D4 快两个数量级。

问题4:这个研究的实际应用价值是什么?

• 应用场景:ZIP-FIT 可用于优化各种语言模型的特定任务,如代码生成和自然语言处理。 • 实施建议:ZIP-FIT 可用于选择高质量的训练数据,以加速模型训练并提高性能。 • 局限与展望:ZIP-FIT 在复杂任务中可能无法完全捕捉语义关系,未来研究可探索结合压缩技术和神经嵌入的混合模型。

来源

机器可读索引:llms.txt