potentialpaper

Rewriting Pre-Training Data Boosts LLM Performance in Math and Code

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 18:44 UTC · 78ee8c043547 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,37 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "45btPYgSSX"
- }
- ],
- "title": "Rewriting Pre-Training Data Boosts LLM Performance in Math and Code",
- "authors": [
- "Kazuki Fujii",
- "Yukito Tajima",
- "Sakae Mizuki",
- "Masaki Kawamura",
- "Hinari Shimada",
- "Taihei Shiotani",
- "Koshiro Saito",
- "Masanari Oi",
- "Taishi Nakamura",
- "Takumi Okamoto",
- "Shigeki Ishida",
- "Kakeru Hattori",
- "Youmi Ma",
- "Hiroya Takamura",
- "Rio Yokota",
- "Jun Sakuma",
- "Naoaki Okazaki"
- ],
- "abstract": "The performance of large language models (LLMs) in program synthesis and mathematical reasoning is fundamentally limited by the quality of their pre-training corpora. \nWe introduce two openly licensed pre-training datasets, released under the Llama 3.3 Community License, that significantly enhance LLM performance by systematically rewriting public data. SwallowCode ($\\approx$16.1 billion tokens) refines Python snippets from The-Stack-v2 through a novel four-stage pipeline: syntax validation, pylint-based style filtering, and a two-stage LLM rewriting process that enforces style conformity and transforms snippets into self-contained, algorithmically efficient examples. Unlike prior methods that rely on exclusionary filtering or limited transformations, our transform-and-retain approach refines low-quality code, maximizing data utility.\nSwallowMath ($\\approx$2.3 billion tokens) enhances Finemath-4+ by removing boilerplate, restoring context, and reformatting solutions into concise, step-by-step explanations. Within a fixed 50 billion token training budget, continual pre-training of Llama-3.1-8B with SwallowCode boosts pass@1 by +17.0 on HumanEval and +16.1 on HumanEval+ compared to Stack-Edu, surpassing the baseline model's code generation capabilities. Similarly, substituting SwallowMath yields +12.4 accuracy on GSM8K and +7.6 on MATH. Ablation studies confirm that each pipeline stage contributes incrementally, with rewriting yielding the largest gains.\nBy releasing datasets, prompts, checkpoints, and pipeline code, we ensure reproducibility and provide a transferable transform-and-retain methodology that can be adapted to other base models and LLM rewriting setups.",
- "year": 2026,
- "venue": "ICLR 2026",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "df479355-0004-4570-8986-69edbaaa8afc"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,27 @@
+{
+ "title": "Rewriting Pre-Training Data Boosts LLM Performance in Math and Code",
+ "authors": [
+ "Kazuki Fujii",
+ "Yukito Tajima",
+ "Sakae Mizuki",
+ "Masaki Kawamura",
+ "Hinari Shimada",
+ "Taihei Shiotani",
+ "Koshiro Saito",
+ "Masanari Oi",
+ "Taishi Nakamura",
+ "Takumi Okamoto",
+ "Shigeki Ishida",
+ "Kakeru Hattori",
+ "Youmi Ma",
+ "Hiroya Takamura",
+ "Rio Yokota",
+ "Jun Sakuma",
+ "Naoaki Okazaki"
+ ],
+ "abstract": "The performance of large language models (LLMs) in program synthesis and mathematical reasoning is fundamentally limited by the quality of their pre-training corpora. \nWe introduce two openly licensed pre-training datasets, released under the Llama 3.3 Community License, that significantly enhance LLM performance by systematically rewriting public data. SwallowCode ($\\approx$16.1 billion tokens) refines Python snippets from The-Stack-v2 through a novel four-stage pipeline: syntax validation, pylint-based style filtering, and a two-stage LLM rewriting process that enforces style conformity and transforms snippets into self-contained, algorithmically efficient examples. Unlike prior methods that rely on exclusionary filtering or limited transformations, our transform-and-retain approach refines low-quality code, maximizing data utility.\nSwallowMath ($\\approx$2.3 billion tokens) enhances Finemath-4+ by removing boilerplate, restoring context, and reformatting solutions into concise, step-by-step explanations. Within a fixed 50 billion token training budget, continual pre-training of Llama-3.1-8B with SwallowCode boosts pass@1 by +17.0 on HumanEval and +16.1 on HumanEval+ compared to Stack-Edu, surpassing the baseline model's code generation capabilities. Similarly, substituting SwallowMath yields +12.4 accuracy on GSM8K and +7.6 on MATH. Ablation studies confirm that each pipeline stage contributes incrementally, with rewriting yielding the largest gains.\nBy releasing datasets, prompts, checkpoints, and pipeline code, we ensure reproducibility and provide a transferable transform-and-retain methodology that can be adapted to other base models and LLM rewriting setups.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}