mlsanityData to 14 Oct 2026

Training a Tokenizer for Free with Private Federated Learning

arXiv 2203.09943 ↗First posted 15 Mar 2022cs.CR cs.CL cs.LGcited by 4

Not on the map. Why?

Abstract (arXiv)

Federated learning with differential privacy, i.e. private federated learning (PFL), makes it possible to train models on private data distributed across users' devices without harming privacy. PFL is efficient for models, such as neural networks, that have a fixed number of parameters, and thus a fixed-dimensional gradient vector. Such models include neural-net language models, but not tokenizers, the topic of this work. Training a tokenizer requires frequencies of words from an unlimited vocabulary, and existing methods for finding an unlimited vocabulary need a separate privacy budget. A workaround is to train the tokenizer on publicly available data. However, in this paper we first show that a tokenizer trained on mismatched data results in worse model performance compared to a privacy-violating "oracle" tokenizer that accesses user data, with perplexity increasing by 20%. We also show that sub-word tokenizers are better suited to the federated context than word-level ones, since they can encode new words, though with more tokens per word. Second, we propose a novel method to obtain a tokenizer without using any additional privacy budget. During private federated learning of the language model, we sample from the model, train a new tokenizer on the sampled sequences, and update the model embeddings. We then continue private federated learning, and obtain performance within 1% of the "oracle" tokenizer. Since this process trains the tokenizer only indirectly on private data, we can use the "postprocessing guarantee" of differential privacy and thus use no additional privacy budget.

Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 25 of its 36 references that are in the map. First posted on arXiv 15 Mar 2022.

Builds on

25 of 36 references.

References · 25

  1. 2017Attention Is All You Needcited by 60,361
  2. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  3. 2016Communication-Efficient Learning of Deep Networks from Decentralized Datacited by 7,669
  4. 2016Pointer Sentinel Mixture Modelscited by 3,096
  5. 2019Advances and Open Problems in Federated Learningcited by 3,046
  6. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
  7. 2016Deep Learning with Differential Privacycited by 2,728
  8. 2016Membership Inference Attacks against Machine Learning Modelscited by 2,281
  9. 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,989
  10. 2018LEAF: A Benchmark for Federated Settingscited by 792
  11. 2020Ditto: Fair and Robust Federated Learning Through Personalizationcited by 672
  12. 2017Renyi Differential Privacycited by 650
13 more
  1. 2018Federated Learning for Mobile Keyboard Predictioncited by 572
  2. 2018Exploiting Unintended Feature Leakage in Collaborative Learningcited by 520
  3. 2017Differentially Private Federated Learning: A Client Level Perspectivecited by 459
  4. 2018Privacy Amplification by Subsampling: Tight Analyses via Couplings and Divergencescited by 242
  5. 2017Machine Learning Models that Remember Too Muchcited by 169
  6. 2020Salvaging Federated Learning by Local Adaptationcited by 142
  7. 2020The Effect of Natural Distribution Shift on Question Answering Modelscited by 104
  8. 2020Hiding Among the Clones: A Simple and Nearly Optimal Analysis of Privacy Amplification by Shufflingcited by 96
  9. 2019Federated Learning Of Out-Of-Vocabulary Wordscited by 51
  10. 2019Federated Heavy Hitters Discovery with Differential Privacycited by 32
  11. 2017Practical Locally Private Heavy Hitterscited by 29
  12. 2021Private Multi-Task Learning: Formulation and Applications to Federated Learningcited by 11
  13. 2019Who Needs Words? Lexicon-Free Speech Recognitioncited by 6

Built on by

Cited by year

Citing papers per year: 2023: 3; 2024: 1.

4 papers.