Skip to main content
QUICK REVIEW

[Paper Review] Semantic Mask for Transformer based End-to-End Speech Recognition

Chengyi Wang, Yu Wu|arXiv (Cornell University)|Dec 6, 2019
Speech Recognition and SynthesisComputer Science22 references24 citations
TL;DR

This paper proposes a semantic mask regularization technique for Transformer-based end-to-end speech recognition, where entire speech segments corresponding to individual output tokens (e.g., words or word-pieces) are masked during training to improve language modeling and generalization. The method achieves state-of-the-art WER on Librispeech 960h and TED-LIUM2 by combining semantic masking with SpecAugment, reducing WER by up to 10% relative gain over baseline E2E models.

ABSTRACT

Attention-based encoder-decoder model has achieved impressive results for both automatic speech recognition (ASR) and text-to-speech (TTS) tasks. This approach takes advantage of the memorization capacity of neural networks to learn the mapping from the input sequence to the output sequence from scratch, without the assumption of prior knowledge such as the alignments. However, this model is prone to overfitting, especially when the amount of training data is limited. Inspired by SpecAugment and BERT, in this paper, we propose a semantic mask based regularization for training such kind of end-to-end (E2E) model. The idea is to mask the input features corresponding to a particular output token, e.g., a word or a word-piece, in order to encourage the model to fill the token based on the contextual information. While this approach is applicable to the encoder-decoder framework with any type of neural network architecture, we study the transformer-based model for ASR in this work. We perform experiments on Librispeech 960h and TedLium2 data sets, and achieve the state-of-the-art performance on the test set in the scope of E2E models.

Motivation & Objective

  • To address the limited language modeling capacity in attention-based end-to-end ASR models, especially under low-data or noisy conditions.
  • To improve model generalization and robustness to acoustic distortions without relying on external language models.
  • To develop a structured, token-level masking strategy that encourages context-based reconstruction, analogous to BERT but in the acoustic space.
  • To demonstrate that semantic masking outperforms random masking (e.g., SpecAugment) and enhances performance across diverse datasets like Librispeech and TED-LIUM2.

Proposed method

  • The method uses forced alignment (via Montreal Forced Aligner) to obtain word-level timing information for each utterance.
  • During training, 15% of tokens are randomly selected and their corresponding speech segments are masked by replacing them with the mean value of the entire utterance.
  • Masking is applied at the token level—masking entire feature patches corresponding to a word or word-piece—making it more structured than random time/frequency masking.
  • The approach is combined with existing SpecAugment techniques (time warp, frequency masking, time masking) for enhanced regularization.
  • The model uses a deeper CNN before self-attention blocks and a joint CTC/attention loss for training.
  • The semantic mask is applied during both training and inference, with the model required to reconstruct masked tokens using contextual cues.
Figure 1: An example of semantic mask
Figure 1: An example of semantic mask

Experimental results

Research questions

  • RQ1Can token-level masking in the acoustic space improve language modeling capacity in end-to-end ASR models?
  • RQ2How does semantic masking compare to random masking (e.g., SpecAugment) in terms of WER reduction and model generalization?
  • RQ3Does semantic masking provide greater gains on noisy or out-of-domain test sets, such as Librispeech test-other or TED-LIUM2?
  • RQ4Can semantic masking be effectively combined with SpecAugment and other data augmentation techniques?
  • RQ5Does the model’s performance benefit more from semantic masking when external language models are absent?

Key findings

  • On Librispeech 960h, the model with semantic masking achieved a test-clean WER of 3.32% and test-other WER of 10.20%, representing a relative 10% gain over the baseline E2E model.
  • The combination of semantic masking and SpecAugment reduced WER by 0.32 on test-clean and 0.25 on test-other compared to SpecAugment alone.
  • On TED-LIUM2, the method achieved a relative 4.5% WER reduction compared to the baseline, confirming its effectiveness on smaller, noisier datasets.
  • The model outperformed the best reported E2E ASR system on Librispeech test-clean, achieving state-of-the-art performance in the E2E-only setting.
  • The performance gap between models with and without external language model fusion was larger when semantic masking was used, confirming its role in strengthening intrinsic language modeling.
  • Ablation studies showed that word-level masking was consistently better than time-level masking, and combining both strategies yielded the best results.
Figure 2: CNN layer architecture.
Figure 2: CNN layer architecture.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.