English

On-demand compute reduction with stochastic wav2vec 2.0

Machine Learning 2022-04-27 v1 Sound Audio and Speech Processing

Abstract

Squeeze and Efficient Wav2vec (SEW) is a recently proposed architecture that squeezes the input to the transformer encoder for compute efficient pre-training and inference with wav2vec 2.0 (W2V2) models. In this work, we propose stochastic compression for on-demand compute reduction for W2V2 models. As opposed to using a fixed squeeze factor, we sample it uniformly during training. We further introduce query and key-value pooling mechanisms that can be applied to each transformer layer for further compression. Our results for models pre-trained on 960h Librispeech dataset and fine-tuned on 10h of transcribed data show that using the same stochastic model, we get a smooth trade-off between word error rate (WER) and inference time with only marginal WER degradation compared to the W2V2 and SEW models trained for a specific setting. We further show that we can fine-tune the same stochastically pre-trained model to a specific configuration to recover the WER difference resulting in significant computational savings on pre-training models from scratch.

Cite

@article{arxiv.2204.11934,
  title  = {On-demand compute reduction with stochastic wav2vec 2.0},
  author = {Apoorv Vyas and Wei-Ning Hsu and Michael Auli and Alexei Baevski},
  journal= {arXiv preprint arXiv:2204.11934},
  year   = {2022}
}

Comments

submitted to Interspeech, 2022

R2 v1 2026-06-24T10:58:18.202Z