arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.06757cs.LGcs.AI
收藏

面向任务特定大语言模型微调的隐式联邦上下文学习

Implicit Federated In-context Learning For Task-Specific LLM Fine-Tuning

Dongcheng Li, Junhan Chen, Aoxiang Zhou, Chunpei Li, Youquan Xian, Peng Liu, Xianxian Li

AI总结:

本文提出隐式联邦上下文学习框架IFed-ICL,将客户端本地示例转为隐式向量并在推理阶段注入残差流,以低通信和低计算开销实现基于私有数据的分布式任务微调,在多个文本分类任务上表现优异。

摘要:

随着大语言模型的持续发展与扩展,其所依赖的广泛公共数据面临枯竭风险。因此,利用组织内部的私有数据来提升大模型性能已成为一个关键挑战。联邦学习范式与模型微调技术相结合,能够有效减少可训练参数的数量。然而,处理高维特征空间的必要性导致了巨大的整体计算开销。为解决这一问题,我们提出了隐式联邦上下文学习(IFed-ICL)框架。IFed-ICL受联邦学习启发,建立了一种新颖的分布式协作范式,通过将客户端本地上下文示例转换为隐式向量表示,在推理阶段实现分布式协作计算,并注入模型残差流以提升模型性能。实验表明,我们提出的方法在多个文本分类任务上取得了出色的性能。与传统方法相比,IFed-ICL避免了传统微调方法所需的大量参数更新,同时在联邦学习中减少了客户端的数据传输和本地计算。这使得利用本地私有领域数据实现高效的分布式上下文学习成为可能,显著提升了模型在特定任务上的性能。

英文摘要:

As large language models continue to develop and expand, the extensive public data they rely on faces the risk of depletion. Consequently, leveraging private data within organizations to enhance the performance of large models has emerged as a key challenge. The federated learning paradigm, combined with model fine-tuning techniques, effectively reduces the number of trainable parameters. However,the necessity to process high-dimensional feature spaces results in substantial overall computational overhead. To address this issue, we propose the Implicit Federated In-Context Learning (IFed-ICL) framework. IFed-ICL draws inspiration from federated learning to establish a novel distributed collaborative paradigm, by converting client local context examples into implicit vector representations, it enables distributed collaborative computation during the inference phase and injects model residual streams to enhance model performance. Experiments demonstrate that our proposed method achieves outstanding performance across multiple text classification tasks. Compared to traditional methods, IFed-ICL avoids the extensive parameter updates required by conventional fine-tuning methods while reducing data transmission and local computation at the client level in federated learning. This enables efficient distributed context learning using local private-domain data, significantly improving model performance on specific tasks.

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

↑