[Paper Review] Distilling the Knowledge of BERT for CTC-based ASR
This paper proposes knowledge distillation from BERT to CTC-based automatic speech recognition (ASR) models, aligning BERT's token-level predictions with CTC's frame-level outputs via forced alignment to preserve fast inference. The method improves ASR accuracy on CSJ and TED-LIUM2 without adding runtime cost, achieving state-of-the-art results with greedy decoding.
Connectionist temporal classification (CTC) -based models are attractive because of their fast inference in automatic speech recognition (ASR). Language model (LM) integration approaches such as shallow fusion and rescoring can improve the recognition accuracy of CTC-based ASR by taking advantage of the knowledge in text corpora. However, they significantly slow down the inference of CTC. In this study, we propose to distill the knowledge of BERT for CTC-based ASR, extending our previous study for attention-based ASR. CTC-based ASR learns the knowledge of BERT during training and does not use BERT during testing, which maintains the fast inference of CTC. Different from attention-based models, CTC-based models make frame-level predictions, so they need to be aligned with token-level predictions of BERT for distillation. We propose to obtain alignments by calculating the most plausible CTC paths. Experimental evaluations on the Corpus of Spontaneous Japanese (CSJ) and TED-LIUM2 show that our method improves the performance of CTC-based ASR without the cost of inference speed.
Motivation & Objective
- To integrate the contextual language knowledge of BERT into CTC-based ASR models while preserving their fast, non-autoregressive inference.
- To address the challenge of aligning BERT’s token-level predictions with CTC’s frame-level predictions during knowledge distillation.
- To maintain inference speed by avoiding runtime dependency on BERT or beam search during decoding.
- To improve ASR performance on standard benchmarks using only standard training-time distillation.
- To demonstrate that BERT’s bidirectional context improves CTC-based ASR beyond unidirectional language models.
Proposed method
- Use BERT as a teacher model to generate token-level soft labels for each word in the ground-truth transcript.
- Compute the most plausible CTC path using the forward-backward or Viterbi algorithm to align BERT’s token-level predictions with CTC’s frame-level outputs.
- Apply knowledge distillation by minimizing the cross-entropy loss between BERT’s token-level probabilities and the CTC model’s frame-level predictions at corresponding time frames.
- Train the CTC model end-to-end with both CTC loss and distillation loss, enabling it to learn contextual representations from BERT.
- Use greedy decoding during inference, avoiding beam search and external LM inference to preserve speed.
- Leverage BERT’s bidirectional attention to capture left and right context, improving modeling of word-level dependencies.
Experimental results
Research questions
- RQ1Can knowledge distillation from BERT improve the performance of CTC-based ASR models without compromising their fast inference?
- RQ2How can token-level predictions from BERT be effectively aligned with frame-level predictions in CTC-based models?
- RQ3Does using a bidirectional language model like BERT yield better ASR performance than unidirectional LMs in distillation for CTC models?
- RQ4Can distillation from BERT improve both WER and perplexity (PPL) of CTC-based ASR on standard benchmarks?
- RQ5Does the proposed method maintain fast inference when combined with traditional LM integration techniques like rescoring or shallow fusion?
Key findings
- On the CSJ corpus, the proposed method reduced WER from 9.34% (baseline CTC) to 9.05% using BERT distillation, with no increase in inference time.
- On TED-LIUM2, the method reduced WER from 12.13% to 11.40%, demonstrating consistent improvement across diverse datasets.
- The method improved BERT’s perplexity (PPL) from 5.53 to 4.92 on TED-LIUM2, indicating better language modeling alignment.
- Even with greedy decoding, the method outperformed n-best rescoring and shallow fusion in terms of WER, while maintaining the same inference speed as baseline CTC.
- Combining the proposed distillation with rescoring or shallow fusion further reduced WER, achieving 8.20% on TED-LIUM2 with n=50, approaching oracle performance.
- Visualization showed that frame-level predictions became more semantically plausible (e.g., 'ed', 'selves', 'kids') after distillation, indicating improved contextual modeling.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.