TL;DR
This paper tackles the computational cost of large self-supervised speech models by exploring sequence length compression through subsampling. They demonstrate that strategically reducing the temporal resolution of speech data during training can significantly speed up inference and even improve downstream performance on certain tasks, especially when using variable-length subsampling guided by phonetic information.
What Problem Does This Paper Address?
Self-supervised learning (SSL) models for speech, like HuBERT and its distilled version DistilHuBERT, have shown remarkable generalization capabilities across various downstream tasks (e.g., speech recognition, speaker identification). However, these models are often massive, leading to high computational costs for training and inference. While model compression techniques like weight pruning exist, the sheer length of speech sequences (and the quadratic complexity of self-attention mechanisms) remains a significant bottleneck. This paper investigates an alternative compression strategy: reducing the sequence length itself by subsampling frames, aiming to achieve computational savings without sacrificing, and potentially even improving, performance.
Methods
The authors explore two primary subsampling strategies:
- Fixed-Length Subsampling: This involves consistently dropping or pooling frames at regular intervals. They consider two main approaches:
- Subsampling and Upsampling: A subsampling module is applied to the student model's output, and an upsampling module is used during downstream evaluation.
-
Subsampling Targets: Both the teacher and student model outputs are subsampled identically. They experiment with averaging and repeating frames for upsampling, and convolution with stride for subsampling.
-
Variable-Length Subsampling: This approach aims to segment speech based on its inherent structure, acknowledging that phonetic units have varying durations. They use the Continuous Integrate-and-Fire (CIF) module to propose segment boundaries. To guide the CIF module and learn more meaningful segmentations, they explore:
- Cardinality Guidance: Encouraging a specific number of segments.
- Segmentation Guidance: Using external information like phonetic boundaries (from forced alignments or unsupervised ASR) to supervise the segmentation process. They also explore using smoothed HuBERT codes as a proxy for phonetic information.
Datasets
- Training: The models are pre-trained on the 960-hour LibriSpeech dataset.
- Evaluation: Downstream tasks are evaluated on a subset of the SUPERB benchmark, including:
- Phone Recognition (PR)
- Automatic Speech Recognition (ASR)
- Keyword Spotting (KS)
- Intent Classification (IC)
- Speaker Identification (SID)
- Emotion Recognition (ER)
- Automatic Speech Recognition with word pieces (ASR-5k), using 5000 sentencepiece targets.
Key Insights and Ideas
- Subsampling is a Viable Compression Strategy: Reducing sequence length through subsampling is an effective way to decrease computational cost, especially for inference.
- Task Sensitivity to Frame Rate: Different downstream tasks are affected differently by subsampling. Phone Recognition and character-based ASR are more sensitive to reduced frame rates, while ASR with larger word pieces (like BPE tokens) can tolerate more aggressive subsampling.
- Variable-Length Subsampling Shows Promise: While fixed-length subsampling offers speedups, variable-length subsampling, especially when guided by phonetic information, demonstrates potential for better performance, particularly at very low frame rates.
- Segmentation is Key: The quality of segmentation in variable-length subsampling heavily influences the learned representations and downstream performance. External phonetic information significantly improves results.
- Averaging is a Simple and Effective Pooling Method: For fixed-length subsampling, averaging frames is found to be on par with concatenation and simpler to implement.
Key Results
- Speedup: Subsampling significantly reduces computational costs, as evidenced by the reduction in MACs (Multiply-Accumulate Operations), especially when excluding CNN layers. For example, an average frame rate of 10 Hz (achieved with MFA) leads to a substantial reduction in computations.
- Performance Trade-offs:
- Fixed-length subsampling with averaging and repeating achieves downstream performance comparable to the original DistilHuBERT, even at frame rates as low as 12.5 Hz.
- Variable-length subsampling with segmentation guidance (especially from unsupervised ASR) shows strong performance in phone recognition and ASR with word pieces, achieving good tradeoffs between performance and frame rate.
- With phonetic segmentation, variable-length subsampling can achieve performance comparable to or better than the baseline, even at frame rates as low as 10 Hz.
Limitations and Future Work
- Limitations:
- The paper notes that the CIF module, when trained without supervision, may not always produce segmentations that align with actual phonetic boundaries.
- While variable-length subsampling with segmentation guidance shows promise, the performance is still slightly behind fixed-length subsampling in high frame-rate settings.
- The impact of subsampling on very large self-supervised models trained from scratch is not fully explored.
- Future Work:
- Investigating the effect of subsampling on large self-supervised models trained from random initialization.
- Exploring more aggressive subsampling in both supervised and self-supervised settings.
- Developing methods to encode an entire utterance into a single vector, independent of input length.
- Further research into obtaining better segmentations for variable-length subsampling.
Summary updated