[Paper Review] Can Public Large Language Models Help Private Cross-device Federated Learning?
This paper proposes leveraging public large language models (LLMs) to enhance differentially private cross-device federated learning (FL) for on-device language models. By using LLMs for public pre-training with knowledge distillation and a novel distribution matching algorithm to sample public data aligned with private data, the method achieves significant accuracy gains—over 7% improvement at ε=1.77—while reducing public data needs to just 1% of the full corpus, greatly improving sample efficiency and privacy-utility trade-offs.
We study (differentially) private federated learning (FL) of language models. The language models in cross-device FL are relatively small, which can be trained with meaningful formal user-level differential privacy (DP) guarantees when massive parallelism in training is enabled by the participation of a moderate size of users. Recently, public data has been used to improve privacy-utility trade-offs for both large and small language models. In this work, we provide a systematic study of using large-scale public data and LLMs to help differentially private training of on-device FL models, and further improve the privacy-utility tradeoff by techniques of distillation. Moreover, we propose a novel distribution matching algorithm with theoretical grounding to sample public data close to private data distribution, which significantly improves the sample efficiency of (pre-)training on public data. The proposed method is efficient and effective for training private models by taking advantage of public data, especially for customized on-device architectures that do not have ready-to-use pre-trained models.
Motivation & Objective
- To improve the privacy-utility trade-off in differentially private cross-device federated learning for on-device language models.
- To investigate how public large language models (LLMs) and pre-trained subword tokenizers can enhance private FL without compromising user privacy.
- To develop a data sampling strategy that aligns public data distribution with private data to improve sample efficiency in public pre-training.
- To evaluate the effectiveness of knowledge distillation from public LLMs to on-device models under strict privacy constraints (ε ≤ 1.77).
- To demonstrate that public data can be used efficiently and effectively in private FL without requiring large-scale public pre-training.
Proposed method
- Leverages pre-trained public LLMs to provide subword tokenizers for on-device models, avoiding privacy leakage from private tokenizer vocabularies.
- Applies knowledge distillation from public LLMs to pre-train on-device models on a subset of public data, improving initial model performance.
- Proposes a novel distribution matching algorithm that combines private model log-likelihood and public LLM log-likelihood to sample public data close to the private data distribution.
- The distribution matching objective is theoretically grounded and uses a weighted sum of private and public log-probabilities: log p_priv(x) + log p_pub(x).
- Introduces a two-stage training protocol where distribution matching occurs at a mid-point (T′ = 800) of the FL training process to balance private and public learning.
- Employs differential privacy via DP-FedAvg with user-level privacy guarantees, using noise scales calibrated to ε = 1.77 and ε = 18.71.
Experimental results
Research questions
- RQ1Can public LLMs improve the privacy-utility trade-off in private cross-device federated learning for on-device language models?
- RQ2Does using public LLMs for subword tokenization reduce privacy leakage compared to learning private tokenizers?
- RQ3Can knowledge distillation from public LLMs to on-device models significantly improve performance under tight privacy budgets?
- RQ4Does distribution matching using both private and public model scores improve sample efficiency in public pre-training?
- RQ5What is the optimal timing (T′) for distribution matching in the FL training process to maximize private model accuracy?
Key findings
- Using public LLMs for subword tokenization improves learning utility and prevents privacy leakage from private tokenizer vocabularies.
- Knowledge distillation from public LLMs to on-device models yields over 7% accuracy improvement at ε = 1.77, significantly outperforming standard pre-training.
- The proposed distribution matching algorithm enables high sample efficiency: using only 0.08% of the public corpus achieves better performance than full public pre-training.
- At ε = 1.77, combining private and public log-likelihoods (p_priv(x) + p_pub(x)) improves accuracy by 0.24–0.33 points over using only private log-likelihood.
- The optimal timing for distribution matching is T′ = 800 (halfway through training), as earlier or later timing leads to worse performance due to poor model alignment or data bias.
- With distribution matching, the model achieves comparable performance to full-corpora pre-training while using only 1% of the public data, demonstrating strong data efficiency.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.