SIMULEVAL: An Evaluation Toolkit for Simultaneous Translation

Xutai Ma, Mohammad Javad Dousti, Changhan Wang, Jiatao Gu, Juan Miguel PinoEMNLP 2020

Abstract

Simultaneous translation on both text and speech focuses on a real-time and low-latency scenario where the model starts translating before reading the complete source input. Evaluating simultaneous translation models is more complex than offline models because the latency is another factor to consider in addition to translation quality. The research community, despite its growing focus on novel modeling approaches to simultaneous translation, currently lacks a universal evaluation procedure. Therefore, we present SimulEval, an easy-to-use and general evaluation toolkit for both simultaneous text and speech translation. A server-client scheme is introduced to create a simultaneous translation scenario, where the server sends source input and receives predictions for evaluation and the client executes customized policies. Given a policy, it automatically performs simultaneous decoding and collectively reports several popular latency metrics. We also adapt latency metrics from text simultaneous translation to the speech task. Additionally, SimulEval is equipped with a visualization interface to provide better understanding of the simultaneous decoding process of a system. SimulEval has already been extensively used for the IWSLT 2020 shared task on simultaneous speech translation. Code will be released upon publication.

Introduction

Evaluating simultaneous translation models is notoriously tricky because researchers must measure both translation quality and latency—the delay between the source input and the generated translation. In standard "offline" machine translation, a model reads an entire source sentence before generating a translation, making evaluation straightforward via metrics like BLEU.

Simultaneous translation, however, requires a trade-off: starting early reduces latency but may sacrifice quality due to limited context. While several latency metrics exist, such as Average Proportion (AP), Average Lagging (AL), and Differentiable Average Lagging (DAL), the community lacks a standardized implementation. Inconsistent definitions and a lack of shared code make comparing models difficult. SimulEval addresses this by providing a unified, open-source framework for both text and speech modalities.

System Architecture

SimulEval is built on a server-client architecture that decouples the evaluation environment from the translation model. This design allows researchers to develop models in any framework (e.g., PyTorch, TensorFlow) while communicating via simple RESTful APIs.

The server-client architecture of SimulEval decouples the evaluation environment from the translation agent.
  • The Server: Acts as the environment. It streams source input (text tokens or audio segments) to the client, receives predicted translations, and calculates final quality and latency metrics.
  • The Client: Acts as the agent. Researchers define a custom policy to decide when to "read" more input versus when to "write" a translation.

Standardizing Latency Metrics

SimulEval adapts and standardizes existing text-based latency metrics for both text and speech:

  • Average Proportion (AP): Measures the proportion of total source information (tokens or audio duration) consumed before generating target words.
  • Average Lagging (AL): SimulEval fixes a critical loophole in the original AL metric. Previously, models could "cheat" by stopping early to get better scores. SimulEval anchors the "ideal policy" to the reference translation length rather than the system's hypothesis length, ensuring a fair baseline.
  • Differentiable Average Lagging (DAL): Adapted to use time duration for speech, providing a continuous version of lagging.

Visualization and Real-world Use

A key feature of SimulEval is its web-based visualization interface. It allows researchers to interactively inspect the step-by-step decoding process, comparing the hypothesis against the reference alongside the source audio waveform and calculated metrics.

SimulEval's visualization interface displaying latency metrics, reference/hypothesis text, and the source audio waveform.

SimulEval has already proven its utility as the official evaluation framework for the IWSLT 2020 shared task on simultaneous speech translation. It enabled organizers to score submissions consistently while preserving the integrity of blind test sets by keeping source data server-side.

Conclusion

SimulEval provides a much-needed standard for the simultaneous translation community. By unifying modalities and providing a framework-agnostic evaluation pipeline, it paves the way for reproducible research and fair benchmarking in real-time translation tasks. The authors encourage the community to adopt this toolkit to ensure consistent latency reporting across the field.

Summary updated

BibTeX
@inproceedings{ma2020simuleval,
  author = {Xutai Ma and Mohammad Javad Dousti and Changhan Wang and Jiatao Gu and Juan Miguel Pino},
  title = {{SIMULEVAL: An Evaluation Toolkit for Simultaneous Translation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  url = {https://openreview.net/forum?id=LqrUyZ1c4ky},
}
Figure