Abstract
This paper introduces a training framework for Automatic Speech Recognition (ASR) that produces a single "super-model" capable of being dynamically pruned to various sizes at runtime. By combining intermediate Connectionist Temporal Classification (CTC) losses with stochastic depth (LayerDrop), we train a 24-layer Transformer that can be instantly reduced to 12 layers without performance degradation or the need for fine-tuning. Our method achieves a 2.5x speedup on GPUs while maintaining Word Error Rate (WER) comparable to models trained from scratch at smaller scales. Analysis using Singular Vector Canonical Correlation Analysis (SVCCA) confirms that our training recipe induces high layer similarity, creating a "safety zone" for on-demand pruning.
Introduction
Deploying state-of-the-art ASR models across a diverse spectrum of devices—from high-end workstations to budget mobile units—presents a significant logistical challenge. Traditionally, supporting multiple hardware tiers requires maintaining several distinct models or performing computationally expensive fine-tuning after pruning a large model. This paper addresses the challenge of on-demand layer pruning: creating a single model that can be "cut down to size" instantly based on real-time power or thermal constraints, without sacrificing significant accuracy.
Methodology
The proposed training recipe aims to make network layers redundant and interchangeable, allowing for "zero-shot" pruning.
Intermediate CTC and Stochastic Depth
Two primary techniques are employed:
- Intermediate CTC: Auxiliary CTC losses are attached to intermediate layers (e.g., the 6th and 12th layers). This forces early stages of the network to learn independent speech representations rather than merely serving as feature extractors for the final layer.
- Stochastic Depth: During training, layers are randomly skipped. This prevents the model from developing brittle dependencies on specific layers, ensuring robustness when those layers are removed during inference.
Layer Similarity Analysis
To investigate the underlying mechanism, we utilize Singular Vector Canonical Correlation Analysis (SVCCA) to visualize layer similarity. As shown in Figure 1, the combination of intermediate CTC and stochastic depth significantly increases the similarity between layers following the intermediate loss point. This redundancy allows the model to maintain performance even when layers are dropped, as subsequent layers perform functionally similar operations.
Experimental Setup
The approach was evaluated on three standard ASR benchmarks: WSJ (81 hours), AISHELL-1 (170 hours), and TED-LIUM2 (207 hours). Implementation was performed using the ESPnet toolkit with 80-dimensional log-mel features.
Results and Discussion
Our findings indicate that the "pruning-aware" 24-layer model suffers no performance penalty compared to a standard baseline while offering unprecedented flexibility.
Performance and Efficiency
A 24-layer model pruned to 12 layers achieved a Word Error Rate (WER) nearly identical to a 12-layer model trained from scratch. This reduction in depth translated to a 2.5x speedup on GPUs (improving Real-Time Factor from 0.005 to 0.002) and significant gains on CPUs.
Pruning Strategy Comparison
As illustrated in Figure 2, the proposed iterative search consistently outperforms basic sub-model extraction. The intermediate CTC provides a "natural" exit point that is far more effective than random layer deletion.
Conclusion
This work demonstrates that intermediate CTC losses, when paired with stochastic training, enable the creation of highly flexible ASR models. While current research focuses on depth pruning, future work will explore pruning layer width and weight sparsity. Additionally, refining the balance between full-model performance and sub-model distillation remains an open area for optimization.
Summary updated