Training Mixed-Domain Translation Models via Federated Learning

Peyman Passban, Tanya G. Roosta, Rahul Gupta, Ankit Chadha, Clement ChungNAACL 2022

Introduction

Training high-quality Neural Machine Translation (NMT) models that generalize across diverse domains—such as medical texts, technical manuals, and conversational subtitles—is a significant challenge in natural language processing. Traditionally, this requires centralizing massive datasets from various sources, a process that often encounters insurmountable privacy, legal, and logistical hurdles.

Researchers from Amazon have proposed a solution using Federated Learning (FL), a decentralized training paradigm. By introducing a novel "Dynamic Pulling" technique, they demonstrate that it is possible to train robust mixed-domain models that rival centralized baselines while significantly reducing communication overhead and preserving data privacy.

Federated Learning Framework

The study utilizes a cross-silo Federated Learning framework. In this setup, a central server coordinates the training process across multiple independent clients (silos), each representing a distinct data domain. Instead of sharing raw data, clients perform local training and only exchange model parameter updates with the server.

The cross-silo Federated Learning architecture showing the central server (S) and distributed clients (C).

While FL addresses privacy, NMT models present two specific difficulties: the sheer size of the models creates a communication bottleneck, and the linguistic heterogeneity across domains can lead to "catastrophic forgetting" or poor convergence during parameter fusion.

Selective Parameter Synchronization: Dynamic Pulling

To address these hurdles, the authors introduced Dynamic Pulling (DP). Rather than transmitting the entire NMT model in every round, the server selectively sends only a subset of tensors. The selection is based on the "activity" or fluctuation of parameters in previous rounds.

The researchers compared two strategies:

  • $DP_g$ (Global/Active): Synchronizing the most volatile tensors.
  • $DP_l$ (Local/Stable): Synchronizing the most stable tensors.

Empirical analysis revealed a bimodal distribution in parameter behavior: most parameters either remain very stable or fluctuate wildly.

Histogram of encoder parameter fluctuations across different domains, illustrating the bimodal distribution of information.

Counter-intuitively, the $DP_l$ strategy proved superior. The researchers found that highly volatile tensors often encode specific "in-domain" expertise that is best kept local. In contrast, stable tensors represent broader linguistic "community knowledge." By pulling only these stable parameters, the model effectively fuses general translation capabilities without overwriting specialized domain knowledge.

Experimental Setup and Datasets

The performance was evaluated on German-to-English (De $\rightarrow$ En) translation across five distinct datasets:

  • WMT: Generic news data.
  • OpenSubtitles (OS): Informal conversational language.
  • TED: Prepared speech transcripts.
  • PHP: Technical documentation for programming.
  • Ubuntu (UB): Technical logs and manuals.

Key Results and Discussion

The Federated Learning approach proved to be more than just a privacy-preserving alternative; it served as a powerful tool for domain fusion.

  1. Superior Performance: The FL-trained server model achieved an average BLEU score of 33.83 across all domains, outperforming the best centralized "chained fine-tuning" baseline by 1.83 points. This suggests that FL is more resilient to the catastrophic forgetting typically seen when training on domains sequentially.
  2. Communication Efficiency: By employing the $DP_l$ strategy, the team reduced the number of parameters exchanged by 50% (from 45.7 million to 22.8 million).
  3. Quality Retention: Despite the massive reduction in bandwidth, the $DP_l$ model maintained a competitive average BLEU of 32.28, matching the performance of strong centralized baselines that had full access to all data.

Conclusion and Future Work

This research demonstrates that Federated Learning, combined with intelligent parameter selection, can effectively train high-performance NMT models across siloed domains. The "Stability Paradox"—the idea that sharing stable rather than active parameters leads to better fusion—provides a new path for efficient decentralized training. Future research will focus on extending these techniques to multilingual models and adapting the framework for cross-device FL, where bandwidth constraints are even more severe.

Summary updated

BibTeX
@inproceedings{passban2022training,
  author = {Peyman Passban and Tanya G. Roosta and Rahul Gupta and Ankit Chadha and Clement Chung},
  title = {{Training Mixed-Domain Translation Models via Federated Learning}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.naacl-main.186},
}
Figure