Label Propagation for Zero-shot Classification with Vision-Language Models
Vladan Stojnić, Yannis Kalantidis, Giorgos Tolias
TL;DR
This work tackles zero-shot classification with unlabeled data by introducing ZLaP, a non-parametric label-propagation method tailored to bi-modal vision-language graphs. By constructing a graph that links text-based class representations with image features and exploiting geodesic similarities from the inverted graph Laplacian, ZLaP achieves strong transductive and inductive performance without model fine-tuning. The approach includes efficient dual formulations and sparsified offline components to enable scalable test-time inference, and it benefits further when combined with InMaP proxies and LLM-generated prompts. Empirically, ZLaP delivers state-of-the-art results on 14 diverse datasets across multiple VLM backbones, demonstrating robust improvements and practical applicability, even for black-box VLMs.
Abstract
Vision-Language Models (VLMs) have demonstrated impressive performance on zero-shot classification, i.e. classification when provided merely with a list of class names. In this paper, we tackle the case of zero-shot classification in the presence of unlabeled data. We leverage the graph structure of the unlabeled data and introduce ZLaP, a method based on label propagation (LP) that utilizes geodesic distances for classification. We tailor LP to graphs containing both text and image features and further propose an efficient method for performing inductive inference based on a dual solution and a sparsification step. We perform extensive experiments to evaluate the effectiveness of our method on 14 common datasets and show that ZLaP outperforms the latest related works. Code: https://github.com/vladan-stojnic/ZLaP
