Datasets for large language models: a comprehensive survey

Yang Liu, Jiahuan Cao, Chongyu Liu, Kai Ding, Lianwen Jin

Abstract

Large Language Models (LLMs) are often perceived as "black boxes," yet their performance is fundamentally rooted in the data they consume. This paper provides a comprehensive mapping of the LLM dataset landscape, analyzing 303 datasets across the entire lifecycle—from massive pre-training crawls to nuanced preference data used for human alignment. By providing a rigorous taxonomy and statistical analysis, the authors help researchers navigate the 774.5 TB of pre-training text and 700 million instruction/evaluation instances currently circulating in the field.

Introduction

In the pursuit of more powerful models like GPT-4 or LLaMA, research has historically prioritized model architectures and parameter counts. However, datasets serve as the "root system" sustaining these models. The recent explosion in available datasets has created a "data fog," characterized by a lack of systematic organization regarding dataset types, domain orientations, and licensing. This survey addresses these gaps by categorizing the LLM data pipeline into four critical stages: Pre-training Corpora, Instruction Fine-tuning (IFT) Datasets, Preference Datasets, and Evaluation Datasets.

Taxonomy of the LLM Data Pipeline

The authors employ a multi-dimensional collection strategy, manually verifying 303 datasets across 20 dimensions, including license type, size, language, and construction method.

Taxonomy of Large Language Model Datasets, illustrating the four main stages of data development.
  1. Pre-training Corpora: Massive, unlabeled text used to teach models basic language and world knowledge.
  2. Instruction Fine-tuning (IFT) Datasets: Pairs of "instruction-inputs" and "answer-outputs" that teach models how to follow commands.
  3. Preference Datasets: Data used for alignment (e.g., RLHF), where multiple model responses are ranked or scored by humans or other models.
  4. Evaluation Datasets: Benchmarks used to measure a model’s capabilities across various domains.

The Evolution of Dataset Development

The landscape has shifted from "task-centric" construction (e.g., datasets for specific translation tasks) to "stage-centric" construction, where data is specifically designed for a particular phase of the LLM training pipeline.

Timeline of major datasets released between 2007 and 2024 across the four pipeline stages.

As shown in the timeline, there was a massive surge in dataset releases in 2023 following the "ChatGPT moment," reflecting the industry's pivot toward open-source LLM development. Key highlights include:

  • Pre-training: Classics like Common Crawl and C4, alongside high-quality curated sets like RefinedWeb and Dolma.
  • Instruction Tuning: Human-generated sets like Dolly and Aya, and model-constructed sets like Alpaca.
  • Preference: HH-RLHF (Anthropic), Chatbot Arena, and UltraFeedback.
  • Evaluation: Standard benchmarks like MMLU and HumanEval, plus domain-specific tests like LawBench.

The Rise of Synthetic Data

The field is increasingly using "LLMs to train LLMs." Model-constructed datasets (like Alpaca) have become a standard way to generate high-volume instruction data efficiently. However, this trend introduces risks regarding "hallucination" and quality variance that require careful management.

The Cleaning Bottleneck

Effective pre-training requires a sophisticated five-step pipeline: Collection, Filtering, Deduplication, Standardization, and Review. High-quality models like Falcon owe much of their success to aggressive filtering strategies, such as the RefinedWeb pipeline.

Domain and Language Gaps

While general-purpose data is abundant, there is a severe shortage of high-quality data for niche fields like specialized legal domains or mental health. Furthermore, English and Chinese dominate the landscape; despite many datasets being labeled "multilingual," low-resource languages remain significantly underrepresented.

Challenges and Future Directions

The survey identifies several hurdles for the next generation of LLM data:

  • Timeliness: Most pre-training corpora are static. Future research must focus on dynamic updates to prevent models from having outdated world knowledge.
  • Quality Metrics: There is no universal "gold standard" for measuring dataset quality before training. Automated tools for data auditing are critically needed.
  • Legal and Ethical Risks: Issues of data leakage and copyright infringement remain largely unresolved, with many "open" datasets possessing complex partial licenses.
  • Multimodality: This survey focuses on pure text; the burgeoning field of multimodal datasets (image, video, audio) requires its own dedicated systematic review.

The authors have released a curated repository of these resources at Awesome-LLMs-Datasets to support the community.

Summary updated

BibTeX
@article{liu2025datasets,
  author = {Yang Liu and Jiahuan Cao and Chongyu Liu and Kai Ding and Lianwen Jin},
  title = {{Datasets for large language models: a comprehensive survey}},
  journal = {Artif. Intell. Rev.},
  year = {2025},
  doi = {10.1007/s10462-025-11403-7},
}
Figure