Multi-agent Learning for Neural Machine Translation

Tianchi Bi, Hao Xiong, Zhongjun He, Hua Wu, Haifeng Wang

Abstract

Neural Machine Translation (NMT) models often struggle with exposure bias and limited perspective from single-architecture training. While previous attempts at multi-agent learning have focused on simple bidirectional models, scaling to multiple diverse agents introduces significant optimization challenges. This paper presents a novel multi-agent learning framework that utilizes a dynamic ensemble "teacher" to guide a diverse group of NMT "student" agents. By employing a conditional learning strategy, the framework ensures that agents only learn from the ensemble when it provides superior translations. The proposed method achieves state-of-the-art results across multiple benchmarks, including IWSLT 2014 and large-scale production datasets.

Introduction

Standard NMT models are typically trained to predict the next token based on ground-truth prefixes, a method that leads to exposure bias during inference. When a model makes a small error in a real-world scenario, it lacks the robustness to recover, often resulting in a cascade of errors. While bidirectional training (Left-to-Right and Right-to-Left) offers some relief by leveraging complementary strengths, scaling this to a larger number of diverse models creates a "many-to-many" complexity that is difficult to optimize. The authors sought a way to let multiple, diverse models collaborate and teach each other without getting stuck in a chaotic learning loop.

Methodology

The researchers propose a three-step interactive updating process designed to facilitate collaboration among multiple agents without the chaotic overhead of direct many-to-many interactions.

  1. Independent Pre-training: Diverse "variant agents" with different architectures (e.g., deep encoders, relative position encoding) or decoding directions are trained independently.
  2. Ensemble Generation: The predictions of these agents are averaged to create a single "Ensemble Model," which serves as a centralized teacher.
  3. One-to-Many Learning: Each individual agent is then trained to minimize the divergence between its predictions and those of the Ensemble Model.
Comparison of learning paradigms: (a) one-to-one, (b) many-to-many, (c) one-to-many, and (d) the proposed Ensemble KD.

A critical component of this framework is the conditional learning strategy. To prevent agents from converging to a sub-optimal ensemble average, an agent only adopts the teacher's guidance if the ensemble's translation quality (measured by BLEU score) exceeds its own. Otherwise, the agent continues to learn from the ground-truth data.

Detailed view of the One-to-Many Learning stage where agents learn from both the Ensemble Model and Ground Truth.

Experimental Evaluation

The framework was evaluated on several tasks to ensure robustness across scales:

  • NIST Chinese-English: ~1.5M sentence pairs.
  • IWSLT 2014 German-English: A smaller, popular benchmark.
  • WMT 2014 English-German: A large-scale standard benchmark.
  • Large-scale Chinese-English: A massive dataset of 40M sentence pairs extracted from the web.
  • Contrastive sets: Lingeval97 (subject-verb agreement) and ContraWSD (word sense disambiguation).

Results and Discussion

The multi-agent approach achieved a state-of-the-art (SOTA) BLEU score of 36.27 on IWSLT 2014 German-English. On the NIST Chinese-English task, it improved the baseline by up to 1.39 BLEU points. Notably, the method scaled effectively to the 40M-sentence production dataset, yielding a 0.86 BLEU improvement, and has been integrated into Baidu Translate.

Key insights include:

  • Diversity > Uniformity: A team of different architectures outperforms a team of identical models with different seeds.
  • Complementary Strengths: Different architectures excel at different linguistic tasks. For instance, deep encoders are superior for resolving word sense ambiguities, while relative position encoding handles subject-verb agreement better. Multi-agent learning allows a single model to inherit these diverse strengths.
  • Dynamic Teaching: Unlike standard Knowledge Distillation where the teacher is fixed, this framework updates the Teacher (the ensemble) as the agents improve, creating a virtuous cycle.

Conclusion and Future Work

While computationally intensive—requiring 7 days on 8 NVIDIA P40 GPUs for the large-scale task—the multi-agent learning framework provides a robust path for improving NMT performance. Future work may explore sub-sentence level learning, allowing agents to learn specific phrases from peers even if the peer's overall sentence score is lower, and automated agent selection to further optimize the "team" of models.

Summary updated

BibTeX
@inproceedings{bi2019multi,
  author = {Tianchi Bi and Hao Xiong and Zhongjun He and Hua Wu and Haifeng Wang},
  title = {{Multi-agent Learning for Neural Machine Translation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2019},
  doi = {10.18653/v1/d19-1079},
}
Figure