Skip to main content
QUICK REVIEW

[Paper Review] Dual-Personalizing Adapter for Federated Foundation Models

Yiyuan Yang, Guodong Long|arXiv (Cornell University)|Mar 28, 2024
Advanced Database Systems and QueriesComputer Science3 citations
TL;DR

This paper proposes FedDPA, a dual-personalizing adapter for federated foundation models that jointly learns global knowledge for test-time distribution shifts and local personalization for targeted tasks. By dynamically weighting a global adapter (for generalization) and a local adapter (for personalization) at inference, FedDPA achieves state-of-the-art performance across NLP benchmarks, outperforming baselines in both personalization and test-time generalization tasks.

ABSTRACT

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.

Motivation & Objective

  • To address the gap in federated foundation models where existing methods neglect test-time distribution shifts during inference.
  • To enable personalized models that maintain strong performance not only on their targeted task but also on unseen tasks with shifted distributions.
  • To design an efficient, parameter-efficient method that enhances both personalization and generalization in federated learning without increasing communication or computational overhead.
  • To develop a dynamic weighting mechanism that adaptively balances contributions from global and local adapters during inference.

Proposed method

  • Proposes a dual-personalizing adapter (FedDPA) architecture with two distinct adapters: a global adapter trained on aggregated client data for generalization, and a local adapter fine-tuned per client for task-specific personalization.
  • Introduces an instance-wise dynamic weighting mechanism that computes attention-based weights at inference time to balance the outputs of the global and local adapters based on input context.
  • Employs a two-stage training process: first, the global adapter is updated via FedAvg on aggregated client data to capture shared knowledge; second, each client fine-tunes its local adapter on its private data.
  • Uses parameter-efficient tuning (LoRA-style adapters) to minimize communication and computation costs in federated settings.
  • Applies a shared global adapter across all clients to promote knowledge transfer for test-time tasks, while preserving client-specific personalization via local adapters.
  • Employs a loss function that combines personalization loss (on target task) and test-time performance loss (on diverse, shifted tasks) to jointly optimize for both objectives.

Experimental results

Research questions

  • RQ1How can federated foundation models be made robust to test-time distribution shifts while maintaining high performance on personalized target tasks?
  • RQ2What is the optimal way to balance generalization (via global knowledge) and personalization (via local adaptation) in a federated setting with non-IID data?
  • RQ3Can a dynamic, instance-aware weighting mechanism improve performance across both personalized and out-of-distribution tasks compared to fixed or static adapter fusion?
  • RQ4How does the inclusion of diverse, unseen tasks during testing affect model generalization when only a small fraction of tasks are used for training per client?
  • RQ5To what extent does the proposed method outperform existing PEFT and personalized FL baselines in terms of both personalization and test-time generalization?

Key findings

  • FedDPA-T achieved 80.22% accuracy on personalization and 75.47% on test-time personalization (TTP) for Fed Dataset 1, outperforming FedDPA-F and other baselines.
  • The instance-wise dynamic weighting mechanism improved performance by up to 0.65% on personalization and 1.41% on TTP compared to static weighting, with the most significant gains in FedDPA-T.
  • Increasing the client participation rate from 20% to 100% improved average accuracy by up to 4.5 percentage points, indicating strong data contribution benefits.
  • FedDPA-F outperformed FedDPA-T on smaller datasets due to reduced overfitting, highlighting the importance of data scale in local adapter training.
  • The convergence analysis showed that FedDPA methods achieved faster convergence than FedIT and FedLoRA, particularly in the test-time personalization setting.
  • Ablation studies confirmed that the dynamic weighting mechanism is critical for balancing global and local knowledge, especially when test-time tasks differ significantly from training tasks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.