NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Early Attentive Sparsification Accelerates Neural Speech Transcription

Zifei Xu, Sayeh Sharify, Hesham Mostafa, Tristan J Webb, Wanzin Yazar, Xin Wang

TL;DR

Transformer-based automatic speech recognition (ASR) models like Whisper process significant temporal redundancy in audio sequences. This paper introduces Early Attentive Sparsification (EAS), a plug-and-play, training-free method that uses self-attention scores to drop 40% to 60% of audio tokens early in the encoder stack. This yields up to a 1.6× inference speedup on Nvidia A100 GPUs while maintaining at least 99% of baseline transcription accuracy.

What Problem Does This Paper Address?

State-of-the-art ASR models (such as OpenAI's Whisper) use encoder-decoder architectures that map raw audio spectrograms into long sequences of audio tokens. Because the encoder processes dense temporal samples across many layers, it accounts for a large portion of computational latency. While token pruning and key-value cache eviction are widely studied for Large Language Models (LLMs), it has been unclear whether similar token-dropping strategies can be applied effectively to continuous, tokenized speech signals without degrading transcription quality or requiring expensive fine-tuning.

Methods

The authors introduce Early Attentive Sparsification (EAS):

  • Heuristic Importance Scoring: At a designated encoder layer $l = i$, the model calculates an importance score for each time token $t$ by averaging post-softmax self-attention scores across attention heads and source positions from the preceding layer $l-1$: $$I^i_t = \frac{1}{HT} \sum_{h, t'} A^{i-1}_{h, t', t}$$
  • Top-$k$ Token Selection: The audio sequence is reduced from length $T$ to $\lfloor(1 - s)T\rceil$, where $s \in [0, 1)$ is the target sparsity, by gathering only the top-$k$ tokens with the highest importance scores. The compressed representation then flows through the remaining encoder and decoder layers.
  • Architecture Search: The authors perform a 2D grid search over the encoder insertion layer $i$ and sparsity $s$ to locate Pareto-optimal configurations that minimize the Real-Time Factor (RTF) subject to no more than a 1% relative degradation in baseline accuracy ($1 - \text{WER}$).
  • Kernel Compatibility: Because token dropping only requires attention weights from a single layer, EAS computes that layer using eager attention while executing all other layers using accelerated kernels like FlashAttention-2 or PyTorch SDPA.

Datasets

  • Librispeech ASR: Evaluated on the clean validation split of public-domain audiobooks. A subset of 300 clean validation examples was determined empirically to provide stable, low-variance accuracy estimates for the architecture grid search without the computational overhead of evaluating the full 2,703-sample set.
  • No new datasets were introduced.

Key Insights and Ideas

  • Redundancy Is Front-Loaded: Optimal configurations across nearly all model sizes select early layers (typically within the first 3 encoder layers) and high sparsity (40–60%). This shows that Whisper quickly aggregates essential acoustic-phonetic information, leaving subsequent layers to process redundant frames.
  • Synergy with Post-Training Compression: Models with lighter decoders or distilled backbones reap greater speed benefits from EAS. For example, EAS achieves a 1.60× speedup on whisper-large-v3-turbo and distil-large-v3, compared to only 1.24× on full whisper-large-v3. Shortening the encoder output sequence lightens the cross-attention workload in the decoder.
  • The "Runaway Generation" Failure Mode: At extreme sparsity levels ($s \ge 0.8$), Whisper fails to emit end-of-sequence tokens and enters repetitive, hallucinated loops (e.g., repeating phrase snippets dozens of times), causing decoder runtime to spike dramatically.
  • Mean Pooling Wins: Comparing multiple aggregation statistics (mean, max, min, geometric mean, and random dropping), simple arithmetic mean pooling of incoming attention weights consistently yielded the lowest Word Error Rate (WER).

Key Results

Experiments evaluated 10 models spanning OpenAI Whisper and HuggingFace Distil-Whisper on an Nvidia A100 GPU:

  • Speedups Under 1% Relative Accuracy Loss:
  • whisper-large-v3-turbo: 1.60× speedup ($s=0.6$, layer 2; WER changes from 1.67% to 2.49%).
  • distil-large-v3: 1.60× speedup ($s=0.5$, layer 1; WER changes from 1.93% to 2.28%).
  • distil-medium.en: 1.42× speedup ($s=0.5$, layer 1).
  • whisper-large-v3: 1.24× speedup ($s=0.7$, layer 3).
  • Zero-Shot / No Fine-Tuning: Gains were achieved purely at inference time with frozen weights.
  • Orthogonal Optimization: When applied alongside FlashAttention-2 or PyTorch SDPA, EAS preserved its relative latency reductions.

Limitations and Future Work

  • Evaluation Breadth: Experiments are limited to English clean-speech transcription on LibriSpeech; robustness under noisy, accented, or multilingual settings was not evaluated.
  • Static vs. Dynamic Sparsity: The search selects a fixed $(i, s)$ pair globally for a model architecture rather than adapting the number of dropped tokens dynamically per utterance duration or difficulty.
  • High-Sparsity Degradation: The method cannot exceed ~60% sparsity without triggering catastrophic repetition loops due to missing termination cues. Addressing this with fine-tuning or explicit EOS handling remains an open direction.

Summary updated

BibTeX
@inproceedings{xu2025early,
  author = {Zifei Xu and Sayeh Sharify and Hesham Mostafa and Tristan J Webb and Wanzin Yazar and Xin Wang},
  title = {{Early Attentive Sparsification Accelerates Neural Speech Transcription}},
  booktitle = {ES-FoMo-III @ ICML},
  year = {2025},
  url = {https://openreview.net/forum?id=FxxiTmRY7T},
}
Figure