mlsanityData to 7 Oct 2026

Analyzing Similarity Metrics for Data Selection for Language Model Pretraining

arXiv 2502.02494 ↗First posted 4 Feb 2025cs.LG cs.CLcited by 3

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 52 of its 67 references that are in the map. First posted on arXiv 4 Feb 2025.

Builds on

52 of 67 references.

References · 52

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  5. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  6. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  7. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
  8. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
  9. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
  10. 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
  11. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
  12. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
38 more
  1. 2020mT5: A massively multilingual pre-trained text-to-text transformercited by 1,813
  2. 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,718
  3. 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,538
  4. 2021Unsupervised Dense Information Retrieval with Contrastive Learningcited by 1,203
  5. 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,104
  6. 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 960
  7. 2017RACE: Large-scale ReAding Comprehension Dataset From Examinationscited by 851
  8. 2022MTEB: Massive Text Embedding Benchmarkcited by 623
  9. 2020Estimating Training Data Influence by Tracing Gradient Descentcited by 565
  10. 2023Textbooks Are All You Needcited by 561
  11. 2022Beyond neural scaling laws: beating power law scaling via data pruningcited by 519
  12. 2024LESS: Selecting Influential Data for Targeted Instruction Tuningcited by 514
  13. 2018Universal Sentence Encodercited by 485
  14. 2023Weak-to-Strong Generalization: Eliciting Strong Capabilities With Weak Supervisioncited by 445
  15. 2024LLM2Vec: Large Language Models Are Secretly Powerful Text Encoderscited by 396
  16. 2023DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretrainingcited by 385
  17. 2018WiC: the Word-in-Context Dataset for Evaluating Context-Sensitive Meaning Representationscited by 370
  18. 2022Text and Code Embeddings by Contrastive Pre-Trainingcited by 358
  19. 2023Data Selection for Language Models via Importance Resamplingcited by 322
  20. 2023SemDeDup: Data-efficient learning at web-scale through semantic deduplicationcited by 295
  21. 2022UL2: Unifying Language Learning Paradigmscited by 292
  22. 2024A Survey on Data Selection for Language Modelscited by 230
  23. 2022Generating Training Data with Language Models: Towards Zero-Shot Language Understandingcited by 199
  24. 2018ReCoRD: Bridging the Gap between Human and Machine Commonsense Reading Comprehensioncited by 198
  25. 2020Theoretical Analysis of Self-Training with Deep Networks on Unlabeled Datacited by 179
  26. 2023D4: Improving LLM Pretraining via Document De-Duplication and Diversificationcited by 146
  27. 2024DsDm: Model-Aware Dataset Selection with Datamodelscited by 103
  28. 2023Scaling Sentence Embeddings with Large Language Modelscited by 83
  29. 2024Gecko: Versatile Text Embeddings Distilled from Large Language Modelscited by 81
  30. 2024Scaling Laws for Data Filtering -- Data Curation cannot be Compute Agnosticcited by 74
  31. 2022Data Curation Alone Can Stabilize In-context Learningcited by 58
  32. 2021A Theory of Label Propagation for Subpopulation Shiftcited by 48
  33. 2024Automatic Data Curation for Self-Supervised Learning: A Clustering-Based Approachcited by 48
  34. 2024Adaptive Data Optimization: Dynamic Sample Selection with Scaling Lawscited by 46
  35. 2024Effective pruning of web-scale datasets based on complexity of concept clusterscited by 34
  36. 2021Scaling Hierarchical Agglomerative Clustering to Billion-sized Datasetscited by 11
  37. 2022Losses over Labels: Weakly Supervised Learning via Direct Loss Constructioncited by 11
  38. 2022Label Propagation with Weak Supervisioncited by 9

50 most cited of 52 All 52 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 3.

3 papers.