Abstract
Cross-device Federated Learning (FL) with Differential Privacy (DP) often faces a significant utility-privacy trade-off, particularly for the small models required by edge devices. This paper explores how public Large Language Models (LLMs) can be leveraged to enhance the training of these private on-device models. Through the use of public sub-word tokenizers, knowledge distillation, and a novel distribution matching algorithm, the authors achieve state-of-the-art performance. Their approach is remarkably efficient, requiring less than 0.1% of public pre-training data and reducing pre-training time from weeks to hours.
Introduction
Cross-device Federated Learning (FL) enables collaborative model training across millions of edge devices, such as mobile phones, without sensitive user data ever leaving the device. To provide formal privacy guarantees, Differential Privacy (DP) is typically employed. However, the noise injected by DP often severely degrades the performance of small models (typically <10M parameters). While pre-training on massive public datasets can mitigate this, it is often computationally prohibitive. This research addresses the challenge of efficiently utilizing public LLMs to boost the performance of small, private on-device models.
Methodology
The authors propose a three-pronged strategy to integrate LLM knowledge into private FL:
Public Tokenizers
Traditional FL often uses word-level unigram tokenizers built from private data, which consumes privacy budget and leads to Out-Of-Vocabulary (OOV) issues. The authors instead adopt the public sub-word SentencePiece tokenizer from a pre-trained LLM (e.g., LaMDA). This switch eliminates OOV tokens and reduces parameter bloat in embedding layers, making the model more resilient to DP noise.
LLM Distillation
The small on-device model is pre-trained on a public corpus using knowledge distillation from a larger public LLM. Instead of simple next-word prediction, the small model is trained to match the top-$k$ soft labels generated by the teacher LLM, providing a richer learning signal.
Distribution Matching
To further increase efficiency, the authors introduce a "mid-training" paradigm. After partial training on private data with DP, public data samples are scored based on their relevance to both the public LLM and the partially trained private model. By selecting only the public data that closely matches the private distribution, the model can be pre-trained on a tiny subset of data, significantly reducing compute requirements.
Experimental Results
The proposed methods were evaluated using the StackOverflow dataset for private FL and the C4 dataset for public pre-training.
Tokenizer and Distillation Impact
The adoption of public sub-word tokenizers significantly improved next-token prediction accuracy, particularly under strict privacy constraints. Furthermore, pre-training with LLM distillation proved highly efficient. As shown in Figure 6, distilling knowledge on just 1% of the C4 dataset outperformed standard pre-training on 100% of the data.
Sample and Computational Efficiency
The distribution matching algorithm demonstrated extreme sample efficiency. Selecting just 0.08% of the C4 dataset achieved performance comparable to using 1% with distillation or 100% without. This targeted approach reduced pre-training time on a single GPU from over a week to just a few hours.
Discussion and Limitations
While the results are promising, the authors identify areas for future work. The distribution matching algorithm relies on a weighting parameter ($\beta$) that currently requires empirical tuning. Additionally, while LaMDA 2B was used as the teacher model, scaling to larger LLMs could potentially yield even better privacy-utility trade-offs.
Conclusion
This work demonstrates that public LLMs can be powerful allies for private Federated Learning. By moving beyond simple pre-training and incorporating public tokenizers and intelligent data selection via distillation and distribution matching, it is possible to train high-performing on-device models with strong privacy guarantees and minimal computational overhead.
Summary updated