Manuscript Offprint

arXiv:2609.04102

Compressing Streaming Neural Audio Encoders via Latent-Space Distillation

Prasanth Yadla, Mohammad Samragh, Dongseong Hwang, Mingbin Xu, Yuanyuan Zhang, Chung-Cheng Chiu, Yongqiang Wang, Yuan Liu, Zhen Huang, Xiaodan Zhuang

Prasanth Yadla*, Mohammad Samragh Razighi*, Dongseong Hwang, Mingbin Xu, Yuanyuan Zhang, Chung-Cheng Chiu, Yongqiang Wang†, Yuan Liu†, Zhen Huang, Xiaodan Zhuang

Apple

  • These authors contributed equally to this work. † Work done while at Apple.

System-wide Dictation on Apple devices runs entirely on-device, and the speech it transcribes reaches the foundation model through a tokenizer: an encoder that maps short windows of waveform onto the representation the language model reads. Because that model is sparsely activated under Instruction-Following Pruning, only a small subset of its experts occupies DRAM at any time, so the always-on tokenizer competes for the same memory, and its parameter count bears directly on power and latency. In this work we study how to compress such a tokenizer by distillation, taking as the supervision target neither the discrete token nor the output distribution but the pre-quantizer latent the model actually consumes—the last representation the two token interfaces share. We train only the student encoder to regress the teacher's per-frame latent under a squared-error objective, with a single affine layer absorbing the teacher–student width mismatch. Because the target precedes both the quantizer and the language-model bridge, one recipe covers both token interfaces we support, and applies both to a tokenizer pretrained alone and to one jointly trained with a language model. At 2.8×2.8\times compression the distilled student stays within 1.9% relative WER of its teacher on five of six teacher–student pairs without any fine-tuning, and improves on an independently trained tokenizer of identical capacity by 3.9% relative.

Keywords: audio tokenization, knowledge distillation, speech recognition, on-device inference

Correspondence: Prasanth Yadla: p_yadla@apple.com; Mohammad Samragh Razighi: m_samraghrazighi@apple.com

Date: September 4, 2026

1 Introduction

The encoder described in this work serves as the audio front end for system-wide Dictation, running entirely on-device alongside AFM 3 Core Advanced, Apple's most powerful on-device foundation model (Apple, 2026). AFM 3 Core Advanced is natively multimodal and built on a sparse (Fedus et al., 2022), 20-billion-parameter architecture that uses Instruction-Following Pruning (IFP) (Hou et al., 2025): the full model is stored in flash memory (NAND) (Alizadeh et al., 2024), and for each prompt a lightweight dense block selects a small subset of input-dependent routed experts. These are reselected periodically during generation, and they combine with a set of always-active shared experts to form a dense model in DRAM, with 1–4 billion parameters active at a time. Because only this small active set occupies DRAM at any time, an always-on audio front end must run within a tight memory and latency budget that it shares with the model it feeds. Compressing the tokenizer enough to fit that budget is the problem we address.

Multimodal foundation models that accept speech do so through an audio tokenizer: a learned encoder that converts a waveform into the sequence of representations the language model consumes. In our system the tokenizer emits one vector per 80ms of audio, and the language model either looks up a quantized index of that vector in its embedding table or reads a projected version of the vector directly. Either way, the tokenizer is on the critical path for every audio frame the model ever sees.

On-device deployment imposes a fixed memory and compute budget that the tokenizer and the language model must share. Because the tokenizer encoder is resident for every frame, its footprint constrains the admissible size of the language model directly, and therefore bounds attainable system quality prior to any consideration of recognition accuracy. Our full-size encoder consumes a share of this budget that leaves the language model underprovisioned. We consequently seek an encoder at least 2.8× smaller in parameters at no cost in recognition accuracy.

Training a compact encoder from scratch is feasible but forgoes available structure. The teacher encoder already realizes a well-conditioned acoustic representation, and, where the tokenizer has been trained jointly with a language model, that language model has adapted to the geometry of the representation. Both considerations favor distillation (Hinton et al., 2015) over independent training.

The appropriate distillation target, however, is less immediate for a tokenizer than for a conventional encoder, for two reasons. First, the encoder output reaches the language model only through a quantizer or a bridge projection, so discrete token identities are related to the latent by a non-differentiable arg min; supervising them would require a relaxation or a straight-through estimator (van den Oord et al., 2018; Mentzer et al., 2023). Second, during tokenizer training the encoder is attached to two auxiliary decoders, one for transcription and one for audio reconstruction, whose combined parameter count is comparable to or larger than that of the encoder; supervising their outputs would allocate student capacity to components the on-device tokenizer does not contain. We therefore define the objective on the pre-quantizer latent, the final representation common to both token interfaces and the quantity on which downstream accuracy depends. This target is motivated by construction rather than established by ablation against the alternatives.

Concretely, we train the student encoder alone to regress the teacher's per-frame latent under a squared-error objective, with a single affine layer reconciling the width mismatch between teacher and student. Because the target precedes both the quantizer and the bridge, one recipe applies to either token interface; because it is defined on the encoder, neither decoder is instantiated for the student. We apply the recipe at two points in the teacher's lifecycle: after the tokenizer has been pretrained in isolation, and after it has been jointly trained with a language model.

At 2.8× compression or more, the resulting student degrades by at most 1.9% relative WER against its teacher on five of six teacher–student pairs, in each case without student fine-tuning. These pairs span both distillation stages, both token interfaces, and three joint models. The student additionally outperforms an independently trained tokenizer of identical capacity by 3.9% relative, which separates the contribution of the teacher signal from that of the reduced architecture. Throughout we report relative differences, since an absolute WER gap is uninterpretable without its baseline. Controlled comparisons then characterize the influence of distillation stage, token interface, and teacher quality on student accuracy.

References (63)