arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2503.14932cs.CRcs.DCcs.LG
收藏

Prada:在资源受限设备上利用私有数据进行黑盒大语言模型适配

Prada: Black-Box LLM Adaptation with Private Data on Resource-Constrained Devices

University of Maryland, College Park(马里兰大学帕克分校);University of California, Irvine(加利福尼亚大学欧文分校);Cisco Research(思科研究院)

Ziyao Wang, Yexiao He, Zheyu Shen, Yu Li, Guoheng Sun, Myungjin Lee, Ang Li

AI总结:

针对边缘设备LLM适配的隐私与算力限制问题,提出Prada系统,通过本地LoRA微调代理模型、利用logits偏移优化黑盒LLM输出并结合投机解码,在保障隐私的同时实现与集中式微调相当的性能,大幅降低计算与通信成本。

摘要:

近年来,大语言模型(LLM)在各类自然语言处理任务中展现出卓越能力。然而,利用存储在智能手机、个人电脑等资源受限边缘设备上的私有数据集将这些模型适配到特定领域,仍因严重的隐私隐患和有限的计算资源面临挑战。现有模型适配方法要么因需要数据传输损害数据隐私,要么因暴露专有LLM参数危及模型隐私。为应对这些挑战,我们提出Prada——一种利用设备端私有数据集实现的新型隐私保护型高效黑盒LLM适配系统。Prada采用在用户设备本地通过低秩适配(LoRA)微调的轻量级代理模型。推理阶段,Prada利用logits偏移(即基础代理模型与适配后代理模型的输出差值),迭代优化远程黑盒LLM的输出。这种基于偏移的适配方法无需共享敏感数据或专有模型参数,可同时保障数据隐私与模型隐私。此外,我们引入投机解码进一步加快Prada的推理过程,让系统能在带宽受限的边缘设备上实际部署,提升了Prada的部署可行性。在多项下游任务上开展的大量实验表明,Prada的性能与集中式微调方法相当,同时计算开销最高降低60%,通信成本最高降低80%。

英文摘要:

In recent years, Large Language Models (LLMs) have demonstrated remarkable abilities in various natural language processing tasks. However, adapting these models to specialized domains using private datasets stored on resource-constrained edge devices, such as smartphones and personal computers, remains challenging due to significant privacy concerns and limited computational resources. Existing model adaptation methods either compromise data privacy by requiring data transmission or jeopardize model privacy by exposing proprietary LLM parameters. To address these challenges, we propose Prada, a novel privacy-preserving and efficient black-box LLM adaptation system using private on-device datasets. Prada employs a lightweight proxy model fine-tuned with Low-Rank Adaptation (LoRA) locally on user devices. During inference, Prada leverages the logits offset, i.e., difference in outputs between the base and adapted proxy models, to iteratively refine outputs from a remote black-box LLM. This offset-based adaptation approach preserves both data privacy and model privacy, as there is no need to share sensitive data or proprietary model parameters. Furthermore, we incorporate speculative decoding to further speed up the inference process of Prada, making the system practically deployable on bandwidth-constrained edge devices, enabling a more practical deployment of Prada. Extensive experiments on various downstream tasks demonstrate that Prada achieves performance comparable to centralized fine-tuning methods while significantly reducing computational overhead by up to 60% and communication costs by up to 80%.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑