---
title: "First-Pass Large Vocabulary Continuous Speech Recognition"
description: "How a bidirectional recurrent network and prefix beam search turn speech into words in a first pass, without a hidden Markov recognizer."
canonical: "https://research.elamur.ai/free/en/papers/hannun-2014-first-pass-large-vocabulary-continuous/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/hannun-2014-first-pass-large-vocabulary-continuous/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2014](https://md.research.elamur.ai/free/en/papers/2014/) / First-Pass Large Vocabulary Continuous Speech Recognition using Bi-Directional Recurrent DNNs

# First-Pass Large Vocabulary Continuous Speech Recognition using Bi-Directional Recurrent DNNs

Paper · 2014 · Awni Hannun, Andrew L. Maas, Daniel S. Jurafsky et al.

**Authors:** [Awni Hannun](https://md.research.elamur.ai/free/en/authors/awni-hannun/), [Andrew L. Maas](https://md.research.elamur.ai/free/en/authors/andrew-l-maas/), [Daniel S. Jurafsky](https://md.research.elamur.ai/free/en/authors/dan-jurafsky/) and [A.Y. Ng](https://md.research.elamur.ai/free/en/authors/a-y-ng/) · **Year:** 2014 · **Venue:** arXiv (Cornell University) · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**143** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W1710082047) · [arXiv (Cornell University)](https://openalex.org/S4306400194) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [PDF](https://arxiv.org/pdf/1408.2873)
- [arXiv 1408.2873](https://arxiv.org/abs/1408.2873)
- [OpenAlex](https://openalex.org/W1710082047)

Citations: OpenAlex, 2026-10-14.

## Summary

A recognizer can get most of the letters right and still misidentify many words. That distinction matters when the goal is to turn continuous [speech](https://md.research.elamur.ai/free/en/topics/speech/) into a transcript from a large vocabulary. Earlier work had shown that a neural network could learn to predict transcript characters directly from audio. To obtain stronger word-level results, it then used the network to rank candidate transcripts supplied by a conventional hidden Markov recognizer. The authors ask whether the character predictor can help build the candidate transcripts itself. Their system combines a recurrent neural network with a [language model](https://md.research.elamur.ai/free/en/concepts/language-model/) during the initial search, so the recognizer starts with the audio and constructs its own word hypotheses.

The network learns from recordings paired with transcripts using connectionist temporal classification, or CTC. This training objective gives credit to the different ways a transcript can be aligned with the audio. The network has a hidden layer that reads the recording in both directions. Its character scores can therefore use evidence from earlier and later frames. During decoding, a prefix beam search keeps several likely beginnings of the transcript in play. It pools evidence from different alignments that produce the same beginning and consults the language model when it proposes a space, which marks the completion of a word.

On Wall Street Journal dictation, the authors compare three ways of decoding the same bidirectional network. Picking the most likely label at each frame gives relatively low character error alongside high word error. Restricting the search to the corpus vocabulary lowers word error substantially and changes character error comparatively little. A bigram prior, which scores a completed word in light of the preceding word, lowers both error rates. A separate comparison uses the same simple character decoding procedure across network architectures. Forward recurrence improves test character error over a feedforward network, and bidirectional recurrence improves it further in spite of using fewer parameters than the forward recurrent network.

The results establish that a CTC-trained character predictor and a word-level prior can perform large-vocabulary recognition directly, without a candidate list from a hidden Markov system. The authors describe the resulting word error rates as competitive, with the best hidden Markov systems on the corpus still ahead. They also identify a practical tradeoff. Bidirectional recurrence gives the network access to later speech, while the smaller accuracy gap between the recurrent variants makes forward recurrence a plausible option for recognition that must respond before the utterance ends.

## Deep dive: First-Pass Large Vocabulary Continuous Speech Recognition using Bi-Directional Recurrent DNNs

How a bidirectional recurrent network and prefix beam search turn speech into words in a first pass, without a hidden Markov recognizer. · about 34 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### How a transcript entered the search

Large-vocabulary continuous speech recognition starts with an uninterrupted acoustic signal and aims to return the words that were spoken. A system needs to decide which words best account for the sound, where one word gives way to the next, and how evidence spread over time bears on those decisions. The paper approaches this as a problem of converting one sequence into another. The input sequence consists of acoustic observations, and the output is a transcript whose characters and word boundaries have their own timing.

In the conventional systems the authors describe, a hidden Markov model, or HMM, organizes the recognition problem around states below the level of complete speech sounds. These states are hidden because the recording supplies acoustic observations while the states must be inferred. A deep neural network can provide acoustic evidence by predicting which hidden state is associated with the input around a given frame. The HMM supplies the machinery that connects state predictions across time and ultimately relates state sequences to words. The authors describe the corresponding training process as a succession of recognizers, with more elaborate versions built on earlier ones.

That division of responsibilities shapes what an improvement to the acoustic network can accomplish. A better prediction at a particular time enters a system where the sequence of states, the representation of words, and much of the handling of time have already been defined elsewhere. The authors see this as a barrier to modifying the recognizer as a whole. They are interested in an acoustic predictor that works with the characters of the desired transcript as its training targets and in a search procedure that turns those predictions into a word sequence without the intermediate HMM machinery.

The route to that design was already partly established. The earlier work by Graves and Jaitly trained a neural network to predict the characters in an utterance using CTC. An utterance is an individual speech recording paired with a transcription. Its transcript tells the system what was said, while the acoustic frames give it the evidence from which timing has to be inferred. CTC makes it possible to learn from that pairing by accounting for the different assignments of labels to frames that would spell the transcript. The authors of the present paper take over this training formulation.

Direct character prediction also changes what a low error rate can tell the reader. One missed letter can turn a whole word into a word error. When small spelling mistakes are scattered across a transcript, the character sequence can be close to the reference while many words still differ. The authors emphasize the role of a word prior here. A vocabulary can tell the search whether a proposed spelling is admissible, and probabilities over word sequences can help it decide which admissible word belongs in context. The acoustic network and the word prior address different sources of uncertainty.

#### What makes a pass a first pass

The earlier work brought a CTC network and word-level constraints together through rescoring. An existing recognizer generated either a lattice or an ordered list of candidate hypotheses. A lattice represents alternative paths through possible transcripts, while a list records selected complete hypotheses. In either case, the recognition system that produced the candidates had already made decisions about which possibilities deserved to survive. The CTC network could change the ranking within that search space.

Rescoring is a legitimate way to improve a recognizer, but it answers a particular question. It shows how well the new scorer chooses from possibilities a previous system has made available. If a good transcription is missing, the scorer cannot select it. If the earlier system consistently puts strong possibilities into the candidate set, the scorer benefits from that selection. The authors want a test in which the decisions about what to propose and retain are made by the character-based system itself.

In their first-pass setup, the network produces acoustic scores and the decoder starts its own search from an empty transcript. The word prior participates while the decoder is constructing hypotheses. A plausible word sequence can gain support while it is still being formed, and the search can investigate a spelling that would have been absent from an externally supplied list. The search still has a vocabulary, a scoring rule, and a budget for retaining alternatives. The difference concerns where the candidates come from and when the components begin to influence them.

The paper also treats the architecture of the character predictor as a separate question. Earlier CTC work used long short-term memory, or LSTM, a recurrent architecture designed to address vanishing gradients. When gradients vanish, the training signal becomes weak as it travels through many steps, which can make it hard to learn dependencies across time. The authors pursue a simpler recurrence based on dense weight matrices and rectifiers. They point to earlier rectifier results in speech recognition as motivation to try this design and to the suitability of large matrix operations for [GPU computing](https://md.research.elamur.ai/free/en/topics/gpu-parallel-computing/). The resulting study asks both how to search from character scores and how much those scores improve when the network carries information across the utterance.

### The method, step by step

#### From the recording to the training target

Each training example pairs the acoustic features of an utterance with its transcript. The features are arranged in time order, and the target is the text the network is expected to recover. In the experiments, the authors represent the sound with log-Mel filterbank features, which describe energy across frequency bands on a logarithmic scale. They concatenate frames around each prediction position. The predictor thus receives local acoustic context even when it has no recurrent connections.

The target provides the character order. It leaves open how long the acoustic realization of a character lasts, which frames correspond to a space, and which frames should emit no textual symbol. CTC deals with this by introducing a special blank and treating the frame-by-frame label sequence as an alignment that can vary. Many such sequences can yield the same transcription under a common collapse rule. The objective considers their combined probability, which lets the system learn from the text of a whole utterance.

The collapse rule first combines consecutive occurrences of the same label and then deletes blanks. The order is important. Consecutive copies of a letter can represent a single letter spread across several frames. Copies separated by a blank can survive as separate letters in the transcript. A space, by contrast, is a textual output symbol that marks a word boundary. The blank accounts for timing without adding a character to the text, while the space affects both the transcript and the decoder’s word scoring.

The paper writes the quantity it maximizes for an utterance as follows.

```
log p(W; X)
```

Here `log` is the logarithm, `p` is the CTC probability assigned to the target transcript, `W` denotes that transcript, and `X` denotes the matrix of acoustic features. The semicolon separates the transcript being scored from the acoustic input used to score it. The alignment sum is inside `p`. Maximizing the log probability therefore rewards the network when its outputs support the correct text across the alignments that can produce it. The paper adopts the earlier CTC formulation and concentrates its own technical account on the network and the decoder.

This training arrangement links a frame-level prediction task to a sequence-level outcome. The network emits a distribution over labels at each frame. Training judges how those distributions work together to make the reference transcript probable. During testing, the same distributions can be used with a minimal frame-wise decoder or with a search that uses additional information about words. Keeping these stages distinct allows the authors to examine the quality of the character evidence and the effect of using it differently at decoding time.

From utterance audio to a first-pass transcript The steps in order.

#### A feedforward character predictor

The simplest architecture in the comparison is a deep neural network with feedforward connections. At a given frame it applies a series of transformations to the acoustic input vector. Each hidden layer takes a weighted combination of its inputs, adds a bias, and applies the same nonlinear function independently to each component. The hidden vectors are intermediate representations used to produce a distribution over output labels.

The first hidden layer uses this equation.

```
h⁽¹⁾ = σ((W⁽¹⁾)ᵀ xₜ + b⁽¹⁾)
```

Here `h⁽¹⁾` is the vector of activations in the first hidden layer. `xₜ` is the acoustic input vector at time `t`, and the subscript identifies that time. `W⁽¹⁾` is the first layer’s weight matrix, `ᵀ` denotes its transpose, and juxtaposition with `xₜ` denotes matrix–vector multiplication. `b⁽¹⁾` is the layer’s bias vector, added to the result of the multiplication. `σ` is the element-wise activation function. The parenthesized superscript identifies the layer, and the weight matrix `W⁽¹⁾` is a different quantity from the transcript denoted by `W` in the training objective.

In the feedforward description, the activation is an ordinary rectifier.

```
σ(z) = max(z, 0)
```

Here `σ` is the activation function and `z` is one scalar component of the vector entering it. `max` chooses the larger of its arguments and `0` is the lower bound. Positive values pass through at their original magnitude, while negative values become zero. Applying this operation component by component gives a layer its nonlinear response.

Further hidden layers use the same form with the representation from the preceding layer as input.

```
h⁽ⁱ⁾ = σ((W⁽ⁱ⁾)ᵀ h⁽ⁱ⁻¹⁾ + b⁽ⁱ⁾)
```

Here `i` indexes the hidden layer, `h⁽ⁱ⁾` is its output vector, and `h⁽ⁱ⁻¹⁾` is the output vector from the immediately preceding layer. The `1` in the superscript offset indicates that the formula looks one layer back. `W⁽ⁱ⁾` and `b⁽ⁱ⁾` are the weights and biases of layer `i`, and `ᵀ` transposes the weight matrix for multiplication by the incoming vector. The plus sign adds the bias and `σ` applies the nonlinearity to each resulting component. All these activations belong to the same prediction position in the feedforward network.

The output layer converts the final hidden representation into probabilities. The following expression retains the sign convention in the paper’s softmax equation.

```
p(c = cₖ | xₜ) = exp(−((Wₖ⁽ˢ⁾)ᵀ h⁽ⁱ⁻¹⁾ + bₖ⁽ˢ⁾)) / ∑ⱼ exp(−((Wⱼ⁽ˢ⁾)ᵀ h⁽ⁱ⁻¹⁾ + bⱼ⁽ˢ⁾))
```

Here `p(c = cₖ | xₜ)` is the probability that the output label `c` is class `cₖ` at acoustic input `xₜ`, where `t` gives the frame and `k` selects the class of interest. The vertical bar indicates conditioning. The superscript `s` marks output-layer parameters, and `Wₖ⁽ˢ⁾` is the column of that layer’s weight matrix for class `k`. Its transpose `ᵀ` forms a dot product with `h⁽ⁱ⁻¹⁾`, the hidden vector feeding the output layer, with the superscript referring to the preceding layer. `bₖ⁽ˢ⁾` is a scalar bias. `exp` is the exponential function, and the leading minus sign negates the class’s affine score before exponentiation. In the denominator, `∑ⱼ` adds the corresponding exponential for every output class indexed by `j`, using the column `Wⱼ⁽ˢ⁾` and bias `bⱼ⁽ˢ⁾` for that class. Division by this sum normalizes the class scores into a distribution.

The class set includes the CTC blank as well as symbols that can appear in the transcript. The network produces a distribution of the same form at every frame. The feedforward architecture can make use of earlier and later acoustic frames within its concatenated input window. Once that vector is fixed, however, the prediction is independent of the hidden vectors computed for neighboring positions. Recurrence extends the scope of the calculation by letting a representation at one position enter the computation at another.

#### Carrying acoustic evidence forward and backward

The forward recurrent deep neural network, or RDNN, adds a temporal connection to a selected hidden layer. The layer still receives the current frame’s representation from the layer below. It also receives a transformed copy of its own state from the preceding frame. The temporal weights are applied again as processing advances, so a previous state can influence later states through the chain of updates.

```
hₜ⁽ʲ⁾ = σ((W⁽ʲ⁾)ᵀ hₜ⁽ʲ⁻¹⁾ + (W⁽ᶠ⁾)ᵀ hₜ₋₁⁽ʲ⁾ + b⁽ʲ⁾)
```

Here `j` marks the selected recurrent layer, `t` is the current frame, and `hₜ⁽ʲ⁾` is that layer’s state at the current frame. `hₜ⁽ʲ⁻¹⁾` is the representation from the layer immediately below at frame `t`, and `W⁽ʲ⁾` is the matrix that transforms it. `hₜ₋₁⁽ʲ⁾` is the same recurrent layer’s state at the preceding frame, and `W⁽ᶠ⁾` is the forward temporal matrix that transforms this earlier state. The superscript `f` identifies the forward direction, and the `1` in the index offsets denotes the adjacent layer or frame, respectively. `ᵀ` denotes matrix transpose, `b⁽ʲ⁾` supplies the bias, and `σ` acts component by component on the summed input.

The distinction between a window and a recurrent state is concrete. A window supplies the acoustic features for a fixed neighborhood. A recurrent state supplies a learned representation computed from the previous state and the previous frame’s input. Evidence can therefore travel across the input beyond the window of an individual frame. The update gives it a route to do so. The state’s actual contents, including which evidence carries forward, depend on what the network learns.

For recurrent layers, the authors cap the rectifier output to keep large activations from causing training to diverge.

```
σ(z) = min(max(z, 0), 20)
```

Here `z` is a scalar input and `σ` is the clipped activation. The inner `max` selects the greater of `z` and `0`, giving the ordinary rectifier’s output. The outer `min` selects the lesser of that result and `20`, the activation ceiling. A positive input below the ceiling passes through unchanged. The authors describe the cap as affecting extreme activations, while the function otherwise behaves like the ordinary rectifier.

The bidirectional recurrent deep neural network, or BRDNN, gives the selected layer a forward state and a backward state. Both see the same current input from below and use the same input transformation and bias. They have separate temporal matrices. The forward state is computed in chronological order, while the backward state is computed in the opposite order. Each temporal calculation uses states from its own direction.

```
hₜ⁽ᶠ⁾ = σ((W⁽ʲ⁾)ᵀ hₜ⁽ʲ⁻¹⁾ + (W⁽ᶠ⁾)ᵀ hₜ₋₁⁽ᶠ⁾ + b⁽ʲ⁾)
```

Here `hₜ⁽ᶠ⁾` is the forward state at frame `t`, and `hₜ₋₁⁽ᶠ⁾` is the forward state one frame earlier. `f` designates the forward direction and `W⁽ᶠ⁾` is its temporal matrix. The recurrent layer is indexed by `j`, and `hₜ⁽ʲ⁻¹⁾` is the current frame’s representation from the layer immediately below it. `W⁽ʲ⁾` transforms that representation and `b⁽ʲ⁾` is the current layer’s bias. The `1` in the layer and frame offsets denotes the adjacent position. `ᵀ` indicates transpose, the plus signs add the current input, transformed prior state, and bias, and `σ` is the clipped rectifier.

```
hₜ⁽ᵇ⁾ = σ((W⁽ʲ⁾)ᵀ hₜ⁽ʲ⁻¹⁾ + (W⁽ᵇ⁾)ᵀ hₜ₊₁⁽ᵇ⁾ + b⁽ʲ⁾)
```

Here `hₜ⁽ᵇ⁾` is the backward state at frame `t`, and `hₜ₊₁⁽ᵇ⁾` is the backward state at the next frame in the recording. The `1` in that offset means the adjacent frame, which has already been processed in the backward traversal. `b` as a superscript identifies this direction, and `W⁽ᵇ⁾` is its temporal weight matrix. The same `j`, current-frame input `hₜ⁽ʲ⁻¹⁾`, input matrix `W⁽ʲ⁾`, and bias vector `b⁽ʲ⁾` have the roles they had in the forward update. The layer offset again denotes the representation immediately below. `ᵀ` marks transpose, the plus signs add the inputs to the state update, and `σ` applies the clipped rectifier.

The recurrent layer then combines the two states.

```
hₜ⁽ʲ⁾ = hₜ⁽ᶠ⁾ + hₜ⁽ᵇ⁾
```

Here `hₜ⁽ʲ⁾` is the output of recurrent layer `j` at frame `t`. `hₜ⁽ᶠ⁾` and `hₜ⁽ᵇ⁾` are the forward and backward states for that frame, with `f` and `b` marking the respective directions. The addition is component-wise. The upper layers receive this sum as their input, so they can make a prediction using evidence that has arrived from both sides of the frame.

The forward and backward calculations share the lower-layer input, but neither directional state becomes the other’s temporal input. Their meeting point is the sum passed to the next layer. Backward recurrence gives that layer a route for information from anywhere later in the utterance, just as forward recurrence gives it a route from earlier positions. How much of that context helps is an empirical question. The equations describe what can reach the prediction, while the architectural comparison tests whether giving the prediction those connections improves the measured error rate.

#### Training the network

The feedforward network can be trained by propagating a subgradient of the objective through its layers. Subgradients allow updates at points where the rectifier has a corner. Recurrent training must also account for the way a state contributes to later computations along its direction of traversal. The authors use back-propagation through time, which propagates the training signal through these temporal links as well as the links between layers.

For the experiments, they compute that signal across the full time extent of each utterance. A truncated calculation would stop the backward propagation of the training signal after a limited number of steps. Full propagation allows the training objective to assign credit through the entire recurrence used for that example. This does not on its own establish that the trained network uses acoustically relevant information at every distance. It specifies which temporal paths take part in the gradient calculation.

The main bidirectional system has 5 hidden layers with 1824 units in each layer, with temporal recurrence in the third hidden layer. The authors draw the starting weights from a uniform distribution whose scale depends on the input and output sizes of the corresponding weight matrix. They train with Nesterov accelerated gradient, an optimization procedure that uses momentum in parameter updates. The reported initial learning rate is `10⁻⁵`, and the maximum momentum is 0.95. After every full pass over the training set, they divide the learning rate by 1.2. They run 20 passes. The Python implementation takes about 96 hours on a GPU for this training run.

#### Reading the frame predictions

The simplest decoder takes the most probable label at each frame. Suppose the network emits label distributions at all positions in an utterance. The decoder first turns those distributions into a sequence of frame labels, then collapses consecutive repeats and removes blanks. This procedure measures how readily the network’s own frame predictions yield a transcript without vocabulary or word-sequence scoring.

```
S = (s₁, …, s_T)
```

Here `S` is the full sequence of selected frame labels. `s₁` is its first label, `s_T` is its last label, and `T` denotes the number of frames in the utterance. The ellipsis stands for the intervening positions and the parentheses indicate an ordered sequence. At any position `t`, the selected label is defined by the next equation.

```
sₜ = argmax_{c ∈ Σ} p(c; xₜ)
```

Here `sₜ` is the selected label at time `t`, `c` is a candidate label, and `Σ` is the alphabet including the blank. The membership symbol `∈` restricts the candidates to that alphabet. `p(c; xₜ)` is the probability the network assigns to label `c` at frame `t` using the acoustic input associated with `xₜ`. The `argmax` returns the label with the largest probability. The frame notation is also used for recurrent predictors, whose hidden states can carry information from beyond the input vector at the named frame.

Locally choosing the strongest label is a simple way to construct a complete alignment. Several less probable alignments can nonetheless collapse to the same string and give that string substantial aggregate support. The greedy rule also has no place to reward the completion of a plausible word or to check whether a spelling occurs in the vocabulary. These are reasons to keep alternatives alive during decoding even when the acoustic network and its training objective stay the same.

#### Combining acoustic evidence with word evidence

The paper starts from a product that combines the network’s transcription probability with a prior over word sequences.

```
pₙₑₜ(W; X) pₗₘ(W)
```

Here `W` is a candidate word transcription and `X` is the acoustic input. `pₙₑₜ` denotes the probability assigned by the network to that transcription given the audio, with the label `net` identifying the network term. `pₗₘ` denotes the language-model probability of the candidate word sequence, with `lm` identifying the prior term. Juxtaposing the terms multiplies them. The prior uses the words, while the network term incorporates evidence from the utterance.

The authors use a weighted version of the product in practice.

```
pₙₑₜ(W; X) pₗₘ(W)^α |W|^β
```

Here `pₙₑₜ`, `pₗₘ`, `W`, and `X` retain their meanings from the preceding expression. `α` is the exponent on the language-model probability and adjusts its influence on the search. `|W|` is the number of words in the candidate transcription, and `β` is the exponent on that count. The carets indicate exponentiation and the surrounding vertical bars indicate the size of the word sequence. This final factor is the word insertion term. It adjusts the score according to the number of words proposed, giving the decoder a way to discourage or favor insertion according to the chosen setting.

An [n-gram](https://md.research.elamur.ai/free/en/concepts/n-gram/) prior gives a word a probability based on a limited history of preceding words. Here is the conditional term the paper uses to describe incorporation of that history at a space.

```
p(W(ℓ⁺) | W(ℓ))
```

Here `ℓ` is the current character prefix, `ℓ⁺` is the extension formed by appending a space, and the superscript plus marks the extended prefix. `W(·)` converts a character prefix into its sequence of completed words, with the dot indicating the argument. This conversion splits at spaces and drops any characters after the last space. `p` is the word-level factor for the newly completed sequence `W(ℓ⁺)`, conditional on the previous completed sequence `W(ℓ)`. The vertical bar denotes that conditioning. For an n-gram prior, `n` specifies the order and only the last `n−1` completed words contribute to the history, with `1` subtracted because the new word itself occupies a position in the group.

The same point in the search also supports a dictionary constraint. With that constraint, the factor is `1` when the newly completed word is in the vocabulary and `0` otherwise. These values denote permission and exclusion, respectively. The dictionary can therefore admit any word it contains without expressing which admitted word is more probable after a particular history. The bigram version adds that preference using the previous word. In both versions, a partial spelling has time to accumulate acoustic support before the search proposes the space that makes it a completed word.

#### Keeping track of prefixes and alignments

The decoder starts with the empty string as its sole active prefix. At each frame it considers adding each alphabet symbol to each active prefix. A blank keeps the textual prefix as it is. A proposed space can complete a word and trigger the word-level factor. A proposed letter or other ordinary output symbol can extend the text, subject to CTC’s treatment of repeats. The resulting candidates enter a new set that the decoder will rank before moving to the following frame.

The repeat rule is why each prefix needs two running scores. Some frame alignments that produce a prefix end in the blank symbol, and others end in a nonblank label. If the next label equals the last character of the prefix, an alignment ending in blank can produce an additional copy of that character. An alignment ending in the same nonblank label can absorb the new label as a continuation of the existing copy. Keeping the two scores separate lets the decoder handle both possibilities. It also lets it combine support from several frame alignments when their resulting text belongs to the same prefix.

The paper ranks prefixes with the following expression.

```
p(ℓ; x₁:ₜ) = (pᵦ(ℓ; x₁:ₜ) + pₙᵦ(ℓ; x₁:ₜ)) |W(ℓ)|^β
```

Here `ℓ` is a candidate prefix and `x₁:ₜ` is the acoustic frame sequence through time `t`, with `1` marking the first frame and the colon denoting a range. `pᵦ` is the accumulated score of alignments that yield `ℓ` and end in blank, and `pₙᵦ` is the corresponding score for alignments ending in a nonblank label. The subscripts `b` and `nb` distinguish those cases. The plus sign pools their support. `W(ℓ)` is the sequence of completed words in the prefix, `|W(ℓ)|` counts them, and `β` is the word insertion exponent. The caret denotes raising the count to that exponent. The left side, written as `p`, is the score used to rank the prefix.

The paper also denotes the previous and next active sets by `Aₚᵣₑᵥ` and `Aₙₑₓₜ`, where `A` is the set of candidate prefixes and the subscripts identify the two stages of the update. After scoring the proposed prefixes, the decoder retains the `k` strongest, where `k` is the beam width. This bounds the number of prefixes whose extensions will be considered at the following frame. The final decoding result is the highest-scoring transcript that survives the search. The same procedure could also return a list of high-scoring survivors.

A useful distinction is between frame alignment and textual search. The decoder combines support from different alignments of a prefix when it can. It also prunes whole prefixes to limit computation. Pooling alignments helps avoid making the result depend entirely on a single frame-label path. Pruning limits which texts get the opportunity to gather further acoustic or word evidence. Both operations take place in the recognizer’s own search, which is how the method does first-pass decoding.

### Experiments and results

#### Wall Street Journal dictation

The experiments use the Wall Street Journal corpus of read news articles, identified in the Linguistic Data Consortium catalog by LDC94S13B and LDC93S6B. The training split contains 81 hours of speech and 37,318 utterances. The authors follow the Kaldi speech recognition toolkit’s s5 recipe for the basic partitioning of the corpus. They use `dev93` for development and `eval92` for the final test. The development and test subsets have the same 20k word vocabulary, which also bounds the language model used in decoding.

The transcript preparation differs from the conventional recipe in ways that follow from predicting text directly. The authors discard annotations such as lexical stress but retain transcribed word fragments and punctuation associated with acronyms. A system whose acoustic targets are characters can train on the written fragment without consulting a pronunciation entry for it. This aspect of training should be distinguished from the vocabulary restriction in the word-constrained decoding conditions. The authors use the standard language model resources distributed with the corpus, with their vocabulary left at its original scope.

Each acoustic frame has 23 log-Mel filterbank bins. The context window extends +/- 10 frames around the position being classified, and concatenation gives a vector of size 483. These windowed inputs are available to the feedforward and recurrent architectures. There is no additional feature preprocessing or feature-space speaker adaptation in the reported setup. The output has 32 classes. They comprise the blank, 26 letters, 3 punctuation marks, a noise symbol, and a space symbol. This alphabet allows the acoustic output to represent the punctuation the authors preserve, as well as the space used by the decoding rule.

#### Comparing decoding procedures on the same network

The main first-pass experiment uses the trained bidirectional network throughout. For prefix search, the beam size is 200. The authors tune the prior weight and word insertion exponent on held-out data. The three decoding conditions are greedy frame selection with CTC collapse, prefix search with a vocabulary check, and prefix search with a bigram prior. This design holds the acoustic predictor fixed while changing the procedure that converts its frame-level distributions into text.

The measures are character error rate, or CER, and word error rate, or WER. Each measures errors against the reference transcript in its named units. Character scoring shows how closely the letters and other scored characters match the reference. Word scoring counts the consequences for the words in the transcription. A small character change can affect whether a whole word matches, which is why it matters that the paper looks at both measures for decoding.

The greedy baseline yields fairly low CER alongside high WER. The authors describe errors that leave a written word looking nearly right while failing to produce its correct spelling. They connect this observation to irregularities in [English](https://md.research.elamur.ai/free/en/topics/english/) spelling. If such errors occur in many words, they contribute to WER throughout the transcript even when the total number of affected characters stays modest. That pattern motivates a constraint that operates on completed words.

Adding the 20k vocabulary check to prefix search gives a substantial improvement in WER, with a comparatively small change in CER. This is consistent with the errors the authors describe. A spelling restriction can make enough difference to complete words while changing relatively little of the transcript at the character level. The text can become more accurate as a sequence of words while its character error remains near the baseline.

The bigram condition yields a large relative drop in both measures. A vocabulary check provides the same permission to every listed word. The bigram prior distinguishes the plausibility of allowed words in context, and the search can use this preference while alternative prefixes still survive. The result supports the use of a word-sequence prior in first-pass decoding on WSJ. The authors compare the outcome qualitatively with existing HMM recognizers and put their own system below the strongest HMM results on the corpus.

#### Comparing architectures with a common decoder

The architecture study measures training and test CER using the same greedy decoding procedure for each network. It compares a feedforward DNN, a forward RDNN, and a BRDNN. All have 5 hidden layers. The feedforward and forward recurrent networks each have 2,048 units per layer, while the bidirectional network has 1,824 units per layer. The narrower bidirectional layers help keep parameter counts in the same general range when the architecture includes a temporal matrix for each direction.

The parameter counts below show the scale of the reported feedforward baseline and the bidirectional system used for first-pass decoding. This is a comparison of network size on the WSJ task. The error-rate findings are a separate comparison.

Trainable parameters in reported Wall Street Journal networks The bidirectional recognizer uses a larger parameter budget than the reported feedforward baseline.

**The numbers**

| System or setting | million trainable parameters |
| --- | --- |
| Feedforward DNN baseline | 16.8 |
| Bidirectional recurrent DNN (this paper) | 20.9 |

The reported feedforward baseline has 16.8M parameters. The authors tried larger feedforward configurations and observed worse test performance. The main bidirectional system has 20.9M parameters. In the architecture comparison the bidirectional network has fewer parameters than the forward recurrent network. These facts matter when interpreting the observed ordering of the errors. The bidirectional network’s advantage over the forward recurrent network occurs despite its smaller parameter count, while the feedforward comparison involves an approximate control for size.

Both recurrent architectures improve test CER substantially over the feedforward baseline. The bidirectional version also has better training and test CER than the forward version. The authors describe the gap between the two recurrent variants as small in relation to the gap between recurrence and feedforward prediction. This gives the architectural finding its practical shape. A recurrent state appears to account for much of the observed gain, and access to later frames adds a further benefit under the character-level evaluation.

### What the ablations show

#### Changing the decoder changes which mistakes survive

The decoding experiment holds the acoustic network fixed. The network therefore supplies identical kinds of evidence to all three procedures. Any difference among these conditions arises from how the output distributions are turned into transcripts. That is what makes this comparison informative even though its first change combines more than one intervention.

The comparison between greedy output and dictionary-constrained prefix search changes both how alternatives are explored and which words may be completed. Greedy decoding commits to a single alignment through its frame-wise choices. Prefix search can keep competing texts alive and accumulate evidence across alignments. The dictionary also excludes completed spellings outside the vocabulary. The observed drop in WER establishes the effect of the search and vocabulary constraint together. Isolating the value of retaining alternative prefixes would require a condition with prefix search and no word constraint.

The contrast between the dictionary and bigram settings is closer to a comparison of word-level scoring under a common search design. Both use prefix search over the corpus vocabulary, and both can evaluate a new word when a space is proposed. The bigram assigns contextual probabilities at that point. Its improvement in CER as well as WER shows that word context can change which characters survive in the completed transcript. For example, if acoustic evidence supports several spellings and several of them make words, a contextual preference can change which of those spellings remains in the beam. That difference can affect whole words and the characters that compose them.

The differing movement of CER and WER helps identify what each intervention is doing in this setup. Vocabulary membership makes a large difference at the word level even when character accuracy changes little. The bigram provides a stronger criterion for choosing among candidates that satisfy the vocabulary. The experiment evaluates each intervention through its effect on the resulting transcript. It gives neither counts of the specific errors repaired by each condition nor a breakdown by word type.

#### Changing recurrence changes the character evidence

The architecture comparison holds the greedy decision rule fixed. This takes the vocabulary and the contextual word prior out of the comparison and reveals how the outputs of different acoustic networks behave under a simple decoding rule. Since the feedforward input already includes nearby frames, the result compares a fixed window with architectures that can also propagate learned states across time.

The improvement from the feedforward DNN to the forward RDNN supports the authors’ proposal that learned temporal state matters when a network is responsible for direct character prediction. The recurrent layer can transport information that the frame-window computation processes independently at each position. The experiment evaluates the consequences of that design through test CER. It does not identify the particular acoustic distinctions learned by the recurrent state.

The improvement from forward recurrence to bidirectional recurrence gives a more specific comparison. Both architectures have temporal state, and the bidirectional one can bring evidence from later frames to a prediction. It performs better on the training and test sets and has fewer parameters than the forward recurrent alternative. The ordering is therefore consistent with the authors’ interpretation that the structure of the temporal connections matters. The narrower bidirectional layers and the separate backward matrix are part of that architectural change, so the experiment measures the resulting network configurations as a whole.

The feedforward size experiments add a check on a simpler explanation. If the feedforward architecture’s higher CER were chiefly due to an undersized network, making it larger might have reduced the gap. The authors report that larger feedforward networks instead gave worse test performance. They interpret this as a sign of susceptibility to overfitting on the task. The observation does not give a complete account of how error varies with network size. It supports the decision to treat recurrence as a meaningful design difference even though the reported parameter budgets are unequal.

The training and test findings also give different information. The bidirectional system’s lower training CER shows that its character predictions decode more accurately even on examples seen during training. Its lower test CER shows that the benefit extends to the separate test examples. This pattern makes the advantage over forward recurrence more informative than a test-only observation would be. It does not establish how the same architecture would behave with a different corpus, optimization schedule, or online decoding requirement.

### Limitations

#### Limits the authors identify

The authors state that their results fall short of the best HMM-based performance on Wall Street Journal. Their demonstration concerns feasibility and the level of accuracy that a simpler recognition pipeline can attain. A first pass built from character evidence and a word prior can be fairly competitive while still leaving an accuracy gap to the strongest conventional system. The comparison does not justify a general ranking of all HMM and CTC systems.

They also distinguish the benefit of bidirectional recurrence from its suitability for low-latency recognition. The backward computation draws on later portions of the recording. Access to those portions fits utterance-level recognition, but a recognizer that supplies immediate output cannot freely wait for the complete utterance. The authors see the smaller gap between the recurrent variants as grounds for considering forward recurrence online. They present that possibility as a direction suggested by CER, without reporting an online latency experiment or a first-pass WER comparison for such a system.

The case for a simpler architecture than LSTM rests on network construction and the kind of computation involved. Dense matrix products dominate the recurrent calculation, which the authors say is amenable to GPU execution. The roughly 96-hour run describes their implementation and training schedule. It supplies neither a timing comparison with an LSTM trained under the same conditions nor a finding about which architecture would offer better accuracy at a fixed training cost.

#### Limits visible in the experimental setup

The evaluation concerns read WSJ dictation and its standard vocabulary. The text processing shows how a character-based training target can accommodate written fragments and punctuation. The language-constrained decoder still ranks outputs inside the 20k vocabulary used for development and testing. The paper therefore establishes a result for large-vocabulary dictation under those constraints. It does not measure unrestricted transcription, performance on spontaneous conversation, or how often the system can preserve an unfamiliar spelling when word-level constraints are active.

The forward recurrent architecture also needs to be interpreted in light of the input features. Its temporal state moves forward through the frames, while the input vector for a position includes later frames from the +/- 10 window. A practical system using those features would need to wait for those observations. Replacing full-utterance backward recurrence can reduce the dependence on future audio, but the reported forward configuration does not establish the behavior of a system with zero lookahead. The paper does not give error or delay measurements for alternative feature windows.

The architecture experiment uses an approximately controlled parameter budget and a common character-level decoder. It shows which configurations yield better CER under those conditions. An exactly matched comparison would have to decide how to distribute parameters across layers and temporal directions and then train the resulting systems. A word-level test of each architecture under the same prefix-search conditions would answer another question. The published architecture comparison does not establish that its CER ordering transfers with the same margins to WER after adding the prior.

The beam also makes the decoder an approximation. A weakly ranked prefix can be discarded before later acoustic frames or word context would have supported it. Removing dependence on an external lattice makes the hypothesis search the responsibility of the new recognizer. It leaves in place the recognizer’s own pruning, its word prior, and its settings for scoring completed words. The experiment reports a beam of 200 and tuning on held-out data. It does not establish how accuracy changes over a range of beam widths or how much error is attributable specifically to search pruning.

Some boundary behavior is left implicit in the algorithm description. The word-level factor is applied at proposed spaces, while the prefix conversion discards a trailing unfinished segment. This defines how the decoder treats a completed word during search. The text does not spell out the terminal bookkeeping for a transcription that reaches the final frame without a trailing space. Likewise, the ranking rule includes a power of the completed-word count, and the search necessarily encounters prefixes before any word is complete. The exact handling of that count at the start is relevant to reproducing the decoder precisely.

Finally, the two groups of experiments support claims at different levels. Using the same BRDNN across decoding conditions isolates the effect of changing the route from character scores to words. Using the same greedy decoder across architectures isolates the effect of changing the network configuration on character output. Taken together, they support the paper’s system design. They leave open how changes to recurrence and changes to word scoring interact when varied jointly.

### What came after

#### Speech recognition as a sequence problem

[Deep Speech](https://md.research.elamur.ai/free/en/papers/hannun-2014-deep-speech-scaling-up-end/) cites the paper in work on scaling up end-to-end speech recognition. This paper had shown how to train on utterance transcripts and conduct the word search directly, with a recurrent character predictor supplying the acoustic evidence. Scaling that kind of recognizer takes the question beyond whether a direct pipeline can work on a standard dictation task. It asks how the approach can grow. The common thread is the direct path from speech to transcription, although the citation alone establishes no identity between their architectures or decoding procedures.

[Deep Speech 2](https://md.research.elamur.ai/free/en/papers/amodei-2015-deep-speech-2-end-end/) addresses end-to-end recognition in English and Mandarin. That scope broadens the language setting of the WSJ experiment. Here, the decoder operates with an English character inventory and a word prior over the corpus vocabulary. A study spanning English and Mandarin puts the direct recognition problem in a setting where the output symbols and language constraints require separate consideration. The connection is at the level of the recognition task. The title and citation leave the exact relationship between the two decoders unspecified.

[End-to-end attention-based speech recognition](https://md.research.elamur.ai/free/en/papers/bahdanau-2016-end-end-attention-based-large/) also takes up large-vocabulary recognition, using attention as its named approach. The present paper represents uncertainty in the timing of the transcript through CTC alignments and deals with word-level preferences during prefix extension. The later work shows that the same broad goal of direct recognition was pursued with attention. This places the paper’s design in a wider effort to make the connection between acoustic sequences and textual outputs part of the recognizer itself.

Two other citing papers address the broader problem of learning to predict sequences. [Task Loss Estimation for Sequence Prediction](https://md.research.elamur.ai/free/en/papers/bahdanau-2015-task-loss-estimation-sequence-prediction/) studies estimating task loss, while [An Actor-Critic Algorithm for Sequence Prediction](https://md.research.elamur.ai/free/en/papers/bahdanau-2016-actor-critic-algorithm-sequence-prediction/) approaches sequence prediction with an actor-critic algorithm. The distinction between what a system learns to score and how its outputs are evaluated is visible in the speech paper. CTC rewards transcript likelihood across possible alignments, word-level scoring enters during decoding, and the reported outcomes are character and word errors. The later studies’ stated subjects place training for sequence-level outcomes in a more general setting. Their citation does not establish that either study uses the WSJ decoder.

#### Training computation and new recognition settings

[cuDNN](https://md.research.elamur.ai/free/en/papers/chetlur-2014-cudnn-efficient-primitives-deep-learning/) addresses efficient computational primitives for deep learning. The connection to this paper concerns the practicality of training a network. The authors choose recurrence built from dense matrix operations in part because those operations suit GPU computing. Work on efficient primitives takes up the implementation side of that concern. It addresses how commonly needed computations can be made efficient, while the WSJ experiments address what a particular recognition architecture and decoder can achieve. The citation gives no basis for attributing the reported training time to cuDNN.

[Improving Speech Recognition for Non-Native English](https://md.research.elamur.ai/free/en/papers/sullivan-2022-improving-automatic-speech-recognition-non/) names transfer learning and language-model decoding as the means studied for improving recognition. Its stated setting places the two sources of evidence in a different role. Transfer learning concerns how the recognizer acquires acoustic predictions for the speech it will encounter, and language-model decoding concerns how such predictions become a transcript. The contribution here was to show that the word prior can influence a first-pass search driven by character predictions. The later work’s subject brings that acoustic and linguistic distinction to recognition of non-native English.

[The Czech Parliament plenary hearings corpus](https://md.research.elamur.ai/free/en/papers/kratochvil-2020-large-corpus-czech-parliament-plenary/) cites the paper in work centered on a large collection of Czech parliamentary speech. It represents a change in both the language and the recording domain from the WSJ dictation task. Its stated contribution is the corpus. That matters to the research question because a result on one speech collection establishes performance under its particular vocabulary, recordings, and transcription conventions. A dataset for a different kind of speech creates a setting in which related recognition questions can be asked. The citation by itself gives no details about use of the bidirectional architecture or prefix decoder in constructing the corpus.

[CANDLE](https://md.research.elamur.ai/free/en/papers/alasmary-2026-candle-ctc-based-arabic-noisy/) names CTC in a study of noisy-character deduplication for Arabic using a lightweight encoder. The application shifts the alignment question from acoustic frames and transcript characters to a task whose stated aim is deduplicating characters. In the speech paper, CTC’s treatment of repetitions and blanks gives several frame-label paths a common textual output while preserving genuine repeated letters when they are separated appropriately. That aspect of CTC explains its relevance to a later task concerned with character repetition. The citation does not specify which details of the speech recognizer carry over to the Arabic system.

These works cite the paper from distinct points in the recognition and sequence-prediction workflow. Some extend the speech task to a larger scale, other languages, or a different population. Others address computation, data, training objectives, or the use of CTC in another setting. The contribution they cite is a concrete separation of responsibilities. A recurrent network supplies evidence for characters across the recording, and a first-pass search uses that evidence and a word prior to construct the transcript.

## Cite

Cite as Awni Hannun, Andrew L. Maas, Daniel S. Jurafsky and A.Y. Ng. 2014. First-Pass Large Vocabulary Continuous Speech Recognition using Bi-Directional Recurrent DNNs. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.1408.2873](https://doi.org/10.48550/arxiv.1408.2873) · [arXiv 1408.2873](https://arxiv.org/abs/1408.2873)

```bibtex
@misc{hannun2014first,
  title = {{First-Pass Large Vocabulary Continuous Speech Recognition using Bi-Directional Recurrent DNNs}},
  author = {Awni Hannun, Andrew L. Maas, Daniel S. Jurafsky and A.Y. Ng},
  year = {2014},
  doi = {10.48550/arxiv.1408.2873},
  eprint = {1408.2873},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1408.2873}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
