NAACL 2022findings147 citations

FedNLP: Benchmarking Federated Learning Methods for Natural Language Processing Tasks

Bill Yuchen Lin, Chaoyang He, Zihang Ze, Hulin Wang, Yufen Hua, Christophe Dupuy, Rahul Gupta, Mahdi Soltanolkotabi

Abstract

Increasing concerns and regulations about data privacy and sparsity necessitate the study of privacy-preserving, decentralized learning methods for natural language processing (NLP) tasks. Federated learning (FL) provides promising approaches for a large number of clients (e.g., personal devices or organizations) to collaboratively learn a shared global model to benefit all clients while allowing users to keep their data locally. Despite interest in studying FL methods for NLP tasks, a systematic comparison and analysis is lacking in the literature. Herein, we present the FedNLP, a benchmarking framework for evaluating federated learning methods on four different task formulations: text classification, sequence tagging, question answering, and seq2seq. We propose a universal interface between Transformer-based language models (e.g., BERT, BART) and FL methods (e.g., FedAvg, FedOPT, etc.) under various non-IID partitioning strategies. Our extensive experiments with FedNLP provide empirical comparisons between FL methods and help us better understand the inherent challenges of this direction. The comprehensive analysis points to intriguing and exciting future research aimed at developing FL methods for NLP tasks.

BibTeX
@inproceedings{lin-etal-2022-fednlp,
    title = "{F}ed{NLP}: Benchmarking Federated Learning Methods for Natural Language Processing Tasks",
    author = "Lin, Bill Yuchen  and
      He, Chaoyang  and
      Ze, Zihang  and
      Wang, Hulin  and
      Hua, Yufen  and
      Dupuy, Christophe  and
      Gupta, Rahul  and
      Soltanolkotabi, Mahdi  and
      Ren, Xiang  and
      Avestimehr, Salman",
    editor = "Carpuat, Marine  and
      de Marneffe, Marie-Catherine  and
      Meza Ruiz, Ivan Vladimir",
    booktitle = "Findings of the Association for Computational Linguistics: NAACL 2022",
    month = jul,
    year = "2022",
    address = "Seattle, United States",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2022.findings-naacl.13/",
    doi = "10.18653/v1/2022.findings-naacl.13",
    pages = "157--175"
}
FedNLP: Benchmarking Federated Learning Methods for Natural Language Processing Tasks · NAACL 2022