Skip to main content
QUICK REVIEW

[Paper Review] Federated Learning of Gboard Language Models with Differential Privacy

Zheng Xu, Yanxiang Zhang|arXiv (Cornell University)|May 29, 2023
Privacy-Preserving Technologies in DataComputer Science3 citations
TL;DR

This paper presents a scalable framework for training Gboard language models using federated learning with differential privacy (DP), leveraging DP-FTRL with adaptive clipping to achieve strong privacy guarantees without requiring uniform client sampling. The approach enables over twenty production language models with formal zCDP privacy bounds (ρ ∈ (0.2, 2)) and improved utility, leading to the adoption of a mandatory DP policy for all future Gboard model launches.

ABSTRACT

We train language models (LMs) with federated learning (FL) and differential privacy (DP) in the Google Keyboard (Gboard). We apply the DP-Follow-the-Regularized-Leader (DP-FTRL)~\citep{kairouz21b} algorithm to achieve meaningfully formal DP guarantees without requiring uniform sampling of client devices. To provide favorable privacy-utility trade-offs, we introduce a new client participation criterion and discuss the implication of its configuration in large scale systems. We show how quantile-based clip estimation~\citep{andrew2019differentially} can be combined with DP-FTRL to adaptively choose the clip norm during training or reduce the hyperparameter tuning in preparation for training. With the help of pretraining on public data, we train and deploy more than twenty Gboard LMs that achieve high utility and $ρ-$zCDP privacy guarantees with $ρ\in (0.2, 2)$, with two models additionally trained with secure aggregation~\citep{bonawitz2017practical}. We are happy to announce that all the next word prediction neural network LMs in Gboard now have DP guarantees, and all future launches of Gboard neural network LMs will require DP guarantees. We summarize our experience and provide concrete suggestions on DP training for practitioners.

Motivation & Objective

  • To develop a scalable, production-ready framework for training Gboard language models with formal differential privacy (DP) guarantees.
  • To address the challenge of achieving strong privacy without uniform client sampling in cross-device federated learning systems.
  • To reduce hyperparameter tuning in DP training by introducing adaptive clip norm estimation.
  • To co-design algorithmic and system-level configurations that balance privacy, utility, and scalability in large-scale FL deployments.
  • To demonstrate the feasibility of pretraining DP models directly from user data and integrate secure aggregation for enhanced privacy.

Proposed method

  • Adopt DP-FTRL as the core training algorithm to provide formal zCDP privacy guarantees without requiring uniform client sampling.
  • Introduce adaptive clipping via quantile-based clip estimation to dynamically adjust the clip norm and reduce hyperparameter tuning.
  • Use a client participation criterion based on timer-based configuration to control client eligibility and improve privacy-utility trade-offs.
  • Apply pretraining on public datasets before federated fine-tuning to enhance model utility and reduce the need for extensive hyperparameter tuning.
  • Integrate secure aggregation (SecAgg) with DP-FTRL to strengthen data minimization and improve privacy amplification.
  • Employ PrivateSum in the DP-FTRL update rule to efficiently manage noise and model state updates, supporting momentum-based optimizers.

Experimental results

Research questions

  • RQ1How can differential privacy be effectively applied in large-scale, cross-device federated learning systems without uniform client sampling?
  • RQ2What system and algorithmic configurations optimize the privacy-utility trade-off in production language model training?
  • RQ3Can adaptive clipping reduce hyperparameter tuning in DP-Fed training, and how does it compare to fixed clipping?
  • RQ4To what extent does pretraining on public data improve the utility and privacy of DP-fine-tuned models in federated learning?
  • RQ5How does combining DP-FTRL with secure aggregation affect training efficiency and privacy guarantees in real-world deployments?

Key findings

  • Over twenty Gboard language models were successfully trained and deployed with formal zCDP privacy guarantees, with ρ values ranging from 0.2 to 2, significantly stronger than the US Census Bureau’s threshold of ρ > 2.6.
  • The es-ES NWP model achieved a zCDP bound of 0.35, down from 0.81 in prior work, due to increased client participation via timer configuration.
  • The es-ES model improved Smart Compose trigger rate by 9.51% at 1900 training rounds compared to the previous non-private model, demonstrating strong utility gains.
  • Adaptive clipping enabled consistent clip norm and learning rate estimates across diverse models, reducing the need for extensive hyperparameter tuning.
  • Pretraining on public data significantly improved model utility and reduced the need for long training durations, with the es-ES model achieving comparable performance in 1240 rounds versus 2000 rounds without pretraining.
  • Secure aggregation was successfully applied to en-US and es-ES models, achieving good privacy-utility trade-offs with fewer rounds, though at the cost of increased training latency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.