arXiv:2611.12187cs.LGNov 2026

Manuscript Offprint

arXiv:2611.12187

Harnessing Vision-Language Models for Federated Unsupervised Visual Recognition

Jian Liang, Kuangpu Guo, Ran He, Tieniu Tan

Jian Liang ¹,² · Kuangpu Guo ³ · Ran He ¹,² · Tieniu Tan ¹,²,⁴

Received: August 16, 2026

Abstract Federated learning (FL) is a promising research paradigm that enables collaborative model training across distributed clients without data sharing. To handle unlabeled data in local clients, existing unsupervised FL research has primarily focused on tasks like clustering and self-supervised representation learning, leaving the critical problem of unsupervised visual recognition largely unexplored. To bridge this gap, we introduce FedUR, the first framework designed for unsupervised recognition by leveraging the zero-shot capabilities of pre-trained vision-language models like CLIP. Specifically, FedUR addresses data heterogeneity through a pseudo-labeling mechanism with a class-aware data selection strategy. This strategy first estimates a global pseudo-label distribution, then allocates pseudo-labeled data to clients accordingly. To handle the uncertainty of conventional positive pseudo-labels, FedUR further incorporates class weights and a negative pseudo-labeling strategy. Furthermore, FedUR proposes a personalized prompt aggregation protocol where general visual prompts are aggregated on the server, and personalized text prompts encoding local knowledge are retained on clients. Extensive experiments demonstrate that FedUR consistently outperforms baseline methods under both label-level and feature-level distribution shifts. We believe this work paves the way for further advances in federated unsupervised recognition. Code will be available at github.com/tim-learn/FedUR/.

Keywords federated unsupervised learning; vision-language models; personalized prompt aggregation; pseudo-labeling; data heterogeneity

1 Introduction

Federated learning (FL) [1, 2] has emerged as a pivotal paradigm for decentralized machine learning since its introduction by Google in 2016 [3]. By enabling collaborative model training without the need to share raw local data, FL offers a compelling privacy-preserving solution that has garnered substantial research interest [4, 5, 6, 7]. To date, the vast majority of FL research has concentrated on supervised and semi-supervised settings, achieving notable success in tasks such as visual classification [8, 9, 10, 11], semantic segmentation [12, 13, 14], and object detection [15, 16]. In contrast, considerably less attention has been paid to the challenging scenario of federated unsupervised learning (FedUSL) [17, 18, 19, 20], where clients possess only unlabeled data. Existing FedUSL approaches [21, 22, 23] predominantly focus on self-supervised representation learning for downstream tasks or clustering for data grouping. However, these methods cannot address zero-shot classification, as they are fundamentally constrained by the absence of labeled supervisory signals.

Vision-language models (VLMs) [24, 25, 26], and particularly contrastive language-image pre-training (CLIP) [27], have demonstrated remarkable representation and zero-shot generalization capabilities [28, 29, 30, 31, 32]. By learning a shared embedding space from large-scale image-text pairs, CLIP enables powerful zero-shot classification and alleviates the dependency on labeled data, paving the way for unsupervised learning methods [33, 34, 35, 36, 37]. This capability

¹ NLPR & MAIS, Institute of Automation, Chinese Academy of Sciences (CASIA), China ² School of Artificial Intelligence, University of Chinese Academy of Sciences, China ³ University of Science and Technology of China ⁴ Nanjing University, China Corresponding author: Jian Liang (liangjian92@gmail.com)

Jian Liang ¹,² et al.

presents a compelling opportunity to address classification tasks within the FedUSL framework, an avenue that remains largely unexplored.

In this paper, we pioneer the extension of FedUSL to classification by leveraging CLIP, with each client initialized with the same pre-trained CLIP model and holding only unlabeled local data. Following standard FL protocols [38, 39], clients periodically upload non-data knowledge, such as statistical information or model parameters, to a central server for aggregation and receive updated global knowledge in return. A natural approach within this framework is to use CLIP's zero-shot predictions as pseudo-labels to supervise local training. However, the inherent bias of CLIP and the unknown, potentially non-IID label distribution across clients [33, 40, 9] can lead to globally imbalanced training across categories. This label skew causes model updates to diverge among clients, rendering conventional aggregation methods ineffective.

To address these challenges, we propose FedUR, a novel method with three core components: cooperative data selection, dual pseudo-labeling, and personalized prompt aggregation. The cooperative data selection mechanism selects samples with a balanced pseudo-label distribution across all classes, mitigating the bias inherent in CLIP and the unknown client data distribution. Specifically, each client first applies confidence-and entropy-based filtering to estimate its local pseudo-label distribution, which is then transmitted to the server. The server subsequently rebalances each client's distribution by allocating per-class pseudo-label counts according to global category-wise proportions. This rebalancing corrects for label skew across clients; however, class bias may persist locally. To address this residual bias, we employ a class-weighted cross-entropy loss that penalizes overrepresented classes during local training. Moreover, we introduce negative pseudo-labels [41] on selected samples to suppress the probability mass assigned to the most unlikely categories, further strengthening the quality of the pseudo-labels.

Beyond pseudo-labeling, we introduce a personalized prompt aggregation strategy in FedUR to balance global collaboration and local personalization. For communication and computational efficiency, we optimize only the visual and textual prompts while freezing the backbone. Prior work [42] has shown that visual prompts capture general feature representations, whereas textual prompts focus on category-specific information. Aggregating prompts from both modalities may introduce parameter conflicts, particularly under label skew. We therefore transmit only visual prompts to the server for aggregation, while retaining textual prompts locally. This design fosters global collaboration

through shared visual prompts and supports personalization through client-specific textual prompts that better reflect each client's label distribution. Extensive experiments on standard federated benchmarks under Dirichlet-based, quantity-based, and feature skews validate FedUR's effectiveness against baseline methods. Our main contributions are summarized as follows:

  • We pioneer the extension of federated unsupervised learning to classification tasks by leveraging CLIP, an underexplored direction in prior work.
  • We propose FedUR to mitigate CLIP's inherent bias through a cooperative pseudo-labeling strategy that constructs balanced pseudo-labels, complemented by a class-weighted cross-entropy loss and negative pseudo-labeling for refined local training.
  • We introduce a personalized prompt aggregation protocol in FedUR that enables effective global collaboration while preserving local personalization.
  • Extensive experiments on standard datasets under both label and feature skews demonstrate the effectiveness of FedUR against baseline methods.

This paper extends our prior conference work [43] in four major respects: (1) we identify residual class bias during local training and design a class-weighted objective to mitigate it; (2) we introduce negative pseudo-labels to suppress probabilities on unlikely classes, further refining pseudo-label quality; (3) we broaden the experimental evaluation with two additional datasets (DomainNet and Office-Home) and more non-IID settings beyond label skew; and (4) we conduct a thorough analysis of the proposed framework, focusing on the newly incorporated components.

References (95)