评估嵌入模型在语言模型预训练数据筛选中的适用性,发现通用模型表现不佳。
Analyzing Similarity Metrics for Data Selection for Language Model Pretraining
- 设计新框架评估相似性度量在预训练数据筛选中的有效性。
- 通用嵌入模型表现差,甚至不如用相同语料训练的简单嵌入。
- 适合关注高质量数据筛选与嵌入模型设计的研究者。
衡量训练样本间的相似性对构建高质量、多样化的语言模型预训练数据集至关重要。然而,相似性通常使用为检索等任务训练的通用嵌入模型计算,这些模型是否适用于预训练数据筛选尚未被深入研究。本文提出一个新框架,评估相似性度量在预训练数据整理中的适用性:首先,考察距离是否反映不同样本在预训练损失上的泛化能力;其次,用各嵌入模型指导标准多样性数据筛选算法,通过在筛选数据上预训练17亿参数语言模型并评估下游任务性能来衡量其效用;最后,评估嵌入模型区分不同数据源样本的能力。实验基于Pile数据集,在2000亿词上预训练17亿参数模型,结果表明标准通用嵌入模型不适用于该场景,表现甚至劣于从同源语料训练的简单嵌入。本分析为未来专用于预训练数据相似性建模的嵌入设计提供了基础。
原文摘要 · Abstract (English)
Measuring similarity between training examples is critical for curating high-quality and diverse pretraining datasets for language models. However, similarity is typically computed with a generic off-the-shelf embedding model that has been trained for tasks such as retrieval. Whether these embedding-based similarity metrics are well-suited for pretraining data selection remains largely unexplored. In this paper, we propose a new framework to assess the suitability of a similarity metric specifically for data curation in language model pretraining applications. Our framework's first evaluation criterion captures how well distances reflect generalization in pretraining loss between different training examples. Next, we use each embedding model to guide a standard diversity-based data curation algorithm and measure its utility by pretraining a language model on the selected data and evaluating downstream task performance. Finally, we evaluate the capabilities of embeddings to distinguish between examples from different data sources. With these evaluations, we demonstrate that standard off-the-shelf embedding models are not well-suited for the pretraining data curation setting, underperforming even remarkably simple embeddings that are extracted from models trained on the same pretraining corpus. Our experiments are performed on the Pile, for pretraining a 1.7B parameter language model on 200B tokens. We believe our analysis and evaluation framework serves as a foundation for the future design of embeddings that specifically reason about similarity in pretraining datasets.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。