mlsanityData to 14 Oct 2026

RefineX: Learning to Refine Pre-training Data at Scale from Expert-Guided Programs

arXiv 2507.03253 ↗First posted 4 Jul 2025cs.CL cs.AIcited by 17

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

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  5. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  6. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  7. 2025Qwen3 Technical Reportcited by 8,820
  8. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  9. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  10. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  11. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
  12. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
35 more
  1. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
  2. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
  3. 2021Program Synthesis with Large Language Modelscited by 3,637
  4. 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,568
  5. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
  6. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  7. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,164
  8. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  9. 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,822
  10. 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,202
  11. 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,160
  12. 2017Crowdsourcing Multiple Choice Science Questionscited by 765
  13. 2023PyTorch FSDP: Experiences on Scaling Fully Sharded Data Parallelcited by 660
  14. 2024TinyLlama: An Open-Source Small Language Modelcited by 618
  15. 2022Using DeepSpeed and Megatron to Train Megatron-Turing NLG 530B, A Large-Scale Generative Language Modelcited by 559
  16. 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
  17. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 498
  18. 2024Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Researchcited by 483
  19. 2022MineDojo: Building Open-Ended Embodied Agents with Internet-Scale Knowledgecited by 478
  20. 2023Data Selection for Language Models via Importance Resamplingcited by 329
  21. 2023ToolQA: A Dataset for LLM Question Answering with External Toolscited by 274
  22. 2024A Comprehensive Survey of Hallucination Mitigation Techniques in Large Language Modelscited by 269
  23. 2024Nemotron-CC: Transforming Common Crawl into a Refined Long-Horizon Pretraining Datasetcited by 160
  24. 2024QuRating: Selecting High-Quality Data for Training Language Modelscited by 157
  25. 2024Rho-1: Not All Tokens Are What You Needcited by 133
  26. 2024MATES: Model-Aware Data Selection for Efficient Pretraining with Data Influence Modelscited by 100
  27. 2024MAP-Neo: Highly Capable and Transparent Bilingual Large Language Model Seriescited by 67
  28. 2025Efficient Inference for Large Reasoning Models: A Surveycited by 61
  29. 2025Parameters vs. Context: Fine-Grained Control of Knowledge Reliance in Language Modelscited by 39
  30. 2024Programming Every Example: Lifting Pre-training Data Quality Like Experts at Scalecited by 37
  31. 2025Towards Fully Exploiting LLM Internal States to Enhance Knowledge Boundary Perceptioncited by 27
  32. 2024SLANG: New Concept Comprehension of Large Language Modelscited by 20
  33. 2024Sailor: Open Language Models for South-East Asiacited by 19
  34. 2025DataMan: Data Manager for Pre-training Large Language Modelscited by 17
  35. 2025Craw4LLM: Efficient Web Crawling for LLM Pretrainingcited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 3; 2026: 14.

17 papers.

Sort:

By area:

  1. 2025Focusing by Contrastive Attention: Enhancing VLMs' Visual Reasoningcited by 8
  2. 2026What if Agents Could Imagine? Reinforcing Open-Vocabulary HOI Comprehension through Generationcited by 8
  3. 2026Data Darwinism Part I: Unlocking the Value of Scientific Data for Pre-trainingcited by 7
  4. 2025RePro: Training Language Models to Faithfully Recycle the Web for Pretrainingcited by 6
  5. 2026Gated Differentiable Working Memory for Long-Context Language Modelingcited by 6
  6. 2026Data Science and Technology Towards AGI Part I: Tiered Data Managementcited by 4
  7. 2026Data Darwinism Part II: DataEvolve -- AI can Autonomously Evolve Pretraining Data Curationcited by 3
  8. 2026Generating Pretraining Tokens from Organic Data for Data-Bound Scalingcited by 2
  9. 2026IndusAgent: Reinforcing Open-Vocabulary Industrial Anomaly Detection with Agentic Toolscited by 2
  10. 2025Interaction as Intelligence Part II: Asynchronous Human-Agent Rollout for Long-Horizon Task Trainingcited by 1
  11. 2026HE-SNR: Uncovering Latent Logic via Entropy for Guiding Mid-Training on SWE-benchcited by 1
  12. 2026UltraX: Refining Pre-Training Data at Scale with Adaptive Programmatic Editingcited by 1
5 more
  1. 2026DataOrchestra: Learning to Orchestrate Per-Example Curation of Pretraining Datacited by 1
  2. 2026Where Does the Signal Live? A Web Data Recipe for Medical Encoder Pretrainingcited by 0
  3. 2026ReScraper: Unified Scraping and Cleaning of Web Data for Effective LLM Pretrainingcited by 0
  4. 2026VepAgent: Bridging Causal-Transition via Tool-Augmented Reinforcement Learning for Video Event Predictioncited by 0
  5. 2026X-Ragent: Tool-Augmented Reinforcement Learning for Evidence-Grounded Chest X-Ray Reasoningcited by 0