Collaborating Heterogeneous Natural Language Processing Tasks via Federated Learning

Chenhe Dong, Yuexiang Xie, Bolin Ding, Ying Shen, Yaliang Li
12/12/2022
cs.CL
federated

Official code: alibaba/FederatedScope (1,543 stars, Python, Apache-2.0, PyTorch, last commit 2024-08-10).

Abstract

The increasing privacy concerns on personal private text data promote the development of federated learning (FL) in recent years. However, the existing studies on applying FL in NLP are not suitable to coordinate participants with heterogeneous or private learning objectives.

Show full abstract

In this study, we further broaden the application scope of FL in NLP by proposing an Assign-Then-Contrast (denoted as ATC) framework, which enables clients with heterogeneous NLP tasks to construct an FL course and learn useful knowledge from each other. Specifically, the clients are suggested to first perform local training with the unified tasks assigned by the server rather than using their own learning objectives, which is called the Assign training stage. After that, in the Contrast training stage, clients train with different local learning objectives and exchange knowledge with other clients who contribute consistent and useful model updates. We conduct extensive experiments on six widely-used datasets covering both Natural Language Understanding (NLU) and Natural Language Generation (NLG) tasks, and the proposed ATC framework achieves significant improvements compared with various baseline methods. The source code is available at \url{https://github.com/alibaba/FederatedScope/tree/master/federatedscope/nlp/hetero_tasks}.

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0

An easy-to-use federated learning platform

1,543262Python, ShellMar 24, 20222 years agoApache-2.0
federated-learningmachine-learningpytorch

Similar Papers

Cite this paper

@article{dong2022collaborating,
  title  = {Collaborating Heterogeneous Natural Language Processing Tasks via Federated Learning},
  author = {Chenhe Dong and Yuexiang Xie and Bolin Ding and Ying Shen and Yaliang Li},
  year   = {2022},
  eprint = {2212.05789},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.05789}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.05789.svg)](https://codeofpaper.com/paper/2212.05789)

Discussion