atlas

Research map / Large language models / Language, safety and interpretability

Programming Every Example: Lifting Pre-training Data Quality Like Experts at Scale

ICML 2025 · Large language models › Language, safety and interpretability · approach: LLM pruning and scaling data · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes ProX, which trains small (0.3B–1.7B) refining models via SFT on LLM-annotated data to generate executable per-document and per-chunk cleaning programs, improving pre-training corpora quality and continual pre-training efficiency.

Problem

Pre-training corpus quality is improved mainly by fixed human-crafted heuristic rules, which cannot adapt to individual examples, while LLM-based synthesis is costly and hallucination-prone.

Approach

Treat data refinement as a programming task: a small language model, fine-tuned on LLM-annotated doc-program pairs, generates executable function calls (drop_doc, remove_lines, normalize, keep_chunk) for each document and chunk, which a Python executor applies to produce refined corpora.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add chunk-level programming after document-level programming (ablation)ProX-D on RedPajama-V2 · RedPajama-V2, 10-task zero-shotaverage accuracy: 43.5 -> 44.6Helped
Refine RedPajama-V2 with ProX-D+C instead of using raw dataTLM-s pre-training · RedPajama-V2, 10-task zero-shotaverage accuracy: 42.1 -> 44.6Helped
Use ProX-D+C instead of FineWeb rule-based filteringTLM-s pre-training · RedPajama-V2, 10-task zero-shotaverage accuracy: 42.8 -> 44.6Helped
Refine OpenWebMath with ProX instead of using original dataCodeLlama-7B continual pre-training · OpenWebMathaverage accuracy: 43.2 -> 49.4Helped
Refine OpenWebMath with ProX instead of using original dataLlama-2-7B continual pre-training · OpenWebMathaverage accuracy: 42.8 -> 46.1Helped
Refine OpenWebMath with ProX instead of using original dataMistral-7B continual pre-training · OpenWebMathaverage accuracy: 54.8 -> 59.2Helped
Refine OpenWebMath with ProX instead of using original datalm continual pre-training · OpenWebMathaverage accuracy: 21.5 -> 25.7Helped
Apply rule-based filtering to OpenWebMath instead of continual pre-training on the original corpuslm · OpenWebMathaverage accuracy: 21.5 -> 18.4Hurt
Use FineWeb-ProX curation instead of FineWeb-Edu selectionTLM-s pre-training · FineWeb, 10-task zero-shotaverage accuracy: 45.2 -> 45.2No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: RedPajama-V2 C4 FineWeb FineWeb-Edu DCLM-baseline-1.0 OpenWebMath

Benchmarks: ARC-C ARC-E CSQA HellaSwag MMLU OBQA PIQA SIQA WinoGrande SciQ LogiQA GSM8K

Metrics: zero-shot normalized accuracy few-shot accuracy F1 average accuracy

Baselines: Gopher rules C4 rules FineWeb rules DSIR DsDm MATES QuRating TinyLlama-1.1B-3T SheadLlama InstructionLM-1.3B cosmo-1.8B Rho-1

Builds on: FineWeb-Edu MATES Rho-1 llama-factory vLLM

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy