Training dynamic models using early exits for automatic speech recognition on resource-constrained devices
Abstract
The ability to dynamically adjust the computational load of neural models during inference is crucial for on-device processing scenarios characterised by limited and time-varying computational resources. A promising solution is presented by early-exit architectures, in which additional exit branches are appended to intermediate layers of the encoder. In self-attention models for automatic speech recognition (ASR), early-exit architectures enable the development of dynamic models capable of adapting their size and architecture to varying levels of computational resources and ASR performance demands. Previous research on early-exiting ASR models has relied on pre-trained self-supervised models, fine-tuned with an early-exit loss. In this paper, we undertake an experimental comparison between fine-tuning pre-trained backbones and training models from scratch with the early-exiting objective. Experiments conducted on public datasets reveal that early-exit models trained from scratch not only preserve performance when using fewer encoder layers but also exhibit enhanced task accuracy compared to single-exit or pre-trained models. Furthermore, we explore an exit selection strategy grounded in posterior probabilities as an alternative to the conventional frame-based entropy approach. Results provide insights into the training dynamics of early-exit architectures for ASR models, particularly the efficacy of training strategies and exit selection methods.
Cite
@article{arxiv.2309.09546,
title = {Training dynamic models using early exits for automatic speech recognition on resource-constrained devices},
author = {George August Wright and Umberto Cappellazzo and Salah Zaiem and Desh Raj and Lucas Ondel Yang and Daniele Falavigna and Mohamed Nabih Ali and Alessio Brutti},
journal= {arXiv preprint arXiv:2309.09546},
year = {2024}
}
Comments
Accepted at the ICASSP Workshop Self-supervision in Audio, Speech and Beyond 2024