arXiv:2611.04081cs.LGNov 2026

Manuscript Offprint

arXiv:2611.04081

RAPID: Increasing Efficiency of Internal Distillation via Randomized Methods

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 a technique used to transfer the expertise of large teacher models into small, efficient student models. Recent advances have integrated the distillation of internal activations, more directly training students to learn similar representations as the teacher. One of the core challenges of internal distillation is the dimensional incompatibility between the student and teacher internal representations. Existing methods add learnable matrices to project the larger teacher activations into the smaller representation space of the student. This is a notable point of inefficiency, as learning additional parameters for the projectors increases training costs, only for them to be discarded immediately after training. We introduce RAPID (RAndomized Projection for Internal Distillation) a novel distillation methodology which eliminates the wasteful projection learning by leveraging randomized methods. RAPID utilizes an efficient transform construction based on the Johnson-Lindenstrauss lemma to compress the teacher representations into the student embedding space with strong theoretical guarantees of structural preservation. RAPID also employs a combination of exponential moving average (EMA) and homoscedastic uncertainty weighting in a novel multi-objective function designed for internal distillation. Our experiments in post-training for reasoning demonstrate that RAPID increases training efficiency by as much as 21.1% while maintaining performance comparable to existing methods.

1 INTRODUCTION

Recent open-weight large language models (LLMs), including Kimi K3 Team et al. (2026), DeepSeek V4 Pro DeepSeek-AI (2026), Qwen 3.8 Max Qwen Team (2026), and GLM 5.3 GLM-5-Team et al. (2026), have approached proprietary frontier performance across scientific reasoning, software engineering, multimodal understanding, long-context processing, and tool use. However, their substantial deployment costs make them impractical for many applications, particularly in healthcare, law, finance, cybersecurity, and autonomous vehicles, where compute, latency, and privacy constraints are stringent. Open weights enable these capabilities to be transferred into smaller, more efficient models.

Knowledge distillation transfers knowledge from a large teacher model to a smaller student. It has been used to pretrain models in Google's Gemma 2 and 3 families Team et al. (2024; 2025) and Meta's Llama 3.2 family Meta (2024). It is also effective for post-training Guo et al. (2025), improving reasoning, planning, and tool-use capabilities in lightweight agentic systems.

However, text-based distillation is highly sensitive to the quality and diversity of teacher trajectories and their alignment with the student's pretraining distribution Gudibande et al. (2023). Internal distillation supplements these trajectories with teacher activations, providing richer supervision and encouraging the student to process inputs similarly to the teacher.

Existing internal-distillation methods learn projections between teacher and student representation spaces before computing losses such as mean-squared error (MSE) or KL divergence Liang et al. (2023); Jiao et al. (2020); Sun et al. (2019). These methods were developed when large models

(a) RAPID multi-objective losses

Figure

(b) Dynamic objective weighting

Figure

Figure 1: Overview of the RAPID internal distillation methodology. Figure 1(a) demonstrates how teacher activations are passed through a randomized projector to produce a representation in the student's space. The multi-objective function is comprised of the language modeling loss, KL divergence on the output logits (zT,zSz_T, z_S), and the representation loss on the internal activations (aT,aSa_T, a_S). Figure 1(b) shows how RAPID's dynamic weighting scheme allows the student to prioritize different forms of knowledge at different times while preventing any singular objective from dominating or being ignored.

contained roughly 150 million parameters, over four orders of magnitude fewer than today's approximately two-trillion-parameter frontier models. As shown in Table 2, at modern scales, learned projectors may require training billions of additional parameters beyond the student itself. Consequently, the cost of internal distillation remains a major barrier to further exploration and adoption.

To efficiently distill the capabilities of large modern LLMs into smaller, more efficient models, we turn to randomization. Randomization has an extensive history in accelerating numerical computation and machine learning Mahoney (2011); Martinsson & Tropp (2021), including specifically in dimension projection and information compression Drinea et al. (2004); Johnson & Lindenstrauss (1984); Achlioptas (2003). We also draw from work in dynamic weighting and multi-objective optimization Li et al. (2021); Wang et al. (2023a); Kendall et al. (2018) to formulate a novel objective function designed for the noisy signals of internal distillation.

Our core contributions are:

  • In Section 4 we introduce RAPID (RAndomized Projections for Internal Distillation), a novel methodology for conducting internal distillation which eliminates the need for training projection matrices by replacing them with randomized matrices and leverages a novel dynamic multi-objective loss function

  • In Sections 6 and 7.3 we demonstrate that RAPID achieves task performance comparable to existing methods while improving parameter efficiency by as much as 8.1% in the residual-only distillation scheme, and up to 21.1% with an expanded set of distilled activations

  • In Section 7.1 we detail how RAPID enforces a separation of responsibilities between projection and representation learning, and Section 7.2 demonstrates that RAPID produces similar or improved representational alignment with the teacher