CoGenesis: A Framework Collaborating Large and Small Language Models for Secure Context-Aware Instruction Following

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Zhang, Kaiyan, Wang, Jianyu, Hua, Ermo, Qi, Biqing, Ding, Ning, Zhou, Bowen
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866914826533470208
author Zhang, Kaiyan
Wang, Jianyu
Hua, Ermo
Qi, Biqing
Ding, Ning
Zhou, Bowen
author_facet Zhang, Kaiyan
Wang, Jianyu
Hua, Ermo
Qi, Biqing
Ding, Ning
Zhou, Bowen
contents With the advancement of language models (LMs), their exposure to private data is increasingly inevitable, and their deployment (especially for smaller ones) on personal devices, such as PCs and smartphones, has become a prevailing trend. In contexts laden with user information, enabling models to both safeguard user privacy and execute commands efficiently emerges as an essential research imperative. In this paper, we propose CoGenesis, a collaborative generation framework integrating large (hosted on cloud infrastructure) and small models (deployed on local devices) to address privacy concerns logically. Initially, we design a pipeline to create personalized writing instruction datasets enriched with extensive context details as the testbed of this research issue. Subsequently, we introduce two variants of CoGenesis based on sketch and logits respectively. Our experimental findings, based on our synthesized dataset and two additional open-source datasets, indicate that: 1) Large-scale models perform well when provided with user context but struggle in the absence of such context. 2) While specialized smaller models fine-tuned on the synthetic dataset show promise, they still lag behind their larger counterparts. 3) Our CoGenesis framework, utilizing mixed-scale models, showcases competitive performance, providing a feasible solution to privacy issues.
format Preprint
id arxiv_https___arxiv_org_abs_2403_03129
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle CoGenesis: A Framework Collaborating Large and Small Language Models for Secure Context-Aware Instruction Following
Zhang, Kaiyan
Wang, Jianyu
Hua, Ermo
Qi, Biqing
Ding, Ning
Zhou, Bowen
Computation and Language
With the advancement of language models (LMs), their exposure to private data is increasingly inevitable, and their deployment (especially for smaller ones) on personal devices, such as PCs and smartphones, has become a prevailing trend. In contexts laden with user information, enabling models to both safeguard user privacy and execute commands efficiently emerges as an essential research imperative. In this paper, we propose CoGenesis, a collaborative generation framework integrating large (hosted on cloud infrastructure) and small models (deployed on local devices) to address privacy concerns logically. Initially, we design a pipeline to create personalized writing instruction datasets enriched with extensive context details as the testbed of this research issue. Subsequently, we introduce two variants of CoGenesis based on sketch and logits respectively. Our experimental findings, based on our synthesized dataset and two additional open-source datasets, indicate that: 1) Large-scale models perform well when provided with user context but struggle in the absence of such context. 2) While specialized smaller models fine-tuned on the synthetic dataset show promise, they still lag behind their larger counterparts. 3) Our CoGenesis framework, utilizing mixed-scale models, showcases competitive performance, providing a feasible solution to privacy issues.
title CoGenesis: A Framework Collaborating Large and Small Language Models for Secure Context-Aware Instruction Following
topic Computation and Language
url https://arxiv.org/abs/2403.03129