NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Towards Difficulty-Agnostic Efficient Transfer Learning for Vision-Language Models

Yongjin Yang, Jongwoo Ko, Se-Young Yun

Abstract

Adapting large-scale Vision-Language Models (VLMs) like CLIP to downstream tasks typically relies on Efficient Transfer Learning (ETL) techniques such as prompt tuning or adapters. However, these methods often overlook the inherent transfer difficulty of different tasks, leading to suboptimal generalization. We present APEX (Adaptive ensemble with visual Prompt and text Extension), a difficulty-agnostic approach that dynamically balances task-specific adaptation with general VLM knowledge. APEX utilizes modality-specific tuning and an intelligent adaptive ensemble guided by a Transfer Difficulty Estimator. Our results demonstrate that APEX achieves state-of-the-art performance across 11 diverse datasets, particularly excelling in base-to-novel generalization on challenging, fine-grained domains.

Introduction: The Problem of Transfer Difficulty

Current ETL methods for VLMs often apply a uniform tuning strategy regardless of the task's complexity. This "one-size-fits-all" approach ignores transfer difficulty—the relative ease with which a pre-trained model can adapt to a new domain. For instance, distinguishing between generic objects in ImageNet is significantly easier for CLIP than identifying fine-grained aircraft types or satellite imagery.

In difficult domains, standard Text Prompt Tuning (TPT) often falls into an "overfitting trap." Because the underlying visual features lack clear class separability, aggressive text-side tuning forces artificial decision boundaries that fail to generalize to unseen (novel) classes. Conversely, on easier tasks, excessive tuning can overwrite the robust zero-shot capabilities already present in the model.

t-SNE visualizations of feature separability in EuroSAT (hard) vs. SUN397 (easy) datasets.

Methodology: The APEX Framework

To address these challenges, we propose APEX, which introduces two key components: modality-specific tuning and an adaptive ensemble mechanism.

Modality-Specific Tuning

APEX moves beyond simple text prompting by employing Visual Prompt Tuning (VPT) for the image encoder and a Linear Text Adapter (TA) for the text encoder. Empirical analysis suggests that visual prompts act as stabilizers, improving the separability of image features in difficult domains. This enhanced feature space provides a more reliable foundation for the subsequent text adapter.

The Adaptive Ensemble

The core innovation of APEX is the Adaptive Ensemble, which dynamically adjusts the model's reliance on learned parameters versus original VLM knowledge during inference. This is governed by a Transfer Difficulty Estimator that measures the semantic distance between the text features of a target class and those of the training classes.

  • High Difficulty: If a class is distant from the training distribution, the model prioritizes the task-specific adapter to handle the domain shift.
  • Low Difficulty: If a class is similar to known categories, the model relies more on the original VLM knowledge to prevent overfitting and preserve generalization.
Overview of the APEX architecture and inference mechanism.

Experimental Results

We evaluated APEX on 11 diverse datasets, ranging from general imagery (e.g., ImageNet, Caltech101) to fine-grained and challenging domains (e.g., EuroSAT, FGVC Aircraft).

Base-to-Novel Generalization

APEX achieved a state-of-the-art Harmonic Mean (HM) accuracy of 80.04% across all datasets, surpassing previous methods like CoCoOp (75.94%) and MaPLe (77.86%). The performance gain was most pronounced in difficult datasets; for example, on EuroSAT, APEX improved novel class accuracy by +15.84% over zero-shot CLIP.

Cross-Dataset and Domain Generalization

When trained on ImageNet and evaluated on 10 other datasets, APEX maintained a leading average accuracy of 66.16%. Furthermore, testing on ImageNet variants (ImageNet-V2, -Sketch, -A, -R) confirmed that APEX's difficulty-agnostic approach provides robust domain generalization against visual distortions.

Conclusion

APEX demonstrates that accounting for transfer difficulty is crucial for the effective fine-tuning of Vision-Language Models. By combining visual prompts with an adaptive text ensemble, APEX successfully mitigates the overfitting risks associated with hard tasks while preserving the general knowledge required for easy ones. Future work will explore extending this difficulty-agnostic framework to generative VLM tasks such as image captioning and visual question answering.

Summary updated

BibTeX
@inproceedings{yang2024towards,
  author = {Yongjin Yang and Jongwoo Ko and Se-Young Yun},
  title = {{Towards Difficulty-Agnostic Efficient Transfer Learning for Vision-Language Models}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.124},
}
Figure