Not All Documents Are What You Need for Extracting Instruction Tuning Data
Not on the map. Why?
Abstract (arXiv)
Instruction tuning improves the performance of large language models (LLMs), but it heavily relies on high-quality training data. Recently, LLMs have been used to synthesize instruction data using seed question-answer (QA) pairs. However, these synthesized instructions often lack diversity and tend to be similar to the input seeds, limiting their applicability in real-world scenarios. To address this, we propose extracting instruction tuning data from web corpora that contain rich and diverse knowledge. A naive solution is to retrieve domain-specific documents and extract all QA pairs from them, but this faces two key challenges: (1) extracting all QA pairs using LLMs is prohibitively expensive, and (2) many extracted QA pairs may be irrelevant to the downstream tasks, potentially degrading model performance. To tackle these issues, we introduce EQUAL, an effective and scalable data extraction framework that iteratively alternates between document selection and high-quality QA pair extraction to enhance instruction tuning. EQUAL first clusters the document corpus based on embeddings derived from contrastive learning, then uses a multi-armed bandit strategy to efficiently identify clusters that are likely to contain valuable QA pairs. This iterative approach significantly reduces computational cost while boosting model performance. Experiments on AutoMathText and StackOverflow across four downstream tasks show that EQUAL reduces computational costs by 5-10x and improves accuracy by 2.5 percent on LLaMA-3.1-8B and Mistral-7B
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 42 of its 58 references that are in the map. First posted on arXiv 18 May 2025.
Builds on
42 of 58 references.
References · 42
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2020Supervised Contrastive Learningcited by 2,829
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
30 more
- 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,125
- 2023ChatGPT Outperforms Crowd-Workers for Text-Annotation Taskscited by 870
- 2023The RefinedWeb Dataset for Falcon LLM: Outperforming Curated Corpora with Web Data, and Web Data Onlycited by 763
- 2023WizardMath: Empowering Mathematical Reasoning for Large Language Models via Reinforced Evol-Instructcited by 625
- 2024LESS: Selecting Influential Data for Targeted Instruction Tuningcited by 532
- 2024Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Researchcited by 483
- 2022Unnatural Instructions: Tuning Language Models with (Almost) No Human Laborcited by 397
- 2024Magpie: Alignment Data Synthesis from Scratch by Prompting Aligned LLMs with Nothingcited by 346
- 2023Data Selection for Language Models via Importance Resamplingcited by 329
- 2023Studying Large Language Model Generalization with Influence Functionscited by 326
- 2023Principle-Driven Self-Alignment of Language Models from Scratch with Minimal Human Supervisioncited by 318
- 2023SemDeDup: Data-efficient learning at web-scale through semantic deduplicationcited by 303
- 2023Large Language Model as Attributed Training Data Generator: A Tale of Diversity and Biascited by 232
- 2021GPT3Mix: Leveraging Large-scale Language Models for Text Augmentationcited by 187
- 2024QuRating: Selecting High-Quality Data for Training Language Modelscited by 157
- 2023Self-Alignment with Instruction Backtranslationcited by 151
- 2024MAmmoTH2: Scaling Instructions from the Webcited by 145
- 2024Superfiltering: Weak-to-Strong Data Filtering for Fast Instruction-Tuningcited by 138
- 2024Rho-1: Not All Tokens Are What You Needcited by 133
- 2024MATES: Model-Aware Data Selection for Efficient Pretraining with Data Influence Modelscited by 100
- 2024Synthetic Data (Almost) from Scratch: Generalized Instruction Tuning for Language Modelscited by 99
- 2024Self-Distillation Bridges Distribution Gap in Language Model Fine-Tuningcited by 96
- 2024AI-Assisted Generation of Difficult Math Questionscited by 37
- 2019Bootstrapping Upper Confidence Boundcited by 36
- 2024Human-Instruction-Free LLM Self-Alignment with Limited Samplescited by 25
- 2024Unleashing LLM Reasoning Capability via Scalable Question Synthesis from Scratchcited by 24
- 2024Step-On-Feet Tuning: Scaling Self-Alignment of LLMs via Bootstrappingcited by 14
- 2024SynthesizRR: Generating Diverse Datasets with Retrieval Augmentationcited by 13
- 2023Self-QA: Unsupervised Knowledge Guided Language Model Alignmentcited by 9
- 2024Forewarned is Forearmed: Leveraging LLMs for Data Synthesis through Failure-Inducing Explorationcited by 7
Built on by
Citing papers per year: 2026: 1.
1 paper.