FedRW: Efficient Privacy-Preserving Data Reweighting for Enhancing Federated Learning of Language Models
Pukang Ye, Junwei Luo, Xiaolei Dong, Yunbo Yang
TL;DR
FedRW tackles data duplication in privacy-sensitive federated learning for language models by replacing hard data deletion with privacy-preserving, frequency-aware sample reweighting. It introduces PPMPR, a secure, third-party-free protocol that estimates global sample frequencies using two-party PSI and parallel orchestration to achieve efficient, scalable reweighting. The approach applies a logarithmic, frequency-based weighting to token-level losses, integrating seamlessly with FedAvg to improve generalization and robustness under duplication, including non-IID settings. Empirical results show substantial preprocessing speedups (up to 28.78x) and consistent perplexity improvements (~11.42%), demonstrating FedRW’s practical impact for privacy-preserving federated LLM training.
Abstract
Data duplication within large-scale corpora often impedes large language models' (LLMs) performance and privacy. In privacy-concerned federated learning scenarios, conventional deduplication methods typically rely on trusted third parties to perform uniform deletion, risking loss of informative samples while introducing privacy vulnerabilities. To address these gaps, we propose Federated ReWeighting (FedRW), the first privacy-preserving framework, to the best of our knowledge, that performs soft deduplication via sample reweighting instead of deletion in federated LLM training, without assuming a trusted third party. At its core, FedRW proposes a secure, frequency-aware reweighting protocol through secure multi-party computation, coupled with a parallel orchestration strategy to ensure efficiency and scalability. During training, FedRW utilizes an adaptive reweighting mechanism with global sample frequencies to adjust individual loss contributions, effectively improving generalization and robustness. Empirical results demonstrate that FedRW outperforms the state-of-the-art method by achieving up to 28.78x speedup in preprocessing and approximately 11.42% improvement in perplexity, while offering enhanced security guarantees. FedRW thus establishes a new paradigm for managing duplication in federated LLM training.
