RefineX: Learning to Refine Pre-training Data at Scale from Expert-Guided Programs
Not on the map. Why?
Abstract (arXiv)
The foundational capabilities of large language models (LLMs) are deeply influenced by the quality of their pre-training corpora. However, enhancing data quality at scale remains a significant challenge, primarily due to the trade-off between refinement effectiveness and processing efficiency. While rule-based filtering remains the dominant paradigm, it typically operates at the document level and lacks the granularity needed to refine specific content within documents. Inspired by emerging work such as ProX, we propose RefineX, a novel framework for large-scale, surgical refinement of pre-training data through programmatic editing tasks. RefineX enables efficient and fine-grained data refinement while reliably preserving the diversity and naturalness of raw text. The core strength of RefineX lies in distilling high-quality, expert-guided end-to-end refinement results into minimal edit-based deletion programs. This high-precision distillation pipeline is used to train an efficient and reliable refine model that can systematically improve every instance in the corpus at scale. We evaluate RefineX across from-scratch pre-training at multiple model scales and find that it consistently outperforms models trained on raw, filtered, or alternatively refined data across diverse downstream tasks. On the 750M model, RefineX yields 2.6%-7.2% average gains on lighteval tasks, and achieves comparable performance using significantly fewer training tokens. Further analysis shows that RefineX reliably enhances text quality with both high efficiency and precision, outperforming prior approaches such as end-to-end generation and Prox-C. These results position RefineX as a scalable, effective, and reliable solution for optimizing pre-training data in modern LLM pipelines.
Key facts. Cited by 17 papers in the map (data through 14 Oct 2026). Builds on 47 of its 62 references that are in the map. First posted on arXiv 4 Jul 2025.
Builds on
47 of 62 references.
References · 47
- 2023GPT-4 Technical Reportcited by 18,396
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2025Qwen3 Technical Reportcited by 8,820
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
35 more
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,568
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,164
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,822
- 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,202
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,160
- 2017Crowdsourcing Multiple Choice Science Questionscited by 765
- 2023PyTorch FSDP: Experiences on Scaling Fully Sharded Data Parallelcited by 660
- 2024TinyLlama: An Open-Source Small Language Modelcited by 618
- 2022Using DeepSpeed and Megatron to Train Megatron-Turing NLG 530B, A Large-Scale Generative Language Modelcited by 559
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 498
- 2024Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Researchcited by 483
- 2022MineDojo: Building Open-Ended Embodied Agents with Internet-Scale Knowledgecited by 478
- 2023Data Selection for Language Models via Importance Resamplingcited by 329
- 2023ToolQA: A Dataset for LLM Question Answering with External Toolscited by 274
- 2024A Comprehensive Survey of Hallucination Mitigation Techniques in Large Language Modelscited by 269
- 2024Nemotron-CC: Transforming Common Crawl into a Refined Long-Horizon Pretraining Datasetcited by 160
- 2024QuRating: Selecting High-Quality Data for Training Language Modelscited by 157
- 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
- 2024MAP-Neo: Highly Capable and Transparent Bilingual Large Language Model Seriescited by 67
- 2025Efficient Inference for Large Reasoning Models: A Surveycited by 61
- 2025Parameters vs. Context: Fine-Grained Control of Knowledge Reliance in Language Modelscited by 39
- 2024Programming Every Example: Lifting Pre-training Data Quality Like Experts at Scalecited by 37
- 2025Towards Fully Exploiting LLM Internal States to Enhance Knowledge Boundary Perceptioncited by 27
- 2024SLANG: New Concept Comprehension of Large Language Modelscited by 20
- 2024Sailor: Open Language Models for South-East Asiacited by 19
- 2025DataMan: Data Manager for Pre-training Large Language Modelscited by 17
- 2025Craw4LLM: Efficient Web Crawling for LLM Pretrainingcited by 6
Built on by
Citing papers per year: 2025: 3; 2026: 14.
17 papers.
Sort:
By area:
- 2025Focusing by Contrastive Attention: Enhancing VLMs' Visual Reasoningcited by 8
- 2026What if Agents Could Imagine? Reinforcing Open-Vocabulary HOI Comprehension through Generationcited by 8
- 2026Data Darwinism Part I: Unlocking the Value of Scientific Data for Pre-trainingcited by 7
- 2025RePro: Training Language Models to Faithfully Recycle the Web for Pretrainingcited by 6
- 2026Gated Differentiable Working Memory for Long-Context Language Modelingcited by 6
- 2026Data Science and Technology Towards AGI Part I: Tiered Data Managementcited by 4
- 2026Data Darwinism Part II: DataEvolve -- AI can Autonomously Evolve Pretraining Data Curationcited by 3
- 2026Generating Pretraining Tokens from Organic Data for Data-Bound Scalingcited by 2
- 2026IndusAgent: Reinforcing Open-Vocabulary Industrial Anomaly Detection with Agentic Toolscited by 2
- 2025Interaction as Intelligence Part II: Asynchronous Human-Agent Rollout for Long-Horizon Task Trainingcited by 1
- 2026HE-SNR: Uncovering Latent Logic via Entropy for Guiding Mid-Training on SWE-benchcited by 1
- 2026UltraX: Refining Pre-Training Data at Scale with Adaptive Programmatic Editingcited by 1
5 more
- 2026DataOrchestra: Learning to Orchestrate Per-Example Curation of Pretraining Datacited by 1
- 2026Where Does the Signal Live? A Web Data Recipe for Medical Encoder Pretrainingcited by 0
- 2026ReScraper: Unified Scraping and Cleaning of Web Data for Effective LLM Pretrainingcited by 0
- 2026VepAgent: Bridging Causal-Transition via Tool-Augmented Reinforcement Learning for Video Event Predictioncited by 0
- 2026X-Ragent: Tool-Augmented Reinforcement Learning for Evidence-Grounded Chest X-Ray Reasoningcited by 0
- 2026X-Ragent: Tool-Augmented Reinforcement Learning for Evidence-Grounded Chest X-Ray Reasoning12 Oct 2026
- 2026VepAgent: Bridging Causal-Transition via Tool-Augmented Reinforcement Learning for Video Event Prediction5 Oct 2026
- 2026ReScraper: Unified Scraping and Cleaning of Web Data for Effective LLM Pretraining28 Sep 2026
- 2026DataOrchestra: Learning to Orchestrate Per-Example Curation of Pretraining Data27 Jul 2026
- 2026UltraX: Refining Pre-Training Data at Scale with Adaptive Programmatic Editing9 Jul 2026
- 2026Where Does the Signal Live? A Web Data Recipe for Medical Encoder Pretraining20 Jun 2026
- 2026IndusAgent: Reinforcing Open-Vocabulary Industrial Anomaly Detection with Agentic Tools20 May 2026
- 2026Generating Pretraining Tokens from Organic Data for Data-Bound Scaling18 May 2026
- 2026Data Darwinism Part II: DataEvolve -- AI can Autonomously Evolve Pretraining Data Curation15 Mar 2026
- 2026What if Agents Could Imagine? Reinforcing Open-Vocabulary HOI Comprehension through Generation12 Feb 2026
- 2026Data Science and Technology Towards AGI Part I: Tiered Data Management9 Feb 2026
- 2026Data Darwinism Part I: Unlocking the Value of Scientific Data for Pre-training8 Feb 2026
5 more
- 2026HE-SNR: Uncovering Latent Logic via Entropy for Guiding Mid-Training on SWE-bench28 Jan 2026
- 2026Gated Differentiable Working Memory for Long-Context Language Modeling19 Jan 2026
- 2025Interaction as Intelligence Part II: Asynchronous Human-Agent Rollout for Long-Horizon Task Training31 Oct 2025
- 2025RePro: Training Language Models to Faithfully Recycle the Web for Pretraining12 Oct 2025
- 2025Focusing by Contrastive Attention: Enhancing VLMs' Visual Reasoning8 Sep 2025
- 2026Data Darwinism Part I: Unlocking the Value of Scientific Data for Pre-trainingcited by 7
- 2025RePro: Training Language Models to Faithfully Recycle the Web for Pretrainingcited by 6
- 2026Gated Differentiable Working Memory for Long-Context Language Modelingcited by 6
- 2026Data Science and Technology Towards AGI Part I: Tiered Data Managementcited by 4
- 2026Data Darwinism Part II: DataEvolve -- AI can Autonomously Evolve Pretraining Data Curationcited by 3
- 2026Generating Pretraining Tokens from Organic Data for Data-Bound Scalingcited by 2
- 2026HE-SNR: Uncovering Latent Logic via Entropy for Guiding Mid-Training on SWE-benchcited by 1
- 2026UltraX: Refining Pre-Training Data at Scale with Adaptive Programmatic Editingcited by 1
- 2026DataOrchestra: Learning to Orchestrate Per-Example Curation of Pretraining Datacited by 1
- 2026Where Does the Signal Live? A Web Data Recipe for Medical Encoder Pretrainingcited by 0
- 2026ReScraper: Unified Scraping and Cleaning of Web Data for Effective LLM Pretrainingcited by 0
- 2026X-Ragent: Tool-Augmented Reinforcement Learning for Evidence-Grounded Chest X-Ray Reasoningcited by 0
- 2026X-Ragent: Tool-Augmented Reinforcement Learning for Evidence-Grounded Chest X-Ray Reasoning12 Oct 2026
- 2026ReScraper: Unified Scraping and Cleaning of Web Data for Effective LLM Pretraining28 Sep 2026
- 2026DataOrchestra: Learning to Orchestrate Per-Example Curation of Pretraining Data27 Jul 2026
- 2026UltraX: Refining Pre-Training Data at Scale with Adaptive Programmatic Editing9 Jul 2026
- 2026Where Does the Signal Live? A Web Data Recipe for Medical Encoder Pretraining20 Jun 2026
- 2026Generating Pretraining Tokens from Organic Data for Data-Bound Scaling18 May 2026
- 2026Data Darwinism Part II: DataEvolve -- AI can Autonomously Evolve Pretraining Data Curation15 Mar 2026
- 2026Data Science and Technology Towards AGI Part I: Tiered Data Management9 Feb 2026
- 2026Data Darwinism Part I: Unlocking the Value of Scientific Data for Pre-training8 Feb 2026
- 2026HE-SNR: Uncovering Latent Logic via Entropy for Guiding Mid-Training on SWE-bench28 Jan 2026
- 2026Gated Differentiable Working Memory for Long-Context Language Modeling19 Jan 2026
- 2025RePro: Training Language Models to Faithfully Recycle the Web for Pretraining12 Oct 2025