Elamur Research

Don't Discard Fixed-Window Audio Segmentation in Speech-to-Text Translation

Paper · 2022 · Chantal Amrhein and Barry Haddow

Summary

A speech translator can begin displaying a translation while a speaker is still talking. It has to work with whatever audio has arrived, even when the last words leave a sentence unfinished. It also has to decide where to begin its next piece of work. Chantal Amrhein and Barry Haddow compare ways of making those cuts and ways of preparing a translator for the inputs the cuts produce. Their question is whether a clock can provide a useful segmentation rule when human boundaries are unavailable and the translation is already being shown. The experiments use continuous recordings of talks, a setting in which the grouping of words and the timing of their delivery both matter to the translation. Speech and spoken language

The strongest clock-based setup translates overlapping spans and assembles their outputs as the talk proceeds. Each update searches for a run of text that occurs both in the translation accumulated so far and in the latest window translation. The earlier output supplies the text up to that shared passage, and the fresh translation supplies what follows. Because adjacent windows contain some of the same audio, speech near the edge of a window can be heard again with a different amount of surrounding material. The translator that works best with this procedure receives additional training on examples that include preceding utterances and examples that end before the speaker has finished. Fine-tuning

Across the five TED-talk directions, overlapping windows with this context training beat SHAS, a learned boundary detector, in three directions when the translation checkpoint is held fixed. On Spanish-to-English iwslt2021, they reach 42.0 BLEU, compared with 40.7 for SHAS and 41.1 for human-marked cuts with the same translator. In Italian-to-English, the pairing also exceeds the highest score obtained with human boundaries. Adjacent windows translated independently generally yield weaker results. Training on randomly cut spans resembles clock-based inference more closely, yet it gives poorer results with the merging procedure than training on extended examples and incomplete endings. The main quality scores compare the finished text with reference translations using the BLEU score.

The paper also follows what happens during delivery. Flicker records revisions to text that has already appeared. Delay is measured with respect to the availability of stable text. Overlapping windows generally improve both measures compared with independent windows decoded without a preference for the previous wording. Human boundaries and SHAS can use that preference more directly because successive translations inside a segment begin at the same place in the recording. The authors also correct a timing rule that could give a repeated word credit for appearing before the system produced that particular occurrence. The results distinguish the quality of the completed translation from the stability and timing of successive updates in a simulated stream.

Deep dive: Don't Discard Fixed-Window Audio Segmentation in Speech-to-Text Translation

Amrhein and Haddow test when overlapping audio windows can rival learned speech segmentation in translation quality, flicker and delay. · about 37 minutes to read

The problem and its context

What an audio boundary does to a translation

The task begins with a recording whose words have yet to be translated and whose internal boundaries have yet to be chosen. The authors assume that the beginning and end of a talk are known as outer limits for the task. Inside the talk, an automatic system has to decide which stretches of audio to process together. A cut determines the evidence available for interpreting nearby words. It can put a phrase in the same input as the words that explain it, or it can leave those words in a different input. With independent segments, the translator receiving a fragment has to work with the speech on its side of the cut.

The needs of translation help explain why a boundary that seems acoustically plausible can still cause trouble. A speech recognizer is asked to recover what the speaker said. A speech translator has the additional job of expressing the relationships among those words in a different language. Speech on either side of a cut can be recognizable in isolation even when the intended reading depends on the two pieces together. The authors therefore frame segmentation around finding spans that can be translated coherently. A pause can guide that decision, but the sound of a pause supplies only part of the evidence for how an utterance is organized.

A cascaded translator has an intermediate step at which to deal with this problem. It first recognizes speech and then translates the resulting text. The paper describes earlier work that inserts a component between those stages to punctuate the transcript and divide it into usable units. A direct, end-to-end system receives audio and produces translated text from it. Its input has to be grouped before there is an intermediate transcript on which to make the same punctuation and segmentation decisions. This makes the choice of audio span a part of how the system performs machine translation.

The point of at least some segmentation is practical as well as linguistic. In the paper's setting, the translator works on a succession of bounded spans, while the audience ultimately needs a continuous translation of the talk. A partition into spans determines which text can be closed off when a span ends. During a span, however, the system may already be displaying language based on incomplete audio. The boundary at its beginning, the temporary cutoff at the latest update, and the boundary that will eventually end the span play different roles. Choosing a good final cut addresses only part of the online problem.

Why the training material made some cuts easier than others

Much of the earlier end-to-end work discussed by the authors used human-marked, roughly sentence-sized audio clips. The paper calls these gold segments. They supply a convenient pairing for training because the audio clip and its translated text describe an annotated unit. If a test set uses similar clips, the translator can be evaluated under much the same conditions. The system already knows where each input should begin and end, and the consequences of making those choices automatically are mostly absent from the comparison.

A continuous recording exposes several departures from this arrangement. An input may open with the end of a thought whose beginning lies outside the span. It may close before the speaker supplies words that qualify an earlier phrase. It may also contain several complete thoughts and their transitions. Each departure changes the translation task in a different way. An artificially late start takes evidence away. An artificially early end asks the system to interpret an incomplete passage. A long input may include plenty of evidence but ask the system to handle a broader unit than the clips used to prepare it.

Earlier studies cited in the paper had observed losses when translators trained on annotated units received artificially divided speech. The IWSLT tasks made that discrepancy more consequential. Offline evaluation moved to test audio without the gold divisions, so participants had to find a way to handle continuous recordings. Recent simultaneous translation evaluations, by the paper's account, put more emphasis on tests with the human segments supplied. Consequently, work on offline segmentation and work on producing early translations addressed problems that had had relatively little systematic testing together. The paper locates this distinction in the Findings of the IWSLT 2022 Evaluation Campaign.

In offline translation, the full recording is available before the translation is delivered, although the translator still has to work with some arrangement of its audio. In the online setting, the choice has consequences before the segment is complete. A reader can see an interpretation based on the opening part of an utterance and then see it replaced after the speaker continues. A segmentation strategy affects the amount of audio heard together and the reach of those replacements. The authors needed an experiment that could compare the text produced at the end and the changes that had taken place along the way.

Where earlier work intervened

One approach was to look for better places to cut. Voice activity detection identifies speech activity and can provide candidate breaks. The paper notes that the resulting spans can be too short or too long, and that breaks in speech do not reliably mark complete utterances. Some earlier systems combined evidence about speech activity with constraints on segment length. A learned segmenter called SHAS instead trained on the human boundaries themselves, using them to learn which points should look like suitable cuts. Its underlying speech representation came from wav2vec 2.0.

Other researchers changed what the translator encountered in training. The paper describes experiments that supplied contextual speech around automatically segmented utterances and experiments that trained with artificially truncated examples. Adding earlier speech can give the translator evidence it would have missed in a short standalone clip. Truncation presents a different challenge. The system has to translate with an unfinished input, and the people constructing the example have to decide how much of the target text that input actually supports. Earlier work discussed by Amrhein and Haddow suggested that some imperfect alignment in such examples could be tolerated.

The two approaches can be used together. The paper describes prior work in which additional training on altered segments helped narrow the quality gap between a hybrid segmentation procedure and manual boundaries. A study using SHAS found no translation gain from continued training on resegmented speech. The effect of adaptation therefore had reason to depend on what the segmenter already provided. A translator receiving speech that resembles its original training inputs may face a different problem from one receiving arbitrary slices of time.

Clock-based segmentation makes that interaction easy to see. The cut is determined by the duration of a window. Choosing it requires no separate prediction about sentence boundaries, which is an attractive property when audio keeps arriving. The linguistic cost follows from the same simplicity. An utterance can extend across any clock boundary. The paper asks whether overlapping inputs, together with a translator that has worked on less regular spans in training, can make that cost small enough for fixed windows to compete with a dedicated segmenter.

How retranslation makes changes visible

The paper adopts retranslation as its way of producing online output. A retranslation system processes the current audio again at each update. An early rendering can be replaced when later words clarify it. This procedure can use an ordinary translation decoder, and it gives the decoder room to correct choices made with little context. The approach follows earlier work on retranslation and streaming for simultaneous translation.

From the reader's perspective, seeing the translation extend and seeing words disappear are different events. The paper uses flicker for changes to previously displayed material. The same final wording can be reached after a largely steady sequence of additions or after repeated rewrites. A method that delivers an early guess can therefore look prompt at first and still take time to settle. This is the reason for evaluating final quality, the extent of revision, and the timing of stable text separately, even though revision and timing influence each other.

The method, step by step

Starting with speech translators trained on annotated clips

The authors use released checkpoints from joint speech-and-text translation work. A checkpoint stores the learned parameters from an earlier training run. One starting checkpoint serves English-to-German. The other serves the multilingual task covering Spanish, French, Italian and Portuguese into English. The paper refers to the unmodified checkpoints as original. Their speech training used complete segments that generally corresponded to a sentence. The English-to-German starting point comes from work that investigated learning from the auxiliary text translation task.

For each starting point, the authors prepare variants by continuing training with synthetic examples. The underlying idea is to change where the training audio starts or stops while retaining examples from the human-segmented data. The variants differ in what sort of mismatch they introduce. Prefix training moves the end of a clip. Context training can add speech before an annotated clip and then make an incomplete version of the resulting span. Random-window training allows both edges to fall inside annotated clips. All the synthetic inputs stay within individual TED talks.

Preparing any shortened example requires an estimate of which part of the translation belongs with the retained audio. The original annotation pairs a whole clip with its translation. It gives the authors endpoints for that pair. An arbitrary cut inside the clip typically has no corresponding annotated location in the target. For their synthetic cuts, the authors use a duration ratio to select a corresponding portion of the translated text. The same share of audio and text is an approximation to correspondence. It can be wrong when the speaker delivers one part quickly or when the translation places corresponding material in a different order.

Prefixes, longer inputs and random windows

The prefix recipe uses a 50-50 mixture of intact examples and synthetic prefixes. The authors draw a shorter duration for an audio segment and retain everything from its annotated start up to that point. They take a prefix of the target text according to the fraction of the audio retained. The important feature of the construction is that it leaves the start fixed. The translator sees a normal beginning with less of the ending than it would have had in the original example. The example in the paper breaks off in the opening of a sentence, before the speaker has reached the main statement.

This recipe addresses a situation that arises even when a segmenter has chosen a sensible starting boundary. An update can arrive while a speaker is still developing a phrase. The current speech prefix is all the translator has at that moment. Training on prefixes supplies examples of stopping the output with incomplete evidence. The intact half of the training mix continues to supply examples of translating completed speech. An early ending and a mid-utterance beginning are distinct cases, and only the former is produced by this recipe.

The context recipe first chooses whether to extend each original segment. It keeps that segment by itself 50% of the time. It prepends the immediately preceding segment 25% of the time and the 2 preceding segments 25% of the time. A longer input may thus require translation of earlier complete utterances as well as the designated final one. For each of these examples, the authors also add a truncated version. They shorten the final component of the span, leaving the preceding complete components in place.

This produces a different kind of training pair from a simple prefix. In the paper's example, a completed statement about work on technology is followed by the beginning of a statement about its benefits and risks. An unfinished ending can therefore appear after speech that the translator has already had to interpret and render as a complete thought. The contextual speech is part of the span to be translated. The recipe keeps the annotated start of the earliest included segment and can reuse the translations of complete preceding segments. The length-based guess is needed at the newly introduced endpoint.

The windows recipe uses another 50-50 mix, this time of original segments and randomly sized spans. At the start of a talk, the authors sample a duration uniformly between 10 and 30 seconds. When that span ends, the next starts where it left off, with a new sampled duration. The procedure continues to the end of the talk. The target for each span is extracted from the time-aligned gold material, with length ratios used where the sampled start or end falls inside a gold segment.

A random training window can begin with the last part of an utterance, encompass complete utterances, and end with the beginning of another. The paper gives an example whose initial words complete a thought from outside the window and whose closing words leave a new thought unfinished. The procedure exposes the translator to both forms of arbitrary edge in a single input. It also uses estimated target boundaries at both edges whenever both fall inside annotated segments. The authors expect more alignment error in this training material than in the other recipes. The experiment consequently varies both the shape of the audio and the reliability of the associated translation.

Continuing training under the original configurations

Each adapted checkpoint receives an additional 20k training steps under the configuration of its starting checkpoint. When the run saves more than one checkpoint, the authors average the last two. The English-to-German runs use audio and sequences of phonemes derived from the corresponding transcripts. A phoneme represents a speech-sound distinction. The continued training uses no extra parallel text, meaning paired source and target text independent of those speech examples.

The multilingual runs use audio for the selected directions and omit phoneme sequences. The multilingual starting point had already undergone speech translation training. For both starting points, the validation material consists of gold segments. All the runs reach the step limit before early stopping, a procedure that would have ended training based on validation behavior, comes into effect. The paper reports using a single NVIDIA Tesla V100 GPU for translation and continued training. The authors also report releasing the experimental code and translation outputs and describe making the adapted checkpoints available.

These conditions establish what changes across the adapted versions. The prefix, context and random-window recipes determine the additional speech spans and their targets. The original checkpoint provides a common starting point for the variants in each group of directions. At evaluation, a given version can be paired with any of the segmentation strategies. Even the translator trained on random windows can be tested on gold or SHAS cuts, and the original translator can be tested on a sliding window.

Choosing the active audio

Gold segmentation takes its boundaries from the human annotations in the corpora. It is an oracle condition because it provides information that would be unavailable to a system receiving a talk as it happens. It establishes how a given translator behaves when its input is arranged into the familiar units supplied with the data. A human boundary identifies an annotated unit, while the score achieved by translating those units is something the experiment measures.

SHAS uses learned probabilities for potential boundaries. Its procedure for choosing cuts in the online simulation is pSTREAM. The authors set a maximum segment length of 18 seconds, following the setting reported as strongest by the developers of SHAS. The learned probabilities make the segmentation responsive to the audio. The length cap limits how long the procedure can leave a segment open. SHAS supplies the main comparison with a system that explicitly learns where speech should be divided.

The independent fixed condition uses 26-second windows, a duration taken from earlier experiments described in the paper. These windows are adjacent and treated as separate units. Within an open window, more audio becomes available at each retranslation. At a window boundary, the next span starts afresh. A speaker crossing that boundary can leave the end of a thought in one translation input and its continuation in the next.

The merged condition uses windows of 15 seconds and advances them by a stride of 2 seconds. The stride is how far the window shifts between updates. The span changes at both ends once the window is sliding: part of the earlier audio drops away and newer speech becomes available. The overlap gives the translator a chance to render a shared passage from successive inputs. The system then uses agreement in the resulting texts to decide which material to carry forward.

Retranslation takes place every 2 seconds throughout the experiment, matching the stride of the sliding window. For gold, SHAS and independent fixed segmentation, successive updates to an open segment retain its starting point. Each pass translates from there through the currently available part. The last pass sees the full segment. For overlapping windows, the active audio eventually moves away from its earlier start. The next update has to be reconciled with an accumulated translation whose beginning may correspond to speech that the newly translated span no longer contains.

Context training and translation with overlapping windows

The steps in order.

Context training and translation with overlapping windowsStep 1: Train on extended spans and unfinished endings1. Train on extended spans and unfinished endingsStep 2: Translate the audio in the active window2. Translate the audio in the active windowStep 3: Search earlier output for the longest shared passage3. Search earlier output for the longest shared passageStep 4: Retry with earlier audio when the match falls short4. Retry with earlier audio when the match falls shortStep 5: Preserve the accumulated text through the chosen match5. Preserve the accumulated text through the chosen matchStep 6: Take the remaining text from the new translation6. Take the remaining text from the new translationStep 7: Advance the window for the next update7. Advance the window for the next update

Finding a place to splice the text

The joining procedure comes from a sliding-window study of cascaded speech translation by Sen and colleagues. It works on translated text, so the authors can use it in a direct system without a source transcript. At each update, the procedure compares the current window translation with the output assembled through the previous update. Audio overlap makes it possible for the two translations to share wording, even though they have different left edges and the newer input may clarify something near the previous right edge.

The main procedure looks for a longest common substring, or LCS. A substring is a contiguous stretch. In this application, it gives the join a stretch of text that the two renderings have in common. The updated translation contains the earlier output up to the start of the match, the match itself, and the new rendering from the end of the match onward. Text to the right of that point in the previous output can disappear or be rewritten. Text before the matched point in the new translation makes no further contribution. If equally long matches are available, the procedure chooses the last-occurring one.

The length of shared text governs whether to try translating a slightly longer span before making the join. The paper gives the threshold as follows.

threshold = |Tᵗ| × τ

The quantity threshold is the minimum match length that allows the current attempt to proceed without another retry. The equals sign defines its value. Tᵗ is the translation of the active window, with the superscript t indicating the current update. The vertical bars take the length of that text. The multiplication sign applies the ratio τ to the length. The authors set τ to 0.4, using the value that had worked best in the earlier cascade study. A longer window translation thus requires more shared text to clear the threshold.

When the longest match falls short, the algorithm moves the left edge of the window back by 0.1 seconds and translates the enlarged span. The extra audio may help recover wording that agrees with the accumulated translation. The right edge remains at the current point in the stream. The procedure can backtrack up to three times. It merges once the match is long enough or once the retry limit is reached. The threshold determines when to look for a better match. At the retry limit the text is joined even if the match is still shorter than the threshold.

The splice also constrains what the reader can see change. The earlier text through the match is carried over at that update. A match late in the accumulated output lets more of that output survive. A match nearer the beginning of the material being reconsidered leaves room to replace more text. The preference for a long match gives the algorithm more shared wording on which to base the splice. Choosing how far along the earlier text to place it is a separate consideration, which the paper tests by changing the match rule.

Measuring finished text and successive updates

The authors use SLTev to evaluate retranslation. Since the recordings are supplied as talks, the comparison begins with the generated output for a whole talk. The reference translations, however, come in annotated segments. For quality scoring, SLTev divides the finished generated text into spans and aligns them to the references. The alignment is chosen to minimize word error rate, an edit-based measure of disagreement between the words of the candidate and reference. Here the criterion is used to establish the correspondence for scoring. The paper's main quality comparison then uses BLEU. The evaluation is based on SLTev.

The resulting divisions are evaluation boundaries. They can differ from both the original audio cuts and the sentence boundaries of the generated text. An output word can consequently be placed alongside the wrong reference span. The comparison depends in part on how much the resulting errors affect the score and whether particular configurations are more exposed to them. The realignment procedure comes from earlier work on automatic sentence segmentation for translation evaluation.

For flicker, the authors use SLTev's document-level measure. The toolkit's other option averages flicker scores over the system's segments. Changing the segmentation changes the units entering that average. For example, an update near the end of one system's segment can fall well inside another system's window, where more text remains open to revision. The document measure instead lets the authors follow the evolving translation of the talk without making a mean over those competing divisions.

The original delay implementation presented a different problem. It could assign all instances of a token the time of the first appearance of that form. A token here is an item in the output, including a punctuation mark in the paper's worked example. Its form can occur many times, each in a different place in the translation. If the time of the first instance is reused, the metric can give a much later occurrence credit for appearing during an earlier update. This problem is especially consequential for long segments and for a merged output that keeps growing through a talk. The distinction between an output item and its repeated form concerns tokenization.

In the paper's example, a partial translation adds the word horror and a comma at 14.18. Other instances of the same word and punctuation occur later, including after a portion of the line that is revised. The original timing rule assigns the repeated forms 14.18 throughout that final line. With the correction, the earlier instance and its comma keep the timestamp 14.18, while the later repeats are dated 16.18. The opening item retains its own timestamp of 13.18. Keeping separate records for the repeats prevents the first occurrence from determining the apparent time of every other instance.

The authors also wait for the preceding context of a token to finalize before assigning its time. A repeated word, or any other word that will survive in the finished text, may already appear in a partial rendering whose earlier wording is still unstable. Counting its appearance after that unstable material could make it look as though a settled passage was available sooner than it was. The new timestamp reflects when the preceding text has stabilized. This removes the specific advantage from assigning a form's first timestamp to later occurrences, while allowing real revisions to make the measured delay longer.

Stabilizing the decoder or withholding part of its output

For gold, SHAS and independent fixed segmentation, the authors also evaluate biased beam search. Beam search retains promising partial translations as it builds an output. The biased version increases the preference for choosing, at a given position, the token present at that position in the previous translation. The experiment uses the preceding update as the preferred text and sets the bias parameter beta to 0.25. It leaves the final 5 tokens of that preferred prefix outside the bias, so the newest part remains easier to revise.

This works most directly when both translations start from the same point in the source audio. Under a sliding window, the earlier and current translations can start with speech from different parts of the talk. A word at the same output position can then correspond to a different passage. The authors evaluate merged windows without directly applying that positional bias. The join itself supplies a way to preserve earlier text, and the appendix tests an alternative splice rule that tries to preserve more of it.

An output mask is a separate intervention. It withholds a specified number of items from the right edge of a partial translation before display. The main flicker comparison uses a mask of 0, so no suffix is withheld. The appendix increases the mask to see how much revision is concentrated near the newest text and how long readers then wait to see that part of the output. The beam-search mask controls which earlier choices influence decoding. The output mask controls which newly produced words are visible.

Experiments and results

The recordings and the comparisons

English-to-German uses version 1.0 of MuST-C, a corpus of TED talk audio with human transcriptions and translations. The training collection for this direction has 2,043 talks and 229,703 annotated segments. The evaluation uses tst-COMMON. In the automatic conditions, the translators receive the talks as streams without the divisions into annotated segments. Those divisions are still used in the gold condition and to identify the references for scoring. The audio and text come from the MuST-C corpus.

The directions into English use mTEDx, which also supplies human transcriptions and translations of TED talk recordings. The selected training data for the multilingual checkpoint contain 1,128 talks and 121,865 segments. Evaluation uses the iwslt2021 test set. Its Spanish-to-English portion has 15 talks and 996 annotated segments. The corresponding French-to-English portion has 11 talks and 1,041 segments. Italian-to-English has 11 talks with 979 segments, and Portuguese-to-English has 11 talks with 1,022 segments. These counts describe the source annotations. The input spans produced by the automatic methods depend on the segmentation in use.

Each test direction has comparisons across the original and adapted checkpoints and across the available ways of selecting audio spans. The gold condition shows the value of having the human cuts. SHAS shows what the system can achieve with an automatic predictor of useful boundaries. The independent fixed condition supplies a time-based baseline, and the merged condition tests whether successive, overlapping translations can be assembled into a stronger result. Holding the checkpoint fixed makes it possible to compare the segmentation procedures with the same translator. Holding the segmentation fixed shows what changes when the translator receives additional training.

BLEU measures the final output after the hypotheses have been aligned to the reference spans. The authors regard the final retranslation of a full unit as equivalent in quality to translating that unit offline, since the complete input is then available. With merged windows, the quality comparison uses the finished text assembled from the window translations. Flicker and delay describe successive updates. An early rendering that is later replaced can affect both of those measures while leaving final BLEU untouched.

How the quality ranking changes with context training

The original checkpoints achieve their highest BLEU scores with human boundaries in each direction. Among the automatic conditions, SHAS leads in the directions into English. The English-to-German numbers add an exception to the paper's general characterization of SHAS as strongest with the original translators. On tst-COMMON, the original checkpoint reaches 24.8 BLEU with merged windows and 24.5 with SHAS. Independent fixed windows obtain 22.4, and the gold result is 25.4. The table therefore already shows some value from overlapping inputs in that direction before any additional training.

Spanish-to-English illustrates how much the choice of adaptation can matter for fixed windows. With the original checkpoint, iwslt2021 BLEU is 35.0 for independent windows, 38.9 for merged windows and 40.2 for SHAS. After context training, independent windows improve substantially and merging gives the strongest result. The matched chart compares what happens when each segmentation is given the same context-trained translator. The merged result also exceeds the original checkpoint's 41.6 with gold boundaries, the highest gold result for that direction.

Segmentation and final BLEU on Spanish-to-English iwslt2021 with context training

The overlapping-window join gives the strongest result with the same translator across cuts.

Segmentation and final BLEU on Spanish-to-English iwslt2021 with context trainingHuman boundaries: 41.1Human boundaries41.1SHAS: 40.7SHAS40.7Independent fixed windows: 39.6Independent fixed windows39.6Merged overlapping windows (this paper): 42.0Merged overlapping windows (this paper)42.0
The numbers
System or settingBLEU
Human boundaries41.1
SHAS40.7
Independent fixed windows39.6
Merged overlapping windows (this paper)42.0

In English-to-German on tst-COMMON, context training yields 25.3 BLEU with overlapping windows, 24.9 with SHAS and 23.6 with independent windows. The context-trained translator obtains 25.2 on gold segments. In other gold runs that direction reaches 25.5. The comparison with human cuts therefore has two valid scopes. With the context checkpoint fixed, the merged result is higher. When each segmentation family can use its most successful checkpoint, the highest gold score remains ahead. The overlap result is the best automatic BLEU reported for the direction under either reading.

Italian-to-English is also a direction in which continued training helps SHAS. On iwslt2021 it obtains 26.4 BLEU with the original checkpoint and 29.0 with random-window training. The best quality for the direction comes from context training with merged windows. It exceeds the matched gold score and the highest gold score, 29.0, obtained with the random-window checkpoint. The chart shows the matched comparison, where the effect of replacing one segmentation procedure with another can be read without changing the training variant.

Segmentation and final BLEU on Italian-to-English iwslt2021 with context training

The merged output leads the comparison with both learned and human cuts.

Segmentation and final BLEU on Italian-to-English iwslt2021 with context trainingHuman boundaries: 28.8Human boundaries28.8SHAS: 28.7SHAS28.7Independent fixed windows: 27.5Independent fixed windows27.5Merged overlapping windows (this paper): 29.2Merged overlapping windows (this paper)29.2
The numbers
System or settingBLEU
Human boundaries28.8
SHAS28.7
Independent fixed windows27.5
Merged overlapping windows (this paper)29.2

French-to-English and Portuguese-to-English illustrate where the stronger window recipe still leaves room for SHAS. In French-to-English on iwslt2021, context-trained merging and context-trained SHAS each score 35.8 BLEU. The original checkpoint scores 36.2 with SHAS and 37.2 with human boundaries. In Portuguese-to-English on the same test collection, context-trained merged windows score 28.1 and context-trained SHAS scores 29.2. The original checkpoint reaches 29.5 with SHAS and 30.6 with gold. In both directions, the strongest automatic BLEU comes from applying SHAS to the original checkpoint.

With context training held fixed, merged windows score above independent windows in all the tested directions. The matched comparison with SHAS gives wins in English-to-German, Spanish-to-English and Italian-to-English, a tie in French-to-English, and a lower result in Portuguese-to-English. Spanish-to-English and Italian-to-English are the directions where the merged setup also beats the best gold result. These comparisons show why the paper tests combinations. A learned segmentation that is strong for the original checkpoint can lose its lead when the translator adapts to longer or incomplete spans.

Which output changes while people could be reading it

The main flicker plot shows Spanish-to-English on iwslt2021, with plots for the other directions in the appendix. Without a decoding bias, independent fixed windows show the most flicker. Their spans are long enough for a correction near the beginning to displace a substantial amount of displayed wording. The paper observes that biased beam search can dramatically reduce that instability. The earlier output gives the decoder a preference to preserve its wording while the newest end remains freer to change.

The merged setup has less flicker than the independent fixed condition without the bias. Its active windows are shorter, and a splice preserves whatever precedes the shared match. The appendix reports that, for the directions into English, merging also yields less flicker than SHAS without biased beam search. In the main comparison, gold segmentation flickers least overall, and SHAS tends to come closer to that level when it uses biased search. The ordering thus depends on whether the comparison uses a common decoding procedure or uses the stabilizing options available to each configuration.

The paper reports an average BLEU difference of -0.006 when biased beam search is enabled in the applicable conditions, and omits the corresponding quality columns from the main table. That observation helps place the large change in flicker. The decoder can retain more of the earlier display without much average change in the final overlap with the references. In a quality-only evaluation, the reader would see very little of what this decoding intervention changes.

Prefix training generally reduces flicker with either form of decoding. The authors suggest that practice with incomplete inputs makes the translator less likely to supply an ending that subsequent audio will force it to remove. Context training produces a further reduction. When inspecting translations, the authors saw fewer instances in which the context-trained version combined separate sentences into a longer sentence. The random-window version tends to have higher flicker than the original checkpoint across segmentation methods. The authors connect that observation to the uncertainty in selecting target words at both edges of an artificial training window.

When the translation settles

The delay plots give the greatest measured delay to independent fixed windows without biased beam search. This is also the condition with the most flicker. With biased search, the delay of independent windows becomes comparable to gold and SHAS. The schedule for processing the audio stays the same, while the time at which output settles can change. If a decoder preserves a previously displayed prefix, the words following it can qualify for earlier timestamps under the revised timing rule.

Merged windows and the other segmentations have broadly comparable delay when all are evaluated without the bias, with the appendix reporting comparable delay for merged windows and SHAS in the other directions. The merged condition has higher delay than the alternatives when those alternatives use biased beam search. The difference is relevant to the experience of receiving a stable translation. It includes the effect of a stabilization method that is more readily available with a common audio start. The paper suggests that a measure of delay independent of flicker might give a closer comparison, while leaving that possibility untested.

Continued training changes delay less consistently than it changes final quality or flicker. In the main discussion of the Spanish-to-English results, context training lowers delay for gold segmentation, raises it slightly for SHAS and raises it more for the independent and merged window conditions. The appendix finds a weaker effect of training on delay than on flicker across the other directions. These plots describe how the translated text becomes stable in the simulated stream. They do not measure the elapsed computation time of the decoders, boundary predictor or window retries.

A second reading of the final translations

The appendix also scores the completed outputs with COMET. This evaluation takes place outside SLTev, using the same automatic resegmentation procedure to line up outputs and references. With this metric, context-trained merging gives the highest automatic score in every direction. It also exceeds the best gold results for Spanish-to-English, French-to-English and Italian-to-English. The broader advantage on this measure is part of the paper's evidence, with a qualification arising from the sensitivity of the COMET evaluation framework.

French-to-English is where the two quality rankings are particularly easy to compare. For context training on iwslt2021, BLEU gives SHAS and merged windows the same score. COMET gives the higher result to merging. That merged score also exceeds the 0.1702 COMET obtained with the original checkpoint and gold boundaries. The chart holds training fixed to show the differences among segmentation conditions under the appendix metric.

Segmentation and final COMET on French-to-English iwslt2021 with context training

Merging receives the highest score after automatic alignment to the reference spans.

Segmentation and final COMET on French-to-English iwslt2021 with context trainingHuman boundaries: 0.1123Human boundaries0.1123SHAS: 0.1742SHAS0.1742Independent fixed windows: 0.0777Independent fixed windows0.0777Merged overlapping windows (this paper): 0.2170Merged overlapping windows (this paper)0.2170
The numbers
System or settingCOMET
Human boundaries0.1123
SHAS0.1742
Independent fixed windows0.0777
Merged overlapping windows (this paper)0.2170

A score after realignment depends on how the scoring procedure reacts to output boundaries. A translated word at the start of a sentence can be assigned to the previous reference segment. That placement can make the text at both boundaries less coherent when the scorer sees the spans individually. The authors investigate this effect directly on a sample of English-to-German output. The resulting difference between COMET and BLEU explains their choice to report BLEU as the principal measure.

What the ablations show

Similarity to the test input is only part of a training recipe

The comparison among training variants reveals where additional training helps even without a text join. In French-to-English on iwslt2021, independent fixed windows give 31.0 BLEU with the original checkpoint and 34.5 with the context-trained one. In Portuguese-to-English on iwslt2021, those conditions obtain 23.6 and 26.9. Overlap has no role in either pair of runs. The difference shows that a translator made familiar with extended and unfinished spans can improve at handling independent windows as well as at producing text suitable for merging.

Fixing the overlapping-window segmentation gives a further comparison between prefix and context training. On Spanish-to-English iwslt2021, the prefix variant reaches 39.9 BLEU and the context variant reaches 42.0. In Italian-to-English, the corresponding results are 27.4 and 29.2. Both recipes expose the translator to incomplete endings. The context recipe also supplies examples made of consecutive utterances and adds incomplete versions of those larger inputs. These are differences between full recipes. The results give no separate estimate of the contribution of the longer span, the complete preceding utterances or the mix of examples used to train on them.

The random-window recipe moves training closer to test conditions in one specific respect. Its audio can begin in the middle of annotated speech, as the active translation window can at test time. With merging, it nonetheless has lower BLEU than context training across the reported directions. On English-to-German tst-COMMON, it gives 22.8 against 25.3 for context training. On French-to-English iwslt2021, the respective scores are 31.9 and 35.8. In Portuguese-to-English iwslt2021 they are 24.3 and 28.1. The accompanying flicker comparison shows why the regularity of the decoded text matters when consecutive translations have to supply a common passage.

The authors offer target alignment as an explanation. The random-window examples ask the duration heuristic to decide what translation belongs at the beginning as well as at the end. At either edge, the result can retain text for speech outside the span or drop text that the retained speech supports. This is a plausible source of inconsistent renderings between windows. The training comparison changes the audio inputs and target construction together, however, so it establishes the outcome of that recipe as implemented. An experiment with better alignment and the same random audio windows would be needed to test the proposed cause directly.

The splice location determines what can still be revised

The appendix tests a rule designed to preserve more of the accumulated translation. The ordinary rule chooses a longest common passage and turns to position when there is a tie. The alternative chooses the last common sequence longer than two tokens. Its purpose is to move the splice towards the right even when a longer match is available earlier. It can retain a longer stretch of what the reader has seen, while giving the new translation less scope to replace it.

The study varies window length on English-to-German tst-COMMON with the original checkpoint. Flicker grows sharply with longer windows under the longest-match procedure. With the last-match procedure it is generally lower, and increasing the window length produces a more moderate rise. The change works on the revision measure because a later splice tends to preserve more of the old text. When the fresh translation offers a better reading of speech near the overlap, the same restriction can preserve words that otherwise would have been replaced.

Final BLEU is lower with the last-match procedure across the tested window lengths. The paper also reports that 15 seconds gives the strongest quality result in this merged-window size comparison and performs better than 26 seconds on quality and flicker in the authors' tests. That result concerns the evaluated English-to-German configuration. The mechanism behind the quality and flicker tradeoff is visible in the splice itself. Moving a join later can stabilize the display because more text is taken from the old rendering, and it can affect the finished output for exactly the same reason.

The authors also shorten the independent windows to 15 seconds. Flicker comes close to the overlapping condition, remaining slightly higher, while quality suffers considerably. This comparison helps interpret the main contrast, which pairs 26-second independent windows with 15-second merged windows. Making an independent span shorter limits the amount of text open to revision, but it also makes the translator deal with more edges without the benefit of shared audio and a text join. The shorter fixed run shows that window length accounts for some of the stability difference and leaves an important role for how the boundaries are handled.

A display mask can hide revisions at the cost of waiting

The output-mask experiment uses the context-trained translator on Spanish-to-English iwslt2021 and leaves biased beam search disabled. At each partial update, the system withholds a specified suffix. If revisions are concentrated close to the newest output, hiding that suffix should reduce the number of changes already visible to the reader. A change deeper in the earlier text can still be seen when the suffix is hidden.

Independent fixed windows continue to produce more flicker than the other strategies, even with a mask of size 10. The authors interpret this result as evidence that much of the revision in fixed windows reaches back beyond the newest items. Merged windows have lower flicker than SHAS throughout the mask comparison and fall below gold with larger masks. For merged windows at mask size 10, the paper reports flicker of 0.25. It compares that value with the original checkpoint using independent fixed windows and biased beam search.

The delay plots show the cost of withholding text. A masked token can already exist in the current translation but becomes available to the reader only later. Delay increases as the mask grows, with a larger increase for the merged approach than for SHAS and gold in this comparison. The authors note that the corrected delay measure also depends on when the preceding text stabilizes, which makes the effect difficult to attribute entirely to withholding. The mask gives the merged setup a way to reduce visible revision while preserving final translation quality. The last-match splice changes the finished text and has its cost in BLEU, whereas the mask delays access to text the system has already generated.

Correcting reference alignment changes the metric comparison

The quality check takes a sample of 200 gold segments from the English-to-German evaluation. The authors manually fix the automatic resegmentation of translations from the original checkpoint. In the kind of boundary error they describe, a word belonging to the beginning of one segment has been grouped with the end of the previous segment. Correcting such a placement changes how the metric sees the spans without supplying a new translation of the talk.

BLEU on the checked sample changes from 24.70 to 24.73. COMET changes from -0.1128 to 0.0467. The change in COMET is larger than some of the differences between systems in the appendix. The authors hypothesize that a metric trained on well-formed sentences can be sensitive to the malformed chunks produced by an imperfect realignment. The check demonstrates sensitivity in the tested sample. It leaves open how frequently those errors arise in each of the segmentation conditions and whether they favor particular systems.

Limitations

Limits identified by the authors

The study has no human evaluation. The reported flicker and delay measures summarize changes and timing, but people can react differently depending on what changes and where it appears. Rewriting a phrase that alters the reader's interpretation and revising a minor item can each contribute to measured flicker. The authors cite earlier work finding a relationship between character erasure and usability judgments. That finding gives a reason to take visible revision seriously. It does not establish how distracting the specific sequences of changes in these experiments would be.

The online comparison is simulated. The authors report that the pSTREAM implementation of SHAS expects the complete audio as input despite its use for simulating online segmentation. They therefore could not compare real execution time for the different segmentation methods in a live stream. Fixed windows avoid running a learned boundary predictor. Their merged version can also translate an enlarged span again when agreement falls short. The experiments leave the total computational effect of those choices unresolved. Measured delay reports when settled words become available on the simulation timeline.

The authors restrict the study to retranslation. A simultaneous system can instead use a policy to decide when to wait for speech and when to produce more text. Such a system may have different opportunities to revise words or different rules for committing them. The sequence of partial translations that the merging algorithm relies on, and the advantages of a decoder that biases a new rendering towards the old one, belong to the approach actually tested. The paper leaves experiments with wait-or-translate policies for future work.

A reduction in merged-window flicker to the levels obtained with biased beam search remains an open problem in the paper. Choosing the latest suitable match costs final translation quality. Suppressing a suffix costs time. Direct positional bias is difficult when windows start at different points in the speech. The revised definition of delay also couples timing to flicker, so a change in measured delay can reflect a change in when wording stabilizes. Together these constraints limit how far the stability results can be interpreted as a comparison of the speed at which systems first generate words.

Limits visible in the comparisons

The recordings are TED talks with talk boundaries already known. The five directions give the comparison several source-language conditions, but they share the talk setting, and the directions into English share a starting checkpoint. English-to-German uses a different corpus and checkpoint. The experiment can establish that a pairing works across several of these directions while leaving the source of differences among the directions unclear. For example, the stronger BLEU result for overlapping windows in Spanish-to-English than in Portuguese-to-English relative to SHAS could reflect differences in training material, test material or checkpoint behavior on the two directions.

A BLEU result above gold measures the text obtained when one way of grouping speech is substituted for another. The gold boundaries are human annotations released with the corpus. Overlapping windows may provide speech across those boundaries and use more than one rendering of that speech to assemble the final translated text. The higher score establishes an ordering under that test and metric. It gives no direct human assessment of whether the window edges resemble better sentence boundaries, or of whether people understand the resulting updates better as the talk proceeds.

Some comparisons are close. On English-to-German tst-COMMON, 25.3 and 25.2 are the reported BLEU scores for context-trained merging and matched gold segmentation. The table gives the point estimates, without an estimate of how the ordering varies with a new sample of talks or repeated training. The broader pattern across directions supports the authors' case for taking overlapping windows seriously. The evidence for any narrow ordering has the precision of the reported test alone.

The merged setup changes multiple parts of inference at once. Compared with the principal fixed baseline, it uses shorter windows, carries shared audio into the next input, chooses a splice in translated text, and sometimes reruns translation on an enlarged span. The appendix clarifies what happens when the match rule or window length changes. It leaves the contribution of some individual choices, including the backtracking procedure, unmeasured in isolation. Context training likewise bundles extended inputs with truncated examples, and random-window training bundles more arbitrary cuts with noisier target estimates.

Finally, the quality results describe the completed translation after automatic alignment to reference segments. The manual check shows that the alignment can influence a metric substantially, especially COMET, but it covers a sample of English-to-German output. The study has no corresponding check of how alignment errors are distributed across all directions and systems. Nor does final BLEU measure whether the partial outputs were accurate at the time they were shown. Flicker and delay fill in some of that history by measuring revision and stability, while the meaning of early hypotheses and the effort of following them remain outside the experiment.

What came after

The paper leaves an agenda for follow-up, and documented later applications of its findings are unavailable. One proposed experiment would keep the sampled audio windows and use speech recognition or speech translation outputs to align them with target text. That would make it possible to test the authors' explanation for the poorer merging results with random-window training. In the reported experiments, the positions of the synthetic cuts and the uncertainty of the corresponding text change together.

The authors also identify translation with explicit wait-or-translate policies as a separate test of the segmentation ideas. A live implementation would make it possible to measure the time spent choosing cuts and generating updates. On the evaluation side, the paper raises document-level quality scoring as a possible way to reduce dependence on reconstructing reference sentence boundaries. Each question follows from a specific limit of the study: approximate supervision for arbitrary cuts, simulated delivery with retranslation, or sensitivity to how completed output is divided for scoring.

Cite

Cite as Chantal Amrhein and Barry Haddow. 2022. Don't Discard Fixed-Window Audio Segmentation in Speech-to-Text Translation. Proceedings of the Seventh Conference on Machine Translation (WMT).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2022.wmt-1.13

@inproceedings{amrhein2022don,
  title = {{Don't Discard Fixed-Window Audio Segmentation in Speech-to-Text Translation}},
  author = {Chantal Amrhein and Barry Haddow},
  booktitle = {Proceedings of the Seventh Conference on Machine Translation (WMT)},
  year = {2022},
  doi = {10.18653/v1/2022.wmt-1.13},
  url = {https://doi.org/10.18653/v1/2022.wmt-1.13}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/amrhein-2022-don-t-discard-fixed-window/