Training dynamic models using early exits for automatic speech recognition on resource-constrained devices

George August Wright, Umberto Cappellazzo, Salah Zaiem, Desh Raj, Lucas Ondel Yang +3 more
9/18/2023
eess.AScs.CLcs.SD

No official code found. Best implementation: augustgw/early-exit-transformer (6 stars, last commit 2025-06-24).

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.

View on arXivView PDF

Code Implementations(1)

Transformer model for ASR/SLU with early-exit mechanism

64C, C++Mar 16, 20231 years ago

Similar Papers

Cite this paper

@article{wright2023training,
  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},
  year   = {2023},
  eprint = {2309.09546},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.09546v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.09546.svg)](https://codeofpaper.com/paper/2309.09546)

Discussion