使用随机wav2vec 2.0按需减少计算
On-demand compute reduction with stochastic wav2vec 2.0
摘要:
挤压和高效Wav2vec(SEW)是最近提出的一种架构,其挤压Transformer编码器的输入,以使用wav2vec 2.0(W2V2)模型进行计算高效的预训练和推理。在这项工作中,我们提出了随机压缩W2V2模型的按需计算减少。与使用固定的挤压因子相反,我们在训练过程中统一采样。我们进一步介绍了查询和键值池机制,可以应用于每个Transformer层,以进一步压缩。我们对在960 h Librispeech数据集上进行预训练并在10 h转录数据上进行微调的模型的结果表明,使用相同的随机模型,与针对特定设置训练的W2V2和SEW模型相比,我们在单词出错率(WER)和推理时间之间获得了平滑的权衡,只有边际WER降级。我们进一步表明,我们可以将相同的随机预训练模型微调到特定的配置,以恢复WER差异,从而从零开始显著节省预训练模型的计算。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。