Skip to main content
QUICK REVIEW

[Paper Review] A Fully Differentiable Beam Search Decoder

Ronan Collobert, Awni Hannun|arXiv (Cornell University)|Feb 16, 2019
Speech Recognition and SynthesisComputer Science37 references15 citations
TL;DR

This paper introduces a fully differentiable beam search decoder (DBD) that enables end-to-end training of acoustic and language models by backpropagating gradients through the beam search process, eliminating exposure and label bias. The method achieves state-of-the-art WER on the WSJ dataset with smaller beam sizes and simpler models by jointly optimizing unnormalized scores and using sequence-level normalization.

ABSTRACT

We introduce a new beam search decoder that is fully differentiable, making it possible to optimize at training time through the inference procedure. Our decoder allows us to combine models which operate at different granularities (e.g. acoustic and language models). It can be used when target sequences are not aligned to input sequences by considering all possible alignments between the two. We demonstrate our approach scales by applying it to speech recognition, jointly training acoustic and word-level language models. The system is end-to-end, with gradients flowing through the whole architecture from the word-level transcriptions. Recent research efforts have shown that deep neural networks with attention-based mechanisms are powerful enough to successfully train an acoustic model from the final transcription, while implicitly learning a language model. Instead, we show that it is possible to discriminatively train an acoustic model jointly with an explicit and possibly pre-trained language model.

Motivation & Objective

  • To eliminate exposure bias in sequence modeling by enabling gradient flow through beam search during training.
  • To overcome label bias in locally normalized models by using unnormalized scores with global sequence-level normalization.
  • To enable joint training of models operating at different granularities (e.g., token and word-level) without hyperparameter tuning on held-out sets.
  • To scale efficiently to long sequences and large vocabularies by avoiding costly normalization terms.
  • To demonstrate that simpler, smaller acoustic models can achieve competitive performance when trained with the differentiable beam search.

Proposed method

  • The decoder uses unnormalized frame scores from an acoustic model and unnormalized transition scores from token and word-level language models.
  • It performs beam search with a novel target sequence-tracking mechanism to maintain gradients through the search process.
  • A global normalization term is computed over all valid alignments to the target sequence, avoiding local normalization and label bias.
  • The method employs a differentiable log-sum-exp (logadd) operation to approximate the beam search, enabling backpropagation through the n-best hypotheses.
  • The system supports arbitrary combinations of models at different granularities, including pre-trained language models.
  • Gradients are computed via backpropagation through the entire architecture, including the beam search, enabling end-to-end optimization.

Experimental results

Research questions

  • RQ1Can beam search be made fully differentiable to allow end-to-end training of acoustic and language models?
  • RQ2Does differentiable beam search eliminate exposure and label bias in sequence modeling?
  • RQ3Can joint training of models at different granularities (e.g., word-level and token-level) be achieved without hyperparameter tuning?
  • RQ4Does the method scale efficiently to large vocabularies and long sequences without incurring significant computational cost?
  • RQ5Can simpler and smaller acoustic models achieve competitive performance when trained with the differentiable beam search?

Key findings

  • The DBD achieves competitive word error rates (WER) on the WSJ dataset, comparable to state-of-the-art models that use only transcriptions and acoustic data.
  • The model reduces WER at a beam size of 500, outperforming a well-tuned ASG baseline that requires a beam size of 8000.
  • Simpler acoustic models with half the temporal receptive field and fewer parameters achieve equally good performance when trained with DBD.
  • The method eliminates the need for hyperparameter tuning of decoding parameters (e.g., language model weights) on held-out sets.
  • Training with DBD allows the acoustic model to focus on valid word sequences, reducing the burden of learning implicit language modeling.
  • A full training epoch on the WSJ dataset completes in about 30 minutes with a beam size of 500, demonstrating scalability.

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.