Training a Tokenizer for Free with Private Federated Learning
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
- 2017Attention Is All You Needcited by 60,361
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2016Communication-Efficient Learning of Deep Networks from Decentralized Datacited by 7,669
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2019Advances and Open Problems in Federated Learningcited by 3,046
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
- 2016Deep Learning with Differential Privacycited by 2,728
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,281
- 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,989
- 2018LEAF: A Benchmark for Federated Settingscited by 792
- 2020Ditto: Fair and Robust Federated Learning Through Personalizationcited by 672
- 2017Renyi Differential Privacycited by 650
13 more
- 2018Federated Learning for Mobile Keyboard Predictioncited by 572
- 2018Exploiting Unintended Feature Leakage in Collaborative Learningcited by 520
- 2017Differentially Private Federated Learning: A Client Level Perspectivecited by 459
- 2018Privacy Amplification by Subsampling: Tight Analyses via Couplings and Divergencescited by 242
- 2017Machine Learning Models that Remember Too Muchcited by 169
- 2020Salvaging Federated Learning by Local Adaptationcited by 142
- 2020The Effect of Natural Distribution Shift on Question Answering Modelscited by 104
- 2020Hiding Among the Clones: A Simple and Nearly Optimal Analysis of Privacy Amplification by Shufflingcited by 96
- 2019Federated Learning Of Out-Of-Vocabulary Wordscited by 51
- 2019Federated Heavy Hitters Discovery with Differential Privacycited by 32
- 2017Practical Locally Private Heavy Hitterscited by 29
- 2021Private Multi-Task Learning: Formulation and Applications to Federated Learningcited by 11
- 2019Who Needs Words? Lexicon-Free Speech Recognitioncited by 6
Built on by
Citing papers per year: 2023: 3; 2024: 1.
4 papers.
- 2023Can Public Large Language Models Help Private Cross-device Federated Learning?cited by 30
- 2023Task-Adaptive Tokenization: Enhancing Long-Form Text Generation Efficacy in Mental Health and Beyondcited by 23
- 2024pfl-research: simulation framework for accelerating research in Private Federated Learningcited by 8
- 2023Now It Sounds Like You: Learning Personalized Vocabulary On Devicecited by 2
- 2024pfl-research: simulation framework for accelerating research in Private Federated Learning9 Apr 2024
- 2023Task-Adaptive Tokenization: Enhancing Long-Form Text Generation Efficacy in Mental Health and Beyond9 Oct 2023
- 2023Can Public Large Language Models Help Private Cross-device Federated Learning?20 May 2023
- 2023Now It Sounds Like You: Learning Personalized Vocabulary On Device5 May 2023