Abstract
Self-supervised learning (SSL) has significantly advanced speech processing, yet the reliance on Multi-Headed Self-Attention (MHSA) introduces a quadratic complexity bottleneck. This paper presents SummaryMixing wav2vec 2.0, an architecture that replaces MHSA with a linear-complexity SummaryMixing mechanism. By combining local acoustic features with a global summary vector, the model achieves an 18% reduction in pre-training time and a 23% reduction in peak VRAM usage. Experimental results on the MP3S benchmark demonstrate that SummaryMixing maintains competitive performance across speech recognition, intent classification, and speaker verification, even outperforming MHSA-based baselines in low-resource settings.
Introduction
The evolution of self-supervised learning (SSL) has enabled speech models to leverage vast quantities of unlabeled data, leading to state-of-the-art results in tasks ranging from automatic speech recognition (ASR) to emotion recognition. Frameworks like wav2vec 2.0 and HuBERT typically utilize Multi-Headed Self-Attention (MHSA) as their primary context encoder. However, MHSA’s computational requirements scale quadratically ($O(T^2)$) with input length, posing significant challenges for scaling models and processing long-form audio.
While various linear-complexity alternatives have been proposed, they often struggle to match the accuracy of MHSA in complex speech tasks. This research addresses this gap by integrating SummaryMixing into the wav2vec 2.0 framework, offering a computationally efficient alternative that does not sacrifice representation quality.
The SummaryMixing Architecture
The core innovation of this work is the replacement of the standard Transformer/Conformer layers with SummaryMixing layers. SummaryMixing processes audio frames through two parallel branches:
- Local Branch: A point-wise feed-forward network captures immediate acoustic information specific to each frame.
- Summary Branch: This branch computes a single "global" vector by averaging non-linear transformations of all input frames.
The final representation for each frame is a combination of its local features and this global summary. Unlike MHSA, which requires pairwise comparisons between all frames, SummaryMixing only compares each frame to the global summary. This reduces the complexity to $O(T)$, significantly lowering the memory and time overhead. Additionally, the authors replaced the traditional deep CNN feature extractor with a more efficient configuration of Mel filterbanks and a shallow 1D CNN.
Experimental Framework
The models were pre-trained on the Libri-Light Medium dataset, comprising approximately 4,300 hours of unlabeled English speech. To evaluate the versatility and robustness of the learned representations, the authors utilized the MP3S (Multi-Purpose Processing Pipeline for Speech) benchmark, covering:
- Automatic Speech Recognition (ASR): LibriSpeech, CommonVoice Welsh, and CommonVoice Basque.
- Intent Classification (IC): SLURP dataset.
- Emotion Recognition (ER): IEMOCAP dataset.
- Speaker Verification (ASV): VoxCeleb1 dataset.
Performance and Efficiency Analysis
Computational Efficiency
The transition to SummaryMixing yielded substantial efficiency gains. For a 155M parameter model, pre-training time was reduced by 18%, and peak VRAM usage dropped by 23%. These improvements allow a model of this scale to be trained in approximately seven days using only four Tesla A100 GPUs. The benefits are even more pronounced at larger scales; for models exceeding 300M parameters, the estimated time reduction reaches 35%, and SummaryMixing avoids the "Out of Memory" (OOM) errors encountered by MHSA-based models on 80GB hardware.
Task Performance
SummaryMixing proved highly effective for ASR, achieving a Word Error Rate (WER) of 17.2% on LibriSpeech (test-other), compared to 21.3% for the MHSA baseline. The model's performance in low-resource languages (Welsh and Basque) was particularly noteworthy, where it outperformed significantly larger models like HuBERT Large and data2vec Large.
In Intent Classification and Speaker Verification, the model achieved results equivalent to or better than the MHSA baseline. Analysis of the model's internal weights suggests that SummaryMixing naturally develops a hierarchical structure: lower layers specialize in speaker-level characteristics, while higher layers capture linguistic and semantic information.
Limitations and Future Work
Despite its successes, the SummaryMixing model lagged slightly in Emotion Recognition (64.3% vs. 64.8% for MHSA). This suggests that certain tasks requiring fine-grained pairwise frame relationships may still benefit from the specific inductive biases of MHSA. Furthermore, an unexpected discrepancy was noted during full fine-tuning (as opposed to frozen-weight evaluation), where MHSA maintained a slight edge.
Future research will focus on investigating these fine-tuning dynamics and extending the SummaryMixing approach to other SSL objectives beyond the wav2vec 2.0 framework.
Conclusion
SummaryMixing wav2vec 2.0 demonstrates that quadratic complexity is not a prerequisite for high-performance speech SSL. By utilizing a simple global summary mechanism, researchers can significantly reduce the environmental and financial costs of model training while maintaining—and often improving—the quality of speech representations.
Summary updated