Skip to main content
QUICK REVIEW

[Paper Review] RedPajama: an Open Dataset for Training Large Language Models

Maurice Weber, Daniel Fu|arXiv (Cornell University)|Nov 19, 2024
Natural Language Processing TechniquesComputer Science17 citations
TL;DR

The paper releases RedPajama-V1 (open reproduction of LLaMA training data) and RedPajama-V2 (massive web data with quality signals) to promote transparent, scalable open LLM development, and presents ablations showing how quality signals improve model performance.

ABSTRACT

Large language models are increasingly becoming a cornerstone technology in artificial intelligence, the sciences, and society as a whole, yet the optimal strategies for dataset composition and filtering remain largely elusive. Many of the top-performing models lack transparency in their dataset curation and model development processes, posing an obstacle to the development of fully open language models. In this paper, we identify three core data-related challenges that must be addressed to advance open-source language models. These include (1) transparency in model development, including the data curation process, (2) access to large quantities of high-quality data, and (3) availability of artifacts and metadata for dataset curation and analysis. To address these challenges, we release RedPajama-V1, an open reproduction of the LLaMA training dataset. In addition, we release RedPajama-V2, a massive web-only dataset consisting of raw, unfiltered text data together with quality signals and metadata. Together, the RedPajama datasets comprise over 100 trillion tokens spanning multiple domains and with their quality signals facilitate the filtering of data, aiming to inspire the development of numerous new datasets. To date, these datasets have already been used in the training of strong language models used in production, such as Snowflake Arctic, Salesforce's XGen and AI2's OLMo. To provide insight into the quality of RedPajama, we present a series of analyses and ablation studies with decoder-only language models with up to 1.6B parameters. Our findings demonstrate how quality signals for web data can be effectively leveraged to curate high-quality subsets of the dataset, underscoring the potential of RedPajama to advance the development of transparent and high-performing language models at scale.

Motivation & Objective

  • Demonstrate the need for transparent data curation in open-source LLMs and make datasets publicly available.
  • Provide RedPajama-V1 as an open reproduction of the LLaMA training data and RedPajama-V2 as a large web-only dataset with quality signals.
  • Show how quality signals can be used to curate higher-quality data subsets and improve model performance.
  • Describe the RedPajama-INCITE models trained on the dataset and assess their performance against open baselines.

Proposed method

  • Reproduce the LLaMA training corpus to create RedPajama-V1 with detailed documentation and processing steps.
  • Create RedPajama-V2 by harvesting 84 Common Crawl snapshots (2014–2023) across five languages and attaching 46 quality signals per document.
  • Publish quality signals including natural language, repetitiveness, content-based, ML heuristics, and deduplication metrics.
  • Train REDPajama-INCITE models (3B and 7B) on Summit with custom engineering to address architecture and FP16 limitations.
  • Conduct ablations on decoder-only models (468M and 1.6B) to evaluate how quality signals affect downstream NLP benchmarks.
  • Compare RedPajama variants to open baselines using aggregated benchmark metrics.
Figure 1: The ecosystem around the RedPajama datasets. RedPajama has provided pretraining data for multiple open-source LLMs, including OpenELM [ 36 ] , OLMo [ 19 ] , Snowflake’s Arctic [ 54 ] and RedPajama-INCITE. SlimPajama is a cleaned and deduplicated version of RedPajama-V1.
Figure 1: The ecosystem around the RedPajama datasets. RedPajama has provided pretraining data for multiple open-source LLMs, including OpenELM [ 36 ] , OLMo [ 19 ] , Snowflake’s Arctic [ 54 ] and RedPajama-INCITE. SlimPajama is a cleaned and deduplicated version of RedPajama-V1.

Experimental results

Research questions

  • RQ1How can open LLM datasets be made more transparent and reproducible?
  • RQ2What is the impact of applying various quality signals on web-derived pretraining data quality and model performance?
  • RQ3Can an ultra-large open web dataset (RPv2) enable competitive open LLMs across standard benchmarks?
  • RQ4What are the trade-offs and practical considerations when reproducing large-scale training corpora on commodity or limited HPC resources?

Key findings

  • RPv1 faithfully replicates the LLaMA-trained corpus and provides a reproducible open baseline.
  • RPv2 provides a massive web corpus with 46 per-document quality signals enabling principled filtering and ablations.
  • Quality signals can meaningfully influence model performance on downstream benchmarks in ablations with 468M and 1.6B parameter models.
  • RedPajama-INCITE models trained on Summit show competitive few-shot and zero-shot performance compared to open models of similar sizes, with instruct variants excelling on few-shot tasks.
  • Ablations demonstrate how different quality-filtering rules affect average benchmark performance and perplexity.
  • RPv2’s metadata-rich design facilitates rapid experimentation with high-quality data subsets.
Figure 2: RedPajama-INCITE-Base 3B results on a subset of lm-evaluation-harness. The tasks were selected according to the selection made to evaluate Pythia [ 4 ] and GPT-J [ 59 ]
Figure 2: RedPajama-INCITE-Base 3B results on a subset of lm-evaluation-harness. The tasks were selected according to the selection made to evaluate Pythia [ 4 ] and GPT-J [ 59 ]

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.