Impact of Encoding and Segmentation Strategies on End-to-End Simultaneous Speech Translation

Ha Nguyen, Yannick Estève, Laurent Besacier

TL;DR

This paper tackles the challenge of real-time speech translation, where systems must translate spoken language as it's being spoken. They demonstrate that using unidirectional LSTMs (ULSTM) for speech encoding significantly improves both speed and translation quality compared to bidirectional LSTMs (BLSTM) in online settings. Furthermore, they show that segmenting speech into fixed-size blocks for processing yields the best results, even outperforming more intuitive methods like word-level segmentation.

What Problem Does This Paper Address?

Simultaneous speech translation aims to translate spoken language in real-time, meaning the system starts producing translated output before the speaker has finished their sentence. This is a significant challenge because it requires a delicate balance between minimizing translation latency (how quickly output is produced) and maximizing translation quality. Traditional machine translation models are often trained on complete sentences (offline), making them ill-suited for this streaming scenario. Previous work has explored "wait-k" policies, where the system waits for a certain amount of input before translating, but optimizing the underlying speech encoding and how the input is segmented for processing remains an open problem. Specifically, the authors investigate how to efficiently encode continuous speech and how to best segment it to alternate between listening (encoding) and speaking (decoding).

Methods

The core of this work lies in exploring and improving the speech encoding and segmentation strategies for end-to-end simultaneous speech translation.

  • Encoding Strategies:
    • BLSTM Re-encode: The baseline approach uses bidirectional LSTMs (BLSTM) for speech encoding. In an online setting, this requires re-encoding the entire input speech sequence from both left-to-right and right-to-left every time new audio frames are processed, which is computationally expensive.
  • ULSTM Re-encode: The authors propose replacing BLSTM with unidirectional LSTMs (ULSTM). This significantly speeds up encoding as it only requires left-to-right processing. While this might degrade performance in offline settings, they show it improves online efficiency and quality.
  • ULSTM Overlap-and-Compensate: To further optimize ULSTM, they introduce a novel strategy. Instead of processing chunks of speech independently, this method allows the encoder to "look back" at a portion of the previous audio chunk. This "overlap" helps compensate for information lost at the boundaries of processed chunks, particularly improving the quality of representations from the VGG convolutional layers used in their architecture.
  • Segmentation Strategies: The paper compares three methods for segmenting the incoming speech stream to decide when to encode (Read) and when to decode (Write):
  • Fixed Interval Boundaries: Speech is divided into fixed-size blocks of frames. This was the strategy used in their previous work.
  • Oracle Word Boundaries: Speech is segmented based on actual word boundaries, identified using a forced aligner. This is intuitively appealing as it aligns with linguistic units.
  • Randomly Set Boundaries: Speech is segmented into chunks with randomly determined sizes within specified lower and upper bounds.

Datasets

The experiments were conducted on the English-German (EN-DE) language pair. The training data is a combination of:

  • MuST-C EN-DE
  • Europarl EN-DE
  • How2 (synthetic data)

This amounts to over 750 hours of translated speech. Evaluation was performed on the MuST-C tst-HE and MuST-C tst-COMMON test sets. The paper also mentions using a metric called "Lagging Difficulty" (LD) to identify particularly challenging utterances for simultaneous translation, creating specific challenge sets for analysis.

Key Insights and Ideas

  • ULSTM is the Way to Go for Online Speech: The most striking finding is that unidirectional LSTMs (ULSTM) are not only faster but also yield better translation quality in online scenarios compared to bidirectional LSTMs (BLSTM). This challenges the intuition that bidirectional context is always superior, especially when latency is a critical factor.
  • Overlap-and-Compensate is a Game Changer: The novel "Overlap-and-Compensate" strategy for ULSTM encoders provides a substantial boost in inference speed, making it significantly faster than even the basic ULSTM re-encode approach. This highlights the importance of carefully handling chunk boundaries in streaming data.
  • Simplicity Wins for Segmentation: Counterintuitively, fixed-size block segmentation outperformed more linguistically motivated methods like oracle word boundaries. The authors hypothesize this is because their fixed-size blocks are smaller than the average word length, allowing for more frequent read/write cycles and better alignment with the stride parameter.
  • Difficulty Matters: The "Lagging Difficulty" metric effectively identifies utterances that are inherently harder for simultaneous translation, suggesting that specialized training or adaptation for these cases could be beneficial.

Key Results

  • Speedup: ULSTM re-encode is approximately twice as fast as BLSTM re-encode. The ULSTM Overlap-and-Compensate strategy is about 17 times faster than BLSTM and 9 times faster than ULSTM re-encode.
  • Quality/Latency Trade-off: ULSTM-based models consistently achieve better BLEU/AL (Average Lagging) trade-offs across both test sets compared to BLSTM models. The ULSTM Overlap-and-Compensate strategy further improves this trade-off, especially in low-latency regimes.
  • Segmentation Impact: The ULSTM Overlap-and-Compensate strategy performs best with fixed interval boundaries. Oracle word boundaries did not offer significant improvements and often resulted in higher latency. Randomly set boundaries performed the worst, especially with very small chunk sizes.

Limitations and Future Work

  • Limitations:
    • The authors note that while ULSTM improves performance in online mode, it can degrade performance in offline mode compared to BLSTM.
  • The effectiveness of oracle word boundaries was limited, possibly due to the mismatch between word lengths and chosen stride parameters.
  • The "Lagging Difficulty" metric is proposed as a tool for identifying difficult utterances, but its direct impact on improving translation for these specific cases is a direction for future work.
  • Future Work:
    • Investigating more sophisticated segmentation strategies that adapt to the input.
  • Exploring how to leverage the "Lagging Difficulty" metric to build specific challenge sets or adapt models for harder utterances.
  • Further research into optimizing ULSTM architectures and their interaction with segmentation for even better performance.

Summary updated

BibTeX
@inproceedings{nguyen2021impact,
  author = {Ha Nguyen and Yannick Estève and Laurent Besacier},
  title = {{Impact of Encoding and Segmentation Strategies on End-to-End Simultaneous Speech Translation}},
  booktitle = {Interspeech},
  year = {2021},
}
Figure