Hierarchical prompt learning for vision-language models with enhanced generalization
摘要
Vision-language models (VLMs) have achieved notable success in zero-shot image recognition; however, transferring these models to downstream tasks remains challenging. This study introduces Hierarchical Prompt Learning (HPL), a novel framework that incorporates semantic hierarchies into prompt learning. HPL learns multi-level prompts at coarse, mid, and fine granularities, dynamically fusing them to enhance transferability and robustness. Experiments on ImageNet, CIFAR-100, Caltech101, and DomainNet demonstrate HPL’s superior generalization performance, harmonic-mean accuracy, and out-of-distribution robustness compared to state-of-the-art methods. Here, we show a 5% improvement in harmonic-mean accuracy on CIFAR-100, highlighting HPL’s potential in real-world open-world tasks.