Communication Efficient Federated Learning for Multilingual Neural Machine Translation with Adapter

Yi Liu, Xiaohan Bi, Lei Li, Sishuo Chen, Wenkai Yang, Xu Sun

Abstract

Federated Multilingual Neural Machine Translation (Fed-MNMT) allows institutions to collaboratively train translation models without sharing private data. However, the massive size of modern pre-trained language models (PLMs) creates a communication bottleneck during parameter synchronization. Furthermore, linguistic discrepancies between clients can lead to parameter conflicts. This paper proposes a communication-efficient Fed-MNMT framework that freezes the backbone PLM and only synchronizes lightweight adapter modules. To mitigate linguistic conflicts, the framework employs client clustering strategies. Experimental results show a reduction in communication costs by over 98% while maintaining or improving translation performance.

Introduction

Federated Learning (FL) offers a privacy-preserving path for multilingual neural machine translation (MNMT), enabling resource-constrained institutions to build robust models collaboratively. However, two primary challenges hinder its practical application in real-world scenarios:

  1. The Communication Bottleneck: Modern translation models, such as mBART-50, often exceed 600 million parameters. Synchronizing these massive models between a central server and multiple clients creates a prohibitive bandwidth requirement.
  2. Linguistic Discrepancy: In a multilingual setting, clients often handle diverse language pairs with non-I.I.D. data distributions. Naively averaging updates from these different distributions can lead to "parameter conflict," where improvements for one language pair degrade the performance of another.

Methodology

The proposed framework addresses these hurdles through two key innovations: adapter-based training and intelligent client clustering.

Instead of transmitting the entire backbone model, the system keeps the Pre-trained Language Model (PLM) frozen and inserts small, trainable "adapter" modules into the encoder and decoder. During federated rounds, only these lightweight adapter parameters (approximately 8M vs. 611M) are synchronized, drastically reducing the data transfer requirements.

Comparison between standard Fed-MNMT and the proposed adapter-based clustering framework.

To handle linguistic discrepancies, the server groups clients into clusters based on similarity. The authors explored several strategies, including grouping by Language Families (linguistic roots) and Gradients (update direction similarity). Parameters are aggregated only within these clusters, preventing updates from unrelated language pairs from interfering. Additionally, the framework utilizes FedMean aggregation, which averages updates equally across clients to ensure that high-resource languages do not dominate the global model at the expense of low-resource ones.

Results and Discussion

Evaluation on the TED2020 and Europarl benchmarks demonstrates significant gains in both efficiency and translation quality. The adapter-based approach achieves a 98.7% reduction in communication parameters compared to vanilla Fed-MNMT, making synchronization a negligible task even for resource-constrained clients.

Communication cost comparison between standard Fed-MNMT and the proposed framework across varying numbers of clients.

Crucially, this efficiency does not come at the cost of quality. On the Europarl multi-to-multi task, the adapter-families strategy achieved a Macro Average BLEU score of 25.76, outperforming the full-model federated baseline (model-fed) which scored 24.49.

Key insights from the analysis include:

  • Clustering is Essential: Direct aggregation of adapters from vastly different languages can hurt performance; clustering acts as a necessary buffer.
  • Linguistic Priors: Clustering by language family generally outperformed more complex gradient-based methods, highlighting the value of linguistic inductive biases.
  • Layer Importance: Pruning experiments revealed that adapters in the final layers of the model are more critical for performance than those in early layers, suggesting that high-level semantic mapping is where the most valuable language-specific learning occurs.

Conclusion

This work demonstrates that Fed-MNMT can be made practical by bypassing bandwidth bottlenecks and resolving linguistic conflicts through adapters and clustering. While current clustering relies on linguistic priors, future work will explore automated, dynamic clustering methods and more advanced parameter-efficient techniques to further optimize the trade-off between communication cost and translation accuracy.

Summary updated

BibTeX
@inproceedings{liu2023communication,
  author = {Yi Liu and Xiaohan Bi and Lei Li and Sishuo Chen and Wenkai Yang and Xu Sun},
  title = {{Communication Efficient Federated Learning for Multilingual Neural Machine Translation with Adapter}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.327},
}
Figure