Modeling Task-Aware MIMO Cardinality for Efficient Multilingual Neural Machine Translation

Hongfei Xu, Qiuhui Liu, Josef van Genabith, Deyi Xiong

Abstract

Multilingual Neural Machine Translation (MNMT) aims to consolidate multiple translation directions into a single model, enabling zero-shot capabilities and cross-lingual transfer. However, these models often face a capacity bottleneck, where a single set of parameters must represent diverse linguistic features. While increasing model depth can alleviate this, it significantly increases computational latency. This paper introduces a Multi-Input Multi-Output (MIMO) architecture that scales model capacity via parallel transformations (cardinality). By integrating a task-aware attention mechanism, the model learns to route information through specialized paths for different language pairs. Experimental results on the OPUS-100 corpus demonstrate that this approach achieves state-of-the-art BLEU scores while being 31% faster than deep-stacked alternatives.

Introduction

The primary challenge in MNMT is the trade-off between model capacity and inference efficiency. Standard Transformer models often struggle to maintain high performance across 100+ languages without becoming prohibitively deep. Previous research has focused on "going deeper," but this linear stacking of layers leads to high latency. The authors propose that increasing cardinality—the number of parallel transformation paths within a single layer—offers a more efficient scaling path.

Methodology: MIMO and Task-Aware Attention

The proposed architecture departs from traditional Multi-Input Single-Output (MISO) designs, where parallel paths are merged at every layer, potentially losing representational diversity.

MIMO Transformation

In the MIMO design, $n$ parallel outputs are maintained throughout the network. Each transformation in a subsequent layer receives a weighted combination of all $n$ outputs from the previous layer. This structure preserves diverse information across parallel paths, preventing the information loss typical of early-merging strategies.

Comparison of MISO and MIMO architectures with task-aware routing

Task-Aware Attention

To manage the complexity of 100+ languages, a routing mechanism is introduced. The model learns specific embeddings for each translation task (e.g., English to French). These embeddings compute attention weights that determine how the $n$ parallel outputs are aggregated for a specific language pair. This allows the network to "specialize" certain paths for specific language families or typological features, effectively creating a soft mixture-of-experts within the Transformer block.

Experimental Setup

The model was evaluated on the OPUS-100 corpus, a large-scale multilingual dataset covering 100 languages. The study focused on:

  • Many-to-many translation: English to/from 94 languages.
  • Zero-shot translation: Translation between non-English pairs not seen during training.

The baseline for comparison was the deep-Transformer model from Zhang et al. (2020).

Key Results

The MIMO model established a new state-of-the-art on the OPUS-100 benchmark. It achieved significant improvements in translation quality across all directions while maintaining superior inference speed.

Performance comparison against Zhang et al. (2020) on OPUS-100

As shown in the results, the MIMO model achieved a BLEU score of 24.17 for En→xx and 32.19 for xx→En, outperforming the 24-layer deep baseline. Crucially, the model achieved a 1.31x speed-up in inference, proving that cardinality is a more efficient scaling dimension than depth.

Discussion and Insights

  • Cardinality vs. Depth: Ablation studies revealed that a 6-layer model with a cardinality of 4 outperformed a 24-layer deep model. Parallelizing transformations allows for concurrent computation, reducing the sequential bottleneck of deep stacks.
  • Linguistic Clustering: Weight analysis showed that the task-aware attention naturally groups linguistically similar languages. Romance languages, for instance, exhibited similar attention patterns across parallel transformations when translating into English.
  • Zero-Shot Improvement: The MIMO approach also enhanced zero-shot performance, increasing the BLEU score from 14.08 to 14.71, suggesting better generalization across language pairs.

Limitations and Future Work

While efficient, increasing cardinality can increase the memory footprint during training. Future research could explore more sophisticated task representations beyond simple learned embeddings to further optimize routing. Additionally, scaling this architecture to "massively" multilingual settings with thousands of languages remains an open area for investigation.

Summary updated

BibTeX
@inproceedings{xu2021modeling,
  author = {Hongfei Xu and Qiuhui Liu and Josef van Genabith and Deyi Xiong},
  title = {{Modeling Task-Aware MIMO Cardinality for Efficient Multilingual Neural Machine Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.acl-short.46},
}
Figure