FedCoT: Federated Chain-of-Thought Distillation for Large Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Fan, Tao, Chen, Weijing, Kang, Yan, Ma, Guoqiang, Gu, Hanlin, Song, Yuanfeng, Fan, Lixin, Yang, Qiang
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908636927754240
author Fan, Tao
Chen, Weijing
Kang, Yan
Ma, Guoqiang
Gu, Hanlin
Song, Yuanfeng
Fan, Lixin
Yang, Qiang
author_facet Fan, Tao
Chen, Weijing
Kang, Yan
Ma, Guoqiang
Gu, Hanlin
Song, Yuanfeng
Fan, Lixin
Yang, Qiang
contents Large Language Models (LLMs) have emerged as a transformative force in artificial intelligence, demonstrating exceptional proficiency across various tasks. However, their deployment in resource-constrained environments and concerns over user data privacy pose significant challenges. In contrast, Small Language Models (SLMs) offer computational efficiency but often lag in performance. To address these issues, we propose FedCoT, a federated framework designed for the Chain-of-Thought (CoT) distillation of knowledge from LLMs to SLMs, while ensuring the preservation of clients' data privacy. FedCoT ensures secure and efficient knowledge transfer from an LLM on a high-powered server to an SLM on a resource-constrained client, while adhering to privacy requirements. Leveraging perturbed prompts and rationales generated through the CoT approach, the framework enhances the performance of the client's SLM without compromising user data privacy within a multi-task learning framework. We propose two privacy protection strategies: the Exponential Mechanism Strategy and the Adaptive Exponential Mechanism Strategy, which balance user prompt privacy and the usability of rationales. Empirical evaluation on various text generation tasks demonstrates the effectiveness of FedCoT in training task-specific SLMs with enhanced performance while prioritizing data privacy protection. Our code has been contributed to the FATE open-source project and is now publicly accessible at \textit{https://github.com/FederatedAI/FATE-LLM/tree/main/python/fate_llm/algo/fedcot}
format Preprint
id arxiv_https___arxiv_org_abs_2406_12403
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle FedCoT: Federated Chain-of-Thought Distillation for Large Language Models
Fan, Tao
Chen, Weijing
Kang, Yan
Ma, Guoqiang
Gu, Hanlin
Song, Yuanfeng
Fan, Lixin
Yang, Qiang
Computation and Language
Artificial Intelligence
Large Language Models (LLMs) have emerged as a transformative force in artificial intelligence, demonstrating exceptional proficiency across various tasks. However, their deployment in resource-constrained environments and concerns over user data privacy pose significant challenges. In contrast, Small Language Models (SLMs) offer computational efficiency but often lag in performance. To address these issues, we propose FedCoT, a federated framework designed for the Chain-of-Thought (CoT) distillation of knowledge from LLMs to SLMs, while ensuring the preservation of clients' data privacy. FedCoT ensures secure and efficient knowledge transfer from an LLM on a high-powered server to an SLM on a resource-constrained client, while adhering to privacy requirements. Leveraging perturbed prompts and rationales generated through the CoT approach, the framework enhances the performance of the client's SLM without compromising user data privacy within a multi-task learning framework. We propose two privacy protection strategies: the Exponential Mechanism Strategy and the Adaptive Exponential Mechanism Strategy, which balance user prompt privacy and the usability of rationales. Empirical evaluation on various text generation tasks demonstrates the effectiveness of FedCoT in training task-specific SLMs with enhanced performance while prioritizing data privacy protection. Our code has been contributed to the FATE open-source project and is now publicly accessible at \textit{https://github.com/FederatedAI/FATE-LLM/tree/main/python/fate_llm/algo/fedcot}
title FedCoT: Federated Chain-of-Thought Distillation for Large Language Models
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2406.12403