Collaborative Training of Acoustic Encoders for Speech Recognition

Varun K. Nagaraja, Yangyang Shi, Ganesh Venkatesh, Ozlem Kalinli, Michael L Seltzer, Vikas Chandra · OpenReview

TL;DR

This paper introduces a novel collaborative training method for speech recognition models of varying sizes. By jointly training multiple acoustic encoders that share common predictor and joiner modules, and leveraging co-distillation through an auxiliary task, the authors achieve significant improvements in word error rate compared to independently trained models, while also streamlining the training process.

What Problem Does This Paper Address?

Deploying speech recognition on diverse edge devices (like smartphones and smart speakers) necessitates models of different sizes to accommodate varying computational budgets. Traditionally, these models are trained independently, leading to inefficiencies in data handling and potentially suboptimal performance due to a lack of knowledge sharing. This paper addresses the challenge of efficiently training a suite of speech recognition models of different sizes that can be selectively deployed based on device constraints, while maximizing performance through shared learning.

Methods

The core of the proposed method is a collaborative training framework for acoustic encoders within a sequence transducer architecture. Key techniques include:

  • Shared Predictor and Joiner: Multiple acoustic encoders of varying sizes are trained together, all sharing a common predictor and joiner network. This reduces redundancy in computation and data handling.
  • Configurable Acoustic Encoders: Encoders are made configurable by varying the number of layers. They share initial low-level layers and then branch out into additional layers specific to their size requirements.
  • Co-distillation: This is a single-step knowledge distillation technique where models are trained jointly. The paper applies this by using an auxiliary task and a KL divergence loss between encoder outputs.
  • Auxiliary Task (Chenone Prediction): An auxiliary task of predicting frame-level "chenones" (tied context-dependent graphemes) is introduced. This task uses a shared auxiliary network and cross-entropy loss. It's hypothesized to help improve the acoustic encoders by providing a frame-level supervision signal.
  • Combined Loss Function: The overall training objective is a weighted sum of the transducer loss (for all encoders) and the encoder-specific losses (cross-entropy and KL divergence from the auxiliary task).

Datasets

  • LibriSpeech Corpus: This is the primary dataset used for both training and evaluation. It's a standard dataset for ASR research, comprising approximately 960 hours of training data and smaller sets for development and testing ("dev-clean," "dev-other," "test-clean," "test-other").

Key Insights and Ideas

  • Synergistic Improvement: Collaboratively training models of different sizes doesn't just benefit the smaller "student" models; even the largest "teacher" model sees performance improvements. This suggests that shared learning helps refine representations across the board.
  • Efficiency Gains: Joint training significantly reduces data loading and manipulation overhead, making the overall process more efficient than training models independently.
  • Auxiliary Task Effectiveness: The chenone prediction auxiliary task, combined with KL divergence loss, acts as a powerful mechanism for co-distillation, facilitating knowledge transfer between encoders of different sizes.
  • Trade-offs in Collaboration: While shared low-level layers are generally beneficial, the paper hints at potential trade-offs. In one instance, removing shared layers led to better performance for a specific configuration, though at the cost of increased training time.

Key Results

  • Word Error Rate (WER) Improvement: The collaboratively trained acoustic encoders achieved a 3-11% relative improvement in WER on both test-clean and test-other partitions compared to models trained separately.
  • Largest Encoder Gains: The largest encoder (20 layers) saw a significant improvement, with a relative WER reduction of over 10% on both test-clean and test-other evaluation datasets.
  • Smaller Encoder Gains: Collaboratively trained smaller encoders also showed substantial improvements, with 3-11% relative WER reduction compared to their baseline counterparts.
  • Parameter Efficiency: The method allows for creating models of different sizes (e.g., 7 to 20 layers) with varying parameter counts (from 35.7M to 76.7M for the encoder part), enabling flexible deployment.

Limitations and Future Work

  • Hyperparameter Tuning: The paper notes that the weight for the auxiliary loss might require careful tuning, as the initially proposed value from prior work was not always optimal. They found a weight of 0.1 for the auxiliary cross-entropy and distillation losses to perform best on average.
  • Shared Layer Impact: While shared layers are generally beneficial, the paper observed an outlier where removing shared layers improved performance for a specific branch configuration, suggesting that the optimal sharing strategy might be nuanced.
  • Future Work: The paper implicitly suggests exploring different architectures for the auxiliary network and investigating more sophisticated methods for determining which layers should be shared and how to balance the contributions of different branches. Further exploration into the optimal configuration of shared vs. branch-specific layers could be a fruitful direction.

Summary updated

BibTeX
@inproceedings{nagaraja2021collaborative,
  author = {Varun K. Nagaraja and Yangyang Shi and Ganesh Venkatesh and Ozlem Kalinli and Michael L Seltzer and Vikas Chandra},
  title = {{Collaborative Training of Acoustic Encoders for Speech Recognition}},
  booktitle = {Interspeech},
  year = {2021},
  doi = {10.21437/interspeech.2021-354},
}
Figure