TL;DR
Researchers have developed a context-aware dynamic pruning method for speech foundation models that adapts the model's architecture on-the-fly during inference. By using "Gate Predictors" that consider audio features, language, and task type, they achieved a ~30% reduction in inference time with negligible impact on accuracy across multilingual and multi-task scenarios.
What Problem Does This Paper Address?
Speech foundation models like Whisper are powerful but computationally massive. Because speech signals are often much longer than text sequences, running these models is expensive and slow.
Traditional model compression (like pruning) usually creates a "one-size-fits-all" smaller model during training. However, the authors argue that a single static structure isn't optimal for every situation. For example, transcribing German (ASR) might require different neural pathways than translating French to Italian (ST). This paper tackles the challenge of making these large models efficient without losing their versatile, multi-task nature by allowing the model to "choose" which parts of itself to use based on the input context.
Methods
The authors built their approach on the Open Whisper-Style Speech Model (OWSM) v3.1, which uses an E-Branchformer encoder and a Transformer decoder.
The core innovation is the Global Gate Predictor. This is a small neural network integrated into the architecture that decides whether to activate or skip specific modules (like Attention or Feed-Forward blocks) dynamically.
Key technical details include:
- Contextual Input: The Gate Predictor doesn't just look at the audio; it also receives "context tokens"—one-hot vectors representing the specific language and task (ASR vs. ST).
- Straight-Through Gumbel-Softmax (SGSE): To make the discrete "on/off" decision-making process differentiable during training, the authors used SGSE. This allows the model to learn which modules are redundant for specific contexts.
- Module-Level Pruning: Instead of pruning individual weights (which is hard for hardware to accelerate), they prune entire functional blocks (FFNs, self-attention, etc.), leading to direct "structured" speedups.
Datasets
The study primarily utilized the Europarl-ST dataset, which contains debates from the European Parliament in nine languages. The authors focused on German, French, and Italian for their main experiments. To test the model's robustness on lower-resource languages, they also evaluated it using the Fleurs dataset (specifically Hungarian and Bulgarian).
Key Insights and Ideas
- ASR is "Decoder-Light": One of the biggest "aha" moments was discovering that Automatic Speech Recognition (ASR) is much more robust to decoder pruning than Speech Translation (ST). The model learned that it could skip a vast majority of decoder modules during ASR and still maintain high accuracy, whereas ST requires the decoder's full power to handle cross-lingual mapping.
- The Emergence of Efficiency: When the encoder was forced to be sparse, it naturally favored certain branches (like the convolution-based
cgMLPbranch) over others. This suggests the model "discovered" that local context is often more critical for speech than global attention in certain layers. - Contextual Specialization: By looking at the "heatmaps" of gate activations, the researchers found that the model develops distinct "fingerprints" for different tasks.
The task-related information (ASR vs. ST) emerged as a more dominant factor for pruning than the specific language being spoken, proving that the network routes information differently depending on the goal.
Key Results
The results demonstrate a significant win for inference efficiency:
- Speedup: For Speech Translation, they reduced inference time by 34.3% with no loss in BLEU score. For ASR, they achieved a 28.6% reduction in time with only a minor (2.8%) increase in Word Error Rate (WER).
- FLOPs Reduction: Pruning the decoder was particularly effective because the decoder runs multiple times (once per generated token). Reducing decoder modules by 50% led to a massive drop in total GFLOPs.
- Interpretability: The dynamic masks provide a window into the model's "thought process," showing exactly which layers are essential for different linguistic tasks.
Limitations and Future Work
While the results are promising, the authors note a few areas for growth:
- Hardware Dependency: The actual wall-clock speedup depends on how well the underlying hardware (GPU/CPU) can handle skipping modules. While module-level pruning is better than weight-level, further optimization is needed for edge devices.
- Granularity: The current method prunes at the module level. Future work could explore finer-grained dynamic pruning (e.g., individual attention heads) to squeeze out even more efficiency.
- Beyond Speech: While this study focused on speech, the "context-aware gate" framework could theoretically be applied to other multi-modal foundation models, such as those combining vision and text.
Summary updated