atlas

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

Task-Adaptive Pretrained Language Models via Clustered-Importance Sampling

ICLR 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.

Builds task-specialist LMs by resampling a large generalist web corpus (RedPajama-v2) using cluster histograms estimated from a small specialist dataset (CRISP, clustered importance sampling), compared with classifier, DoGE, and cross-entropy difference selection.

Problem

Training specialist language models when only limited in-domain data is available, by adjusting the training distribution of a large generalist dataset.

Approach

Cluster the generalist dataset with hierarchical k-means on SBERT embeddings (up to 16.7M clusters), estimate the cluster histogram on the small specialist set, and sample pretraining batches by drawing clusters from that histogram and then examples uniformly within the cluster, scaling importance sampling to millions of clusters.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
resample generalist data by matching its cluster histogram to specialist data1.3B pretraining · ARC-Eaccuracy: 58.4 -> 71.2Helped
resample generalist data by matching its cluster histogram to specialist data1.3B pretraining · ARC-Caccuracy: 27.4 -> 38.6Helped
resample generalist data by matching its cluster histogram to specialist data1.3B pretraining · MMLUaccuracy: 30.0 -> 33.4Helped
resample generalist data by matching its cluster histogram to specialist data1.3B pretraining · PubMed, 14m specific tokensperplexity: 6.34 -> 5.11Helped
resample generalist data by matching its cluster histogram to specialist data1.3B pretraining · StackExchange, 15m specific tokensperplexity: 8.41 -> 6.67Helped
resample generalist data by matching its cluster histogram to specialist data1.3B pretraining · Wikipedia, 14m specific tokensperplexity: 8.53 -> 7.66Helped
use SBERT instead of LSI for clustering (ablation)CRISP · ARC-E, 64 clustersaccuracy: 65.0 -> 65.2Helped
use SBERT instead of LSI for clustering (ablation)CRISP · ARC-C, 262k clustersaccuracy: 36.4 -> 38.6Helped
increase the number of clusters to 16.7m (ablation)CRISP · MMLUaccuracyHurt
reduce the amount of generalist data available for sampling (ablation)CRISP · MMLUaccuracy: 22.5 on averageHurt
reduce the specialist dataset used to estimate cluster frequencies (ablation)CRISP · MMLUaccuracyHurt
continue generic pretraining with 10% CRISP training (ablation)MMLU · accuracyaccuracy: 31.0% -> 32.9%Helped

Surprising findings

Limitations

Experimental setup

Datasets: RedPajama-v2 The Pile PubMed Central The Pile StackExchange The Pile Wikipedia ARC MMLU RewardBench Reasoning

Benchmarks: ARC-Easy ARC-Challenge MMLU RewardBench Reasoning PubMed Central perplexity StackExchange perplexity Wikipedia perplexity

Metrics: perplexity accuracy

Baselines: Base RedPajama-v2 pretraining logistic regression classifier DoGE cross-entropy difference

Builds on: DoGE importance sampling for continued pretraining (Xie et al.) SBERT k-means++

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