Elamur Research

On Using SpecAugment for End-to-End Speech Translation

Paper · 2019 · Parnia Bahar, Albert Zeyer, Ralf Schlüter et al.

Summary

A direct speech translator learns to turn a recording into written text in another language. Training it requires recordings paired with translations, and those pairs are harder to obtain than either transcribed speech or bilingual text on its own. Bahar and colleagues ask whether an existing collection of translated speech can serve as better training material if the system sometimes receives an incomplete version of the audio. They test SpecAugment, a technique introduced for speech recognition, on English audiobooks translated into French and English TED talks translated into German.

SpecAugment works on the numerical features extracted from a recording. During training, it can hide a stretch of time across all feature channels, a band of neighboring channels across the whole utterance, or both. The target translation stays the same. Since the feature values are standardized, the procedure can hide a region simply by setting it to zero, the mean value on that scale. At evaluation time the translator receives the full set of features. The authors test how much information to hide and how many times to apply each kind of mask.

The strongest reported BLEU score gains reach +2.2% for LibriSpeech English-to-French and +1.2% for IWSLT English-to-German. On the LibriSpeech test set, the selected masking recipe scores 16.1 BLEU, compared with 15.2 for direct training without augmentation. On IWSLT test2015, the corresponding scores are 18.0 and 16.5. The amount of masking matters. Modest settings help, while more aggressive settings can lower translation scores or make training unstable. The authors also find that masking reduces the gap between training and development performance to some extent, and that the augmented system benefits from training for longer.

The LibriSpeech data-size experiment finds higher BLEU with augmentation across the tested subsets, though the smallest subset gets only a small test gain and worsens on translation edit rate. Masking can also be used after initializing the translator with components trained for recognition and text translation. In that setting the additional BLEU gains are smaller, and test edit rates do not improve. The evidence is strongest for a specific intervention: moderate masking can improve a recurrent direct translator using the audio and translations it already has.

Deep dive: On Using SpecAugment for End-to-End Speech Translation

How SpecAugment improves direct speech translation by masking parts of the training audio features, and where heavier masking hurts. · about 33 minutes to read

The problem and its context

Learning the whole task from paired examples

A speech-to-text translator has to determine what someone said and express it in another language. A conventional cascade gives those jobs to separate systems. Automatic speech recognition, or ASR, turns the audio into a sequence of source-language tokens. A machine translation system then takes that sequence as its input and generates the translation. Each stage can draw on training data gathered for its own task. A recording with an English transcript is useful to the recognizer even without a French translation, and a pair of English and French sentences is useful to the text translator even without a recording.

That division also puts the recognizer's output between the listener and the translation. When the recognizer supplies the wrong sequence, the text translator must work from what it receives. A plausible sentence can still express the wrong thing if its starting point contains a recognition error. The paper presents this potential accumulation of errors as a motivation for direct translation. It also identifies faster decoding and lower total computation as possible advantages of training the components together and using a single speech-to-translation system. Those are reasons to investigate the architecture. In this study, the measured comparisons concern translation quality and training behavior.

The direct approach uses the recording as input and the target-language sentence as the requested output. It can learn to attend to whichever parts of the audio help produce the translation without first having to emit a complete transcript. Earlier work cited by the authors had already shown that a sequence-to-sequence system could learn this mapping. The term sequence-to-sequence describes the input and output: the input is a series of acoustic observations, and the output is a series of text units that can have a different length. The paper draws its translation architecture from work on learning sequences and learning alignments through attention. Sequence to Sequence Learning with Neural Networks · Neural Machine Translation by Jointly Learning to Align and Translate

The practical obstacle is the overlap between the kinds of data the task needs. A recording by itself lacks a written translation. Bilingual text pairs lack the acoustic input. Even a transcribed recording lacks the target sentence unless someone or some system translates it. The authors argue that direct systems are prone to overfitting when the usable collection is small. Overfitting here means that progress at predicting the training examples can outpace progress on separate examples, so a system that has adapted well to its training set can still struggle when given unfamiliar speech.

Making more pairs and making more use of a pair

The paper discusses synthetic data as one way to address that shortage. If a recording comes with a transcript, a text translation system can supply a target-language sentence and thereby create a speech–translation pair. A text-to-speech system can work from written material in the other direction, supplying an audio side for training. The paper places these techniques in the broader context of using data that only partly satisfies the original task's supervision requirements. Its discussion also points to back-translation as an established way to exploit monolingual material in text translation. Improving Neural Machine Translation Models with Monolingual Data

The authors identify two costs of synthesizing a missing side. A system capable of generating the translation or speech must be trained or otherwise available. It must then be run on enough material to make the resulting collection useful. The generated side can introduce its own errors. By contrast, a method that modifies an existing recording while retaining the associated translation spends no effort generating new labels. The supervision still comes from the original pair.

The paper describes several precedents for modifying the input. One can inject noise into a waveform, shift it in time, stretch or compress it by changing its speed, or vary its pitch. These procedures have a common premise: a limited change to the acoustics can leave the requested text intact. If the training examples vary along those dimensions, the system has an opportunity to learn which acoustic differences it can tolerate while still recovering the information it needs. That premise also sets a limit. Once corruption removes too much evidence for the target, retaining the old label can make the example much harder to learn from.

Why change the acoustic features?

SpecAugment had already been proposed for automatic speech recognition. It operates at a point in the pipeline where the recording has been converted to features arranged by time and channel. A masking rule can then operate on consecutive positions along either axis. In the original speech recognition setting, the text paired with the recording is a transcript. Bahar and colleagues keep the feature-level operation and use the translation as the supervision. The change of task is important: the decoder now has to produce text in another language, and the sequence it generates can arrange information differently from the source speech. SpecAugment for automatic speech recognition

The paper's questions concern whether this transfer improves direct translation and whether the improvement depends on how much translated speech is available. That makes an unaugmented direct system a central comparison. If the architecture, paired data and evaluation setup are shared, the comparison can show what changes when the training procedure also masks features. Separate recognition and text translation systems play other roles in the study, both as a cascade and as sources of pretrained components. Those roles put the result in context because they show ways to use a larger training supply. They answer a different question from the comparison between an augmented and an unaugmented direct translator.

The method, step by step

From a recording to a partially hidden input

An utterance enters the system as a sequence of feature vectors. Each vector summarizes the acoustics at a point in time, and its components occupy separate feature channels. Read the sequence as a grid and a useful distinction becomes visible. A time mask covers all the channels in a consecutive run of frames. A frequency mask covers a consecutive range of channels throughout the utterance. The same recording can therefore be presented with a brief interval hidden, with a band of features hidden across its duration, or with parts of both kinds missing.

The illustration in the paper shows these operations on a log mel spectrogram of one utterance. A log mel spectrogram represents how the signal's energy is distributed in frequency as time passes, with the values expressed on a logarithmic scale. The figure starts with the intact representation, then shows what each masking direction removes, and finally shows both on the same input. The figure illustrates the geometry of the operation. The actual experiments also apply that operation to the feature representations used by the respective datasets, including Gammatone features and Mel-frequency cepstral coefficients.

The values are standardized, which places their mean at zero and scales their variance to one. This explains why a zero is the replacement value. It represents the mean on the standardized scale. Filling a region with that value suppresses variation inside the region while preserving its position and the shape of the input grid. Later frames remain where they were, and an utterance that originally took a given number of frames still takes that many frames when it reaches the encoder.

The target-language sentence is kept with the masked example. The training procedure is consequently asking for the usual translation even when some of the evidence the system would ordinarily see has been suppressed. It can draw on speech before and after a time mask, for example, or on channels outside a frequency mask. The masks are drawn randomly. The learning signal comes from seeing these altered inputs in training and attempting to produce their unchanged translations. During evaluation the features are passed through without masking.

Training the direct speech translator with SpecAugment

The steps in order.

Training the direct speech translator with SpecAugmentStep 1: Extract and standardize acoustic features1. Extract and standardize acoustic featuresStep 2: Draw time and frequency masks2. Draw time and frequency masksStep 3: Replace masked values with the mean3. Replace masked values with the meanStep 4: Encode the remaining acoustic information4. Encode the remaining acoustic informationStep 5: Attend to encoded frames and predict target tokens5. Attend to encoded frames and predict target tokensStep 6: Learn from the original reference translation6. Learn from the original reference translation

How the random masks are drawn

The time mask starts with a sampled width. The authors draw that width uniformly between zero and the time-mask limit. They draw a starting position separately from the available positions along the time axis. The mask runs forward from that position until it reaches the sampled width or the end of the utterance. A draw of zero means the operation covers no frames. The configured maximum therefore describes the width distribution, and an individual mask can be shorter than the maximum both because of the draw and because of clipping at the boundary. In interval notation, the masked region is:

[t, min(t + τ, T))

Here t is the starting time position and τ is the sampled width in frames. T gives the input length in frames, and t + τ is the end that an unclipped mask would reach. min chooses the smaller of that end and T. The opening bracket includes the start, and the closing parenthesis excludes the end. The width is drawn using the maximum R. The count mᵣ, written as m_R in the paper's parameter tables, gives the number of time masks requested. When drawing several starts, the procedure does so without replacement, which prevents the same start from being chosen again.

The frequency mask follows the same principle along the feature axis. A randomly selected width gives the number of adjacent channels to suppress, and a separately chosen channel gives the start. The chosen channels are masked at every frame of the utterance. The paper's boundary rule can be written as:

[f, min(f + φ, ν))

Here f is the first feature channel in the mask and φ is the sampled width in channels. ν is the number of input feature channels, so it bounds the end of the mask. The sum f + φ gives the intended end before applying the boundary rule, and min performs the clipping. As for time masking, the bracket includes the start and the parenthesis excludes the end. The maximum frequency width is F, and the number of frequency masks is mꜰ, written m_F in the parameter tables. Repeated applications use distinct starting channels.

Distinct starting positions still allow overlap. A mask can begin within the region covered by an earlier mask, and masks on different axes can intersect. The covered portion of an utterance therefore depends on the realized widths and positions as well as the configured number of masks. This matters when reading the experiments. Applying a wide mask several times increases the opportunity to remove a large part of the input, but the maximum width multiplied by the count would describe neither the actual coverage nor a fixed proportion of each utterance.

The authors also depart from the implementation they cite. The earlier SpecAugment procedure limits the range of possible starts based on the chosen width. Bahar and colleagues allow a start along the full relevant axis and clip an interval that would extend past its end. This allows masks to start close to the boundary even when the sampled width is large. They also make their rule for distinct starts explicit and say the earlier paper leaves that detail unclear. Time warping, which deforms the positions of frames along the time axis, is omitted. The reason given is its relatively high cost and small influence in the earlier recognition study.

What the translator predicts

The recognizer in a cascade explicitly produces a source sequence before the translation stage begins. The direct system instead assigns a probability to an entire target sequence given the input audio features. The paper expresses that probability as a product of conditional predictions:

p(e₁:ᵢₘₐₓ | x₁:ₜₘₐₓ) = ∏ᵢ₌₁ᴵ p(eᵢ | e₁:ᵢ₋₁, x₁:ₜₘₐₓ)

Here the sequence abbreviations e₁:ᵢₘₐₓ and x₁:ₜₘₐₓ denote the full target and input sequences, with final indices I and T respectively. Thus I is the target length, T is the number of input frames, and x denotes the acoustic features. The index i identifies the target position being predicted, eᵢ is its target token, and e₁:ᵢ₋₁ is the prefix ending immediately before it. The symbol p denotes probability, the bar | means “given,” and ∏ multiplies the probabilities across the target positions from the first through I. Each term uses the earlier target tokens and the audio input.

The paper also names f₁:ⱼₘₐₓ, the source transcript with final index J. This use of f refers to transcript tokens and is separate from its local use for the start of a frequency mask. A speech sequence ordinarily has more frames than either the transcript or the translation has tokens. That difference motivates reducing the time resolution between input and decoding. The transcript is useful for training the separate recognizer and text translator. The direct probability above does not have a transcript argument.

Encoding the utterance

The encoder uses long short-term memory, or LSTM, a recurrent architecture that maintains a state as it processes a sequence. A bidirectional LSTM processes the input in forward and reverse order, so its representation of a position can incorporate information from both directions. The direct system stacks these layers. It also uses max-pooling along the time axis between layers. Pooling reduces a group of neighboring positions to a shorter representation by retaining maximum values, leaving fewer positions for the decoder to attend to. The encoder part of the paper's network equations can be written as:

h₁:ₜ′ = (BLSTM_Lₑ ∘ ⋯ ∘ max-pool₁ ∘ BLSTM₁)(x₁:ₜₘₐₓ)

Here h₁:ₜ′ is the sequence of encoder states ending at the reduced length T′, and x₁:ₜₘₐₓ is the full input sequence ending at T. BLSTM denotes a bidirectional LSTM, BLSTM₁ is the first such layer, and BLSTM_Lₑ is the final one, with Lₑ giving the encoder depth. max-pool₁ denotes the first time-pooling operation, and ⋯ stands for the intervening layers and operations. The composition symbol ∘ indicates that the result on the right becomes input to the operation on its left. The parentheses group the operations applied to the input sequence.

The paper summarizes the change in time resolution using a reduction factor:

T′ = T / red

Here T′ is the length after time reduction, T is the original frame count and red is the time reduction factor. The slash denotes division in the paper's description of the encoder. In the speech architecture, the pooling sizes are 3 and 2, with a stated total reduction factor of 6. Pooling is part of the encoder itself. SpecAugment acts before the encoder, on the original sequence of extracted feature vectors.

Attending to the encoded speech

The decoder needs a representation of the speech that is useful for the target token it is about to emit. An additive attention mechanism computes a score for each encoder position. Its inputs are the previous decoder state and the encoder state at the position under consideration. The decoder state summarizes where the generation process has reached, while the encoder state represents the speech around that position. In the paper's abstract equations, the calculation is:

αᵢ,ₜ = softmaxₜ(linear(tanh(linear(sᵢ₋₁, hₜ))))

Here αᵢ,ₜ is the attention weight for encoder position t at target step i. The decoder state at the preceding step is sᵢ₋₁, and hₜ is the encoder state at position t. Each linear denotes a learned transformation, and tanh is the nonlinear transformation between the two. softmaxₜ normalizes the scores over the encoder positions on the time axis. The result is a set of non-negative weights that sum to one for the current target step.

The weights determine how much each encoded position contributes to the decoder's view of the speech at that step:

cᵢ = ∑ₜ₌₁ᵀ′ αᵢ,ₜ hₜ

Here cᵢ is the context vector for target step i, αᵢ,ₜ is the weight for encoder position t, and hₜ is the state at that position. The juxtaposition of αᵢ,ₜ and hₜ means that the weight scales the state vector. The summation ∑ adds the resulting vectors from the first position through T′, the reduced encoder length. Because a new context is computed for each target step, the decoder can use different parts of the utterance as it translates.

The feature mask and the attention weights operate at different stages. The mask discards local variation in portions of the input before the recurrent encoder reads it. Attention then distributes weight over the encoder states that result, including states that may reflect nearby speech and some of the masked input. The paper's equations describe how that information can reach the output. They do not assign a particular response to the mask, such as forcing the decoder to move its attention away from any corresponding position.

Producing target tokens

The output prediction combines the preceding target token, the previous decoder state and the current speech context. The paper expresses it as:

p(eᵢ | e₁:ᵢ₋₁, x₁:ₜₘₐₓ) = softmaxₑ(linear(eᵢ₋₁, sᵢ₋₁, cᵢ))

Here p again denotes conditional probability and | means “given.” The token to be predicted is eᵢ, its preceding prefix is e₁:ᵢ₋₁, and the speech input x₁:ₜₘₐₓ ends at frame T. The prediction uses eᵢ₋₁, the preceding target token, together with sᵢ₋₁, the previous decoder state, and cᵢ, the context computed for the current step i. The learned linear transformation gives a score for each possible output token, and softmaxₑ normalizes those scores over the target vocabulary indexed by e.

After that prediction, the decoder's recurrent computation updates its state:

sᵢ = (LSTM_L_d ∘ ⋯ ∘ LSTM₁)(eᵢ, sᵢ₋₁, cᵢ)

Here sᵢ is the updated state, eᵢ is the current target token, sᵢ₋₁ is the preceding state, and cᵢ is the current context vector. LSTM₁ is the first decoder layer, LSTM_L_d is the last, and L_d is the number of decoder layers. The ellipsis stands for any intervening layers, and ∘ composes the layer operations. The paper gives this expression for a stack in general, while the reported systems use a single decoder layer.

How the training runs are assembled

The recognizer, text translator and direct speech translator share parts of the design. The speech encoder used for recognition has 6 stacked bidirectional LSTM layers with 1024 nodes. The decoder uses a single unidirectional LSTM layer of size 1024 and represents recognition tokens as 512-dimensional embeddings. An embedding is a learned vector associated with a token. Attention has a single head, or set of weights, and the implementation uses alignment feedback so that previous alignment decisions can inform attention. The recognition encoder is grown in stages during training, beginning with two encoder layers and pooling between them. Recognition training also adds an auxiliary connectionist temporal classification loss at the encoder to help learn from transcripts without a supplied frame-by-frame label sequence.

The text translator likewise has a 6-layer bidirectional encoder with cell size 1024. Its source input is already text, and the architecture leaves out time pooling. Its 1-layer decoder is unidirectional, has cell size 1024, and uses additive attention with alignment feedback. The direct speech translator combines the type of encoder used for recognition with the type of decoder used for translating text. The source and target languages for text translation use separately learned byte pair encodings with 20k symbols each. This is a form of subword tokenization, which makes a sequence out of reusable text units that can be smaller than words. For the recognizer's transcripts, the authors use 10k merge operations.

The direct runs use Adam with a learning rate of 0.0008 and begin by raising the rate gradually over the initial training steps. The authors apply dropout of 0.3, which randomly suppresses internal activations during training, and label smoothing at a ratio of 0.1, which softens the target distribution used to train the output predictor. These are part of the standard training recipe in the comparison. Feature masking is the extra intervention made on the audio side. Adam · Dropout · Regularizing Neural Networks by Penalizing Confident Output Distributions

Checkpoints are saved every fifth of an epoch, and the learning rate is multiplied by a decay factor of 0.9 if development perplexity fails to improve for 5 consecutive checkpoints. An epoch is a pass through the training set. Perplexity reflects the probabilities the system gives to the reference sequence, so it can supply feedback during training independently of the scores computed on decoded translations. The batch construction excludes sequences longer than 75 tokens. The authors make batches as large as a single GPU's memory permits, and decoding uses a beam size of 12. A beam keeps multiple partial output sequences in consideration as generation proceeds.

Some direct runs start from pretrained components. The encoder inherits weights from the ASR system and the decoder inherits weights from the text translation system. An additional bidirectional LSTM acts as an adaptor between their representations. The components are then fine-tuned together on paired speech and translations, with the transferred parameters available for further updates. For this experiment, feature masking can be applied during that joint training. The authors implement their systems with an in-house toolkit based on TensorFlow and make the code and experiment configurations available.

Experiments and results

What the datasets contain

LibriSpeech English-to-French uses audiobook speech with French translation references. The training setup follows earlier work with the corpus and uses both its original translation and the Google Translate reference supplied with the data. The resulting speech translation training set is listed as 94.5k segments and 200h. The text translator uses the 94.5k source–target text pairs from that task, with no additional text training data. The recognition setup combines the ASR and speech translation material, for a reported total of 330h. The ASR portion listed separately contains 61.3k segments and 130h. Augmenting LibriSpeech with French Translations

The LibriSpeech recordings are represented using 40-dimensional Gammatone features from the RASR feature extractor. The development split has 1071 segments and 2h of speech, and the test split has 2048 segments and 4h. The development set is also used for cross-validation and checkpoint choice. The masking experiments later distinguish between using the roughly full translation training collection and using smaller sets of its segments. The development and test sets provide the evaluation splits in those comparisons.

The IWSLT English-to-German task uses TED talks and represents speech with 80-dimensional Mel-frequency cepstral coefficients, abbreviated MFCCs. The authors recompute the supplied audio-to-source-sentence alignments automatically. The purpose is to reduce cases in which a speech segment lacks an associated translation. The direct training material is listed as 171.1k segments and 272h. Recognition training uses the speech translation TED corpus along with TED-LIUM, whose ASR material is listed as 92.9k segments and 207h.

The IWSLT text translator draws on TED material, OpenSubtitles2018 and corpora from the WMT 2018 evaluation. Before filtering, the parallel collection has 65M lines, and the retained training set has 32M samples. This gives the text translation component an additional source of supervision beyond the paired audio used for the direct system. The authors choose a random portion of their segments for cross-validation and use dev2010 and test2015, with 888 and 1080 segments respectively, for development and test. Checkpoints are selected using dev2010.

Both tasks use Moses for tokenization. Punctuation is removed from the English transcripts and retained in the translation targets. LibriSpeech text is lower-cased and evaluated without case distinctions. The IWSLT setup applies frequent casing and evaluates with case distinctions. The direct networks have 181M free parameters for LibriSpeech and 192M for IWSLT. The paper deliberately uses networks of this scale when studying overfitting and its response to masking.

How the scores are read

BLEU measures the match between the output and reference translations through overlapping word sequences, with higher scores indicating more agreement under the metric. Translation edit rate, or TER, measures how much editing is needed to make a system output match a reference, so lower scores are better. These measures can respond differently to a change in decoding, and the paper reports both. The main experiments use mteval-v13a for BLEU and tercom for TER. Recognition is scored separately with word error rate, or WER, computed by sclite. Lower WER indicates fewer word errors relative to the reference transcript.

The split matters as much as the metric. The development set informs training decisions, and differences there can show what a policy looked like during selection. Test results show how the selected or reported configuration behaved on the designated test set. The article's headline figures describe gains reported in the experiments. They should be read alongside the actual development and test scores because the size of a gain depends on the setting and split being compared.

The recognizer, the text translator and the cascade

On LibriSpeech, the recognizer reports 6.47% WER on development and 6.47% on test. On IWSLT, it reports 12.36% on development and 13.80% on test. Because WER scores the intermediate transcript, these figures describe the source input that the text translation stage of the cascade has to work with. The paper notes the possibility of reducing recognition errors with a conventional hybrid recognizer, which it leaves outside the experiments.

When the text translator is given the reference source text, it scores 20.1 development BLEU and 18.2 test BLEU on LibriSpeech, and 30.5 development BLEU and 31.5 test BLEU on IWSLT. These scores describe translation from a known transcript. In the cascade, the input consists of the recognizer's output tokens. LibriSpeech cascade BLEU is 17.3 on development and 15.7 on test, with TER of 69.1 and 70.6 on the respective splits. The IWSLT cascade scores 24.7 development BLEU and 24.4 test BLEU, with TER of 58.9 and 62.5. The lower BLEU scores with recognized input show the practical importance of what enters the text translation stage.

These systems provide more than one point of comparison. The text-only runs describe how the translation component behaves with reference input. The cascade reports what happens when its source tokens have to be recovered from speech. The unaugmented direct translator supplies the baseline for the masking experiments, since it has the same route from acoustic features to target text. The cascade also uses more training data than the direct system trained from scratch. Its score is a useful pipeline comparison under the reported conditions, and the data supply is one of those conditions.

Direct translation with and without masking

On LibriSpeech, direct translation without masking scores 15.8 BLEU on development and 15.2 on test, with TER of 74.1 and 75.8. The masking recipe used in the subsequent experiments scores 17.9 BLEU on development and 16.1 on test, with TER of 72.2 and 74.6. It combines frequency masking with a maximum width of 5 channels and one application, and time masking with a maximum width of 40 frames and two applications. The development search also includes a frequency-only setting that scores 18.0 BLEU. The paper's reported LibriSpeech gain of up to +2.2% BLEU reflects the strongest improvement it highlights, while the selected recipe has its own reported scores on each split.

System comparison on LibriSpeech English-to-French test BLEU

The selected masking recipe raises the direct system above both the unaugmented direct baseline and the cascade.

System comparison on LibriSpeech English-to-French test BLEUDirect without augmentation: 15.2Direct without augmentation15.2Recognition and text translation cascade: 15.7Recognition and text translation cascade15.7Direct with selected SpecAugment policy (this paper): 16.1Direct with selected SpecAugment policy(this paper)16.1
The numbers
System or settingBLEU
Direct without augmentation15.2
Recognition and text translation cascade15.7
Direct with selected SpecAugment policy (this paper)16.1

The corresponding IWSLT direct baseline scores 16.9 development BLEU and 16.5 test BLEU, with TER of 67.3 and 70.6. The policy selected for IWSLT lowers the maximum frequency width to 4 channels and retains the other settings. It scores 17.7 BLEU on dev2010 and 18.0 on test2015, with TER of 66.0 and 69.2. The paper highlights gains of up to +1.2% BLEU and 1.8% TER in its account of the IWSLT policy experiments. Those reported gains summarize the policy search, in which individual development and test columns favor different settings.

SpecAugment and pretraining on IWSLT English-to-German test2015 BLEU

Masking helps the direct translator from scratch and gives a smaller extra improvement after component pretraining.

SpecAugment and pretraining on IWSLT English-to-German test2015 BLEUDirect without augmentation: 16.5Direct without augmentation16.5Direct with selected SpecAugment policy: 18.0Direct with selected SpecAugment policy18.0Direct with component pretraining: 20.7Direct with component pretraining20.7Direct with component pretraining and SpecAugment (this paper): 20.9Direct with component pretraining andSpecAugment (this paper)20.9
The numbers
System or settingBLEU
Direct without augmentation16.5
Direct with selected SpecAugment policy18.0
Direct with component pretraining20.7
Direct with component pretraining and SpecAugment (this paper)20.9

LibriSpeech and IWSLT give different system rankings. On LibriSpeech test, the selected direct system with masking exceeds the reported cascade on BLEU, while the cascade retains a lower TER of 70.6 against 74.6 for that direct system. On IWSLT test2015, cascade BLEU is 24.4 and the selected direct system scores 18.0. Even with both masking and component pretraining, the direct score there is 20.9. These comparisons are separate from the evidence that masking improves BLEU within the direct setup on each task.

Comparison under the literature's scoring convention

The paper makes a separate comparison with earlier LibriSpeech work using case-insensitive test BLEU computed by multi-bleu.pl. Under that convention the direct system with pretraining and SpecAugment scores 17.0. The authors identify it as the same output configuration that receives 16.2 BLEU with the main experiment's scoring procedure. This lets a reader distinguish a change in scoring convention from a change in the translator.

The earlier direct, multitask and cascade entries from the audiobook work score 13.3, 13.4 and 14.6 test BLEU under the literature comparison. The Transformer entry scores 13.8, and its entry with pretraining scores 14.3. An entry that also uses knowledge distillation scores 17.0, matching the paper's result in that comparison. Knowledge distillation here uses a text translator to teach the speech translator. The table also includes an unsupervised result of 12.2 whose evaluation omits punctuation. The authors point to their use of sub-word units where an earlier audiobook system used characters, so the literature comparison includes design and evaluation differences alongside differences in augmentation.

What the ablations show

How wide a mask can be

The masking experiments vary the maximum width and number of applications on each axis. This exposes what an aggregate comparison would hide. A positive result for the selected recipe does not tell a reader whether masking only time is sufficient, whether suppressing feature channels can help, or whether increasing coverage improves the effect. The authors first disable one axis and vary the other, then test combinations. The range includes settings intentionally much more aggressive than those selected for subsequent runs.

On LibriSpeech, even a frequency width limit of 2 with one mask reaches 17.3 development BLEU and 16.1 test BLEU. A maximum width of 4 with one mask gives 18.0 and 16.1. The authors identify the region around width limits of 4 and 5 as the strongest for frequency masking and report average development and test improvements of 1.5% in BLEU and 1.4% in TER for that region. Several settings share the same test BLEU at the displayed precision. Changing the width or count can still affect the development score or test TER, which helps explain why the authors consider both measures when selecting a recipe.

The coarser frequency settings make the limits more visible. Applying a maximum width of 20 twice yields 16.7 development BLEU and 15.4 test BLEU on LibriSpeech, with 75.9 test TER. The extreme policy allows a width of up to 35 of the 40 channels and applies the procedure 5 times. Its test BLEU of 15.0 and test TER of 76.8 are worse than the direct baseline scores of 15.2 and 75.8. These settings are upper bounds on random width, so the extreme result describes a training policy that sometimes removes very wide bands and has repeated opportunities to cover the same utterance.

Time masking displays a related pattern. On LibriSpeech, a maximum length of 20 frames applied twice gives 17.3 development BLEU and 16.2 test BLEU. With a maximum of 40 frames and the same count, the displayed BLEU scores are again 17.3 and 16.2, and test TER is 74.7. At a maximum of 100 frames with two applications, test BLEU is 15.4 and test TER is 76.6. A policy allowing 400 frames and applying the procedure 5 times fails to train stably. That failure is an outcome of the experiment in its own right. Increasing the amount of missing input can change whether the training procedure reaches a usable solution.

Repeating short masks and combining axes

Width and repetition can affect the input in different ways. Several short masks can suppress evidence at distinct positions while leaving intervening evidence in place. A long mask can remove one continuous stretch or band. Because positions are sampled without replacement and intervals can overlap, the difference is a tendency of the two policies instead of a guaranteed pattern on every utterance.

The frequency-only runs on LibriSpeech supply one comparison. A width limit of 4 used twice scores 17.6 development BLEU and 16.1 test BLEU. A limit of 8 used once scores 17.4 development BLEU and 15.7 test BLEU. Test TER for those runs is 74.6 and 75.2 respectively. The paper treats examples like this as evidence that repeating a smaller mask can be preferable to drawing a larger mask once. It does not establish that the two policies removed the same amount of information on individual recordings.

For LibriSpeech the combination carried forward uses one frequency mask at a limit of 5 and two time masks at a limit of 40. Its 17.9 development BLEU is close to the strongest frequency-only development score, and its 16.1 test BLEU is close to the strongest time-only test score. Its development TER is 72.2 and its test TER is 74.6. Thus the usefulness of the mixed recipe rests on its overall performance across the measures and splits. The individual policy rows are more informative than a claim that combining the axes must maximize each column.

The IWSLT experiments likewise include width changes, changes in the number of masks, and combinations. The frequency-only setting at a maximum of 5 with one application reaches 18.1 development BLEU and 17.5 test BLEU. A time-only setting with a maximum of 20 frames and one application reaches 17.7 and 17.6. The selected mixed policy attains 17.7 on development and 18.0 on test. The authors also try a policy similar to the earlier SpecAugment paper's LD policy. They find that it is a poorer choice for their task than their selected configuration. The study supports testing the policy against the translation task's own development conditions.

What changes when training continues

The overfitting comparison tracks average log perplexity on the training and development sets over epochs. Log perplexity puts on a logarithmic scale the uncertainty implied by the probabilities assigned to the reference tokens. The paper uses the relationship between the two curves to assess whether progress on the training set carries over to the development data. A training run can keep adjusting to the examples it sees even as its behavior on separate data stops improving.

The authors interpret the plots as showing a smaller separation between training and development behavior when masking is used. The augmented system also benefits from a few more epochs. Extending the unaugmented training correspondingly makes its performance worse. This links the regularization argument to the training schedule: when the inputs are varied by masking, additional passes can still help, whereas extra passes through the ordinary training setup can deepen the existing fit to that set. The figure offers evidence about the course of training. The paper draws its translation-quality conclusions from the separate BLEU and TER comparisons.

Changing the amount of paired speech

The LibriSpeech subset experiment compares direct training with and without the same selected SpecAugment policy at 23k, 47k, 71k and 94k training segments. The matched comparisons ask how the value of masking varies within this span while the target task stays the same. A comparison across sizes also shows how much the score still depends on having more actual paired examples.

LibriSpeech English-to-French test BLEU by training subset and masking

Masking raises test BLEU in every reported subset, with the strongest score in the largest subset.

LibriSpeech English-to-French test BLEU by training subset and masking23k segments without augmentation: 7.023k segments without augmentation7.023k segments with SpecAugment: 7.323k segments with SpecAugment7.347k segments without augmentation: 10.247k segments without augmentation10.247k segments with SpecAugment: 11.247k segments with SpecAugment11.271k segments without augmentation: 13.271k segments without augmentation13.271k segments with SpecAugment: 14.471k segments with SpecAugment14.494k segments without augmentation: 15.294k segments without augmentation15.294k segments with SpecAugment (this paper): 16.194k segments with SpecAugment (thispaper)16.1
The numbers
System or settingBLEU
23k segments without augmentation7.0
23k segments with SpecAugment7.3
47k segments without augmentation10.2
47k segments with SpecAugment11.2
71k segments without augmentation13.2
71k segments with SpecAugment14.4
94k segments without augmentation15.2
94k segments with SpecAugment (this paper)16.1

The 23k condition shows why a claim about data efficiency needs to name the metric. Development BLEU goes from 11.6 to 13.3 and the paper reports an average BLEU gain of 1.0 across development and test. TER goes in the opposite direction. It rises from 90.2 to 91.5 on development and from 92.3 to 93.4 on test. The average TER improvement is listed as -1.2. The authors suggest that this collection may be too small to train a reliable deep translator in their setup. The comparison supports the observation about these runs, with the explanation offered as a possibility.

With 47k segments, development BLEU goes from 14.8 to 17.3. TER falls from 87.2 to 83.4 on development and from 89.1 to 87.4 on test. The paper reports average gains of 1.8 BLEU and 2.8 TER across the two splits. These are larger than the average gains it reports for 94k segments, 1.5 BLEU and 1.6 TER. The 47k augmented test result is still below the 94k unaugmented one. The result supports the authors' argument that masking partly offsets a reduction in paired data, with the size of that offset depending on the split and metric.

At 71k segments, development BLEU rises from 15.4 to 16.7. TER falls from 78.9 to 76.7 on development and from 81.0 to 79.1 on test. The paper reports average gains of 1.1 in BLEU and 2.1 in TER. Taken together, these experiments give evidence of a benefit at several training sizes, with the benefit measured relative to an unaugmented run at each size. They also show that the size of the benefit is not ordered simply by the amount of available data.

Adding masking after pretraining

The pretraining experiment compares direct training, training with a recognition encoder and text translation decoder transferred into the system, and training that adds SpecAugment to that transferred setup. On LibriSpeech, pretraining gives 18.0 BLEU on development and 15.8 on test. Adding masking produces 18.5 and 16.2. Development TER moves from 71.3 to 71.0 and test TER from 73.9 to 74.5. The extra test BLEU comes with a worse test edit rate.

On IWSLT, component pretraining scores 21.1 development BLEU and 20.7 test BLEU. Adding masking yields 21.3 and 20.9. Development TER changes from 62.1 to 61.9, and test TER changes from 65.5 to 65.7. The authors characterize the added BLEU effects on LibriSpeech and IWSLT as 0.5% and 0.2%, respectively, with no corresponding TER improvement in their account. The separate columns show small favorable changes on development TER and unfavorable changes on test TER.

LibriSpeech also allows a direct comparison between augmentation alone and pretraining alone. The augmented run without transferred weights scores 17.9 development BLEU and 16.1 test BLEU, against 18.0 and 15.8 after pretraining without augmentation. That explains the paper's suggestion that masking can recover some of the benefit associated with pretraining on this task. The IWSLT comparison gives more weight to pretraining: the masking-only run scores 18.0 test BLEU, and the pretraining-only run scores 20.7. The usefulness of one procedure as a substitute for the other therefore depends on the conditions under which they are compared.

Limitations

Limits the authors identify

The authors frame the work as an evaluation of SpecAugment by itself and in conjunction with component pretraining. They identify comparison with data generated by a text-to-speech system as a next step. Masking changes the input to an existing pair. A synthetic-data procedure can supply training pairs drawn from other material, and the experiment with reduced LibriSpeech sets cannot settle which approach makes better use of a comparable budget. It also leaves open whether masking would still offer the same improvement in a training mixture already containing large amounts of generated parallel data.

The architecture under direct investigation is recurrent and attention-based. The authors explicitly defer studying augmentation with a Transformer. Their LibriSpeech literature comparison contains Transformer entries and sets the paper's score alongside them. The comparison says how completed systems score under the stated evaluation convention. To estimate the effect of masking in a Transformer, the relevant evidence would come from varying the augmentation within that architecture.

The authors also identify limits to masking intensity and training economy. The method is simple to implement on top of acoustic features, but a strong policy can hurt performance or destabilize training. Successful augmented training can take additional epochs. The paper presents better regularization as the potential benefit and reports the longer training needed in the overfitting comparison. Its measurements do not assign a fixed extra training cost to the method across the reported settings.

Finally, the paper qualifies the comparison to earlier LibriSpeech results. It uses case-insensitive evaluation to facilitate comparison and notes uncertainty about which BLEU script earlier work used. Its own change from 16.2 to 17.0 BLEU for the same LibriSpeech test output shows how a score can depend on the evaluation procedure. The comparison with the earlier punctuation-free result has a further difference in what the script is scoring.

Limits visible in the setup

The two tasks jointly change the target language, the speaking material, the acoustic features and the data available for auxiliary training. A benefit on both audiobook and TED material shows that the result occurs in both tested setups. Attributing any difference in the size of the gains to the Gammatone or MFCC representation would require varying the representation within a task. The paper's conclusion about applicability across features is supported as a demonstration with each representation under its own training conditions.

The direct-versus-cascade results have a similar interpretation. The cascade can use the recognizer's speech–transcript pairs and the translator's bilingual text, and IWSLT in particular provides substantial outside text for the translation component. The direct setup from scratch uses speech paired with target translations. Component pretraining introduces some of the separate supervision into the direct setup, but also adds an adaptor layer and changes initialization. The comparison therefore measures the systems under the data and training procedures the paper gives them. It does not isolate an architectural effect at equal supervision.

The paper's smallest-subset result limits how broadly “helpful across training sizes” can be read. BLEU improves in each LibriSpeech subset comparison. The 23k run has worse TER with masking, and the extra rounding precision of the reported scores does not address uncertainty across training runs. The paper presents scores for the listed settings, without repeated-run variation or uncertainty intervals for these differences. It is consequently easier to interpret broad patterns, such as failure under an extreme masking policy, than to establish a dependable ranking among policies separated by small score changes.

There is also a distinction between generalization on these splits and robustness to specific defects in an incoming recording. The perplexity study examines regularization during training, and the translation tables evaluate the systems on their standard development and test material. The study does not separately impose recording noise, missing stretches, or feature degradation at evaluation time to measure each kind of robustness. The mask patterns make a plausible training challenge, but the experiments show how that challenge affects performance on the reported benchmarks.

BLEU and TER summarize distinct kinds of agreement with reference text. The paper's examples of improvement on one metric paired with deterioration on the other show that the reported gains depend on the evaluation criterion. There is no corresponding analysis in the study of which meanings, words or sentence constructions are preserved more accurately after masking. Similarly, the attention equations explain how a decoder accesses the remaining encoded speech, while the experiments vary the masking policy and measure its consequences rather than tracking which acoustic cues the system learns to favor.

What came after

The later citing work spans a review of end-to-end translation, a comparison of direct and cascaded systems, a speech–text learning method, and a study of direct simultaneous translation. The citation connects these works to the paper. The later titles identify their topics, while the specific role of feature masking in their experiments remains unspecified.

Speech Translation and the End-to-End Promise (2020) takes stock of the direct approach. Its subject is broader than the masking experiment: assessing where end-to-end speech translation stands and how to understand its promise. Bahar and colleagues' study supplies a concrete question within that scope. If direct translation is constrained by its supply of paired speech and translations, changes to training can alter the comparison even though the system still translates straight from the audio. Speech Translation and the End-to-End Promise

Cascade versus Direct Speech Translation (2021) asks whether the differences between those approaches still matter. This is the comparison for which the SpecAugment paper provides different outcomes on its audiobook and TED tasks. Its masking intervention is evaluated within the direct architecture, and its cascade draws on a separate supply of training data. The later paper's title returns to the broader question of how to compare the approaches once such choices enter the experimental setup. Cascade versus Direct Speech Translation

Without Further Ado (2021) concerns AppTek's direct and simultaneous speech translation. The simultaneous setting brings the timing of translation into view. Bahar and colleagues' SpecAugment experiments use a bidirectional speech encoder and score translations of the reported utterance segments. The later application's subject is direct translation with simultaneous output, which poses a separate question about the speech available when the system has to produce a translation. Without Further Ado: Direct and Simultaneous Speech Translation by AppTek

STEMM (2022) approaches speech translation through self-learning with speech–text manifold mixup. Its stated method concerns combinations in speech and text representations, whereas SpecAugment varies the acoustic evidence presented with an existing translation by replacing selected feature values. The titles place both studies in the effort to change what a direct translator learns from during training. They identify distinct interventions, and the citation alone leaves open how the later study used or compared masking. STEMM

Cite

Cite as Parnia Bahar, Albert Zeyer, Ralf Schlüter and Hermann Ney. 2019. On Using SpecAugment for End-to-End Speech Translation. Proceedings of the 16th International Conference on Spoken Language Translation.

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{bahar2019using,
  title = {{On Using SpecAugment for End-to-End Speech Translation}},
  author = {Parnia Bahar, Albert Zeyer, Ralf Schlüter and Hermann Ney},
  booktitle = {Proceedings of the 16th International Conference on Spoken Language Translation},
  year = {2019},
  url = {https://aclanthology.org/2019.iwslt-1.22/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bahar-2019-specaugment-end-end-speech-translation/