Federated Co-tuning Framework for Large and Small Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Fan, Tao, Kang, Yan, Ma, Guoqiang, Fan, Lixin, Liu, Shuoling, Chen, Kai, Yang, Qiang
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913055843024896
author Fan, Tao
Kang, Yan
Ma, Guoqiang
Fan, Lixin
Liu, Shuoling
Chen, Kai
Yang, Qiang
author_facet Fan, Tao
Kang, Yan
Ma, Guoqiang
Fan, Lixin
Liu, Shuoling
Chen, Kai
Yang, Qiang
contents By adapting Large Language Models (LLMs) to domain-specific tasks or enriching them with domain-specific knowledge, we can fully harness the capabilities of LLMs. Nonetheless, a gap persists in achieving simultaneous mutual enhancement between the server's LLM and the downstream clients' Small Language Models (SLMs). To address this, we propose FedCoLLM, a novel and parameter-efficient federated framework designed for co-tuning LLMs and SLMs. This approach is aimed at adaptively transferring server-side LLMs knowledge to clients' SLMs while simultaneously enriching the LLMs with domain insights from the clients. To accomplish this, FedCoLLM utilizes lightweight adapters in conjunction with SLMs, facilitating knowledge exchange between server and clients in a manner that respects data privacy while also minimizing computational and communication overhead. Our evaluation of FedCoLLM, utilizing various public LLMs and SLMs across a range of NLP text generation tasks, reveals that the performance of clients' SLMs experiences notable improvements with the assistance of the LLMs. Simultaneously, the LLMs enhanced via FedCoLLM achieves comparable performance to that obtained through direct fine-tuning on clients' data. Our code has been contributed to the FATE open-source project and is now publicly accessible at https://github.com/FederatedAI/FATE-LLM/tree/main/python/fate_llm/algo/fedcollm.
format Preprint
id arxiv_https___arxiv_org_abs_2411_11707
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Federated Co-tuning Framework for Large and Small Language Models
Fan, Tao
Kang, Yan
Ma, Guoqiang
Fan, Lixin
Liu, Shuoling
Chen, Kai
Yang, Qiang
Computation and Language
Artificial Intelligence
By adapting Large Language Models (LLMs) to domain-specific tasks or enriching them with domain-specific knowledge, we can fully harness the capabilities of LLMs. Nonetheless, a gap persists in achieving simultaneous mutual enhancement between the server's LLM and the downstream clients' Small Language Models (SLMs). To address this, we propose FedCoLLM, a novel and parameter-efficient federated framework designed for co-tuning LLMs and SLMs. This approach is aimed at adaptively transferring server-side LLMs knowledge to clients' SLMs while simultaneously enriching the LLMs with domain insights from the clients. To accomplish this, FedCoLLM utilizes lightweight adapters in conjunction with SLMs, facilitating knowledge exchange between server and clients in a manner that respects data privacy while also minimizing computational and communication overhead. Our evaluation of FedCoLLM, utilizing various public LLMs and SLMs across a range of NLP text generation tasks, reveals that the performance of clients' SLMs experiences notable improvements with the assistance of the LLMs. Simultaneously, the LLMs enhanced via FedCoLLM achieves comparable performance to that obtained through direct fine-tuning on clients' data. Our code has been contributed to the FATE open-source project and is now publicly accessible at https://github.com/FederatedAI/FATE-LLM/tree/main/python/fate_llm/algo/fedcollm.
title Federated Co-tuning Framework for Large and Small Language Models
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2411.11707