TL;DR
Distillation-based Layer Dropping (DLD) is an end-to-end framework that combines knowledge distillation with layer dropping to create dynamic speech networks for resource-constrained edge devices. By aligning a dynamic student model's latent embeddings with a static teacher model's representations, DLD eliminates the performance drops typically seen at extreme layer-dropping rates while cutting training time by 33.3%.
What Problem Does This Paper Address?
Deploying large speech foundation models on edge devices (like smartwatches or IoT hardware) is challenging due to strict constraints on computational power and battery life. Furthermore, these resources fluctuate dynamically based on concurrent device tasks.
To adapt to these changing environments, researchers use Layer Dropping (LD)—skipping certain network layers on the fly to save compute. However, existing LD methods suffer from a double-edged sword: they exhibit severe performance degradation when too many layers are skipped (high dropping), and ironically, they fail to match the accuracy of standard static models even when all layers are active (no dropping). This paper introduces a framework to fix this performance-computation trade-off bottleneck.
Methods
The authors propose Distillation-based Layer Dropping (DLD), an end-to-end framework that infuses Knowledge Distillation (KD) into the layer-dropping pipeline.
As illustrated in Figure 1, the architecture consists of two main components:
- A Reference Model ($M_{ref}$): A frozen, fully-trained static encoder that utilizes all its layers to generate high-quality latent embeddings ($l_{ref}$).
- A Dynamic Student Model ($M_{DS}$): A student network equipped with a gated mechanism. During training, each encoder block is processed or skipped based on a Bernoulli distribution ($p_d = 0.5$).
To ensure the student model retains high-fidelity speech representations regardless of how many layers are dynamically dropped, the framework minimizes the Kullback–Leibler (KL) divergence between the student's and teacher's latent embeddings. This embedding alignment loss ($L_{KLD}$) is optimized jointly with a standard Connectionist Temporal Classification loss ($L_{CTC}$) for text decoding.
Datasets
The framework was evaluated on three widely recognized public speech benchmarks:
- LibriSpeech (1000-hour and 100-hour splits): Used for training and evaluating automatic speech recognition (ASR) performance on clean read English speech.
- TEDLIUM v3: A 452-hour corpus of English TED talks used to test ASR performance on more natural, spoken audio.
- Fluent Speech Commands (FSC): A spoken language understanding (SLU) dataset used to evaluate how well the framework generalizes to downstream tasks beyond basic speech-to-text.
Key Insights and Ideas
- Eliminating the "No-Dropping" Penalty: Standard dynamic models often underperform when fully utilized because the training process over-regularizes them to accommodate dropped states. DLD's embedding alignment anchors the full student model to the optimized teacher, reclaiming this lost performance.
- Latent Space Anchoring: Forcing variable-depth student configurations to map to a fixed teacher latent space acts as a powerful regularizer. This prevents chaotic representation shifts when layers are aggressively skipped.
- Accelerated Convergence: Aligning embeddings acts as a shortcut for learning. The student model learns robust features much faster than models trained from scratch with random dropping, significantly lowering training overhead.
Key Results
The authors validated DLD across two prominent architectures: Conformer and WavLM.
- Conformer Performance: On LibriSpeech and TEDLIUM v3, DLD consistently outperformed baseline random dropping methods ($RD_{sc}$ and $RD_{LD}$). As shown in Table 1, DLD reduced the Word Error Rate (WER) by 2.25% in the no-dropping scenario ($n_{DS}=12$) and maintained superior accuracy even when dropping down to just 2 layers.
- WavLM and Efficiency: When applied to a WavLM foundation model, DLD achieved up to a 4.01x inference speedup at the lowest layer setting while substantially outperforming baseline models in accuracy (detailed in Table 2).
- Training Time Reduction: DLD achieved better accuracy at 50 epochs than baseline models did after 150+ epochs, translating to a 33.3% reduction in training time (Table 3).
- Downstream Generalization: When tested on the Fluent Speech Commands dataset for spoken language understanding, the DLD-trained Conformer closely tracked the reference model's accuracy, demonstrating robust generalization capabilities across varying layer depths ($n_{DS}$).
Limitations and Future Work
The authors note that baseline layer-dropping methods suffer heavily when paired with shallow feature extractors, as they fail to provide rich semantic representations before the encoder stage. While DLD successfully mitigates this issue, the interaction between feature extractor depth and dynamic encoders warrants deeper exploration. Additionally, the current framework relies on a uniform random dropping probability ($p_d=0.5$); future work could explore combining distillation with data-driven or learnable layer-skipping policies to further optimize the performance-computation trade-off.
Summary updated