Where to Begin: Efficient Pretraining via Sub-network Selection and Distillation

Arjun Krishnakumar, Rhea Sanjay Sukthanker, Hannan Javed Mahadik, Gabriela Kadlecová, Vladyslav Moroshan, Timur Carstensen, Frank Hutter, Aaron Klein · Submission to ICLR 2026 · Rejected

TL;DR

Training Small Language Models (SLMs) from scratch is computationally expensive, yet most pruning and warm-starting methods from large teachers remain proprietary or complex. This paper introduces an open-source framework that combines constrained evolutionary search to extract optimal sub-networks from pretrained LLMs with knowledge distillation, achieving up to 5.16× FLOP savings at a 10B-token scale and 1.26× savings at 100B tokens compared to baseline models trained from scratch.

What Problem Does This Paper Address?

While SLMs (under ~3B parameters) are ideal for edge devices and resource-constrained environments, pretraining them from scratch still demands significant compute—often costing hundreds of thousands of dollars. While frontier labs (e.g., Llama 3.2, Gemma 2/3) increasingly warm-start smaller models by pruning and distilling larger open-weight models, their exact recipes and codebases are largely closed-source. Existing academic approaches often rely on expensive supernetwork pretraining, dynamic batching, or joint mask-weight optimization that conflates data selection with architecture discovery. This paper systematically explores and open-sources a reproducible recipe for extracting and pretraining sub-networks from larger teacher LLMs.

Methods

The authors introduce Whittle, an open-source library built on LitGPT, and propose a three-stage pipeline:

  1. Structured Search Spaces: The authors define four search granularities for carving out sub-networks from a dense teacher model (varying layers, embedding dimensions, attention heads, head dimensions, and intermediate MLP dimensions):
  2. Coarse Uniform: Standardized dimensions across all layers, taking the first $n$ components.
  3. Coarse Layer-wise: Allows per-layer architectural variation using the first $n$ components.
  4. Fine-grained Uniform: Uniform sizes across layers, but components are sampled arbitrarily (e.g., specific heads or neuron subsets).
  5. Fine-grained Layer-wise: Arbitrary neuron/head subsets chosen independently per layer.
  6. Constrained Evolutionary Search: Within specified parameter count bins, candidate sub-networks are initialized directly from the teacher's weights and evaluated via zero-shot validation perplexity. Genetic algorithms (mutation and crossover) explore promising architectures under parameter-budget rejection constraints without updating weights.
  7. Pretraining & Knowledge Distillation: The selected sub-network architecture is extracted, converted into a standalone dense model initialized with the corresponding teacher weights, and pretrained using next-token cross-entropy and forward-KL knowledge distillation (evaluated with full logits vs. top-$k$ logit truncation).

Datasets

  • Search & Validation: WikiText test set is used to score sub-network candidates via zero-shot perplexity during evolutionary search.
  • Pretraining Data: Nemotron-CC, a high-quality pretraining dataset derived from Common Crawl, used for pretraining runs across 2B, 10B, and 100B token budgets.
  • Downstream Evaluation: Zero-shot and few-shot evaluation across multiple standard benchmarks via the lm-evaluation-harness, including COPA, OpenBookQA, Lambada (OpenAI), Winogrande, Social IQA, MMLU / MMLU-cont, CommonsenseQA, PIQA, ARC-Easy, ARC-Challenge, HellaSwag, and BoolQ.

Key Insights and Ideas

  • Granularity scales with model size: For smaller target SLMs (~410M parameters), fine-grained uniform and coarse layer-wise search spaces perform best. However, for larger SLMs (~2.8B parameters), the simplest, least granular space (Coarse Uniform) yields the best performance and search efficiency.
  • Direct perplexity outperforms proxy importance metrics: Using validation perplexity as the fitness metric during architecture search consistently discovers better sub-networks than standard proxy scores, such as weight-magnitude pruning or activation-based importance estimation (e.g., Minitron).
  • Smaller teachers can match or beat larger ones: Extracting and distilling sub-networks from Pythia-6.9B yielded better downstream accuracy and perplexity than extracting from the larger Pythia-12B base model.
  • Sub-network initialization beats random initialization long-term: Even after scaling pretraining to 100 billion tokens, models warm-started from extracted sub-networks maintained lower perplexity and superior downstream task performance compared to training from scratch.

Key Results

  • FLOP Efficiency:
  • At a 10B-token budget, the extracted ~2.8B sub-network achieves the same validation perplexity as a standard Pythia-2.8B baseline with 5.16× fewer FLOPs (accounting for search overhead) and 9.32× fewer FLOPs (pretraining budget alone). The ~410M and ~1B models achieve 1.71× and 1.75× FLOP savings, respectively.
  • At a 100B-token budget, the 2.8B extracted sub-network sustains a 1.26× FLOP reduction (~21% total compute reduction) and attains a lower final perplexity (11.204 vs. 11.397) than a baseline trained from scratch.
  • Downstream Tasks: At 100B tokens, the 2.91B extracted sub-network achieves a 54.05% average downstream accuracy compared to 49.23% for the randomly initialized baseline, showing notable gains on reasoning benchmarks (e.g., +12% on MMLU-cont).

Limitations and Future Work

  • Explosion of Search Spaces: Fine-grained layer-wise evolutionary search scales combinatorially ($N \approx 10^{160000}$ for Pythia-6.9B), making rejection sampling computationally intractable at later epochs.
  • Scope of Models: Experiments primarily focus on the Pythia family; further work is required to explore newer architectures (e.g., hybrid attention, Mixture-of-Experts).
  • Future Directions: The authors outline plans to derive formal scaling laws for sub-network warm-starting and investigate teacher transferability in specialized domains (e.g., evaluating whether multilingual teachers benefit monolingual SLMs).

Summary updated

BibTeX
@misc{krishnakumar2025where,
  author = {Arjun Krishnakumar and Rhea Sanjay Sukthanker and Hannan Javed Mahadik and Gabriela Kadlecová and Vladyslav Moroshan and Timur Carstensen and Frank Hutter and Aaron Klein},
  title = {{Where to Begin: Efficient Pretraining via Sub-network Selection and Distillation}},
  year = {2025},
  eprint = {2510.07227},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.07227},
}
Figure