[Paper Review] CHiLS: Zero-Shot Image Classification with Hierarchical Label Sets
CHiLS improves zero-shot CLIP accuracy by predicting over subclass sets derived from hierarchical label structures and then mapping back to the original superclass, using a reweighting step to combine subclass and superclass evidence.
Open vocabulary models (e.g. CLIP) have shown strong performance on zero-shot classification through their ability generate embeddings for each class based on their (natural language) names. Prior work has focused on improving the accuracy of these models through prompt engineering or by incorporating a small amount of labeled downstream data (via finetuning). However, there has been little focus on improving the richness of the class names themselves, which can pose issues when class labels are coarsely-defined and are uninformative. We propose Classification with Hierarchical Label Sets (or CHiLS), an alternative strategy for zero-shot classification specifically designed for datasets with implicit semantic hierarchies. CHiLS proceeds in three steps: (i) for each class, produce a set of subclasses, using either existing label hierarchies or by querying GPT-3; (ii) perform the standard zero-shot CLIP procedure as though these subclasses were the labels of interest; (iii) map the predicted subclass back to its parent to produce the final prediction. Across numerous datasets with underlying hierarchical structure, CHiLS leads to improved accuracy in situations both with and without ground-truth hierarchical information. CHiLS is simple to implement within existing zero-shot pipelines and requires no additional training cost. Code is available at: https://github.com/acmi-lab/CHILS.
Motivation & Objective
- Motivate why rich class-name hierarchies can boost open-vocabulary zero-shot classification.
- Propose a hierarchy-based method (CHiLS) to convert each class into a set of subclasses for zero-shot inference.
- Show that CHiLS yields consistent gains across datasets with and without ground-truth hierarchies.
- Demonstrate that GPT-3 can generate effective subclass hierarchies when none are available, without extra training.
Proposed method
- For each superclass c_i, generate a subclass set S_c_i = {s_c_i,1, ..., s_c_i,m_i} via existing hierarchies or GPT-3 prompts.
- Run standard CLIP zero-shot prediction over the union of all subclass labels (C_sub = ⋃_i S_c_i) to obtain subclass probabilities.
- Compute superclass probabilities with the original class set C and combine them with subclass probabilities by multiplying subclass scores with their corresponding superclass scores.
- Map the top subclass back to its superclass using the inverse mapping G^{-1} to produce final predictions.
- Optionally apply a reweighting step that leverages superclass confidence to modulate subclass probabilities, improving robustness when hierarchies are imperfect.
- Experiment with real hierarchies (when available) and GPT-3 generated hierarchies, and assess performance with and without the reweighting step.

Experimental results
Research questions
- RQ1Can leveraging hierarchical label structures improve zero-shot CLIP performance on datasets with coarse or ill-defined class labels?
- RQ2How does CHiLS perform when true hierarchies are available versus when they must be generated (e.g., via GPT-3) and how important is the reweighting step?
- RQ3What is the impact of different subclass set sizes and noise in hierarchy information on CHiLS performance?
- RQ4Does CHiLS’s benefit extend across diverse backbones and datasets with varying degrees of semantic granularity?
Key findings
- CHiLS consistently improves zero-shot accuracy over the baseline superclass approach across 16 datasets when using either existing hierarchies or GPT-3 generated hierarchies.
- With access to true hierarchies, CHiLS can yield up to around 15–30 percentage point gains compared to the baseline in several datasets.
- GPT-3 generated subclass mappings still provide robust gains over baselines when true hierarchies are unavailable.
- The reweighting step is crucial for performance when hierarchies are unknown or noisy, though its necessity diminishes when a perfect true hierarchy is provided.
- CHiLS demonstrates stability across multiple CLIP backbones and is relatively insensitive to moderate changes in the size of the subclass label sets.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.