---
title: "End-to-end attention-based large vocabulary speech recognition"
description: "How attention-based speech recognition learns character alignments, shortens acoustic sequences, and combines speech evidence with…"
canonical: "https://research.elamur.ai/free/en/papers/bahdanau-2016-end-end-attention-based-large/"
---
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/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/bahdanau-2016-end-end-attention-based-large/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2016](https://md.research.elamur.ai/free/en/papers/2016/) / End-to-end attention-based large vocabulary speech recognition

# End-to-end attention-based large vocabulary speech recognition

Paper · 2016 · Dzmitry Bahdanau, Jan Chorowski, Dmitriy Serdyuk et al.

**Authors:** [Dzmitry Bahdanau](https://md.research.elamur.ai/free/en/authors/dzmitry-bahdanau/), [Jan Chorowski](https://md.research.elamur.ai/free/en/authors/jan-chorowski/), [Dmitriy Serdyuk](https://md.research.elamur.ai/free/en/authors/dmitriy-serdyuk/), [Philémon Brakel](https://md.research.elamur.ai/free/en/authors/philemon-brakel/) and [Yoshua Bengio](https://md.research.elamur.ai/free/en/authors/yoshua-bengio/) · **Year:** 2016 · **Venue:** IEEE International Conference on Acoustics Speech and Signal Processing · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**1,096** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2109886035) · [IEEE International Conference on Acoustics Speech and Signal Processing](https://openalex.org/S4363607879) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [PDF](https://arxiv.org/pdf/1508.04395)
- [DOI 10.1109/icassp.2016.7472618](https://doi.org/10.1109/icassp.2016.7472618)
- [arXiv 1508.04395](https://arxiv.org/abs/1508.04395)
- [OpenAlex](https://openalex.org/W2109886035)

Citations: OpenAlex, 2026-10-14.

## Deep dive: End-to-end attention-based large vocabulary speech recognition

How attention-based speech recognition learns character alignments, shortens acoustic sequences, and combines speech evidence with word probabilities. · about 35 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

Recognizing speech requires more than identifying sounds. A recognizer must connect a long sequence of acoustic measurements to a much shorter sequence of written symbols, even though the boundaries between those symbols are not supplied. This paper investigates whether an attention mechanism can learn that connection while the rest of the recognizer learns to produce a transcript. Its goal is a simpler training route for large-vocabulary [speech recognition](https://md.research.elamur.ai/free/en/topics/speech/): predict characters from speech features without first constructing a separate system to assign training labels to individual acoustic frames.

The proposed system has an encoder and a character-generating decoder. The encoder processes the recording in both temporal directions and produces a sequence of representations. The decoder generates the transcript incrementally. Before predicting each character, it assigns attention weights to locations in the encoded recording, gathers the relevant acoustic information, and combines it with its own record of previous output. Alignment is therefore part of the learned computation. The decoder uses both the content at a candidate location and the location of its previous focus, helping it follow a recording rather than repeatedly return to acoustically similar passages.

The central engineering problem is the cost of searching a long recording for every output character. The authors address it in complementary ways. They shorten the encoder’s output by letting upper recurrent layers process fewer temporal positions. They also restrict attention to a moving window, applying this restriction during training as well as recognition. Because an initially random attention mechanism cannot reliably guide its own window, training begins with broad alignment constraints estimated from the training material. These constraints help the system begin following the recording before it switches to windows centered on its previous attention.

The decoder already learns dependencies between characters, but the available speech transcripts provide limited material for learning written-language regularities. The authors therefore add a word-level [language model](https://md.research.elamur.ai/free/en/concepts/language-model/) through weighted finite-state transducers, which connect character spellings to word probabilities. On Wall Street Journal speech, the attention system performs better than the compared connectionist temporal classification systems when no external language component is used. With an external component, the picture is mixed: the paper reports a word error rate of 13.0% against 14.1% for one published comparison, and 11.3% against 9.0% for another, under the respective matched language settings. The contribution is a workable approach to learning speech-to-character alignment and making it computationally manageable, instead of a claim to the strongest recognition accuracy.

### Ideas worth borrowing

#### Reduce resolution where the task permits it

An input representation can preserve more temporal detail than the output task needs. The encoder initially receives closely spaced acoustic frames, but the decoder does not need to generate a separate symbol for every frame. By reducing temporal resolution between recurrent layers, the system retains a sequence of contextual representations while making that sequence shorter. This idea applies wherever dense measurements must support a coarser prediction: the useful question is how much detail the next stage needs, rather than whether every measurement should survive unchanged. The paper makes the reduction part of the learned processing hierarchy, so upper layers work at a slower temporal rate than lower ones.

#### Guide attention with its previous location

Content alone can be an unreliable guide when similar patterns occur repeatedly. Here, attention considers the decoder’s history, the acoustic content at a location, and features extracted from the previous attention distribution. The previous focus supplies a reference point for interpreting the current candidates. This is useful in sequence tasks where progress through an input matters as much as local resemblance. The transferable principle is to represent position through the system’s own recent behavior, rather than ask each attention decision to rediscover its place from content alone.

#### Make the search region a computational choice

The authors do not merely reduce the cost of computing an attention score. They reduce the set of locations for which scores are computed. A window around the previous attention median makes a long recording locally searchable. This distinction matters in other systems with expensive repeated selection: optimizing the scoring function and restricting its candidate set solve different problems. A useful restriction can change how cost grows with sequence length. It also introduces an assumption, however, because the desired location must remain reachable inside the window.

#### Use temporary structure to start learning

The moving window depends on an alignment that does not yet exist at initialization. The authors address this dependency with a separate startup procedure: broad windows based on approximate leading silence and speech rate. These constraints do not provide exact character boundaries. They rule out enough implausible locations to help the network escape an unhelpful initial alignment. The broader lesson is that a training aid need not remain in the final procedure to be useful. A rough structural estimate can make a difficult learned behavior accessible, provided it leaves room for the correct solution.

#### Connect representations through an explicit interface

The recognizer produces characters, while the external language resource scores words. A spelling transducer connects those representations, allowing the system to use word probabilities without changing the recognizer’s output alphabet. This is a reusable integration pattern: keep each component’s natural representation and make the conversion explicit. It is especially helpful when one component is learned from paired observations and another comes from a different source. The interface remains inspectable, and the contribution of the external resource can be adjusted during search.

#### Inspect incentives created by combined scores

The final recognition objective combines acoustic-transcript probability, external language probability, and a length term. Their interaction creates a revealing failure: settings that encourage longer transcripts can make repeated movement through the recording attractive. The authors respond by narrowing the permitted backward attention range during decoding. The general lesson is that individually sensible scoring terms can create undesirable behavior when combined. It is useful to examine which actions improve the total score, especially when a search procedure can exploit behavior that training rarely encountered.

### How Mova uses it

For Mova, a small transparent language system implemented in Rust, the most relevant contribution is the paper’s separation of learned evidence, alignment, and explicit sequence constraints. That separation offers a design direction for a possible speech interface. It does not establish that Mova already contains the encoder, attention mechanism, or decoding procedure described here. No implemented connection to this recognizer is documented, so the applications in this section are proposals.

A possible integration would keep the speech recognizer as an acoustic front end and pass its textual output to Mova’s language-processing components. This would preserve a clear boundary between interpreting a recording and processing the resulting text. The paper is useful for thinking about that boundary because its character output does not require the acoustic network itself to make every word-level decision. Word spellings and language preferences can enter through a separate mechanism during recognition.

The finite-state interface is particularly relevant to a transparent implementation. A spelling transducer represents the relationship between characters and words explicitly. Its paths and weights can be inspected independently of the recurrent computation. A Rust implementation could expose which candidate spellings were available, which external language costs affected a transcript, and how those costs interacted with the recognizer’s score. Such an interface would make some decisions easier to trace, although it would not make the learned acoustic representations fully understandable.

The attention mechanism suggests a different form of inspection. For each generated character, the recognizer has a distribution over encoded acoustic locations. A future Mova speech interface could retain that distribution alongside the transcript, allowing a user or developer to examine the acoustic region associated with a prediction. This would support a limited kind of [interpretability](https://md.research.elamur.ai/free/en/topics/interpretability/): an account of where the system gathered information. It would not prove why a particular character was chosen, or establish that an attention peak corresponds exactly to a human-annotated boundary.

The training procedure also offers a useful engineering lesson for a small system. The authors distinguish the assumptions needed to start learning from those used after alignment becomes meaningful. If Mova eventually incorporates learned sequence alignment, those assumptions could be represented as explicit configuration and diagnostic information. A developer could distinguish a broad startup constraint from a window following previous attention, instead of treating both as an undifferentiated part of the network.

There is also a practical boundary to what should be borrowed. The paper evaluates a bidirectional recurrent encoder with beam search and an external language resource. It does not demonstrate that this arrangement is appropriate for a small Rust deployment, nor does it measure memory consumption or recognition latency in such an environment. Mova can borrow the modular interfaces, visible search constraints, and distinction between observed evidence and language preference without assuming that the complete recognizer fits its intended operating conditions.

### The problem and its context

#### Why alignment made speech recognition complicated

A recording and its transcript describe the same event at different resolutions. Acoustic analysis produces a long stream of feature vectors. Written language supplies characters and words whose durations vary, and whose boundaries are not given by the transcript. Training a recognizer therefore requires a way to connect these representations. The paper’s starting point is that a successful acoustic classifier is only part of the solution: the training and decoding machinery around it can remain elaborate.

The authors describe the prevailing approach as a hybrid of neural and statistical components. A neural network predicts hidden Markov states for individual acoustic frames. A hidden Markov model, or HMM, supplies the temporal structure, while other components contribute language probabilities and search over possible transcripts. The neural network replaces an earlier acoustic component without removing the surrounding sequence machinery.

The training labels for that neural acoustic component are themselves produced by another recognizer. A Gaussian mixture system combined with an HMM is trained first, then used to force an alignment between recordings and their known transcripts. That alignment assigns a target state to each frame. Only after this preparation can the neural network learn the framewise prediction task.

The objection is not that such a pipeline cannot work. It is that the acoustic network’s immediate objective is one step removed from the desired output. Predicting the supplied state label for each frame differs from predicting the correct transcript for the recording. The pipeline also retains dependence on an earlier training procedure whose purpose is to provide those state labels.

The authors ask whether an attention-equipped recurrent generator can replace the HMM’s role in connecting acoustic time to the output sequence. The proposed system learns from recordings paired with transcripts. It still contains identifiable functional parts, but those parts can be trained together through a differentiable speech-to-character computation.

#### Other routes to direct sequence prediction

The paper places this approach alongside connectionist temporal classification, typically abbreviated CTC. CTC makes it possible to train a recurrent network from an input sequence and a shorter target sequence without supplying their exact alignment. It handles the uncertainty by summing over possible alignments through dynamic programming.

According to the authors’ account, CTC had already produced promising character-based recognition results on Wall Street Journal and strong results on Switchboard. Those systems could then be combined with word-level language information. The paper also notes work in which finite-state decoding made CTC recognition competitive with neural-HMM hybrids.

[Deep Speech](https://md.research.elamur.ai/free/en/papers/hannun-2014-deep-speech-scaling-up-end/) is relevant both as an earlier end-to-end approach and as a reported comparison in the experiments. The important connection is the division between a character-producing acoustic system and a word-level language component. The attention recognizer preserves that useful division while changing how it represents alignment and output history.

CTC and the proposed decoder make different assumptions about successive labels. In the paper’s explanation, CTC does not itself provide the output-history mechanism of a language generator. The attention decoder, in contrast, contains a recurrent process that conditions each new character on previous output. This difference motivates the expectation that the attention system may be stronger when no separate language resource is supplied.

The paper also discusses the [RNN Transducer](https://md.research.elamur.ai/free/en/papers/graves-2012-sequence-transduction-recurrent-neural-networks/). That approach combines a network operating along the acoustic sequence with another recurrent network representing output history. It handles alignment through a dynamic-programming calculation that takes both networks into account.

The authors regard the transducer and attention approaches as broadly similar in expressive capability. Their distinction concerns how alignment enters the computation. A transducer works with a distribution over alignments, while the attention network computes its focus as part of its forward operation. The paper suggests that this difference could matter for future development, but does not establish which approach is generally preferable.

#### Attention as a way to connect variable-length sequences

The broader architectural setting is the encoder–decoder approach. An encoder transforms an input into a representation; a decoder uses that representation to generate an output whose length need not match the input’s. [Sequence to Sequence Learning with Neural Networks](https://md.research.elamur.ai/free/en/papers/sutskever-2014-sequence-sequence-learning-neural-networks/) is among the earlier work the authors cite in explaining this arrangement.

Attention makes the intermediate representation available selectively during generation. Instead of relying only on a fixed representation of the entire input, the decoder can gather different information at different output steps. The paper points to [Neural Machine Translation by Jointly Learning to Align and Translate](https://md.research.elamur.ai/free/en/papers/bahdanau-2014-neural-machine-translation-jointly-learning/) as an example in [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/), and to [Show, Attend and Tell](https://md.research.elamur.ai/free/en/papers/xu-2015-show-attend-tell-neural-image/) in image captioning.

Those connections explain the architectural motivation, but speech creates a particular scaling challenge. Acoustic sequences are long, and their fine temporal resolution can be excessive for character generation. An attention mechanism that considers every encoded frame before every character may spend much of its computation comparing positions that are irrelevant to the current output.

The immediate starting point is [Attention-Based Models for Speech Recognition](https://md.research.elamur.ai/free/en/papers/chorowski-2015-attention-based-models-speech-recognition/). The present paper extends its location-aware attention approach toward large-vocabulary recognition. Its additions focus on making long-sequence training feasible, shortening the encoded recording, and connecting character generation to a word-level language resource.

### The method, step by step

The recognizer can be understood as a sequence of transformations. Acoustic features enter a recurrent encoder. The encoder produces contextual representations at a reduced temporal resolution. A decoder repeatedly selects an acoustic context, updates its recurrent state, and predicts another character. During recognition, a search procedure combines those predictions with optional word-level language probabilities.

From acoustic frames to a scored transcript The steps in order.

#### Represent the recording as acoustic features

The input is a sequence of acoustic feature vectors. For each frame, the experiments use 40 mel-scale filterbank coefficients together with an energy value. The resulting 41 dimensional representation is expanded with first-order and second-order temporal derivatives, producing 123 feature values per frame.

The coefficients summarize the acoustic signal, while the derivative features describe changes over time. These vectors are the recognizer’s input; the system does not learn directly from an unprocessed waveform. That distinction matters when interpreting the phrase end-to-end. The jointly learned part connects established acoustic features to a character transcript.

A conventional encoder at this resolution would produce a hidden representation for every 10ms of the recording. The authors judge that sequence too detailed for their decoder. Much of the subsequent design concerns preserving useful context while reducing the number of positions that attention must inspect.

#### Build a recurrent representation

A recurrent network processes a sequence by updating a hidden state at each position. The paper first introduces the basic recurrence:

```
hₜ = g(Wₓₕxₜ + Wₕₕhₜ₋₁ + bₕ)
```

Here, xₜ is the input feature vector at position t, and hₜ is the new hidden state. The previous hidden state is hₜ₋₁. The matrices Wₓₕ and Wₕₕ contain learned connection weights, while bₕ is a learned bias vector. The function g applies a nonlinear transformation to each component.

This equation explains the basic information flow. The new representation depends on both the current observation and a compressed record of earlier observations. If the output computation and training objective are differentiable, their effects on the recurrent parameters can be calculated by propagating gradients backward through the sequence.

The paper also explains how a recurrent state can support sequence generation:

```
p(yₜ | y₁, …, yₜ₋₁) = p(yₜ | hₜ) = softmax(Wₕₗhₜ + bₗ)
```

The symbol yₜ denotes the next output label. The conditional probability describes that label given the preceding labels, represented through hₜ. The learned matrix Wₕₗ maps the hidden state to output scores, and bₗ supplies output biases. Softmax converts those scores into a probability distribution.

The normalization is defined as follows:

```
softmaxᵢ(a) = exp(aᵢ) / ∑ⱼ exp(aⱼ)
```

The vector a contains unnormalized scores. Its component aᵢ is the score for candidate i, exp denotes the exponential function, and the denominator sums exponentiated scores over candidates j. The result is the probability assigned to candidate i.

The probability of a complete generated sequence follows from the successive conditional probabilities:

```
p(y₁, …, yₜ) = p(y₁) ∏ᵢ₌₂ᵗ p(yᵢ | y₁, …, yᵢ₋₁)
```

The sequence contains labels from y₁ through yₜ. The product symbol multiplies the probability of each later label conditioned on the preceding labels, starting from the probability of the first label. This is the output-history principle that later becomes part of the attention decoder.

These equations introduce the mechanism rather than specify every detail of the final speech network. In particular, the final encoder uses gated recurrent units instead of the simple recurrence above.

#### Use gates to control recurrent memory

A gated recurrent unit, or GRU, gives the network more control over what it retains and replaces. The authors choose it because they consider its architecture simpler and easier to implement efficiently than the alternative recurrent transition they discuss.

The update gate is computed by:

```
zₜ = σ(Wₓzxₜ + Uₕzhₜ₋₁)
```

The vector zₜ is the update gate. The function σ is the sigmoid function, which produces gate values. The matrices Wₓz and Uₕz are learned transformations of the current input xₜ and previous state hₜ₋₁.

The reset gate is computed separately:

```
rₜ = σ(Wₓrxₜ + Uₕrhₜ₋₁)
```

The vector rₜ is the reset gate. The matrices Wₓr and Uₕr are learned parameters. As with the update gate, the decision depends on both the current input and the existing recurrent state.

The network then constructs candidate hidden activations:

```
h̃ₜ = tanh(Wₓₕxₜ + Uᵣₕ(rₜ ⊗ hₜ₋₁))
```

The vector h̃ₜ is the candidate state. The symbol ⊗ means multiplication of corresponding vector components. The reset gate therefore controls how much of each component of hₜ₋₁ contributes to the candidate. Wₓₕ and Uᵣₕ are learned matrices, and tanh applies the hyperbolic tangent component by component.

Finally, the update gate combines the old state and candidate:

```
hₜ = (1 − zₜ) ⊗ hₜ₋₁ + zₜ ⊗ h̃ₜ
```

The new state hₜ blends retained information from hₜ₋₁ with the candidate h̃ₜ. The gate zₜ controls that balance separately for each component; the complementary factor determines how much old information remains.

This gated construction matters because speech recognition requires information to persist across varying spans. The paper does not present a controlled comparison of GRUs against other recurrent transitions. Its role here is an architectural choice within the complete system.

#### Read the recording in both directions

The encoder is bidirectional. A forward recurrent network processes the feature sequence in its ordinary order, while a backward network processes it in reverse. Their hidden states are concatenated at corresponding positions.

Consequently, an encoded location can reflect acoustic context on either side. It is not limited to what precedes that location in the recording. This makes the representation useful for interpreting locally ambiguous sound patterns, while also placing an important boundary on the experiment: the reported encoder is not described as a streaming system that must operate without future frames.

The authors stack recurrent layers so that each layer receives the hidden-state sequence produced below it. The experimental encoder uses 4 layers, each containing 250 forward and 250 backward GRU units. Depth and bidirectionality are therefore both part of the reported configuration.

#### Shorten the sequence between recurrent layers

A standard stack preserves sequence length. Every upper layer receives a state corresponding to every lower-layer position. The paper changes that arrangement by allowing upper layers to operate on a shorter sequence.

The architectural discussion permits either averaging neighboring states or selecting a subset. The reported experiments use sub-sampling: the upper layers read every second hidden state from the layer below. This happens in the top two encoder layers, producing an overall utterance-length reduction by a factor of 4.

The reduction does not mean the selected state represents only an isolated acoustic frame. It is already a recurrent representation influenced by surrounding sequence information. Upper layers can therefore process fewer positions while still receiving contextual features.

This is the first source of computational relief for attention. There are fewer encoded locations to compare with each decoder state. It also reduces work in the upper encoder layers, because those layers run over shorter sequences.

The paper’s rationale is task-specific. Acoustic frames are densely sampled, whereas character output progresses more slowly. The proposed hierarchy takes advantage of that mismatch instead of forcing every processing layer to preserve the original temporal resolution.

#### Gather a context for each output character

The decoder receives the encoder sequence, whose elements are written as hₗ. It does not consume that sequence in a fixed frame-by-frame progression. Instead, attention produces a weighted combination at each output step:

```
cₜ = ∑ₗ αₜₗhₗ
```

The vector cₜ is the acoustic context used at decoder step t. The index l identifies an encoded input position, and hₗ is its representation. The coefficient αₜₗ says how much that position contributes to the current context.

The attention coefficients obey:

```
αₜₗ ≥ 0,    ∑ₗ αₜₗ = 1
```

Every αₜₗ is non-negative, and their sum across encoded positions l is unity. They can therefore be interpreted as a distribution over input locations for the current output step t.

A context can draw from a region instead of a single frame. This is useful because a written character need not correspond cleanly to an isolated acoustic measurement. The decoder uses the gathered context together with its recurrent information to update its state and predict the next label.

The paper calls this combination an attention-based recurrent sequence generator. The recurrent part represents output history; the attention part determines which encoded acoustic information is relevant now.

#### Make attention aware of its previous focus

The attention mechanism begins by extracting features from the previous attention distribution:

```
F = Q * αₜ₋₁
```

The vector αₜ₋₁ contains the previous step’s attention weights. Q is a learned convolutional filter collection, and * denotes convolution along the input’s temporal axis. F contains the resulting location features; fₗ denotes the feature vector associated with position l.

The score for a candidate input position is then:

```
eₜₗ = wᵀ tanh(Wsₜ₋₁ + Vhₗ + Ufₗ + b)
```

The scalar eₜₗ is the attention score for position l at output step t. The vector sₜ₋₁ is the decoder’s previous recurrent state. The vector hₗ contains the candidate location’s encoded acoustic content, and fₗ describes its relation to the previous attention focus. W, V, and U are learned matrices; w and b are learned vectors. The superscript T indicates transposition, allowing w to turn the transformed feature vector into a scalar score.

Attention weights follow by normalizing those scores:

```
αₜₗ = exp(eₜₗ) / ∑ⱼ₌₁ᴸ exp(eₜⱼ)
```

The coefficient αₜₗ is the resulting weight for location l. The denominator sums across the L encoded positions, using j as the summation index. Exponentiation and normalization ensure the non-negative, normalized weights required for the context calculation.

The score combines distinct kinds of information. Decoder state describes what has been generated. Encoded content describes the sound at a candidate location. Convolutional features describe the recent focus. The authors build on earlier findings that this location information is important for reliable behavior on long recordings.

In the reported configuration, attention uses a centered convolution of width 200 to extract a single feature from the preceding alignment. This is a concrete setting of the location-aware mechanism, instead of a separate alignment system.

#### Restrict attention to a moving window

If every character prediction scores every encoded location, attention work grows with both sequence lengths:

```
attention cost = O(LT)
```

Here, L is the encoded input length and T is the output length. The notation O describes how computational cost scales. The product arises because the unrestricted procedure considers input–output position pairs.

The proposed restriction considers only a region around the median of the previous attention distribution:

```
allowed positions = (mₜ₋₁ − wₗ, …, mₜ₋₁ + wᵣ)
```

The value mₜ₋₁ is the median location under αₜ₋₁. The parameters wₗ and wᵣ determine the window’s leftward and rightward reach. Candidate positions outside this interval are excluded from the attention decision.

With a fixed window, the attention search no longer expands across the entire recording at each output step. Including the processing needed along the input, the paper describes the resulting scaling as:

```
windowed sequence-processing cost = O(L + T)
```

The symbols L and T again denote input and output sequence lengths. The additive form expresses the intended linear scaling when the attention window has a bounded size.

Earlier speech-attention work had used windowing at recognition time. This paper makes it part of training as well. That extension is central: a fast recognition algorithm does not by itself solve the cost of learning from long recordings.

#### Start with broad alignment constraints

A moving window assumes the preceding attention distribution points somewhere useful. At random initialization, that assumption fails. The authors report that the network could assign many characters to the same acoustic location, preventing meaningful progression through the recording.

They therefore begin with a different sequence of allowed regions:

```
Rₜ = (sₘᵢₙ + tvₘᵢₙ, …, sₘₐₓ + tvₘₐₓ)
```

The region Rₜ constrains attention for output character yₜ. The parameters sₘᵢₙ and sₘₐₓ describe rough bounds associated with leading silence. The parameters vₘᵢₙ and vₘₐₓ describe estimated variation in the relationship between transcript progression and encoded-input progression. The output index t advances the bounds through the recording.

These parameters come from rough estimates over the training set. The authors aim for windows that are restrictive enough to help learning while still including the acoustic region in which the target character occurs. The regions expand as generation proceeds, reflecting the uncertainty accumulated from an approximate rate estimate.

The initial training epoch uses these broad constraints. Training then restarts with windows centered on previous attention. The distinction is important: the startup procedure provides a rough external guide, whereas the later procedure follows the network’s own emerging alignment.

#### Train and regularize the network

Optimization uses [AdaDelta](https://md.research.elamur.ai/free/en/papers/zeiler-2012-adadelta-adaptive-learning-rate-method/) together with gradient clipping. The weight initialization is Gaussian, with variance 0.1. These settings concern how the network is fitted; they do not introduce a separate frame-labeling stage.

After the startup epoch, the training windows use w_L=w_R=100. Accounting for the encoder’s temporal reduction, the authors describe this as an 8 second acoustic span available at each prediction step. The window is therefore local relative to a long utterance, but still broad.

The main AdaDelta settings are ρ=0.95 and ε=10⁻⁸. Training continues until log-likelihood no longer improves. The authors then restart from the system selected by character error rate and anneal training with ε=10⁻¹⁰.

Regularization is necessary in their experiments. A column norm limit of 1 is imposed on weight matrices, restricting the incoming connection weights for each unit. This is distinct from clipping gradients during optimization: one constrains parameter magnitudes, while the other controls training updates.

The implementation uses Theano, Blocks, and Fuel. The paper also identifies its official code repository, named attention-lvcsr. These details locate the experimental implementation without changing the conceptual procedure: paired speech and transcripts train a recurrent encoder, an attention mechanism, and a character generator.

#### Connect characters to word probabilities

The character decoder learns output dependencies from speech transcripts, but those transcripts are a limited text source. The authors therefore supplement its predictions with a word-level n-gram resource, where an [n-gram](https://md.research.elamur.ai/free/en/concepts/n-gram/) represents a local sequence of words used in assigning language probabilities.

The integration problem is a mismatch of units. The recurrent generator proposes characters, while the external resource evaluates word sequences. A lexicon transducer spells each word as characters, providing the connection.

The composed finite-state structure is written as:

```
T = min(det(L ∘ G))
```

Here, G is the word-level language transducer and L is the spelling lexicon transducer. The symbol ∘ denotes composition, connecting their representations. The operation det means determinization, and min means minimization. In this equation, T names the resulting transducer; it is not the output-length symbol used in the complexity discussion.

The transducer has transitions with labels and weights. Paths connect a character sequence to a word sequence and its language cost. The authors move weights towards the initial state so that partial hypotheses can receive useful scores earlier, helping search discard unlikely candidates.

Full determinization becomes impractical for a sufficiently large resource, including the supplied WSJ trigram. The implementation therefore also handles nondeterministic transducers. It combines the probability contributions of all paths consistent with a character prefix, using the logarithmic semiring, and updates that total as characters are appended.

The practical meaning is that recognition need not choose an individual finite-state path prematurely. A partial character transcript can retain the probability mass associated with the compatible paths.

#### Search for a complete transcript

Recognition minimizes a combined cost:

```
L = −log p_ED(y | x) − β log p_LM(y) − γT
```

In this equation, L denotes the recognition cost, rather than the lexicon transducer or encoded length used elsewhere. The input recording features are x, and y is a candidate transcript. The quantity p_ED(y | x) is its encoder–decoder probability. The quantity p_LM(y) is its external language probability. The coefficient β controls the external contribution, while γ controls the length term. T denotes transcript length in this objective.

The language contribution can favor overly short outputs. The length term counteracts that preference, making the balance among the terms important. Its presence also explains why search behavior cannot be understood from acoustic likelihood alone.

The algorithm uses left-to-right beam search, retaining promising partial transcripts instead of examining every possible character string. Each hypothesis carries the recurrent decoder information and the finite-state information needed to extend it. A transcript is complete when it ends with the designated end-of-sequence symbol.

The stated stopping rule requires k completed hypotheses whose costs are lower than those of all unfinished hypotheses remaining in the beam. The experimental discussion does not give a separate numerical value for k.

For the strongest reported recognition setting, the beam size is 200. The paper describes roughly 10% relative improvement compared with beam size 10. Its decoding settings name α=0.5, although the earlier objective names the language coefficient β. That notation mismatch prevents treating the numerical setting as an unambiguous redefinition of the written equation.

The stated length settings are γ=1 with an external language resource and γ=0.1 without one. With the larger length incentive, the authors reduce the left attention window to w_L=10. Otherwise, a hypothesis can improve its score by revisiting acoustic material and continuing to generate output. The asymmetric window limits that backward movement.

### Experiments and results

#### What was trained and evaluated

The experiments use the Wall Street Journal corpus. Training uses SI-284, described as 81 hours of speech and about 37K sentences. The authors select hyper-parameters on dev93 and evaluate recognition on eval92. These splits have different roles: training fits the parameters, development guides choices, and evaluation supplies the reported recognition comparison.

The external language experiments use the 20K closed-vocabulary setup, with the bigram and trigram resources supplied alongside the corpus. The closed-vocabulary condition is important. Although the acoustic generator predicts characters, the integrated recognition setting uses a specified word inventory through the lexicon and language resource.

Text processing leaves 32 output labels. These include 26 letters, punctuation, space, a noise label, and the end-of-sequence symbol. The output space therefore differs from a recognizer that predicts phonemes or whole words directly.

The paper reports character error rate, abbreviated CER, and word error rate, abbreviated WER. CER assesses the character transcript; WER assesses the word transcript. Both are error measures for which lower values indicate better recognition. They answer related but different questions, since character mistakes do not translate into word mistakes in a fixed proportion.

The authors explicitly warn about comparisons with systems predicting phonemes. In their assessment, phonemes are easier prediction targets than characters. A lower reported error under that alternative target definition is therefore not automatically evidence that the underlying sequence method is stronger.

#### The reported word-error comparisons

The results discussion gives paired comparisons against published CTC-based recognition work. It states that the external language settings are matched within each comparison. Those pairs should be read separately, rather than treated as a ranking under one universal configuration.

WSJ eval92 word error rate in the Deep Speech comparison The attention recognizer has lower word error under the matched language setting.

**The numbers**

| System or setting | WER % |
| --- | --- |
| Deep Speech | 14.1 |
| Attention recognizer (this paper) | 13.0 |

This comparison supports a limited positive result. The attention recognizer can outperform the cited Deep Speech result when the language resources are matched as described by the authors. It does not establish that attention always outperforms CTC, because another reported comparison favors the CTC-based system.

WSJ eval92 word error rate in the Miao comparison The compared CTC system has lower word error under the matched language setting.

**The numbers**

| System or setting | WER % |
| --- | --- |
| CTC system reported by Miao and colleagues | 9.0 |
| Attention recognizer (this paper) | 11.3 |

The second comparison is central to the paper’s conclusion. The system is competitive enough to support the architecture’s feasibility, but it does not deliver the strongest cited recognition performance. The authors describe the trigram-enhanced result as useful without claiming state-of-the-art accuracy.

These comparisons also show why the character generator and final recognizer should be distinguished. Adding an external word-level resource changes the system being evaluated. A result obtained without it measures a different balance of acoustic interpretation and learned output regularity from a result obtained with finite-state language integration.

#### What changes when external language information is absent

Without an external language resource, the authors report that their attention system performs better than the compared CTC systems. They attribute this advantage to the recurrent decoder’s ability to learn dependencies among output characters.

The mechanism supports that interpretation. Every character prediction is conditioned on decoder state, which represents previous output. The system therefore has an internal source of sequence preference even when no separately trained word-level component participates in recognition.

The paper also reports that CTC gains more from adding external language information. That observation qualifies the standalone advantage. A system that starts with weaker output-history information can benefit greatly from a strong external resource, while a system already relying on an internal character generator may obtain a smaller additional gain.

The results discussion does not establish a complete causal account. Architecture, training behavior, and the interaction of score terms all differ. The external-language comparison is nonetheless informative because it reveals that the attention system’s standalone strength does not translate directly into superiority after integration.

#### Search quality and practical settings

The beam-size comparison offers evidence about decoding effort. Using beam size 200 gives approximately 10% relative improvement over beam size 10. The authors use the larger beam to report their best performance, but the comparison suggests that much of the attainable recognition quality remains available with a smaller search.

No matching runtime measurement accompanies that observation. A reader can conclude that broader search helps accuracy under the authors’ conditions, but cannot infer how many recordings per unit time either setting would process.

Windowing is similarly supported at different levels. The computational argument establishes why restricting the candidate region avoids unrestricted input–output comparisons. The experiments show that recognition can work with the chosen windows. They do not provide a full measured curve relating window width to training time, memory consumption, and recognition error.

The main experimental outcome is therefore a combination of feasibility and qualification. The system learns speech-to-character alignment on the WSJ training material, combines with conventional word probabilities, and reaches credible recognition accuracy. Its final standing depends on the comparison and language setting, and the strongest cited alternative remains better.

### What the ablations show

The paper does not present a comprehensive ablation study that independently removes each architectural component; it offers configuration comparisons, training observations, and decoding failure analyses.

#### The external-language comparison supports an internal-history explanation

The clearest comparison changes whether an external language resource is available. The attention recognizer is stronger than the compared CTC systems without that resource, while CTC benefits more when the resource is added.

This pattern is consistent with the decoder’s built-in output-history mechanism. The attention system has already learned some character-sequence regularities from transcripts. It does not begin external integration from the same position as a recognizer without that recurrent output generator.

Consistency is weaker than proof. The experiments do not replace only the output-history component while holding the rest of the architecture fixed. They therefore support the authors’ explanation without isolating it as the sole reason for the performance pattern.

#### Regularization helps but does not settle the overfitting hypothesis

The authors report a consistent benefit from constraining weight magnitudes. They also describe overfitting during training. Together, these observations support treating regularization as necessary for this configuration instead of an incidental refinement.

Their broader explanation is that the decoder’s internal language learning has too little text. The speech transcripts contain fewer than 4 million characters, and the discussion connects that scale to earlier reports of recurrent overfitting.

The paper does not isolate the language-generating subnetwork and measure its memorization independently. Weight constraints apply broadly, and improvements could reflect changes in several parts of the network. The claim that internal language overfitting explains the gap to the stronger CTC result remains a hypothesis.

#### Initialization reveals a dependency in learned alignment

The startup observations expose a specific training problem. An untrained attention mechanism may repeatedly focus on one location. A window centered on that focus would then preserve the bad alignment instead of correcting it.

The broad initial constraints address this dependency by supplying a plausible range before learned attention can guide itself. The reported training procedure demonstrates that such a handover is workable.

There is no separate quantified comparison of all possible initialization strategies. The evidence is an observed failure mode and a successful remedy, instead of a general ranking of alignment-learning procedures.

#### Decoding reveals an interaction between length and movement

The backward-looping problem is particularly instructive because it involves the whole recognition objective. A length reward can make continued generation attractive, and the encoder–decoder probability may not sufficiently penalize revisiting earlier acoustic material.

Reducing the left window prevents large backward moves under the reported setting. That observation shows that attention constraints influence more than computational cost: they can restrict behaviors that exploit the scoring rule.

It does not show that the chosen asymmetry is optimal or that looping is impossible under every alternative configuration. The paper reports a targeted response to a concrete search failure.

#### Pooling and windowing remain partly bundled

The final encoder uses temporal reduction, and the final training procedure uses attention windows. Both have clear computational motivations, but the paper does not separately quantify their contribution to final error in a fully controlled comparison.

A reader should therefore distinguish architectural reasoning from measured attribution. Shorter encoded sequences require fewer attention locations, and bounded windows require fewer candidate scores. Those mechanisms are explicit. Their individual effects on recognition quality are not established with the same precision as the reported end-system comparisons.

### Limitations

#### Limits stated by the authors

The authors explicitly acknowledge that their final recognition accuracy does not match the strongest cited result. Their contribution is a simpler trainable sequence architecture with techniques that make long acoustic inputs manageable. It should not be read as an accuracy record.

They also identify limited transcript text as a likely weakness. The decoder learns language regularities jointly with the speech task, but the available material is small enough for overfitting to be a concern. Weight constraints improve performance without resolving the overall gap.

Their proposed remedies are future directions. These include training with larger annotated speech collections, supplying a recurrent language component trained on a larger text corpus, and learning a tighter integration with an n-gram resource. The experiments do not demonstrate the benefits of those proposals.

The authors further acknowledge a finite-state engineering limit. Determinizing the full composed structure becomes impractical for the supplied trigram resource. Their nondeterministic calculation addresses this case, but the initial compact formula should not be interpreted as an operation that is straightforward at every resource size.

Finally, the paper cautions against direct comparisons with phoneme-predicting systems. Target representation changes task difficulty. That caveat limits how broadly the reported error table can be used to rank recognition approaches.

#### Limits visible in the evaluation setup

The experiments concern a particular corpus, acoustic representation, and language configuration. They do not establish robustness to other recording conditions, speaker populations, languages, or conversational settings. Those are untested extensions rather than demonstrated failures.

The 20K closed-vocabulary condition also narrows the interpretation of character output. A character generator can represent spellings compositionally, but the evaluated external-language setup includes a lexicon and a defined vocabulary. The results therefore do not establish unrestricted recognition of previously unseen words.

Bidirectional encoding makes future acoustic context available. The paper does not evaluate the same architecture under a requirement to emit characters before later frames arrive. Its findings consequently do not establish low-latency or streaming recognition.

Computational scaling and practical efficiency are related but distinct. Windowing changes the number of attention comparisons as sequences grow, and pooling shortens the representation. The paper does not supply enough timing or memory evidence to translate those mechanisms into a precise deployment cost.

The training procedure also includes estimated alignment bounds, acoustic feature extraction, regularization, and decoding constraints. Removing forced frame alignment simplifies the pipeline, but does not eliminate task-specific design decisions. End-to-end learning here means joint learning of the speech-to-character computation within those choices.

#### Limits of the explanatory claims

The internal-language overfitting explanation is plausible and supported by observed training difficulty, but it is not experimentally isolated. The weaker final result could also involve how external probabilities combine with decoder predictions or how search explores the resulting objective.

Similarly, attention weights expose where information is gathered without establishing a unique linguistic segmentation. The paper does not evaluate their agreement with independent character-boundary annotations. They should be understood as part of the recognizer’s computation, not automatically as ground-truth acoustic boundaries.

Windowing introduces an assumption about continuity of focus. Its efficiency comes from excluding locations, so it can also exclude a useful location if the current alignment is wrong. The successful WSJ setting does not prove that the same window choices accommodate every speaking rate or alignment disturbance.

The notation mismatch between β in the objective and α in the decoding settings is a small but material reproducibility issue. The intended role is a tuned language contribution, yet the written parameter names do not align cleanly. A careful account should retain that uncertainty rather than silently repair it.

### What came after

The citing works place this paper within a broad research neighborhood: speech recognition, sequence generation, language representation, regularization, and spoken-language applications. Citation establishes that the later authors engaged with the work. It does not by itself show that they implemented its attention mechanism, pooling hierarchy, or finite-state integration.

That distinction matters because the central ideas are separable. A subsequent system might borrow attention while changing the encoder, study character output without using this attention mechanism, or cite the paper as an example of direct sequence learning. The connections below describe the research directions identified by the later titles and explain which part of the present paper makes those directions relevant.

#### Improving speech recognition beyond the alignment mechanism

[SpecAugment: A Simple Data Augmentation Method for Automatic Speech Recognition](https://md.research.elamur.ai/free/en/papers/park-2019-specaugment-simple-data-augmentation-method/) addresses speech-recognition data augmentation. Its relationship to this paper is at the level of improving a learned recognition system rather than replacing the basic transcription task. Here, the central difficulty is learning and efficiently searching an acoustic-to-character alignment; augmentation concerns what variation a recognizer encounters during training. The citing relationship does not establish a particular augmentation procedure or measured benefit for this exact architecture.

[Deep Speech 2: End-to-End Speech Recognition in English and Mandarin](https://md.research.elamur.ai/free/en/papers/amodei-2015-deep-speech-2-end-end/) belongs to the same broader effort to make recognition more direct. Its title identifies end-to-end recognition across the named languages. It is relevant to the paper’s ambition to reduce dependence on a conventional hybrid pipeline, but should not be treated as evidence that attention was universally adopted. The present paper itself distinguishes attention from other routes to end-to-end recognition, and its conclusions leave room for competing sequence mechanisms.

The pair [Direct Acoustics-to-Word Models for English Conversational Speech Recognition](https://md.research.elamur.ai/free/en/papers/audhkhasi-2017-direct-acoustics-word-models-english/) and [Building competitive direct acoustics-to-word models for English conversational speech recognition](https://md.research.elamur.ai/free/en/papers/audhkhasi-2017-building-competitive-direct-acoustics-word/) identifies another important direction: making words the direct recognition target. That changes the representation boundary emphasized here. This paper predicts characters and connects them to words during search; direct acoustics-to-word work places word prediction in the task description itself. The titles establish that contrast, without supplying a basis for comparing vocabulary handling or accuracy.

#### Revisiting the output representation

[Achieving Open Vocabulary Neural Machine Translation with Hybrid Word-Character Models](https://md.research.elamur.ai/free/en/papers/luong-2016-achieving-open-vocabulary-neural-machine/) addresses word and character representations in translation. The connection is conceptual: both settings must decide what units a sequence generator should produce and how different units can interact.

The speech paper demonstrates a practical reason to separate units. Character output gives the acoustic network a small label inventory, while word probabilities contribute through a spelling interface. The later translation title identifies a related representational concern, but does not establish use of this finite-state construction. It would be unjustified to infer an identical integration method merely because both works involve characters and words.

[Multilingual Language Processing From Bytes](https://md.research.elamur.ai/free/en/papers/gillick-2016-multilingual-language-processing-bytes/) moves the representation question towards bytes and multilingual processing. In relation to this paper, it highlights that choosing characters is itself an architectural decision instead of the only route to direct sequence processing. The supported connection concerns the level at which text is represented. The citing information does not provide a specific mechanism, experiment, or performance comparison to report.

#### Studying hierarchy, confidence, and scale

[Hierarchical Multiscale Recurrent Neural Networks](https://md.research.elamur.ai/free/en/papers/chung-2016-hierarchical-multiscale-recurrent-neural-networks/) is relevant to the encoder’s use of different temporal resolutions. This paper makes upper layers run over fewer positions because the original acoustic sequence is unnecessarily dense for character generation. The later title identifies hierarchy and multiple scales as its subject. That places temporal organization within a broader research direction, although it does not show that the later architecture uses the same sub-sampling rule.

[Regularizing Neural Networks by Penalizing Confident Output Distributions](https://md.research.elamur.ai/free/en/papers/pereyra-2017-regularizing-neural-networks-penalizing-confident/) connects to the paper’s concern about overfitting. The present experiments constrain weight magnitudes; the later title describes regularization through output confidence. These are different points at which learning behavior can be controlled. The citing relationship supports discussing regularization as an ongoing concern, but supplies no result showing that a confidence penalty resolves this recognizer’s internal-language problem.

[Deep Learning Scaling is Predictable, Empirically](https://md.research.elamur.ai/free/en/papers/hestness-2017-deep-learning-scaling-predictable-empirically/) makes empirical scaling its subject. The present paper suggests that more annotated speech could make overfitting less severe, but does not test that prediction. The later work is relevant to the larger question of how learning changes with scale. Its inclusion cannot be used to convert this paper’s suggestion into an established result for the reported attention recognizer.

#### Extending speech processing toward applications

[Snips Voice Platform: an embedded Spoken Language Understanding system for private-by-design voice interfaces](https://md.research.elamur.ai/free/en/papers/coucke-2018-snips-voice-platform-embedded-spoken/) identifies deployment and spoken-language understanding as its setting. That broadens the concern beyond transcription accuracy. The present recognizer produces text from speech; an embedded voice interface must use spoken input within an application. The later title establishes that application context, without documenting adoption of this encoder or its resource requirements.

[End-to-end speech-to-dialog-act recognition](https://md.research.elamur.ai/free/en/papers/dang-2020-end-end-speech-dialog-act/) identifies a different output objective: recognizing dialog acts from speech. Its relevance is the general sequence-processing question raised here—what representation should connect acoustic evidence to the desired output? This paper chooses characters and evaluates transcription. A dialog-act task changes what counts as a successful prediction, so its citation should not be interpreted as an extension of the reported word-error results.

[Context-aware Neural-based Dialog Act Classification on Automatically Generated Transcriptions](https://md.research.elamur.ai/free/en/papers/ortega-2019-context-aware-neural-based-dialog/) instead names automatically produced transcripts as an input to dialog-act classification. That makes the recognizer’s output an intermediate representation for further analysis. It illustrates why transcription errors can matter beyond the recognition benchmark, while the available description does not support claims about how that later system handled particular errors.

[Weakly-supervised word-level pronunciation error detection in non-native English speech](https://md.research.elamur.ai/free/en/papers/korzekwa-2021-weakly-supervised-word-level-pronunciation/) and [Automated detection of pronunciation errors in non-native English speech employing deep learning](https://md.research.elamur.ai/free/en/papers/korzekwa-2022-automated-detection-pronunciation-errors-non/) identify pronunciation assessment as another application area. The relationship to the present work is the need to connect acoustic evidence with linguistic units. Their titles do not establish that attention weights serve as pronunciation boundaries or that this recognizer can diagnose pronunciation errors. Those would require separate evaluation.

Across these connections, the paper’s most reusable contribution remains the way it organizes the problem. It learns an acoustic-to-character relationship, makes the alignment computation explicit, reduces the temporal search burden, and keeps word-level knowledge available through a separate interface. The later research directions show how many questions surround that arrangement: what units to predict, how to regularize learning, how to use more data, and how speech output should connect to an application.

## Cite

Cite as Dzmitry Bahdanau, Jan Chorowski, Dmitriy Serdyuk, Philémon Brakel and Yoshua Bengio. 2016. End-to-end attention-based large vocabulary speech recognition. IEEE International Conference on Acoustics Speech and Signal Processing.

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

```bibtex
@inproceedings{bahdanau2016end,
  title = {{End-to-end attention-based large vocabulary speech recognition}},
  author = {Dzmitry Bahdanau, Jan Chorowski, Dmitriy Serdyuk, Philémon Brakel and Yoshua Bengio},
  booktitle = {IEEE International Conference on Acoustics Speech and Signal Processing},
  year = {2016},
  doi = {10.1109/icassp.2016.7472618},
  eprint = {1508.04395},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1109/icassp.2016.7472618}
}
```

> 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)
