Where to Begin: Efficient Pretraining via Subnetwork Selection and Distillation

Arjun Krishnakumar, Rhea Sanjay Sukthanker, Hannan Javed Mahadik, Gabriela Kadlecová, Vladyslav Moroshan, Timur Carstensen, Frank Hutter, Aaron Klein · DOI

Introduction

Pretraining Small Language Models (SLMs) from scratch is prohibitively expensive for most researchers, creating a "compute tax" that limits accessibility to modern AI. While Large Language Models (LLMs) dominate the spotlight, SLMs are critical for deployment on edge devices and mobile applications. This paper introduces Whittle, an open-source framework designed to "carve out" optimal subnetworks from large pretrained models, which are then refined via knowledge distillation.

Methodology: The Whittle Framework

The authors propose a three-step pipeline to bridge the gap between high-performance LLMs and efficient SLMs.

Instead of starting with random weights, the student model is initialized with a subset of weights from a larger, pretrained teacher (e.g., Pythia 6.9B). To determine the optimal architecture—balancing layers, heads, and embedding dimensions—the framework employs a Bin-Constrained Evolutionary Search.

Search spaces and evolutionary search process used in Whittle to identify optimal SLM architectures.

The search explores four distinct spaces, ranging from "Coarse Uniform" (identical configurations across layers) to "Fine-grained Layer-wise" (unique neuron-level selection per layer). Candidates are evaluated based on validation perplexity, which the authors found to be a more reliable guide than common heuristics like weight magnitude.

2. Pretraining and Knowledge Distillation

Once the subnetwork is extracted, it undergoes refinement. The "evo-subnet" initialization provides a significant head start over random initialization or simple random subnetwork extraction.

Comparison of initialization strategies and the knowledge distillation setup, including top-k logit matching.

To accelerate convergence, the student is trained using Top-k Logit Distillation. In this setup, the student model attempts to match the teacher's probability distribution specifically for the most likely tokens, focusing the learning signal on the most informative parts of the output space.

Key Results

The Whittle framework demonstrates substantial efficiency gains across various scales:

  • Compute Efficiency: For a 10B token budget, a 2.8B parameter model achieved the same validation perplexity as a standard Pythia baseline while requiring 5.16× fewer FLOPs.
  • Performance Gains: The 2.8B "Supernet-init" model reached an average downstream accuracy of 47.41%, outperforming the standard Pythia-2.8B (40.55%) on the same budget.
  • Initialization Impact: Starting with structured weights allows a subnetwork to reach baseline performance in a fraction of the time required for a randomly initialized model.

Insights and Future Directions

A notable finding was that the "fit" between teacher and student architecture often matters more than the teacher's absolute size; in some tests, subnetworks from a 6.9B model outperformed those from a 12B model.

While the current results are promising up to 100B tokens, future research is needed to explore how these gains scale toward the trillion-token regimes typical of state-of-the-art models. Additionally, investigating "zero-shot" architecture selection could further reduce the overhead of the evolutionary search phase.

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 Subnetwork Selection and Distillation}},
  year = {2025},
  eprint = {2510.07227},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.07227},
}
Figure