[论文解读] Dual-Personalizing Adapter for Federated Foundation Models
本文提出 FedDPA,一种用于联邦基础模型的双个性化适配器,可联合学习测试时分布偏移下的全局知识与针对特定任务的本地个性化知识。通过在推理时动态加权全局适配器(用于泛化)和本地适配器(用于个性化),FedDPA 在 NLP 基准测试中实现了最先进性能,无论是在个性化任务还是测试时泛化任务中均优于基线方法。
Recently, foundation models, particularly large language models (LLMs), have demonstrated an impressive ability to adapt to various tasks by fine-tuning diverse instruction data. Notably, federated foundation models (FedFM) emerge as a privacy preservation method to fine-tune models collaboratively under federated learning (FL) settings by leveraging many distributed datasets with non-IID data. To alleviate communication and computation overhead, parameter-efficient methods are introduced for efficiency, and some research adapted personalization methods to FedFM for better user preferences alignment. However, a critical gap in existing research is the neglect of test-time distribution shifts in real-world applications, and conventional methods for test-time distribution shifts in personalized FL are less effective for FedFM due to their failure to adapt to complex distribution shift scenarios and the requirement to train all parameters. To bridge this gap, we refine the setting in FedFM, termed test-time personalization, which aims to learn personalized federated foundation models on clients while effectively handling test-time distribution shifts simultaneously. To address challenges in this setting, we explore a simple yet effective solution, a Federated Dual-Personalizing Adapter (FedDPA) architecture. By co-working with a foundation model, a global adapter and a local adapter jointly tackle the test-time distribution shifts and client-specific personalization. Additionally, we introduce an instance-wise dynamic weighting mechanism that dynamically integrates the global and local adapters for each test instance during inference, facilitating effective test-time personalization. The effectiveness of the proposed method has been evaluated on benchmark datasets across different NLP tasks.
研究动机与目标
- 为解决现有联邦基础模型方法在推理过程中忽略测试时分布偏移的问题。
- 实现个性化模型,使其不仅在目标任务上表现优异,也能在分布发生偏移的未见任务上保持强性能。
- 设计一种高效、参数高效的方案,在不增加通信或计算开销的前提下,增强联邦学习中的个性化与泛化能力。
- 开发一种动态加权机制,以在推理过程中自适应地平衡全局适配器与本地适配器的贡献。
提出的方法
- 提出一种双个性化适配器(FedDPA)架构,包含两个独立适配器:在聚合客户端数据上训练的全局适配器(用于泛化),以及为每个客户端单独微调的本地适配器(用于特定任务个性化)。
- 引入一种实例级动态加权机制,于推理时基于输入上下文计算基于注意力的加权值,以平衡全局适配器与本地适配器的输出。
- 采用两阶段训练流程:首先,通过 FedAvg 在聚合客户端数据上更新全局适配器,以捕捉共享知识;其次,每个客户端在其私有数据上微调本地适配器。
- 采用参数高效微调(LoRA 风格适配器)以最小化联邦设置下的通信与计算成本。
- 在所有客户端间共享全局适配器,以促进测试时任务的知识迁移,同时通过本地适配器保留客户端特定的个性化能力。
- 采用损失函数,结合个性化损失(在目标任务上)与测试时性能损失(在多样且分布偏移的任务上),以联合优化两个目标。
实验结果
研究问题
- RQ1如何使联邦基础模型在保持个性化目标任务高性能的同时,对测试时的分布偏移具备鲁棒性?
- RQ2在非独立同分布数据的联邦设置下,最优的全局知识泛化与本地自适应个性化之间的平衡方式是什么?
- RQ3与固定或静态适配器融合相比,动态的、实例感知的加权机制是否能提升在个性化任务与分布外任务上的整体性能?
- RQ4当测试阶段引入多样且未见过的任务时,若每个客户端仅使用少量任务进行训练,这将如何影响模型的泛化能力?
- RQ5所提方法在个性化与测试时泛化两方面,相较于现有参数高效微调(PEFT)与个性化联邦学习基线方法,优势程度如何?
主要发现
- FedDPA-T 在 Fed Dataset 1 上实现了 80.22% 的个性化准确率与 75.47% 的测试时个性化(TTP)准确率,优于 FedDPA-F 与其他基线方法。
- 实例级动态加权机制相比静态加权,使个性化性能最高提升 0.65%,TTP 性能最高提升 1.41%,其中 FedDPA-T 的增益最为显著。
- 将客户端参与率从 20% 提升至 100% 后,平均准确率最高提升 4.5 个百分点,表明数据贡献具有显著优势。
- 在较小数据集上,FedDPA-F 优于 FedDPA-T,归因于过拟合减少,凸显了数据规模在本地适配器训练中的重要性。
- 收敛性分析表明,FedDPA 方法在收敛速度上优于 FedIT 与 FedLoRA,尤其在测试时个性化设置下表现更优。
- 消融实验确认,动态加权机制对平衡全局与本地知识至关重要,尤其当测试时任务与训练任务差异显著时。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。