SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.04784 · 2024

Analysis of Privacy Leakage in Federated Large Language Models

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 6 functions out of this paper's own repositories and ran 4 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
vunhatminh/fl_attacks canonical 4 of 6
FunctionStatusWhere it lives
find_tresh Ran vunhatminh/fl_attacks/LLMs/ldpfunctions.py
pointer only (licence: NONE) · get_code("d5ef0ed197a35460")
tpr_tnr Ran vunhatminh/fl_attacks/API/api-att-ldp-twitter.py
pointer only (licence: NONE) · get_code("96292912449b1dfa")
unpacking_apply_along_axis Ran vunhatminh/fl_attacks/API/api-att-ldp-imdb.py
pointer only (licence: NONE) · get_code("34703e7134d4bb3d")
unpacking_apply_along_axis Ran vunhatminh/fl_attacks/API/api-att-ldp-twitter.py
pointer only (licence: NONE) · get_code("b1c8f308e7062fcf")
LH_Client_Fast Not yet run vunhatminh/fl_attacks/LLMs/ldpfunctions.py
pointer only (licence: NONE) · get_code("cee11ee01c589ac5")
tokenize Not yet run vunhatminh/fl_attacks/LLMs/layers_attn_ldp.py
pointer only (licence: NONE) · get_code("73b18550fdf42bdb")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

With the rapid adoption of Federated Learning (FL) as the training and tuning protocol for applications utilizing Large Language Models (LLMs), recent research highlights the need for significant modifications to FL to accommodate the large-scale of LLMs. While substantial adjustments to the protocol have been introduced as a response, comprehensive privacy analysis for the adapted FL protocol is currently lacking. To address this gap, our work delves into an extensive examination of the privacy analysis of FL when used for training LLMs, both from theoretical and practical perspectives. In particular, we design two active membership inference attacks with guaranteed theoretical success rates to assess the privacy leakages of various adapted FL configurations. Our theoretical findings are translated into practical attacks, revealing substantial privacy vulnerabilities in popular LLMs, including BERT, RoBERTa, DistilBERT, and OpenAI's GPTs, across multiple real-world language datasets. Additionally, we conduct thorough experiments to evaluate the privacy leakage of these models when data is protected by state-of-the-art differential privacy (DP) mechanisms.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2403.04784")
get_code_for_paper("2403.04784")
have("2403.04784")

Connect an agent — have() is free.