Abstract
Modern Automatic Speech Recognition (ASR) is dominated by the Conformer architecture, which utilizes Multi-Head Self-Attention (MHSA) to capture global context. However, the quadratic computational complexity of MHSA poses a significant bottleneck for long-form audio and resource-constrained environments. This paper introduces HyperConformer, an efficient alternative that replaces MHSA with a Multi-head HyperMixer (MHHM). HyperConformer achieves linear complexity relative to input length, resulting in a model that is up to 56% faster and uses 30% less memory than standard Conformers while maintaining or improving word error rate (WER) performance.
Introduction
The Conformer architecture has become the de facto standard for ASR due to its ability to model both local features via convolutions and global dependencies via self-attention. Despite its success, the self-attention mechanism suffers from a "quadratic bottleneck": its memory and computational requirements grow at $O(N^2)$ with the sequence length $N$. In speech processing, where a 30-second clip can result in thousands of frames, this complexity makes training and deployment expensive, often requiring high-end industrial GPUs.
HyperConformer addresses this challenge by integrating the HyperMixer—a linear-complexity MLP-based architecture—into the Conformer framework. By extending the HyperMixer to a multi-head configuration, the authors provide a scalable and efficient solution for high-performance ASR on modest hardware.
Methodology
Multi-head HyperMixer (MHHM)
The core innovation of HyperConformer is the replacement of MHSA with the Multi-head HyperMixer. Unlike traditional MLP-Mixers that use static weights (limiting them to fixed sequence lengths), HyperMixer employs "hypernetworks" to dynamically generate the weights of a token-mixing MLP based on the input data. This allows the model to handle variable-length sequences with $O(N)$ complexity.
To further optimize performance, the authors propose a multi-head extension. By splitting the feature space into multiple heads and running smaller HyperMixers in parallel, the model reduces the total parameter count and increases processing speed compared to a single-head implementation. This counter-intuitive efficiency gain occurs because the hypernetworks in each head operate on significantly smaller vector dimensions.
The Hybrid Architecture
HyperConformer maintains the Conformer’s convolution module. While the MHHM handles global interactions and long-range context, the convolution module remains essential for capturing fine-grained local acoustic details. The authors found that the MHHM alone struggles with local feature extraction, making the hybrid CNN-HyperMixer approach necessary for competitive ASR performance.
Experimental Setup
The architecture was evaluated using the LibriSpeech ASR corpus (960 hours of English read speech).
- Main Evaluation: Models were trained on the full 960-hour set.
- Low-Resource Testing: A 100-hour subset was used to evaluate the model's generalization capabilities when data is scarce.
- Decoding: Peak accuracy was achieved using "shallow fusion" with a Transformer-based language model.
Key Results
Accuracy and Data Efficiency
HyperConformer achieved a 2.9% Word Error Rate (WER) on the LibriSpeech test-clean benchmark, matching or exceeding the performance of standard Conformers of comparable size. Notably, in the 100-hour low-resource ablation study, HyperConformer outperformed the standard Conformer by approximately 20% (relative WER reduction), suggesting superior generalization in data-constrained scenarios.
Computational Efficiency
The efficiency gains of HyperConformer are most pronounced as sequence length increases:
- Speed: The encoder is 38% faster on average speech lengths and 56% faster on long utterances (30 seconds) compared to the standard Conformer.
- Memory: Training requires 30% less peak VRAM. A "small" variant (under 8M parameters) can be trained using only 5.7GB of VRAM, making it accessible for consumer-grade hardware like the NVIDIA RTX 3070.
- Parameter Scaling: A medium-sized HyperConformer (21.7M parameters) outperformed a larger standard Conformer (24.1M parameters) on the test-other set, demonstrating higher parameter efficiency.
Discussion and Limitations
While HyperConformer offers significant efficiency benefits, the authors identified that the convolution module is an absolute necessity. The HyperMixer's internal bottleneck appears to hinder the passage of local acoustic information, which the CNN module compensates for.
Future research may focus on optimizing the hidden layer size within the token-mixing MLP and testing the architecture's robustness in noisier, non-read speech environments or across different languages.
Conclusion
HyperConformer demonstrates that the "global interaction" required for high-quality speech recognition does not strictly necessitate the quadratic cost of self-attention. By utilizing a dynamically weighted, multi-head MLP structure, HyperConformer provides a path toward more accessible and scalable ASR systems without sacrificing accuracy.
Summary updated