arXiv:2610.07903cs.CVOct 2026

Manuscript Offprint

arXiv:2610.07903

Unsupervised Long-Tailed Adaptation of Vision-Language Models

Keliang Chen, Yaxin Hou, Hui Liu, Yuheng Jia

ABSTRACT

Adapting vision-language models to downstream tasks has achieved remarkable success by leveraging pseudo-labels generated from unlabeled data. Existing methods typically assume a uniform unlabeled data distribution, and thus the resulting pseudo-label distribution is likewise uniform. However, real-world data distributions are often long-tailed. To tackle this, we formalize a new scenario termed Unsupervised Long-Tailed Adaptation (ULTA). Under this scenario, existing methods exhibit a contrasting phenomenon: head-class performance drops sharply, which is distinct from supervised long-tailed learning where tail classes suffer the most. In particular, we uncover that the distributional mismatch not only erodes head-class boundaries, but also pushes head samples into confusable classes, reinforcing the model's inherent bias. To address these issues, we propose a novel model called Margin-Aware Refinement with Structural alignment (MARS). Specifically, we mitigate head-class boundary erosion via Boundary-Preserving Alignment, which takes the zero-shot VLM as a fixed visual reference to suppress probability increases that lack visual support in the training targets. Building upon this, we introduce Margin-aware Self-Refinement, which employs a dynamic adjustment strategy to refine tail and confusable classes while preventing prediction bias. Extensive experiments on nine benchmark datasets demonstrate that MARS outperforms state-of-the-art methods, achieving an average accuracy improvement of 4.71 percentage points.

1 INTRODUCTION

Vision-language models (VLMs) (Jia et al., 2021; Li et al., 2022; Xiao et al., 2024), such as CLIP (Radford et al., 2021), have demonstrated remarkable zero-shot capabilities by establishing a shared feature space across visual and textual modalities via web-scale data. Despite the impressive zero-shot capabilities, their performance is limited when transferred to specific downstream tasks due to the domain gap. While fine-tuning on labeled data can bridge this gap (Zhou et al., 2022b; Jia et al., 2022; Ouali et al., 2023; Shi et al., 2024), acquiring sufficient annotations in specialized scenarios (e.g., medical imaging Huang et al., 2021; Wang et al., 2022) is impractical. Consequently, recent studies (Huang et al., 2022; Mirza et al., 2023; Menghini et al., 2023) have shifted their focus toward enhancing performance by exploiting unlabeled data.

These studies (Zhang et al., 2024; Li et al., 2025; Wang et al., 2025) primarily derive supervisory signals from unlabeled data via pseudo-labeling. Those methods usually leverage a uniform prior explicitly or implicitly to yield class-balanced pseudo-labels. However, real-world data exhibits a long-tailed distribution, creating a mismatch with this uniform prior. As evidenced in Fig. 1(a), these methods (e.g., CPL Zhang et al., 2024) suffer from substantial performance degradation on long-tailed data. Notably, we observe an inverted degradation pattern that diverges from supervised long-tailed learning. In supervised long-tailed learning, the tail classes typically suffer the most

∗^{*}Equal contribution.

†^{\dagger}Corresponding author.

Figure

(a)

(b)

(c)

(d)

Figure 1: (a) The overall test accuracy of the existing unsupervised method CPL (Zhang et al., 2024) under different imbalance ratios. (b) Comparison of head- and tail-class accuracies across three settings on the RESISC45 dataset: unsupervised learning with balanced data (Unsup. Bal.), supervised learning with imbalanced data (Sup. Imb.), and unsupervised learning with imbalanced data (Unsup. Imb.). (c) Comparison of average logit margin changes ( Δm=marginFine-tuned−marginZero-shot CLIP\Delta m = \text{margin}_{\text{Fine-tuned}} - \text{margin}_{\text{Zero-shot CLIP}}). Under the long-tailed setting, the head-class margin significantly decreases compared to the uniform setting, indicating severe boundary erosion. (d) Label counts across three cases: ground-truth (GT), zero-shot predictions (ZS Pred.), and fine-tuned predictions (FT Pred.). We group confusable pairs by color (e.g., blue: “beach” vs. “sea ice”) and observe that zero-shot CLIP inherently exhibits bias toward confusable classes, which is further exacerbated by fine-tuning.

due to the scarcity of their training samples. While in unsupervised long-tailed scenarios, existing methods lead to a severe performance drop for head classes (see Fig. 1(b)).

Empirically, we find that in long-tailed scenarios, the uniform assumption in existing methods forces the model to misclassify many head samples as tail classes. Fitting these “head-as-tail” false samples leads to head-class decision boundary erosion, which causes a significant decrease in the logit margin (i.e., the gap between the ground-truth logit and the highest non-target logit) of head classes (see Fig. 1(c)). Furthermore, zero-shot CLIP’s inherent bias toward confusable classes (e.g., semantically similar pairs like “beach” vs. “sea ice”) is exacerbated during fine-tuning (see Fig. 1(d)).

To address these challenges, we propose the Margin-Aware Refinement with Structural alignment (MARS) to tackle Unsupervised Long-Tailed Adaptation (ULTA), a realistic scenario where VLMs are adapted to unlabeled data with a long-tailed distribution. MARS follows a preserve-before-refine design: it first preserves the reliable head-class boundary and then refines the tail and confusable classes. Specifically, to mitigate head-class boundary erosion caused by the erroneous assignment of pseudo-labels, we propose Boundary-Preserving Alignment (BPA). This approach exploits the class-level visual structure of zero-shot CLIP as a fixed reference and suppresses probability increases unsupported by visual evidence before they become training targets, instead of directly fitting the model's own erroneous predictions. Building upon this, we introduce Margin-aware Self-Refinement (MSR) to further improve tail and confusable classes while preserving the well-learned decision boundary. Adopting the aligned model as a teacher, this strategy leverages the estimated class distribution and the sample-specific margin to dynamically adjust the learning focus, distinguishing valid supervision from noise to actively acquire discriminative features.

In summary, our contributions are as follows:

• To our knowledge, we are the first to study unsupervised long-tailed adaptation (ULTA), a realistic yet under-explored scenario where VLMs are adapted to long-tailed unlabeled data.

• We uncover a distinct phenomenon where existing unsupervised methods suffer severe degradation on head classes due to boundary erosion from forced uniform pseudo-labels, and observe aggravated prediction bias in confusable classes. See more analyses in Sections 3.2 and 4.4.

• We propose a novel model, MARS, to tackle these challenges. Specifically, we design Boundary-Preserving Alignment to mitigate boundary erosion by exploiting the visual structure of zero-shot CLIP, and develop Margin-aware Self-Refinement to adaptively balance teacher guidance and pseudo-label supervision, further improving discriminability for tail and confusable classes.

• Comprehensive experiments on nine benchmarks with different imbalance ratios show that MARS achieves state-of-the-art performance with an average improvement of 4.71 percentage points.

2 RELATED WORK

References (36)