atlas

Research map / Large language models / Language, safety and interpretability

Analyzing Similarity Metrics for Data Selection for Language Model Pretraining

NeurIPS 2025 · Large language models › Language, safety and interpretability · approach: LLM pruning and scaling data · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes an evaluation framework (loss-variance reduction within clusters, diversity-based curation with a 1.7B model on 200B Pile tokens, and source cluster purity) showing off-the-shelf embeddings underperform simple embeddings from small LMs trained on the same corpus.

Problem

Off-the-shelf text embedding models are used to measure similarity for pretraining data curation, but their suitability for this purpose is unexplored and hard to evaluate at pretraining scale.

Approach

A three-part evaluation framework for embeddings in pretraining data curation: (1) variance reduction of pretraining loss within embedding-based clusters, (2) downstream performance of a 1.7B LM trained on diversity-curated subsets, and (3) cluster purity w.r.t. Pile data sources. Specialized embeddings extracted from a small LM trained on the same corpus (LM Token Embeds, LM Output Embeds) are sh

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use diversity-based curation instead of random subset selectionPile pretraining data selection · Pile downstream tasks (Average)average task performance: 51.9 $\pm$ 0.1 -> 53.8 $\pm$ 0.1Helped
Use LM Output Embeds instead of Gecko embeddings for diversity curationPile pretraining data selection · Pile downstream tasks (Average)average task performance: 53.3 $\pm$ 0.3 -> 53.8 $\pm$ 0.1Helped
Use specialized LM embeddings rather than off-the-shelf embeddings for loss-based clusteringPile pretraining loss clustering · Pilevariance reductionHelped
Use LM Token Embeds for diversity curation instead of off-the-shelf embeddingsPile pretraining data selection · Pile downstream tasksaverage task performanceHelped
Increase the number of PCA components before clustering (ablation)Gecko and LM Output Embeds · Pile pretraining loss clusteringvariance reductionHelped
Replace PCA with random projections for dimensionality reduction (ablation)Gecko and LM Output Embeds · Pile pretraining loss clusteringvariance reductionHurt
Replace PCA with random projections for dimensionality reduction (ablation)BERT, USE, and LM Token Embeds · Pile pretraining loss clusteringvariance reductionHurt

Surprising findings

Limitations

Experimental setup

Datasets: The Pile

Benchmarks: ARC BoolQ SuperGLUE HellaSwag MultiRC OpenBookQA PiQA RACE ReCoRD RTE Story Cloze WiC

Metrics: variance reduction cluster purity top-1 accuracy F1

Baselines: Universal Sentence Encoder Gecko BERT Random subset selection

Builds on: RAC (reciprocal agglomerative clustering) UL2

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy