paper-with-me

Papers

Data Selection for Language Models via Importance Resampling

2023-02-06 · NeurIPS 2023 11 · Sang Michael Xie, Shibani Santurkar, Tengyu Ma, Percy Liang

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.

📄 PDF Abstract BibTeX arXiv:2302.03169

Code (1)

p-lambda/dsir 공식 구현 pytorch

Similar Papers 제목 키워드 기반

Investigating the Impact of Data Selection Strategies on Language Model Performance

2025-01-07 · Jiayao Gu, Liting Chen, Yihong Li

Data selection is critical for enhancing the performance of language models, particularly when aligning training datasets with a desired target distribution. This study explores the effects of different data selection me…

Language ModelingLanguage Modelling

Improving Performance of a Group of Classification Algorithms Using Resampling and Feature Selection

2014-03-08 · Mehdi Naseriparsa, Amir-masoud Bidgoli, Touraj Varaee

In recent years the importance of finding a meaningful pattern from huge datasets has become more challenging. Data miners try to adopt innovative methods to face this problem by applying feature selection methods. In th…

Classificationfeature selectionGeneral Classification

Meta-Learning for Resampling Recommendation Systems

2017-06-06 · Smolyakov Dmitry, Alexander Korotin, Pavel Erofeev, Artem Papanov 외

One possible approach to tackle the class imbalance in classification tasks is to resample a training dataset, i.e., to drop some of its elements or to synthesize new ones. There exist several widely-used resampling meth…

ClassificationGeneral ClassificationMeta-LearningRecommendation Systems

Importance Resampling for Off-policy Prediction

2019-06-11 · NeurIPS 2019 12 · Matthew Schlegel, Wesley Chung, Daniel Graves, Jian Qian 외

Importance sampling (IS) is a common reweighting strategy for off-policy prediction in reinforcement learning. While it is consistent and unbiased, it can result in high variance updates to the weights for the value func…

PredictionReinforcement Learning

Sentence-Level Resampling for Named Entity Recognition

2022-07-01 · NAACL 2022 7 · Xiaochen Wang, Yue Wang

As a fundamental task in natural language processing, named entity recognition (NER) aims to locate and classify named entities in unstructured text. However, named entities are always the minority among all tokens in th…

Data Augmentationnamed-entity-recognitionNamed Entity RecognitionNamed Entity Recognition (NER)+2