Multi-agent Learning for Neural Machine Translation

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

Abstract

Modern Neural Machine Translation (NMT) systems often suffer from exposure bias, where error accumulation during inference degrades translation quality. While previous research explored dual-agent regularization, these "one-to-one" setups are limited in scope. This paper introduces a novel multi-agent learning framework that employs a "one-to-many" knowledge distillation strategy. By coordinating a diverse team of agents through a dynamically updated ensemble teacher, the proposed method addresses exposure bias and achieves significant quality improvements, setting new state-of-the-art results on several competitive benchmarks including NIST Chinese-English and IWSLT 2014 German-English.

Addressing Exposure Bias in NMT

A fundamental challenge in NMT is exposure bias. During training, models are typically exposed to ground-truth "gold" tokens. However, during inference, they must generate sequences based on their own previous, potentially erroneous, predictions. This discrepancy leads to rapid error accumulation.

Earlier attempts to mitigate this involved "one-to-one" setups, such as regularizing a left-to-right (L2R) model with a right-to-left (R2L) model. While effective, these methods do not scale well to multiple models. Direct "many-to-many" interaction between multiple agents often results in a chaotic training process that converges on suboptimal local optima. This paper tackles the complexity of multi-agent learning by structuring how multiple models effectively share knowledge.

The Multi-agent Learning Framework

The researchers propose a structured hierarchy to simplify multi-agent interaction into a manageable "one-to-many" architecture, moving away from the complexity of many-to-many peer communication.

Comparison of learning paradigms: (a) one-to-one, (b) many-to-many, (c) one-to-many, and (d) the proposed Ensemble KD.

The framework consists of four key components:

  1. Agent Diversity: The system utilizes a team of diverse agents with varying architectures (e.g., deeper encoders, relative position encoding) and decoding directions (L2R vs. R2L). Diversity allows agents to "specialize" in different linguistic patterns.
  2. The Ensemble Teacher: Instead of direct peer-to-peer communication, an Ensemble Model is generated by averaging the predictions of all agents. This ensemble serves as a centralized "Teacher."
  3. Conditional Knowledge Distillation (KD): To prevent agents from blindly following a potentially mediocre average, the system uses "Selective Learning." An agent only distills knowledge from the ensemble if the ensemble's translation (measured by BLEU score) outperforms the agent’s own output.
  4. Interactive Updating: The process is iterative. As individual agents improve by learning from the ensemble, the ensemble itself—derived from those agents—becomes stronger, creating a virtuous cycle of mutual improvement.

Key Insights: Diversity and Selective Learning

The study revealed that diversity trumps quantity. A team of agents with different architectures significantly outperformed a team of uniform agents initialized with different seeds. For instance, L2R models often handle sentence prefixes better, while R2L models excel at suffixes. By maintaining a diverse pool, the ensemble teacher receives higher-quality, complementary information.

Furthermore, the "one-to-many" shortcut stabilized the learning process. By routing knowledge through a central teacher, the computational complexity and instability of many-to-many interactions were avoided. Selective learning ensured that agents maintained their unique exploratory strengths while still benefiting from the collective wisdom of the ensemble.

Performance Benchmarks

The multi-agent approach demonstrated consistent gains across various standard and large-scale translation tasks:

  • NIST Chinese-English: The best configuration achieved an average BLEU improvement of +1.39 over the baseline.
  • IWSLT 2014 German-English: The model reached a BLEU score of 36.27, setting a new state-of-the-art at the time of publication.
  • WMT 2014 English-German: Achieved a competitive score of 29.67 BLEU.
  • Production Scalability: On a massive internal Baidu dataset of 40M sentence pairs, the method improved BLEU scores by 0.86, demonstrating real-world viability for large-scale systems.

Conclusion and Future Directions

While the multi-agent framework offers substantial quality improvements, it comes with increased computational overhead. Training four or more agents simultaneously requires significantly more GPU memory and time than training a single model. Future research will focus on optimizing training efficiency and exploring more granular interaction methods, such as translating specific sentence segments based on which agent possesses the highest local expertise.

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