Squeezeformer: An Efficient Transformer for Automatic Speech Recognition

Sehoon Kim, Amir Gholami, Albert Eaton Shaw, Nicholas Lee, Karttikeya Mangalam, Jitendra Malik, Michael W. Mahoney, Kurt Keutzer

Introduction

In recent years, the Conformer model has become the gold standard for Automatic Speech Recognition (ASR). By combining the global context-gathering capabilities of Transformers with the local pattern-matching strengths of Convolutional Neural Networks (CNNs), it achieves remarkable accuracy. However, the Conformer architecture is computationally expensive. It suffers from the "quadratic bottleneck" inherent to attention mechanisms—as audio sequences grow longer, the memory and compute requirements explode.

Furthermore, systematic studies suggest that the Conformer's design is somewhat over-engineered. It relies on a complex "Macaron" structure (sandwiching modules between two feed-forward layers), multiple types of activation functions, and redundant normalization layers that complicate hardware deployment and waste computational cycles.

Squeezeformer is a highly efficient redesign of this popular architecture. By eliminating architectural redundancies and introducing a "Temporal U-Net" structure to handle long audio sequences, it achieves state-of-the-art accuracy on the LibriSpeech benchmark while significantly reducing computational costs (FLOPs).

Architectural Innovations

The authors re-examined the Conformer from both a macro and micro-architectural perspective to streamline the model.

Macro-Architecture

  • Temporal U-Net: The researchers observed a high degree of temporal redundancy in standard Conformers; by the time data reaches the middle of the network, neighboring speech frames have a cosine similarity of over 95%. Squeezeformer capitalizes on this by incorporating a U-Net-style structure. It downsamples the signal in the middle of the network (halving the sequence length) and upsamples it at the end. This drastically cuts the cost of Multi-Head Attention (MHA) on long sequences. Crucially, the upsampling step is required to maintain training stability and provide the decoder with the resolution needed to map embeddings to specific characters.
  • Simplified Block Structure: Squeezeformer abandons the complex Macaron structure. Instead, it uses a simpler, standard Transformer-like sequence: an MHA or Convolution module followed by a single Feed-Forward module.
Comparison of Conformer and Squeezeformer architectures, highlighting the Temporal U-Net and simplified block structures.

Micro-Architecture

  • Unified Activations: While Conformer uses both Swish and GLU activations, Squeezeformer unifies these to just Swish, simplifying hardware implementation.
  • Simplified Layer Normalization: Finding that back-to-back LayerNorms were redundant, the authors replaced them with a "scaled post-LayerNorm." This uses a learnable scaling factor to maintain training stability with significantly less overhead.
  • Efficient Subsampling: The initial convolution layers that process the raw signal were converted to depthwise separable convolutions, saving a substantial chunk of the total FLOPs.

Key Results

The model was trained and evaluated on the LibriSpeech dataset (960 hours of English speech) and compared against baselines including Conformer-CTC, QuartzNet, and CitriNet. By saving compute on redundancies, the authors were able to "re-invest" those savings into making the model wider or deeper, leading to strictly better performance for the same computational budget.

Squeezeformer consistently outperforms the state-of-the-art across various model sizes:

  • Accuracy: Squeezeformer-M achieves a 6.50% Word Error Rate (WER) on the noisy LibriSpeech test-other subset. This is a 1.4% absolute improvement over the Conformer-CTC baseline operating at the exact same number of FLOPs.
  • Efficiency: The Squeezeformer-SM (Small-Medium) variant achieves better accuracy than the standard Conformer-M while utilizing 40% fewer FLOPs.
  • Throughput: When deployed on an NVIDIA A100 GPU, Squeezeformer variants demonstrated up to 1.34x higher throughput compared to their Conformer counterparts.
WER vs. GFLOPs comparison showing Squeezeformer outperforming other ASR models across the compute spectrum.

Limitations and Future Work

While Squeezeformer sets a new standard for efficient ASR encoders, there are clear avenues for future exploration:

  • Decoder Focus: This research primarily optimizes the encoder of the ASR system using a standard CTC decoder. Exploring how these optimizations interact with more complex decoders, such as RNN-Transducers, is a logical next step.
  • Hardware Specifics: FLOPs are a useful proxy for efficiency, but actual latency can vary significantly between cloud GPUs and edge devices. While the simplified activations and normalizations are designed to be "hardware-friendly," extensive testing on mobile and edge Neural Processing Units (NPUs) is needed.
  • Self-Supervised Learning: The authors note that Squeezeformer's performance could likely be pushed even further by integrating it with self-supervised pre-training methods like wav2vec 2.0.

Summary updated

BibTeX
@inproceedings{kim2022squeezeformer,
  author = {Sehoon Kim and Amir Gholami and Albert Eaton Shaw and Nicholas Lee and Karttikeya Mangalam and Jitendra Malik and Michael W. Mahoney and Kurt Keutzer},
  title = {{Squeezeformer: An Efficient Transformer for Automatic Speech Recognition}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=gE_vt-w4LhL},
}
Figure