Attributes Should Come from Images, Not Class Names Distribution-Conditioned Attribute Selection for Vision-Language Models

Gautam Rajendrakumar Gare  ·  Jia Shi  ·  Zhiqiu Lin  ·  Deepak Pathak  ·  John Galeotti  ·  Deva Ramanan

Carnegie Mellon University

ECCV 2026 Workshops

Paper Code

Teaser: LLM descriptors describe typical strawberries; image-conditioned attributes describe the sketch distribution.
Class-name-conditioned descriptors fail under distribution shift; image-conditioned attributes track it. For strawberry on ImageNet-Sketch, an LLM prompted with the class name and an external knowledge base both return descriptors of typical strawberries (red, ripe) because neither ever sees an image. AttributeSelect scores a large attribute pool against the sketch images themselves and returns the attributes that actually hold in this distribution (colorless, hand-drawn).

Abstract

A popular route to interpretable zero-shot classification asks a large language model (LLM) to describe each class name and prompts CLIP with the resulting descriptors. We show that these descriptors carry little visual evidence of their own: removing the class name from the prompt collapses ImageNet accuracy from 59.5% to 15.5%. The diagnosis is that the descriptors are conditioned on the label rather than on the images, so they describe the concept in general and mislead exactly when the data shifts. We therefore select attributes from the target image collection instead: we score a large attribute pool against the images in CLIP's joint embedding space and keep the top-scoring attributes per class. Selected this way, class-name-free attribute prompts reach 23.8% on ImageNet (against 15.5% for LLM descriptors), the gain holds on four shifted ImageNet variants, and reselecting from the LLM's own pool isolates the selection mechanism as the cause. With one image per class, the selected attributes outperform the prompt-tuning method CoOp by 3 points while fitting in under a minute instead of 14 hours. Because the attribute set is chosen by the data, it doubles as a readable summary of a dataset, which we use to describe distribution shift in words.


The class-name confound

The standard descriptor protocol prompts CLIP with “{class name}, which is {descriptor}”. If the descriptors measured attribute evidence in the image, they should retain accuracy when queried alone. They do not: reduced to bare descriptors, accuracy collapses. Reselecting attributes from the same pool using images recovers much of the loss, so the selection mechanism, not the vocabulary, is what makes attributes informative.

Prompt (no class name)ImageNet-V2-Sketch-A-R
LLM descriptors (Menon & Vondrick)15.5014.009.608.5717.91
AttributeSelect, same descriptor pool (top 5)19.4017.0010.579.8019.49
AttributeSelect, VAW+LSA pool (top 5)23.8020.8014.4011.8328.20

Class-name-free zero-shot top-1 accuracy, CLIP-RN50; attributes selected on ImageNet only. With the class name kept, the same LLM descriptors score 59.47 on ImageNet.

Finding. LLM-generated descriptors ride the class name: removing it from the prompt collapses ImageNet accuracy from 59.5% to 15.5%. Their gains cannot be read as attribute-level evidence about the image.

Method: selecting attributes with images

AttributeSelect pipeline overview
Distribution-conditioned attribute selection. A frozen CLIP encodes the target images and a large pool of attribute texts; their cosine similarities form an attribute feature vector per image (sj = 100 · cos(v, tj)). Class-attribute scores come from the per-class mean of these features or from a linear probe trained on them; each class keeps its top-k attributes as its prompt set. Both encoders stay frozen; the only fitted object is the linear pairing, which fits in under a minute.

Attributes are encoded bare, with no template and no class name, since a shared class name would correlate all of a class's attribute scores: exactly the confound above. A test image is assigned to the class whose selected attributes it matches best, optionally weighting each attribute's vote by its selection score.

Few-shot classification

Selection only has to rank a fixed pool of meaningful words, so one image per class carries enough signal: AttributeSelect beats prompt tuning at 1–4 shots at a thousandth of the fitting cost, and the fitted object is a readable word list rather than a soft prompt. Beyond 4 shots, gradient methods pass it; the probe only ranks the pool, so extra images refine the ranking but add no capacity.

Method1-shot2-shot4-shot8-shot16-shotFit time
CLIP linear probe24.4635.0944.6052.3157.10<1 min
CoOp57.1557.8159.9961.5662.9514 hr
WiSE-FT58.3059.0860.4861.8562.84<1 min
AttributeSelect (ours)60.1360.9261.1361.3961.35<1 min

ImageNet top-1 accuracy, CLIP-RN50; zero-shot CLIP scores 55.31. Bold marks the best method per column.

Finding. With one image per class, image-conditioned attribute selection beats CoOp by 3 points (60.1 vs 57.2) at 10-3 of the fitting cost, while producing a classifier that is a readable list of words.

Describing distribution shift in words

Because the attribute set is a function of an image collection, any collection can be summarized in words. Subtracting the mean attribute profile of ImageNet from a shifted dataset's ranks the attributes that rose and fell, using unlabeled images only. The description is actionable: turning the top domain attributes into prompt templates (“A cartoon photo of a {class}”) improves zero-shot accuracy on the shifted variants by up to 4 points.

Rising and falling attributes on ImageNet-Sketch and ImageNet-R
Distribution shift, described in words. Top rising and falling attributes of ImageNet-Sketch (left) and ImageNet-R (right) relative to ImageNet. Sketch gains “colorless”, “gray”, “cartoon” and loses color attributes; R gains “cartoon”, “painting”, “tattooed”, matching its documented composition.

Attribute-guided localization

Attribute-guided localization heatmaps
Class-name-free localization from selected attributes. Removing CLIP-ResNet's attention pooling preserves the spatial grid, so attribute similarities can be computed per patch. Querying with the hippopotamus attribute set (left) and the Nile crocodile attribute set (right) localizes each animal; the queries contain no class names.

What the attribute features look like

Mutual information structure of CLIP vs attribute features
Attribute features trade statistical independence for named, semantically clustered directions. Pairwise mutual information (viridis scale, dark = 0). CLIP dimensions (left) are near-independent; attribute features (middle) are correlated, and a class's own top-5 attributes (right; park bench, chocolate syrup, hay) share the most information. The transformation is a change of basis into named directions, not statistical disentanglement.

BibTeX

@inproceedings{gare2026attributes,
  title     = {Attributes Should Come from Images, Not Class Names:
               Distribution-Conditioned Attribute Selection for Vision-Language Models},
  author    = {Gare, Gautam Rajendrakumar and Shi, Jia and Lin, Zhiqiu and
               Pathak, Deepak and Galeotti, John and Ramanan, Deva},
  booktitle = {ECCV Workshops},
  year      = {2026}
}

Page template inspired by DetPO and academic project-page conventions.