Stream-level Latency Evaluation for Simultaneous Machine Translation

Javier Iranzo-Sánchez, Jorge Civera, Alfons Juan

TL;DR

This paper introduces a new way to measure latency in simultaneous machine translation (SiMT) that accounts for the continuous, streaming nature of real-world applications. By moving from sentence-level evaluation to a stream-level approach using a global delay function and output re-segmentation, the authors provide a more accurate and interpretable framework for assessing how systems handle accumulated delays over time.

What Problem Does This Paper Address?

Simultaneous machine translation—translating speech or text while the source is still being produced—requires a delicate balance between translation quality and latency (delay). Currently, researchers evaluate latency using metrics like Average Proportion (AP), Average Lagging (AL), and Differentiable Average Lagging (DAL).

However, these metrics are typically calculated at the sentence level: you translate a sentence, calculate its latency, reset, and move to the next. This ignores the reality of streaming, where a delay in the first sentence might cause the system to fall further behind in the second, third, and fourth sentences. Furthermore, naive attempts to fix this by simply concatenating all sentences into one giant "super-sentence" (an approach called Concat-1) fail because they assume a constant translation rate across the entire stream, which is unrealistic and leads to uninterpretable results.

Methods

The authors propose a stream-level adaptation of standard latency measures. Their approach has three key components:

  1. Global Delay Function ($G(i)$): Instead of resetting the clock for every sentence, the metrics now track the total number of source tokens read since the very beginning of the stream. This ensures that delays incurred early on are reflected in the latency scores of subsequent segments.
  2. Re-segmentation: Many streaming systems don't output neat sentence boundaries. To compare a system's continuous output stream against reference translations, the authors use a re-segmentation approach based on minimum edit distance. This aligns the system's "hypothesis" stream to the reference sentences for evaluation purposes.
  3. DAL Scaling Factor ($s$): The standard DAL metric is notoriously "strict"—if a system falls behind, the math makes it impossible to ever "catch up," which isn't realistic for long streams (e.g., a system might speed up slightly during a speaker's pause). The authors introduce a scaling factor $s \in [0, 1]$. Setting $s=0.95$ allows the metric to account for slight "catch-up" behaviors, making the evaluation more robust for streams containing tens of thousands of words.

Datasets

The researchers evaluated their proposed measures using the IWSLT 2010 German-English dev set. To simulate a real streaming scenario, they concatenated all source sentences into a single continuous input stream.

For training their underlying translation models, they used a massive collection of standard corpora, including News Commentary, WikiTitles, Europarl, Rapid, MuST-C, TED talks, LibriVox, and Paracrawl, totaling millions of sentences.

Key Insights and Ideas

  • Sentence-level metrics are "blind" to accumulated lag. If a system is consistently slow, sentence-level averaging hides the fact that a user at the end of a 20-minute lecture might be minutes behind the speaker.
  • The "Concat-1" baseline is fundamentally flawed. Because it uses a single global target-to-source length ratio ($\gamma$), it often wildly over- or under-estimates the "ideal" writing rate for specific sentences, leading to erratic latency scores that don't reflect the system's actual policy.
  • Visualizing Latency Sources: The authors highlight two main sources of unexpected latency in streaming: writing rate errors (where the model's fixed policy doesn't match the actual sentence length ratio) and re-segmentation errors (where words are assigned to the wrong sentence boundary during evaluation).
Figure 1: The examples shown above illustrate how a model which follows a wait-k policy can obtain AL/DAL values that differ from k. The bold lines show the behaviour of the model, the dotted lines show the oracle policy. Left: writing rate error with k = 1; the model uses ˆγ = 1, but the actual value is γ = 1.5. Right: segmentation error with k = 2; the first translated word of the second sentence is wrongly assigned to the first sentence during resegmentation, i.e. ˆy1 = (y1,1, y1,2, y1,3, y1,4, y2,1).

Key Results

The experiments demonstrated that the proposed stream-level metrics are far more stable and interpretable than the naive Concat-1 baseline.

  • Failure of Concat-1: In Tables 3 and 4, the Concat-1 approach produced negative AL values and erratic DAL values that failed to correctly rank systems by their $k$ (the number of words the system waits before starting to translate).
  • Success of Stream-level Metrics: As shown in Figure 2, the proposed stream-level AP, AL, and DAL scores closely track the theoretical wait-$k$ values.
  • The Power of Scaling: In the DAL evaluation (Figure 2, right), the standard version ($s=1.0$) showed erratic spikes due to accumulated delays. However, the version with the scaling factor ($s=0.95$, dashed lines) exhibited smooth, predictable behavior, effectively compensating for minor re-segmentation errors.
Figure 2: Stream-level AP (left), AL (center), and DAL (right) as a function of k. The proposed metrics show coherent, interpretable behavior across different experimental setups.

Limitations and Future Work

While the re-segmentation approach is effective, the authors acknowledge that it isn't perfect; errors in alignment can still introduce noise into the latency calculations.

Additionally, the scaling factor $s$ is a hyperparameter. While $s=0.95$ worked well in their experiments, the "correct" value might vary depending on the specific application (e.g., what is an acceptable "catch-up" rate for live subtitling vs. simultaneous speech-to-speech translation?). Future work could involve exploring more sophisticated, automated ways to determine this scaling factor or improving the robustness of the re-segmentation process.

Summary updated

BibTeX
@inproceedings{iranzosanchez2021stream,
  author = {Javier Iranzo-Sánchez and Jorge Civera and Alfons Juan},
  title = {{Stream-level Latency Evaluation for Simultaneous Machine Translation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.findings-emnlp.58},
}
Figure