NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

daVinci-LLM:Towards the Science of Pretraining

Yiwei Qin, Yixiu Liu, Tiantian Mi, Muhang Xie, Zhen Huang, Weiye Si, Pengrui Lu, Siyuan Feng, Xia Wu, Liming Liu, Ye Luo, Jinlong Hou, Qipeng Guo, Yu Qiao, Pengfei LiuarXiv 2026

TL;DR

The paper introduces daVinci-LLM, a 3B-parameter model trained on 8 trillion tokens, designed to systematically demystify the black box of LLM pretraining. By open-sourcing their entire recipe—including 200+ controlled ablations, data pipelines, and intermediate checkpoints—the authors demonstrate that data processing depth and adaptive curricula can enable a 3B model to match or exceed the performance of 7B models on complex reasoning tasks.

What Problem Does This Paper Address?

While post-training alignment (like SFT and RLHF) gets a lot of attention, the pretraining phase ultimately dictates a model's capability ceiling. Unfortunately, pretraining research suffers from a structural paradox: commercial labs have the compute to do it but keep their recipes secret, while academic institutions have the research freedom but lack the infrastructure to run large-scale systematic experiments.

As a result, the community lacks a rigorous, scientific understanding of pretraining dynamics, data mixture optimization, and data processing methodologies. daVinci-LLM bridges this gap by combining industrial-scale compute with a fully open academic paradigm to study how data quality and training curricula impact model capabilities.

Methods

The authors trained a 3B-parameter transformer model from scratch using a Qwen2-based architecture (36 layers, Grouped-Query Attention, SwiGLU activation, and RoPE positional embeddings).

Their core innovations lie in data orchestration and curriculum design:

  • Data Darwinism Framework: Instead of relying on simple heuristic filtering, they categorize and process data using a principled 10-level taxonomy (L0 to L9). This ranges from basic rule-based filtering (L2) to lightweight model filtering (L3), generative refinement via LLMs to remove structural noise (L4), and cognitive completion to make implicit reasoning explicit (L5).
  • Two-Stage Adaptive Curriculum:
    • Stage 1 (6T tokens): Focused on broad foundation building using web-scale text, progressively shifting compute toward code and science as general knowledge saturated.
  • Stage 2 (2T tokens): Focused on reasoning enhancement by introducing high-density, structured question-answering (QA) data alongside refined scientific and code text.

Datasets

The model was pretrained on a massive ~7.58T token pool categorized into four domains:

  • General: Nemotron-CC-v1.
  • Code: Self-crawled GitHub repositories, Nemotron-Pretraining-Code-v1 (both synthetic and non-synthetic), and TxT360-Stack-Exchange.
  • Science/Math: MegaMath (Web, Pro, and Synth-Code variants), Nemotron-CC-Math-v1, and a newly curated dataset called Darwin-Science (processed from raw PDFs of textbooks and academic papers using vision-language models for high-fidelity OCR).
  • QA: A mixture of synthetic QA datasets including Nemotron-CC-v1 Synthetic QA, MegaMath-QA-RS, and domain-specific QA pairs generated from the Darwin-Science corpus.

Evaluation was conducted across 19 standard benchmarks spanning general knowledge (MMLU, HellaSwag), coding (HumanEval, MBPP), and math/STEM reasoning (GSM8K, MATH, GPQA).

Key Insights and Ideas

  • Processing Depth Outweighs Volume Scaling: Moving up the Data Darwinism ladder (e.g., from L3 filtering to L4 generative refinement) yields massive performance leaps. Structural purification of data acts as a more economical scaling mechanism in later training phases than simply adding more raw data volume.
  • Format Shifts Break Saturation Walls: Adjusting domain proportions (e.g., more code, less web text) works well early on, but eventually hits diminishing returns. To sustain capability growth, models must transition from raw text to structured formats like QA pairs, which provide explicit problem-solving scaffolds.
  • Stability Requires Staged Intensification: Pouring high-density QA data into a model too early causes representation collapse. The authors found that a model must first establish a stable, balanced representational base (Stage 2-1) before it can tolerate aggressive QA intensification (Stage 2-2).
  • Evaluation Protocols Can Lie: The choice between perplexity-based (multiple-choice likelihood) and generative-based (free-form generation) evaluation can completely flip model rankings. Models with heavy QA pretraining excel dramatically in generative settings, proving that evaluation strategies must align with intended downstream use cases.

Key Results

daVinci-LLM-3B achieved an overall average score of 51.72, effectively matching the performance of the 7B-parameter OLMo-3-7B model despite having less than half the parameters. It significantly outperformed scale-matched baselines like LLaMa-3.2-3B (37.58).

Model             | Parameter | Avg General | Avg Code | Avg Science | Overall Avg
----------------------------------------------------------------------------------
LLaMa-3.2-3B      |    3B     |    51.08    |   32.40  |    22.45    |    37.58
Qwen-2.5-3B       |    3B     |    55.16    |   56.13  |    44.65    |    51.44
OLMo-3-7B         |    7B     |    55.13    |   54.42  |    45.98    |    51.65
daVinci-LLM-3B    |    3B     |    52.96    |   55.99  |    48.30    |    51.72

The model's reasoning capabilities were particularly striking: it scored 62.80 on the MATH benchmark, outperforming OLMo-3-7B (39.60) by over 23 points and Qwen-2.5-3B (37.20) by over 25 points.

Limitations and Future Work

While the paper provides a comprehensive blueprint for pretraining, the authors note a few boundaries:

  • The study is primarily anchored at the 3B parameter scale; verifying how these exact data dynamics and curriculum thresholds scale to 70B+ models remains future work.
  • The generation of high-level synthetic data (L4 and L5) relies on closed or massive frontier models, creating a dependency on the quality and biases of those teacher models.
  • The upper echelons of the Data Darwinism framework (L6-L9, involving multi-agent ecosystems and world simulations) were not explored in this work.

Summary updated

BibTeX
@misc{qin2026davinci,
  author = {Yiwei Qin and Yixiu Liu and Tiantian Mi and Muhang Xie and Zhen Huang and Weiye Si and Pengrui Lu and Siyuan Feng and Xia Wu and Liming Liu and Ye Luo and Jinlong Hou and Qipeng Guo and Yu Qiao and Pengfei Liu},
  title = {{daVinci-LLM:Towards the Science of Pretraining}},
  year = {2026},
  eprint = {2603.27164},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.27164},
}
Figure