English

SoftDedup: an Efficient Data Reweighting Method for Speeding Up Language Model Pre-training

Computation and Language 2024-07-10 v1 Artificial Intelligence

Abstract

The effectiveness of large language models (LLMs) is often hindered by duplicated data in their extensive pre-training datasets. Current approaches primarily focus on detecting and removing duplicates, which risks the loss of valuable information and neglects the varying degrees of duplication. To address this, we propose a soft deduplication method that maintains dataset integrity while selectively reducing the sampling weight of data with high commonness. Central to our approach is the concept of "data commonness", a metric we introduce to quantify the degree of duplication by measuring the occurrence probabilities of samples using an n-gram model. Empirical analysis shows that this method significantly improves training efficiency, achieving comparable perplexity scores with at least a 26% reduction in required training steps. Additionally, it enhances average few-shot downstream accuracy by 1.77% when trained for an equivalent duration. Importantly, this approach consistently improves performance, even on rigorously deduplicated datasets, indicating its potential to complement existing methods and become a standard pre-training process for LLMs.

Keywords

Cite

@article{arxiv.2407.06654,
  title  = {SoftDedup: an Efficient Data Reweighting Method for Speeding Up Language Model Pre-training},
  author = {Nan He and Weichen Xiong and Hanwen Liu and Yi Liao and Lei Ding and Kai Zhang and Guohua Tang and Xiao Han and Wei Yang},
  journal= {arXiv preprint arXiv:2407.06654},
  year   = {2024}
}

Comments

12 pages, 7 figures

R2 v1 2026-06-28T17:34:01.248Z