Saved in:
Bibliographic Details
Main Authors: Wu, Huiyu, Klabjan, Diego
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2410.19114
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910666723426304
author Wu, Huiyu
Klabjan, Diego
author_facet Wu, Huiyu
Klabjan, Diego
contents Federated Learning (FL) is a collaborative, privacy-preserving machine learning framework that enables multiple participants to train a single global model. However, the recent advent of powerful Large Language Models (LLMs) with tens to hundreds of billions of parameters makes the naive application of traditional FL methods to LLMs impractical due to high computational and communication costs. Furthermore, end users of LLMs often lack access to full architectures and weights of the models, making it impossible for participants to fine-tune these models directly. This paper introduces a novel FL scheme for LLMs, named LanFL, which is purely prompt-based and treats the underlying LLMs as black boxes. We have developed a differentially private synthetic sample generation mechanism to facilitate knowledge sharing among participants, along with a prompt optimization scheme that enables learning from synthetic samples. Our extensive experiments demonstrate that LanFL successfully facilitates learning among participants while preserving the privacy of local datasets across various tasks.
format Preprint
id arxiv_https___arxiv_org_abs_2410_19114
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle LanFL: Differentially Private Federated Learning with Large Language Models using Synthetic Samples
Wu, Huiyu
Klabjan, Diego
Machine Learning
Cryptography and Security
Federated Learning (FL) is a collaborative, privacy-preserving machine learning framework that enables multiple participants to train a single global model. However, the recent advent of powerful Large Language Models (LLMs) with tens to hundreds of billions of parameters makes the naive application of traditional FL methods to LLMs impractical due to high computational and communication costs. Furthermore, end users of LLMs often lack access to full architectures and weights of the models, making it impossible for participants to fine-tune these models directly. This paper introduces a novel FL scheme for LLMs, named LanFL, which is purely prompt-based and treats the underlying LLMs as black boxes. We have developed a differentially private synthetic sample generation mechanism to facilitate knowledge sharing among participants, along with a prompt optimization scheme that enables learning from synthetic samples. Our extensive experiments demonstrate that LanFL successfully facilitates learning among participants while preserving the privacy of local datasets across various tasks.
title LanFL: Differentially Private Federated Learning with Large Language Models using Synthetic Samples
topic Machine Learning
Cryptography and Security
url https://arxiv.org/abs/2410.19114