Implicit Memory Transformer for Computationally Efficient Simultaneous Speech Translation

Matthew Raffel, Lizhong Chen

Introduction

Simultaneous Speech Translation (SimulST) requires translating audio into text in real-time. This task presents a significant challenge: balancing low latency with high translation accuracy. To achieve real-time performance, models typically employ "block processing," where audio is divided into small segments. However, processing these segments in isolation leads to "context fragmentation," where the model loses track of previous information, resulting in degraded translation quality.

Existing solutions, such as the Augmented Memory Transformer (AMT), address this by using "memory banks"—summarized snapshots of past segments—and "left context" (raw data from preceding segments). While effective at maintaining context, these methods introduce significant computational overhead and redundancy, as the model often re-processes similar information across different layers and segments.

The Implicit Memory Transformer (IMT)

The Implicit Memory Transformer (IMT) addresses these inefficiencies by streamlining how the model retains historical context. The IMT architecture introduces three primary innovations:

  1. Implicit Memory via Attention Output: Instead of relying on raw tokens or separate summarization queries, the IMT utilizes the attention output of the previous segment’s center context as the "left context" for the current segment. This approach leverages a "learned" representation of the past, reducing the need for redundant processing.
  2. Elimination of Explicit Memory Banks: The researchers found that the recurrence provided by the new left-context method is sufficient to maintain context. Consequently, explicit, power-hungry memory banks can be discarded entirely without sacrificing quality.
  3. Query Efficiency: In standard architectures, the "Query" (Q) vector is computed using the left, center, and right contexts. The IMT simplifies this by removing the left context from the Query calculation. Since the left context is already a refined representation from the previous step, it only needs to be included in the Keys (K) and Values (V) to provide context for the current segment's queries.

Experimental Results

The IMT was evaluated on the MuST-C dataset across three language pairs: English-German (en-de), English-French (en-fr), and English-Spanish (en-es).

Translation Quality and the "Memory Gap"

The IMT achieves translation quality (measured by BLEU scores) nearly identical to the state-of-the-art Augmented Memory Transformer across various latency levels (wait-k values). A critical finding was the "memory gap": when memory banks were removed from the baseline AMT model, performance dropped significantly (by 4.48 to 6.23 BLEU points). The IMT successfully recovers this lost performance without the need for explicit memory banks.

Figure 2: BLEU scores vs. Average Lagging for the en-de language pair. The IMT maintains parity with the AMT while significantly outperforming the AMT without memory banks.

Computational Efficiency

The most significant advantage of the IMT is its computational speedup. By removing the left context from Query calculations and eliminating memory bank calculations, the IMT reduces complexity in both self-attention and convolution layers. Notably, the encoder's forward pass time remains virtually constant regardless of the left context size, whereas traditional models exhibit a non-linear increase in computation time.

Figure 4: Encoder processing time vs. Left Context Size. The IMT demonstrates a "flat line" efficiency, making its speed independent of the amount of historical context used.

Conclusion

The Implicit Memory Transformer demonstrates that explicit memory banks in previous state-of-the-art models were largely compensating for inefficient context handling. By utilizing learned attention outputs as implicit memory, the IMT achieves high-quality simultaneous translation with significantly improved computational efficiency. Future work may explore the applicability of this approach to other streaming tasks such as Automatic Speech Recognition (ASR) and its interaction with other efficient transformer variants.

Summary updated

BibTeX
@inproceedings{raffel2023implicit,
  author = {Matthew Raffel and Lizhong Chen},
  title = {{Implicit Memory Transformer for Computationally Efficient Simultaneous Speech Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.816},
}
Figure