Private Federated Learning using Preference-Optimized Synthetic Data

Charlie Hou, Mei-Yu Wang, Yige Zhu, Daniel Lazar, Giulia Fanti

Introduction

Federated Learning (FL) has emerged as a vital paradigm for training machine learning models on decentralized data while maintaining user privacy. However, the integration of Large Language Models (LLMs) into FL frameworks presents a significant challenge: the sheer scale of these models makes them impossible to train or fine-tune directly on edge devices. To address this, researchers have turned to differentially private (DP) synthetic data generation. In this approach, a server-side LLM generates synthetic data that mimics the distribution of client data, which is then used to train smaller, deployable models.

Traditional methods, such as Private Evolution (PE), rely on iterative prompt engineering—adjusting the "magic phrases" used to query the LLM based on client feedback. This approach is often inefficient as it fails to update the model's underlying parameters. This paper introduces POPri (Policy Optimization for Private Data), a framework that treats DP client feedback as a reinforcement learning reward to fine-tune server-side LLMs directly, significantly closing the performance gap between private and non-private systems.

The POPri Framework

POPri shifts the strategy from external prompting to internal policy optimization. The framework operates through a multi-step pipeline designed to align the server-side LLM with the private data distribution of the clients without compromising privacy.

  1. Synthetic Generation: The server utilizes a large base model (e.g., LLaMA-3-8B) to generate multiple candidate responses ($J$ samples) for a variety of prompts ($K$ prompts).
  2. Differentially Private Feedback: These candidates are sent to clients (or their embeddings are compared). Clients calculate a cosine similarity score between the synthetic samples and their own private data. These scores are aggregated at the server using DP-compliant noise to ensure individual data points cannot be reconstructed.
  3. Preference Mapping: Rather than simply selecting the highest-scoring sample, POPri constructs preference pairs. For each prompt, it identifies a "chosen" sample (the highest-ranked) and a "rejected" sample (typically a middle-ranked sample). This pairwise approach provides a more robust signal than absolute scoring.
  4. Direct Preference Optimization (DPO): The server fine-tunes the LLM using DPO. This process teaches the model to increase the likelihood of generating text similar to the "chosen" samples while decreasing the likelihood of generating text similar to the "rejected" ones.
  5. Downstream Training: The aligned LLM generates a large-scale, high-quality synthetic dataset. Finally, a smaller, on-device model (such as DistilGPT2) is trained on this synthetic data for local deployment.

By utilizing DPO instead of Supervised Fine-Tuning (SFT), POPri handles the inherent noise of DP systems more effectively. While SFT treats all "good" samples as ground truth, DPO focuses on relative improvement, which is a more stable signal when feedback is perturbed by privacy-preserving noise.

LargeFedBench and Experimental Setup

To evaluate POPri, the authors introduced LargeFedBench, a benchmark specifically designed to mitigate "data contamination"—a common issue where LLMs have already seen evaluation data during their pre-training. The benchmark includes:

  • bioRxiv: 57,000 abstracts from biological research papers collected after April 2023.
  • Congressional Speeches: 134,000 speeches from the United States, United Kingdom, and Canada.
  • PubMed & OpenReview: Used for centralized benchmarks to compare against existing state-of-the-art methods.

Key Results

POPri demonstrates substantial improvements over existing private synthetic data and standard federated learning methods:

  • Closing the Privacy Gap: On the bioRxiv dataset with a privacy budget of $\epsilon = 1$, POPri closed the accuracy gap between private and non-private settings by 58%. In contrast, the previous state-of-the-art method, Private Evolution, only closed the gap by 23%.
  • Outperforming DP-FL: POPri consistently outperformed standard federated learning algorithms like DP-FedAvg and DP-FTRL. For instance, on the Congressional Speeches dataset, POPri achieved approximately 30.4% accuracy, while standard DP-FL methods reached only 29%.
  • Communication Efficiency: A significant advantage of POPri is its communication profile. Unlike standard FL, which requires the transmission of large model gradients or weights, POPri only requires the transmission of similarity scores and synthetic samples, making it far more efficient for bandwidth-constrained clients.

Discussion and Limitations

While POPri represents a significant step forward, it introduces new considerations for server-side infrastructure. Fine-tuning an 8B parameter model using DPO is computationally more intensive than simple prompt engineering. Additionally, the method is inherently bounded by the capabilities of the base LLM; if the base model lacks the capacity to generate specific technical jargon or languages, client feedback can only provide marginal improvements.

Furthermore, the selection of the "rejected" sample is critical. The authors noted that using the absolute lowest-scoring sample as the rejected candidate actually degraded performance, likely due to the extreme divergence in quality. Using a middle-ranked sample provided the most effective gradient for learning, suggesting that the preference signal requires careful calibration.

Conclusion

POPri demonstrates that treating private client feedback as a reward signal for policy optimization is a powerful alternative to traditional federated learning. By leveraging the strengths of DPO, POPri provides a scalable and communication-efficient pathway for deploying high-performance LLM-driven applications in privacy-sensitive environments.

Summary updated

BibTeX
@inproceedings{hou2025private,
  author = {Charlie Hou and Mei-Yu Wang and Yige Zhu and Daniel Lazar and Giulia Fanti},
  title = {{Private Federated Learning using Preference-Optimized Synthetic Data}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=ZuaU2bYzlc},
}
Figure