---
title: "Transformers with convolutional context for ASR — Mohamed 2019"
description: "How a speech recognition Transformer uses convolutions to learn local order, and what that design changes in LibriSpeech transcription."
canonical: "https://research.elamur.ai/free/en/papers/mohamed-2019-transformers-convolutional-context-asr/"
---
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/mohamed-2019-transformers-convolutional-context-asr/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2019](https://md.research.elamur.ai/free/en/papers/2019/) / Transformers with convolutional context for ASR

# Transformers with convolutional context for ASR

Paper · 2019 · Abdelrahman Mohamed, Dmytro Okhonko and Luke Zettlemoyer

**Authors:** [Abdelrahman Mohamed](https://md.research.elamur.ai/free/en/authors/abdelrahman-mohamed/), [Dmytro Okhonko](https://md.research.elamur.ai/free/en/authors/dmytro-okhonko/) and [Luke Zettlemoyer](https://md.research.elamur.ai/free/en/authors/luke-zettlemoyer/) · **Year:** 2019 · **Venue:** arXiv (Cornell University) · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**137** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2941814890) · [Cited by **27** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/mohamed-2019-transformers-convolutional-context-asr/cited-by/) · [arXiv (Cornell University)](https://openalex.org/S4306400194) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

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

Citations: OpenAlex, 2026-10-14.

## Summary

A speech recognizer has to turn a stream of acoustic measurements into a sequence of written words. Evidence about a sound may lie in the frames immediately around it, while evidence about a word may come from much farther away in the utterance. A [Transformer](https://md.research.elamur.ai/free/en/concepts/transformer/) can use attention to connect distant positions, but its basic attention operation gives no special status to the position immediately before or after the one it is processing. This paper asks whether learned convolutions can supply that local sense of order before attention operates.

The authors put convolutions on both sides of an encoder–decoder recognizer. The encoder applies filters across nearby time frames and feature positions, then pools the resulting features before passing them to the Transformer stack. The decoder applies temporal filters to the embeddings of the output units already available at each step. The system omits the usual sinusoidal position signals. Its convolutions distinguish positions within a local window, while attention can combine the resulting representations across a larger span. During transcription, the encoder can attend over the complete recording. The decoder keeps output generation left to right by restricting both its convolutions and its self-attention to the available history.

The authors train and evaluate on LibriSpeech. In their architectural comparisons, replacing the decoder's convolutions with sinusoidal position signals worsens word error rate. Adding the sinusoids alongside the convolutions brings no observed gain. The experiments also favor building a wider decoder context through stacked convolutional layers and allocating more Transformer depth to the encoder. Training reaches the reported results with AdaDelta, a fixed learning rate of 1.0 and no learning-rate warmup.

The final system scores 4.7% word error rate on LibriSpeech test clean and 12.9% on test other, without a separate language model trained on extra text. Against previously published results under that text condition, the authors report relative word error rate reductions of 12% on dev other and 16% on test other. The direction of the decoder comparisons supports the use of learned local context for representing sequence order. The headline scores belong to the complete system, which also uses a deeper encoder, wider feed-forward layers and a larger decoding beam than the standard experimental configuration.

## Deep dive: Transformers with convolutional context for ASR

How a speech recognition Transformer uses convolutions to learn local order, and what that design changes in LibriSpeech transcription. · 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

#### What has to carry the order of an utterance?

In automatic [speech](https://md.research.elamur.ai/free/en/topics/speech/) recognition, an utterance arrives as a sequence of measurements and leaves as a sequence of text units. The correspondence can be indirect. Part of a word may extend over several acoustic frames, and the useful evidence for interpreting a frame can include what is happening nearby. The written output follows its own sequence. When the recognizer is deciding what to write next, the units it has already written provide context for that decision. The input and the output therefore pose related order problems at different scales.

An encoder–decoder architecture gives those problems different places to be solved. The encoder transforms the acoustic observations into representations the rest of the system can use. The decoder consults those representations as it builds a transcription. The decoder also conditions each step on the output prefix, the text units produced so far. This arrangement leaves room for several kinds of dependence. The encoder can learn which sound patterns belong together locally, and the decoder can learn which continuations fit a prefix. Attention between them gives the decoder a way to retrieve evidence in the recording as its needs change.

The Transformer makes it possible for positions far apart in a sequence to interact through attention. A position sends out a query, compares it with keys derived from other positions, and combines their values according to those comparisons. In the basic operation, the sum has no built-in preference for the preceding frame over a frame much farther back. For a given query, reordering the paired keys and values leaves the weighted sum the same if their contents stay the same. What matters is the information inside the representations and how it affects the weights. Recognizing an ordered sequence therefore requires a way for the representations or the attention computation to carry information about order.

The original Transformer in [Attention Is All You Need](https://md.research.elamur.ai/free/en/papers/vaswani-2017-attention-all-need/) supplies that information with sinusoidal positional embeddings. These are vectors whose components vary with sequence position. Adding a position vector to a content representation gives later layers access to information about where the content came from. The ASR paper takes a different route. It makes the representation at a position depend on its ordered neighborhood before attention sees it. A filter can respond differently to a pattern depending on which part of its window contains the pattern. A change in local order can consequently change the content of the representation itself.

#### How earlier recognition systems reached this question

The paper traces a path from separate acoustic and language components to jointly trained sequence systems. Earlier neural work improved both kinds of component. The acoustic side learns to represent evidence in the recording. A [language model](https://md.research.elamur.ai/free/en/concepts/language-model/) learns regularities in sequences of output units. Methods such as connectionist temporal classification, or CTC, and the alignment-free loss ASG made it easier to train recognizers with letters as output units. An alignment-free objective removes the need to label which individual acoustic frame corresponds to each written unit. The paper places work such as [Deep Speech](https://md.research.elamur.ai/free/en/papers/hannun-2014-deep-speech-scaling-up-end/) in that line of development.

Sequence-to-sequence work in [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/) offered another way to simplify the architecture. An encoder represents an input sequence and a decoder produces an output sequence, with the two parts trained together. The paper identifies [Learning Phrase Representations Using RNN Encoder–Decoder](https://md.research.elamur.ai/free/en/papers/cho-2014-learning-phrase-representations-rnn-encoder/) and [Sequence to Sequence Learning with Neural Networks](https://md.research.elamur.ai/free/en/papers/sutskever-2014-sequence-sequence-learning-neural-networks/) as precedents. Attention-based speech recognition applied the encoder–decoder idea to acoustics and text. The decoder could direct its attention to the encoded recording during generation, as in the line of work represented by [Attention-Based Models for Speech Recognition](https://md.research.elamur.ai/free/en/papers/chorowski-2015-attention-based-models-speech-recognition/).

Recurrent architectures provide a path for order through the computation itself. A recurrent state at a given step depends on earlier steps, and a system such as an LSTM uses memory cells to help preserve useful information. The paper emphasizes that the influence of stored information can weaken over many steps. Self-attention creates a direct interaction between positions in the range it can see. This was attractive for a task where a recognizer may need to relate information scattered across an utterance. The success of the Transformer in translation and in language understanding work such as [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/) gave the authors a reason to explore that option for speech.

The authors describe prior speech work with Transformers in both CTC and encoder–decoder systems. They also discuss a hybrid recognizer that combined time-restricted key–value attention with time-delay and recurrent layers. Restricting the attention window made it possible to represent positions within that window with one-hot vectors, which have a designated active entry for each position. The authors found the evidence for a particular attention context size inconclusive. More broadly, the earlier systems disagreed on whether to include explicit position information, add it directly to the acoustic features, or concatenate it with those features so that the network could learn how to use the two together.

Convolutions already had a place in acoustic encoders. The paper cites work that put them ahead of recurrent layers primarily to reduce computational demands, with little reported effect on recognition performance in that setting. The role assigned to them here is broader. They process acoustics before the encoder Transformer and output history before the decoder Transformer. In both places their filters have an ordered local field of view. The authors expect that structure to make it easier to learn nearby dependencies early in the network and to leave the attention layers free to work with representations that already contain them.

#### Why local context and long-range attention can coexist

A convolution and an attention layer organize evidence in different ways. A convolution applies learned weights at fixed offsets within a window. As it moves along the sequence, it can look for the same configuration wherever that configuration appears. Attention assigns weights by comparing the representations available at each step. Its choices can therefore depend on the content of the current query, and the positions it consults may be far from one another. Putting the two operations in sequence means that the keys and values available to attention can encode recognizable local patterns.

The authors argue that a sufficiently flexible Transformer could learn behavior resembling a local filter in its lower layers. Their concern is the optimization burden of asking it to discover such behavior while also learning the larger relationships the task requires. Building the local window into the architecture gives the lower layers a prescribed way to combine neighboring positions. The filter weights still have to be learned. The prescribed part is the set of offsets the filter can see and the distinction between those offsets. That distinction is the basis for the paper's account of implicit relative position.

This reasoning motivates two experimental questions. The first is whether the local context can replace the sinusoidal signal in the tested architecture. The second is how that context should be distributed across layers, especially in the decoder, where the set of allowable inputs depends on which units have already been generated. Depth on the encoder side raises a related question. Once local acoustic patterns have been constructed, the recognizer still needs to organize them into a useful representation of the utterance. Increasing encoder depth changes how much processing can take place before the decoder ever consults the recording.

### The method, step by step

#### From a recording and a text prefix to a prediction

The recognizer takes two sequences at different points in its computation. The encoder receives features extracted from the recording. The decoder receives a prefix of output units and the encoder's representation of the audio. Each has a convolutional stage below its Transformer layers. On the encoder side this stage detects patterns in the acoustic feature array and reduces its resolution through pooling. On the decoder side it turns nearby output embeddings into a representation of the latest part of the prefix. Decoder attention then connects that local history to earlier output positions and to the encoded recording.

How the recognizer processes speech and generates text The steps in order.

The acoustic steps build a representation the decoder can consult throughout transcription. The prefix steps describe work that depends on the output position. As a predicted unit becomes part of a candidate prefix, it can affect the following prediction. The division also explains how the architecture can use the full recording while generating text in one direction. The future audio is available to the encoder in this setup. Future output units would reveal the very sequence that the decoder is supposed to construct.

#### Preparing the input and output units

The audio input consists of 80-D log mel-filterbank coefficients together with three features associated with fundamental frequency. A mel filterbank summarizes the signal's energy across frequency bands. Taking logarithms changes how differences in energy are represented. The fundamental-frequency features add evidence related to the periodicity of the signal. The authors compute these measurements every 10ms, using a 25ms window. Each acoustic position therefore describes a short span of the waveform, and consecutive positions reflect overlapping stretches of sound.

These features form an ordered array. One axis follows time, and the other indexes the acoustic features at a timestep. A filter that moves over both axes can combine nearby information in the array. Computing acoustic features first gives the filters this structured input. Subsequent convolution and pooling determine what information at the original resolution is retained in a form the encoder Transformer can use.

On the output side, the authors use [subword tokenization](https://md.research.elamur.ai/free/en/concepts/subword-tokenization/). The vocabulary contains 5k units learned from the training text with the unigram option in SentencePiece. A sub-word is a written unit that can represent all or part of a word. Using such units allows the vocabulary to cover the training text while giving the decoder pieces it can assemble into a transcription. The paper sometimes describes the decoder context in terms of words. The temporal convolution in the specified system acts on the embeddings of the units in its output sequence, whose training vocabulary is sub-word based.

The output embedding turns the identity of a unit into a learned vector. The standard configuration uses an embedding dimension of 512. At a given position, that vector initially represents the unit at that position. The following convolution lets neighboring unit embeddings influence the representation that reaches attention. In particular, a unit can contribute differently according to where it occurs in the recent prefix.

#### Learning local structure in the encoder

The encoder starts with blocks of two-dimensional convolution. In the general description, a block contains a stack of convolutional layers and ends with two-dimensional max pooling. Each convolution is followed by layer normalization and a rectified linear unit, or ReLU. Layer normalization rescales activations within the representation. ReLU passes positive activations through and clips negative activations at zero. Applying these operations between convolutions allows the next filter to build on the transformed responses of the preceding one.

A filter in the initial layer sees a patch of the input array. Its weights distinguish earlier and later parts of that patch, as well as different offsets along the feature axis. In the next convolution, the inputs are already filter responses. A representation at that stage can describe a combination of patterns detected one stage earlier. The filter is applied repeatedly at different locations with the same weights. This makes the pattern reusable across the utterance and gives its representation an internal order tied to the offsets in the window.

Max pooling summarizes a neighborhood by taking the strongest response in it. A response can therefore be retained when its exact position varies within the pooling region. Pooling also reduces the resolution of the representation passed on to the next block or to attention. As a result, the time positions entering the encoder Transformer refer to locally processed regions of the acoustic input. The paper does not spell out a full indexing rule for mapping those positions back to the original frames.

The standard configuration has two encoder convolutional blocks. Each contains two convolutional layers with kernel size 3, followed by max pooling with kernel size 2. The first block has 64 feature maps and the second has 128. A feature map is the collection of responses produced by a filter channel as it is applied across the input. Multiple channels let the block represent several patterns at the same location and give the higher layers a choice of signals to combine.

Above the convolutional blocks, the standard encoder has 10 Transformer blocks. The Transformer dimension is 1024, the number of attention heads is 16, and the intermediate layer with a ReLU has size 2048. The convolutional output supplies the content on which the first block operates. The encoder self-attention can consider positions across the complete utterance. A locally learned acoustic pattern can thus affect representations well outside the convolutional window in which it was detected.

#### How attention combines positions

The paper gives the attention operation as follows.

```
Attention(Q, K, V) = Softmax(QKᵀ / √dₖ)V
```

The input at a Transformer layer has dimension dᵢₙₚᵤₜ, the number of components in each incoming position vector. Learned projections create the queries Q, keys K and values V. For a single attention head, the queries and keys each have dimension dₖ, and the values have dimension dᵥ. Q, K and V collect those vectors over the positions involved. The superscript ᵀ transposes the key matrix so that the product QKᵀ gives a dot-product score for each query and key pairing. The slash denotes division, and √dₖ is the square root of the key dimension. Softmax transforms the scaled scores for a query into a set of weights over its admissible keys. Multiplication by V forms a weighted combination of the value vectors. The equals sign identifies that combination as the output of Attention for the specified Q, K and V.

A query describes what the current representation is positioned to retrieve. A key describes the basis on which a candidate source can be selected. The value is the information actually supplied if that candidate receives weight. Learning separate projections means that the features useful for selecting a location can differ from the features useful once the location is selected. To keep the dot-product scores from growing too large, scale them by the reciprocal of the square root of the key dimension before running softmax. The weighted combination then carries more influence from values associated with higher weights.

In encoder self-attention, the queries, keys and values are all derived from the encoder sequence entering the layer. In decoder self-attention, they come from the decoder sequence at that level, with future positions blocked. In encoder–decoder attention, the decoder supplies the query and the encoded recording supplies the keys and values. The same basic operation therefore serves a different purpose depending on which sequence provides each role. An acoustic representation can gather evidence elsewhere in the recording, an output representation can gather evidence from the prefix, and the decoder can gather acoustic evidence relevant to its next decision.

The operation runs in parallel for each of h heads, where h denotes the number of separate attention computations in a layer. Each head has its own learned projections from dᵢₙₚᵤₜ to its query, key and value dimensions. For each position, the outputs of the heads are concatenated, placing the resulting dᵥ-dimensional vectors next to one another. A linear projection then sets the output to the dimension required by the rest of the layer. Multiple heads give the layer several ways to compare positions and retrieve information from them.

The Transformer block also contains operations applied at individual sequence positions. The paper describes dropout, residual connections and layer normalization, along with a feed-forward part made from fully connected layers with a ReLU between them. Dropout suppresses a subset of activations during training for regularization. A residual connection carries an earlier representation forward by adding it to the output of a transformation. The feed-forward part changes the information in the vector at a position after attention has gathered evidence. Its intermediate width controls the size of this internal transformation. It is a separate architectural choice from the number of attention heads.

#### Keeping the decoder causal

The decoder uses one-dimensional convolutions because the relevant neighborhood runs along the output sequence. The convolutional window ends at the current decoder position. Its inputs are the embeddings available from the generated history, so it cannot obtain evidence from a future prediction. The current position in this description is the endpoint of the available input window. In generation, the decoder uses the available prefix to score what can follow it.

The standard decoder has three convolutional layers with kernel size 3. It has no max pooling in this stage. Consequently, the decoder keeps a representation associated with each position in the prefix. Stacking the layers extends the reach of the representation. A higher filter can consult a nearby lower-layer position whose own response already incorporates a neighborhood. This creates a wider effective context through successive local operations. The paper tests different ways of arranging this context and reports the spans of interest without requiring an exact reconstruction of boundary handling.

Like the convolutions, decoder self-attention obeys the left-to-right generation rule. The decoder achieves this with a mask that makes subsequent output steps inaccessible. A position can attend to itself and earlier decoder positions. The local window in the convolution and the potentially much larger accessible span in self-attention thus operate under the same restriction. The convolution determines how ordered neighboring inputs are combined before attention. The mask determines which decoder positions can contribute once attention is applied.

The standard decoder has 10 Transformer blocks. Its Transformer dimension, head count and intermediate width match the standard encoder. Each decoder block also has a dedicated multi-head attention layer over the encoder output. This gives the decoder repeated opportunities to gather acoustic evidence. A decoding representation formed in an earlier block can be refined in a later block and used to ask a different question of the same encoded utterance. The authors vary access to this encoder-side attention in their comparisons and report that using it in multiple blocks helps recognition.

The architecture omits explicit positional encodings on both sides. The authors' account is that a vector coming from the convolution already contains information about local order. Suppose a detector responds to a feature early in its window. Moving that feature to a later offset can change the detector's response even if the feature itself stays the same. Subsequent attention can use the changed vector in its comparisons. This mechanism supplies order information through the contents of the vectors, while global relationships can be learned across those vectors in the Transformer stack.

#### Training and decoding

The authors train on the 1000h LibriSpeech training set and learn the output vocabulary from the training transcriptions. Their comparisons generally use the standard configuration as a common starting point. It has about 223M parameters. The reported training time for that configuration is about 24 hours for 80 epochs on 2 machines, each with 8 GPUs with 16GB of memory. This is the cost of the stated run under the authors' hardware setup.

The training recipe uses AdaDelta with a fixed learning rate of 1.0. AdaDelta adapts the updates during optimization, while the configured learning-rate setting stays fixed. Gradient clipping at 10.0 limits large gradients. The authors use a dropout rate of 0.15 across blocks in the default configurations. They do without a warmup schedule, which would start the learning rate lower and increase it during early training. Stable convergence under the fixed recipe is part of what they report about the system.

The recipe also omits scheduled sampling and label smoothing. Scheduled sampling changes how training exposes a decoder to its own earlier predictions. Label smoothing changes the training targets so that probability outside the designated answer is treated differently. The authors specify that these techniques were absent and that the training and decoding settings were left short of exhaustive optimization. Holding the recipe steady makes it easier to compare several architectural choices under a common procedure.

All configurations run for 80 epochs, and the reported results use an average of the last 30 checkpoints. A checkpoint is a saved state of the network. In this case, the parameters themselves are averaged so that inference uses a single set of weights. The authors view this as a way to bring the weights closer to a nearby minimum of the training objective. They say that different runs could have ended earlier at different points and choose the common duration to make the recipe easier to reproduce.

At inference, the decoder uses beam search. A beam keeps several candidate transcriptions in play as their prefixes grow. The usual beam size in the experiments is 5. The final recognition system uses a beam of 20. Under the reported conditions, there is no external language model trained on extra text to provide an additional score. The decoder must use the sequence regularities it learned from the speech training data together with the acoustic evidence from the encoder. The authors make their implementation available in Fairseq's speech recognition examples.

### Experiments and results

#### Reading the LibriSpeech evaluation

LibriSpeech supplies the training recordings and separate development and test subsets. The corpus is based on public-domain audiobooks. The paper uses the dataset's clean and other distinctions, with other representing the more acoustically challenging material. Development and test results serve different purposes. The development subsets allow the authors to examine behavior across configurations, while the test subsets give a separate measure of transcription performance. Reporting the difficulty groups separately shows where a change in architecture helps under the conditions available in the corpus.

The metric is word error rate, or WER. It compares a transcription with its reference in terms of word substitutions, deletions and insertions, with the error count expressed relative to the number of reference words. Lower values indicate closer agreement with the reference. Training the decoder to predict sub-words still permits evaluation at the word level. The sub-words are the pieces the recognizer predicts, while the recognizable words in the resulting transcription are the units scored.

Absolute WER is the error rate achieved by a system on a split. A relative WER reduction describes how much of a comparison system's error rate has been removed on the same split. Therefore, the absolute rate on test other and the relative reduction there answer different questions. The comparison also depends on what the competing systems were allowed to use. The authors group their strongest claims around recognition without extra text for an external language model, which keeps a major source of extra decoding information out of that comparison.

The contribution is evaluated at several levels. The positional experiments compare ways of giving the decoder access to order under a common encoder. Other experiments change the convolutional context or the allocation of depth. The final comparison combines architectural choices and places the resulting recognizer alongside published work. Each level supports a different inference. A targeted substitution gives evidence about a particular design choice, while a result from the completed configuration measures the performance of the choices operating together.

#### What serves as a baseline

Within the paper, the standard convolutional recognizer is the reference for the architectural variants. The decoder with sinusoidal positions is the closest comparison for the central positional question. The experiment removes the decoder's temporal convolutional context and supplies sinusoidal position information in its place. The encoder remains the convolutional encoder used in the standard configuration. Another variant keeps decoder convolutions and adds sinusoidal information as well. Together these comparisons test both replacement and supplementation on the output side.

The two questions are worth keeping distinct. When the convolution is replaced, the decoder loses its learned local preprocessing at the same time that it gains a different kind of position signal. That result compares architectural packages. When sinusoids are added to the convolutional decoder, local preprocessing remains and the authors can ask whether the explicit signal is helpful in addition. The reported WER favors the convolutional configuration over replacement, and the combined configuration yields no gain. The paper's interpretation is that the convolution provides enough positional information for the attention stack to work with in this setting.

The earlier published work serves a different role. The final comparison includes results from other recognizers evaluated on LibriSpeech, with some systems using a separate language model trained with more text. The authors include those figures for context and warn that the extra-text results are outside the direct comparison they emphasize. Their relative reductions on the harder subsets are against previously published results in the no-extra-text condition. The article can establish the reported reductions on those splits without assigning exact WERs to individual earlier systems, since the paper states the reductions in its discussion and gives no row values there.

A published system is a useful benchmark for the level of transcription performance that had been reached in the task setting. Architectural comparisons within the paper address a narrower question, since they preserve more of the surrounding design and training procedure. Both views are relevant to the contribution. A system can demonstrate an advantage against a positional alternative under controlled conditions and still need a broader comparison to establish how competitive its final WER is.

#### The final configuration

The final recognizer builds on the standard architecture. In its Transformer blocks, the intermediate ReLU layers have width 4k on both sides. It uses 16 Transformer blocks in the encoder and 6 in the decoder. The deeper encoder places more of the processing before the output-side attention to the recording. The decoder remains a Transformer stack with its convolutional prefix processing and direct access to the encoded audio. The authors decode with a beam of 20 for the final comparison, in place of the beam of 5 used in the ordinary experiments.

Final convolutional Transformer on LibriSpeech test clean and test other The same recognizer makes more word errors on the acoustically harder test subset.

**The numbers**

| System or setting | word error rate % |
| --- | --- |
| Final system, test clean (this paper) | 4.7 |
| Final system, test other | 12.9 |

The rows compare evaluation conditions for the same final recognizer. Test clean and test other expose it to different levels of acoustic difficulty. The table of external comparisons in the paper serves another purpose, and the authors' stated relative reductions describe those comparisons. On LibriSpeech dev other they report a 12% relative WER reduction compared with the earlier no-extra-text results. On test other they report a 16% relative reduction under the same restriction. The two figures show where the final system advances the published comparison most clearly.

The authors describe comparatively little improvement on the clean development and test material. They suggest that further gains there would benefit from an external language model trained on broader text. They also interpret the improvements on other as evidence consistent with better treatment of long-range acoustic characteristics, including features associated with speakers and recording environments. This is an interpretation of the pattern across splits. The metric measures closer transcription to the reference, so it cannot by itself identify the acoustic characteristics responsible for an improvement.

The headline test figures demonstrate the resulting system's performance under the stated decoding conditions. The convolutional design, redistribution of depth, wider feed-forward transformation and larger beam all belong to those conditions. The paper's smaller comparisons provide the evidence for some of these choices individually. Reading the final WER as a result for their combination preserves the distinction between competitive performance and evidence about which intervention caused it.

#### What the fixed recipe establishes

The authors obtain the reported results without adjusting the learning-rate schedule to warm up the Transformer. They also choose a common end point for training and average the late checkpoints across their runs. This is evidence that the architecture can be trained by the stated procedure on LibriSpeech. The training procedure includes clipping, dropout, adaptive optimization and averaging. Those details matter when interpreting the observation about the fixed learning-rate setting, since convergence took place with all of them in use.

A fixed training recipe also defines the conditions of the comparisons. When the decoder with convolutions performs better than the sinusoidal variant, the outcome is measured after each has been trained under the paper's general procedure. An architecture could respond differently to a dedicated hyper-parameter search. The authors' question is narrower and practically relevant. They ask which design choices give useful recognition performance with a common recipe that can be applied across their runs.

### What the ablations show

#### Replacing the decoder's position signal

The cleanest evidence about the paper's central design comes from changing how the decoder receives information about order. The starting decoder learns over local spans of output embeddings before its Transformer layers. In the positional baseline, sinusoids provide the position signal and the decoder loses that learned convolutional context. WER is worse with the replacement. In the additional comparison, the authors keep the convolutions and add sinusoids. They report no benefit from the combined position signals.

The first comparison gives evidence for the usefulness of the decoder's convolutional stage relative to the tested sinusoidal alternative. It does not separate a filter's sensitivity to order from the other ways it transforms the local embeddings. A convolution can learn patterns of co-occurrence and combine evidence from multiple output units as well as encode where those units fall within its window. The second comparison gives evidence that the convolutional decoder already carries enough information for recognition under the tested procedure. It leaves open which aspects of that information the attention layers use most.

The encoder is already convolutional in these experiments. The positional comparison therefore supports a decoder choice for the complete recognizer. It provides less direct evidence about the effect of replacing an explicit position signal on the encoder side. The paper's design uses the same idea of learned local order on both sides, but the two sides receive different kinds of input and the decoder has the more targeted comparison.

#### How far the decoder's convolution should reach

The decoder convolution experiments vary the size of the accessible neighborhood and how it is built across layers. The authors start from the canonical system for these runs. They adjust the number of one-dimensional convolutional feature maps to keep the total parameter count fixed across the configurations. This helps separate the benefit of spending capacity on a broader context from the simple benefit of adding more parameters.

The strongest configuration in this comparison builds a wider context through multiple convolutional layers. A deeper arrangement can compose local responses before the decoder Transformer takes over. This offers one reason the placement of capacity matters even with the overall budget held steady. The experiment varies the spatial reach and the depth through which that reach is attained. Its result favors the joint arrangement. It cannot assign the gain separately to the longer span and the additional transformations.

Even a decoder convolution with a context of 3 words, in the paper's terminology, gives what the authors describe as reasonable WER. The decoder Transformer still has access to earlier output positions through causal attention, even if the convolution has a short window. A short convolution therefore limits the neighborhood summarized in each input representation. It leaves a longer route through attention for relationships beyond that window. This distinction helps explain how a narrow local stage can be workable and a wider one can still help.

The controlled comparison also sets a boundary on what the context result means. Matching total parameters allows the scale of the whole system to be held steady. Adjusting the number of feature maps changes how capacity is employed within the front end. A wider span may be accompanied by a different channel allocation. The practical result concerns a design under a budget, which is the decision the comparison was set up to inform.

#### How often the decoder consults the recording

The decoder normally has an encoder-side attention layer in every Transformer block. The authors report that having several layers with this access is important for the best WER. Each layer can form its query using the decoder representation available at that depth. Repeated access gives later layers a fresh opportunity to select evidence from the encoded recording, after they have processed the output history and earlier acoustic evidence.

The experiment shows that the placement and frequency of access to the encoder matter for the tested recognizer. It does not identify what any particular decoder layer extracts. The reported effect is on the completed transcription. Since there is no separate analysis of the contents retrieved by each layer, the explanation in terms of repeated refinement is a reading of the architecture and its behavior.

#### Width, heads and depth

The intermediate ReLU layer is the part of a Transformer block that expands and transforms the representation at a position after attention. Increasing its width on the encoder and decoder sides improves WER across the evaluated sets. The authors also test what happens when they add more attention heads and hold the attention dimension constant. This worsens performance. The comparisons distinguish two ways of changing a block's capacity. A wider intermediate layer gives the position-wise transformation more room. A change in head count reorganizes the attention operation within the fixed dimension.

These results give a reason for using the larger feed-forward layers in the final architecture. They also show why the reported attention-head comparison should be read with its constraint attached. Adding heads at fixed attention dimension is the change that was tested. It leaves open what would happen if the total dimension or other settings were changed alongside the head count. The observed deterioration is specific to the intervention and conditions the authors describe.

The depth experiments look at how the Transformer layers are split between the encoder and the decoder. The authors consider configurations that hold one side steady while varying the other, as well as arrangements that redistribute a fixed total depth. They also increase the depth symmetrically up to 14 Transformer layers on each side. These configurations let them distinguish, to an extent, the effect of adding processing at all from the effect of putting it before or after the connection between acoustic encoding and output generation.

The strongest trend favors a deep encoder. A deeper decoder also improves recognition overall, but the authors regard its contribution as less critical. Their final system puts 16 Transformer blocks in the encoder and 6 in the decoder. This allocation is consistent with their view that the acoustic representations benefit from substantial processing before the decoder consults them. It also makes sense in light of the information available at each stage. Encoder layers can use relationships across the complete utterance. The decoder has that encoded evidence and an expanding prefix, with its own direct access to the encoder at successive levels.

The authors propose that a deep encoder learns regularities over locally discovered acoustic units and becomes better able to emphasize content despite variation in speakers and environments. The depth comparisons show an advantage in recognition under the tested conditions. The description of what the extra layers learn remains a proposed explanation. The paper offers no separate measurement of speaker information, environmental information or the recovery of position from the learned representations.

### Limitations

#### Boundaries set by the authors

The paper studies offline recognition. It explicitly leaves streaming outside the evaluation, and its encoder may attend throughout the utterance. A decoder that emits output from left to right can use representations influenced by audio that occurs later in the recording. Its causal mask controls access to future text positions. Running the same design on incoming audio would require deciding which acoustic information can be used before the whole utterance is available. No latency or streaming accuracy result is established by the reported experiments.

The authors use LibriSpeech as their recognition benchmark and intentionally avoid relying on smaller datasets. Their stated concern is that trends on small benchmarks may generalize poorly at the network capacities they study. The choice gives them a substantial training corpus and separately named difficulty groups. It leaves the architectural findings tied to the speech and evaluation conditions of that corpus. The paper does not test whether similar improvements appear under other recording conditions, with less training speech or for a different language.

The authors also explain that the settings and decoder were left short of full tuning. They use a general training recipe and say that some runs might have stopped earlier. This bounds the claim about the reported configuration. It establishes what the system achieves with the documented recipe, and the experiments give reasons for several design choices. Finding the best attainable result for each variant would require a broader search than the one used here.

The claim about learning-rate warmup has a similar scope. The reported recognizer converges under AdaDelta with a fixed setting of 1.0 and no warmup, along with the other ingredients of the recipe. The paper argues that early convolutions can make optimization easier by supplying local structure, but it does not present a systematic comparison of convergence for multiple optimizers and schedules. Stable training here establishes that warmup was unnecessary for the reported runs. It offers no general guarantee for other architectures or training procedures.

Finally, the authors frame their strongest performance comparison around systems that use no external language model trained on extra text. They name the combination with broader text and with training procedures such as Optimal Completion Distillation as future possibilities. These are proposals. The paper provides no trial in which either change is added to its own final system and evaluated against the same baseline. The question of whether such gains would accumulate remains open.

#### What can be inferred from the setup

The positional intervention changes two properties of the decoder at once. Replacing temporal convolution with sinusoids changes the way order is represented and removes a learned stage for composing the local prefix. Retaining the convolution and adding sinusoids helps test whether the explicit position signal adds value. It cannot determine how much of the original benefit came from sensitivity to order, how much came from local feature transformation, or how those effects interact. The comparisons make the architectural choice credible without directly measuring which relative positions the hidden vectors encode.

Evidence is also uneven across the encoder and decoder. The paper devotes its context-size study to the decoder. The encoder contributes a convolutional acoustic front end with pooling, and the encoder-depth comparisons show the importance of processing above it. Those comparisons leave the local front end in place. They do not independently isolate the acoustic effects of convolution, pooling and position information. A result about a decoder alternative cannot settle those encoder questions, even though both sides reflect the same architectural principle.

The final recognition gains are shared by the entire configuration. Broader feed-forward transformations, asymmetrical Transformer depth and a larger search beam accompany the convolutional context. A broader beam can keep more candidate prefixes available during decoding. Because the final comparison uses the broader beam, the headline WER cannot specify how much of the change came from the network and how much came from search. The smaller architectural comparisons are more informative about individual changes. They are also narrower than the comparison to earlier published systems.

The improvement on the acoustically harder subsets is compatible with the authors' explanation that the encoder handles long-range acoustic variation more effectively. Other explanations remain possible within the reported experiment. WER counts the consequences of recognition errors, without assigning an origin to each error. A reduction could arise through several interacting parts of the system. Testing specific explanations about speakers or environments would require a comparison that varies or measures those factors separately. Similarly, the relatively small changes on clean material do not by themselves show what an external text component would contribute.

Resource use is documented for the standard configuration. The parameter count, hardware and duration indicate what that run required. The paper's results do not provide a matched efficiency comparison across the architectural alternatives. A system can achieve better WER with a straightforward optimizer recipe while still requiring substantial compute to train. The run description makes the training conditions concrete and leaves comparative questions about throughput, memory use and deployment cost unanswered.

The experimental discussion gives qualitative directions for several ablations, while the absolute headline figures apply to the final test configuration. Qualitative outcomes establish which variants the authors found better under their recipe. With no variability estimates stated for these comparisons, the paper does not establish how sensitive differences between nearby settings are to repeated training. The larger pattern across the experiments is that a convolutional decoder and a substantial encoder are effective ingredients in this LibriSpeech system. Their exact degree of advantage outside that setting is an empirical question.

### What came after

The later citing papers take up several questions that meet at the boundary between a speech representation and the machinery that reads it. The convolutional-context paper asks what the attention stack should receive and which sequence relationships are best formed before attention begins. Subsequent titles identify work on learning speech representations from the audio itself, learning representations across languages, implementing speech-to-text systems and changing the attention operation. The citation links establish that these papers refer to the convolutional-context work. The different subjects also matter when interpreting what kind of connection each link establishes.

#### Learning the speech representation

[wav2vec 2.0](https://md.research.elamur.ai/free/en/papers/baevski-2020-wav2vec-2-0-framework-self/), from 2020, presents a framework for self-supervised learning of speech representations. Self-supervision makes aspects of the input data supply a learning signal. In the convolutional-context recognizer, the representations are learned as part of the task of transcribing speech, starting with the specified acoustic features. The later paper's subject puts the learning of speech representations itself in the foreground. This connects to the earlier paper through the question of what information a speech representation ought to carry before it is used for recognition. The citation alone leaves the role of the earlier paper's particular encoder and decoder choices unspecified.

[Unsupervised Cross-Lingual Representation Learning for Speech Recognition](https://md.research.elamur.ai/free/en/papers/conneau-2021-unsupervised-cross-lingual-representation-learning/), from 2021, makes the cross-language setting explicit. The 2019 recognizer establishes its results within LibriSpeech. The later work's subject is the learning of representations across languages for the purpose of speech recognition. In such a setting, the question of how representations combine local speech evidence and longer context can be asked alongside a further question about the scope of the learned representation. The named topic establishes that cross-language scope. It gives no basis for attributing a particular transfer result or decoder construction to the paper being discussed here.

Taken together, these works show two directions in which representation learning can be studied. One concerns the source of the learning signal. The other concerns the range of languages the resulting representations are intended to serve. Both connect to the architectural paper's choice to treat local representation as a distinct part of the recognizer. Neither a citation nor a shared interest in speech representations establishes that the later work reproduced the positional ablation, used the same filters or tested the same claim about sinusoidal signals.

#### Implementing speech-to-text systems

[Fairseq S2T](https://md.research.elamur.ai/free/en/papers/wang-2020-fairseq-s2t-fast-speech-text/), from 2020, addresses fast speech-to-text modeling within Fairseq. The connection has a concrete implementation context. The convolutional-context paper places its recognition code in Fairseq's speech recognition examples, and the later work names Fairseq as the setting for its speech-to-text work. An encoder–decoder design such as the one discussed here raises implementation questions at the interfaces between acoustic features, sequence layers and transcription search. A paper organized around speech-to-text tooling sits at that intersection. Its title and citation establish the shared setting, while the exact treatment of the earlier convolutional design is unspecified.

This matters because the earlier result is tied to a full recognition pipeline. There is a feature extraction step, a learned vocabulary, an optimization recipe and a decoding procedure surrounding the Transformer and convolutional layers. A speech-to-text toolkit is a setting in which those pieces have to be connected. The earlier paper's release addresses the use of its own implementation. The later paper identifies fast speech-to-text work with Fairseq as its subject. The relationship can be described at that level without inferring which configurations it adopts or the magnitude of any speed improvement.

#### Changing the attention operation

[Random Feature Attention](https://md.research.elamur.ai/free/en/papers/hao-2021-random-feature-attention/), from 2021, takes attention itself as its subject. The 2019 design uses the scaled dot-product attention operation and changes the representations entering it. This distinction places the two questions at different points in a sequence architecture. The earlier paper asks what should already be represented when attention compares queries and keys. The later work's title identifies an approach to the attention computation involving random features. The citation does not specify whether that work evaluates the speech recognizer, retains its local processing or applies attention under its decoding conditions.

Across these citing works, the strongest documented relationships are the shared interest in speech representations, the Fairseq implementation setting and the investigation of attention. The particular experimental contribution of the 2019 paper remains the evidence from LibriSpeech. It shows that local convolutional context can serve the tested Transformer decoder better than the sinusoidal replacement, and that a system built around that choice can achieve competitive transcription results under a fixed training recipe without extra text for decoding.

## Cite

Cite as Abdelrahman Mohamed, Dmytro Okhonko and Luke Zettlemoyer. 2019. Transformers with convolutional context for ASR. arXiv (Cornell University).

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

```bibtex
@misc{mohamed2019transformers,
  title = {{Transformers with convolutional context for ASR}},
  author = {Abdelrahman Mohamed, Dmytro Okhonko and Luke Zettlemoyer},
  year = {2019},
  doi = {10.48550/arxiv.1904.11660},
  eprint = {1904.11660},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1904.11660}
}
```

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