arXiv:2610.10854cs.LGOct 2026

Manuscript Offprint

arXiv:2610.10854

KDFP: A first-principles approach to knowledge distillation in large language models

Ryan Swift, Konstantinos Psounis

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Knowledge distillation is an established technique for improving the capabilities of small, efficient student models by training them with the representations of larger, more capable teacher models. Much of the recent work in the distillation of large language models (LLMs) has focused on distilling abilities learned during post-training, such as instruction following, chain-of-thought reasoning, and tool usage. This has left a large research gap in general knowledge distillation for LLMs, which is essential for developing efficient and private systems suitable for deployment on edge devices. We take a first-principles approach, evaluating previous lessons from prior works and conducting new explorations to develop a distillation methodology suitable for modern LLMs. We present KDFP, a novel methodology for white-box general knowledge distillation in LLMs. We demonstrate that KDFP outperforms existing methods by 1.6% – 4.9% across 9 benchmarks while increasing training efficiency by up to 99.1% through ephemeral parameter reduction.

1 Introduction

The machine learning landscape has undergone radical changes since knowledge distillation (KD) was introduced by Buciluă et al. (2006) and formulated for neural networks by Hinton et al. (2015). The current era is dominated by the large language models (LLMs) and the transformer architecture (Vaswani et al., 2017), with parameter counts in the hundreds of billions (Meta AI, 2025; Team et al., 2025c; Grattafiori et al., 2024).

Skills such as instruction-following, reasoning, and tool usage have been critical to improving the practical utility of LLMs in applications such as agentic systems. As such, much of the recent work in KD has been focused on distilling these particular abilities (Yang et al., 2024; Zhu et al., 2024; Xu et al., 2024). Comparatively less work has been done to advance general knowledge distillation.

Despite the gap in research activity, it has never been clearer just how important general KD is to the advancement of LLMs. LLMs can be compressed with KD to create highly capable and privacy-preserving on-device systems for resource-constrained platforms such as smartphones and single-board computers. Distilled LLMs small enough to run on a workstation have surpassed other models with 15x as many parameters Team et al. (2025b).

We draw upon the lessons of previous works while also exploring novel formulations to determine how general KD can be improved. We work to unite the findings of previous works such as TED (Liang et al., 2023b) and TinyBERT (Jiao et al., 2020) with what we now know about the science of LLMs from the findings of mechanistic interpretability (Elhage et al., 2021; 2022; Lindsey et al., 2024).

The core contribution of this paper is a novel methodology for general knowledge distillation in transformers, which we refer to as Knowledge Distillation from First Principles (KDFP). We compare KDFP against TED (Liang et al., 2023b)– the most recent work in white-box

Figure

Figure 1: Diagram of KDFP. The attention, MLP, and residual outputs are distilled in each block, as well as embeddings and model outputs. A single projection matrix is learned during training to project student activations into the teacher's embedding space.

general KD (Xu et al., 2024; Zhu et al., 2024)– as well as earlier methods previously surpassed by TED. In Section 7.1 we demonstrate that KDFP outperforms existing methods by 1.6% – 4.9% across 9 benchmarks, and Section 8.1 details an efficiency increase of up to 99.1%. In Section 8.2 we leverage an understanding of the internal mechanisms of LLMs to provide a possible explanation for why TED fails to generalize to modern models and evaluations.

Beyond the KDFP itself, we present 4 additional contributions:

  1. Section 7.1 demonstrates that previously ignored activations are essential for peak student performance

  2. Sections 7.2 and 7.3 illustrate how students may benefit from teachers whose representations are more closely aligned with their own

  3. Section 7.4 shows that increasing training data may decrease student performance

  4. Section 7 indicates that a target distribution mix of 75% teacher and 25% student outperforms existing divergence formulations