arXiv:2610.23705cs.CVOct 2026

Manuscript Offprint

arXiv:2610.23705

FedRAPP: Federated Test-Time Prompt Tuning for Vision-Language Models with Reliability-Aware Prompt Personalization

Syed Md. Ahnaf Hasan, Md Akil Raihan Iftee, Sajib Mistry, Amin Ahsan Ali, AKM Mahbubur Rahman

Abstract

Federated prompt learning enables vision-language models like CLIP to collaboratively adapt lightweight soft prompts across distributed clients without sharing raw data. However, existing federated prompt learning methods are designed primarily for supervised settings with labeled client data and assumed relatively stable training distributions. At test time, source-free federated prompt tuning remains largely unexplored. Clients may receive unlabeled target samples with heterogeneous, often non-IID distributions that differ substantially across clients and from the source training distribution, causing locally adapted prompts to drift in different directions and reducing the effectiveness of federated aggregation. In this work, we explore Source-Free Federated Test-Time Prompt Tuning (SF-FTTPT), where distributed clients collaboratively adapt soft prompts on unlabeled test streams without access to source data. Our study reveals that conventional federated aggregation methods struggle under heterogeneous client distributions, as locally adapted prompts become increasingly specialized and difficult to combine effectively. To address this challenge, we propose FedRAPP, a personalized aggregation framework that combines reliability-aware client assessment, server-side exponential moving-average prompt memory, and similarity-guided peer aggregation. FedRAPP selectively incorporates information from reliable and compatible clients while preserving local specialization, enabling more robust adaptation under distribution shift. Extensive experiments across nine CLIP benchmark datasets and ImageNet variants demonstrate that FedRAPP consistently outperforms standard federated aggregation baselines under heterogeneous client distributions while maintaining the efficiency advantages of prompt-only adaptation.

Flower102

Figure

Figure 1. Top-1 accuracy gain over None-Fed under the non-IID partition with AdaPrompt local adaptation (Numeric labels show FedRAPP gain over None-Fed).

1. Introduction

Vision-language models (VLMs) such as CLIP [26] have achieved impressive zero-shot transfer performance by aligning visual and textual representations in a shared embedding space [10, 15, 42]. However, their performance depends critically on the prompts used at inference, and distribution shifts can substantially degrade their effectiveness. Because end-to-end fine-tuning of these large models is computationally infeasible for edge devices, parameter-efficient approaches such as prompt tuning optimize task-specific soft prompts while keeping the pretrained VLM frozen [11, 14, 46, 47].

In practice, test streams are rarely centralized. Modern AI systems operate across distributed edge environments such as mobile devices, autonomous vehicles, hospitals, and IoT sensors, where data remains local due to privacy, communication, and latency constraints [12, 16, 33, 39].

*Corresponding author: ahnafhasan335@gmail.com

Each client therefore observes only a partial and potentially biased view of the target distribution, making centralized continual test-time prompt tuning impractical. Federated Learning (FL) provides a natural framework for collaboration by enabling clients to exchange model updates rather than raw data [23]. Classical approaches such as FedAvg [23] and FedProx [16] learn shared models through parameter aggregation, while personalized methods such as FedAMP [9] and pFedGraph [40] account for client heterogeneity. However, these methods have been studied primarily with labeled and relatively stationary client data. Recent Federated Test-Time Adaptation (FedTTA) methods extend test-time adaptation to distributed environments [27, 32], but focus on vision-only models and typically aggregate full model parameters or normalization statistics. COTE [48] extends federated prompt learning to test-time adaptation for VLMs using unlabeled target data, but its adaptation starts from prompts pretrained using source-domain data. Thus, source-free federated test-time prompt tuning, where adaptation begins without access to source data, remains largely unexplored.

We study Source-Free Federated Test-Time Prompt Tuning (SF-FTTPT), a setting in which distributed clients collaboratively adapt soft prompts on unlabeled test streams through federated aggregation without access to source data. Each client performs local test-time prompt tuning with a frozen CLIP backbone and periodically shares only lightweight prompt parameters, preserving privacy and communication efficiency. By combining local adaptation with knowledge transfer across clients, SF-FTTPT enables collaborative adaptation beyond isolated local tuning in heterogeneous distributed environments.

Extending federated learning to source-free test-time prompt tuning introduces several compounding challenges. First, neither the server nor the clients have access to labels, so useful client updates must be assessed entirely from unlabeled test-time signals. Second, under non-IID client partitions, strong label shift can cause different clients to specialize toward different regions of the label space [20, 35], making naive aggregation harmful when local adaptations are incompatible. Third, test-time adaptation is inherently noisy because prompts are updated from small unlabeled mini-batches, making individual updates potentially unreliable or biased toward the current batch. Standard aggregation methods that treat clients equally therefore cannot distinguish useful updates from unstable ones, creating prompt drift and potentially destroying client-specific specialization.

To address these challenges, we propose FedRAPP (Federated Reliability-Aware Prompt Personalization), a personalized federated prompt aggregation strategy designed specifically for the source-free test-time setting. FedRAPP operates through three complementary mechanisms. First, it estimates a reliability score for each client's prompt update using label-free signals derived from the entropy of model predictions before and after local adaptation, as well as the magnitude of the prompt update direction. Updates that reduce prediction uncertainty while remaining stable are assigned higher reliability. Second, FedRAPP maintains a server-side EMA prompt memory for each client, which smooths prompt updates over time and prevents abrupt, mini-batch-induced changes from dominating aggregation. The EMA coefficient is made reliability-dependent, so that confident and stable updates are incorporated more aggressively while uncertain updates are smoothed conservatively. Third, FedRAPP performs personalized peer aggregation by computing collaboration weights that simultaneously consider the similarity of prompt update directions across clients and the reliability of each source client's update, allowing each client to selectively draw from compatible collaborators rather than all clients equally. Figure 1 shows that FedRAPP consistently performs well under severe data heterogeneity across the clients. Our contributions are summarized as follows:

• We formulate and systematically study Source-Free Federated Test-Time Prompt Tuning (SF-FTTPT), where distributed clients collaboratively adapt soft prompts on unlabeled test streams without access to source data, and establish a benchmark spanning multiple continual prompt tuning methods, federated aggregation strategies, and both IID and non-IID client distributions.

• We identify key challenges of source-free federated prompt adaptation under heterogeneous client distributions, including prompt drift and the loss of client-specific specialization, which limit the effectiveness of conventional aggregation methods.

• We propose FedRAPP, a reliability-aware personalized aggregation framework that combines client reliability estimation, EMA-based prompt memory, and similarity-guided collaboration, achieving consistent improvements across nine CLIP benchmarks and five ImageNet variants.

References (46)