An Interactive Framework for Implementing Privacy-Preserving Federated Learning: Experiments on Large Language Models

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Ahmadi, Kasra, Behnia, Rouzbeh, Ebrahimi, Reza, Kermani, Mehran Mozaffari, Birrell, Jeremiah, Pacheco, Jason, Yavuz, Attila A
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866910827028676608
author Ahmadi, Kasra
Behnia, Rouzbeh
Ebrahimi, Reza
Kermani, Mehran Mozaffari
Birrell, Jeremiah
Pacheco, Jason
Yavuz, Attila A
author_facet Ahmadi, Kasra
Behnia, Rouzbeh
Ebrahimi, Reza
Kermani, Mehran Mozaffari
Birrell, Jeremiah
Pacheco, Jason
Yavuz, Attila A
contents Federated learning (FL) enhances privacy by keeping user data on local devices. However, emerging attacks have demonstrated that the updates shared by users during training can reveal significant information about their data. This has greatly thwart the adoption of FL methods for training robust AI models in sensitive applications. Differential Privacy (DP) is considered the gold standard for safeguarding user data. However, DP guarantees are highly conservative, providing worst-case privacy guarantees. This can result in overestimating privacy needs, which may compromise the model's accuracy. Additionally, interpretations of these privacy guarantees have proven to be challenging in different contexts. This is further exacerbated when other factors, such as the number of training iterations, data distribution, and specific application requirements, can add further complexity to this problem. In this work, we proposed a framework that integrates a human entity as a privacy practitioner to determine an optimal trade-off between the model's privacy and utility. Our framework is the first to address the variable memory requirement of existing DP methods in FL settings, where resource-limited devices (e.g., cell phones) can participate. To support such settings, we adopt a recent DP method with fixed memory usage to ensure scalable private FL. We evaluated our proposed framework by fine-tuning a BERT-based LLM model using the GLUE dataset (a common approach in literature), leveraging the new accountant, and employing diverse data partitioning strategies to mimic real-world conditions. As a result, we achieved stable memory usage, with an average accuracy reduction of 1.33% for $ε= 10$ and 1.9% for $ε= 6$, when compared to the state-of-the-art DP accountant which does not support fixed memory usage.
format Preprint
id arxiv_https___arxiv_org_abs_2502_08008
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle An Interactive Framework for Implementing Privacy-Preserving Federated Learning: Experiments on Large Language Models
Ahmadi, Kasra
Behnia, Rouzbeh
Ebrahimi, Reza
Kermani, Mehran Mozaffari
Birrell, Jeremiah
Pacheco, Jason
Yavuz, Attila A
Machine Learning
Cryptography and Security
Federated learning (FL) enhances privacy by keeping user data on local devices. However, emerging attacks have demonstrated that the updates shared by users during training can reveal significant information about their data. This has greatly thwart the adoption of FL methods for training robust AI models in sensitive applications. Differential Privacy (DP) is considered the gold standard for safeguarding user data. However, DP guarantees are highly conservative, providing worst-case privacy guarantees. This can result in overestimating privacy needs, which may compromise the model's accuracy. Additionally, interpretations of these privacy guarantees have proven to be challenging in different contexts. This is further exacerbated when other factors, such as the number of training iterations, data distribution, and specific application requirements, can add further complexity to this problem. In this work, we proposed a framework that integrates a human entity as a privacy practitioner to determine an optimal trade-off between the model's privacy and utility. Our framework is the first to address the variable memory requirement of existing DP methods in FL settings, where resource-limited devices (e.g., cell phones) can participate. To support such settings, we adopt a recent DP method with fixed memory usage to ensure scalable private FL. We evaluated our proposed framework by fine-tuning a BERT-based LLM model using the GLUE dataset (a common approach in literature), leveraging the new accountant, and employing diverse data partitioning strategies to mimic real-world conditions. As a result, we achieved stable memory usage, with an average accuracy reduction of 1.33% for $ε= 10$ and 1.9% for $ε= 6$, when compared to the state-of-the-art DP accountant which does not support fixed memory usage.
title An Interactive Framework for Implementing Privacy-Preserving Federated Learning: Experiments on Large Language Models
topic Machine Learning
Cryptography and Security
url https://arxiv.org/abs/2502.08008