Pith. sign in

REVIEW 2 cited by

Data Selection for Language Models via Importance Resampling

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2302.03169 v3 pith:2W6U6JEW submitted 2023-02-06 cs.CL cs.LG

classification cs.CLcs.LG
keywords dataselectiontargetdsirimportancepretrainingresamplingdataset
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Selecting a suitable pretraining dataset is crucial for both general-domain (e.g., GPT-3) and domain-specific (e.g., Codex) language models (LMs). We formalize this problem as selecting a subset of a large raw unlabeled dataset to match a desired target distribution given unlabeled target samples. Due to the scale and dimensionality of the raw text data, existing methods use simple heuristics or require human experts to manually curate data. Instead, we extend the classic importance resampling approach used in low-dimensions for LM data selection. We propose Data Selection with Importance Resampling (DSIR), an efficient and scalable framework that estimates importance weights in a reduced feature space for tractability and selects data with importance resampling according to these weights. We instantiate the DSIR framework with hashed n-gram features for efficiency, enabling the selection of 100M documents from the full Pile dataset in 4.5 hours. To measure whether hashed n-gram features preserve the aspects of the data that are relevant to the target, we define KL reduction, a data metric that measures the proximity between the selected pretraining data and the target on some feature space. Across 8 data selection methods (including expert selection), KL reduction on hashed n-gram features highly correlates with average downstream accuracy (r=0.82). When selecting data for continued pretraining on a specific domain, DSIR performs comparably to expert curation across 8 target distributions. When pretraining general-domain models (target is Wikipedia and books), DSIR improves over random selection and heuristic filtering baselines by 2-2.5% on the GLUE benchmark. Code is available at https://github.com/p-lambda/dsir.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Embryology of a Language Model

    cs.LG 2025-08 conditional novelty 6.0 of 10

    UMAP projections of susceptibility vectors reveal a reproducible 'body plan' in a small transformer, including a newly identified 'spacing fin' that distinguishes tokens by the number of preceding spaces.

  2. Infinity Instruct: Scaling Instruction Selection and Synthesis to Enhance Language Models

    cs.CL 2025-06 conditional novelty 5.0 of 10

    A two-phase pipeline selects and synthesizes 8.9M instruction examples that, after fine-tuning, push open-source LLMs ahead of their official chat-tuned versions on both foundational and conversational benchmarks.

Pith tools