ArtVLM: Attribute Recognition Through Vision-Based Prefix Language Modeling

William Yicheng Zhu, Keren Ye, Junjie Ke, Jiahui Yu, Leonidas J. Guibas, Peyman Milanfar, Feng Yang

Introduction

While large-scale Vision-Language Models (VLMs) like CLIP have revolutionized zero-shot object recognition, they often stumble when it comes to attributes—the fine-grained properties like color, material, or state (e.g., distinguishing a wooden chair from a plastic one). ArtVLM shifts the paradigm of visual attribute recognition from simple image-text matching to a generative language modeling task. By calculating the probability of a model generating specific descriptive sentences, the researchers demonstrate that "generative retrieval" captures the nuanced dependencies between objects and their properties far better than standard contrastive models.

The Problem: Why Contrastive Models Fail at Attributes

The authors identify two core issues with the standard "contrastive retrieval" approach used by models like CLIP:

  1. Insufficient Learning: If an object (like a "car") is easily identifiable, the model might achieve a high similarity score even if the attribute (like "rusty") is incorrect. The model takes the path of least resistance, focusing on the dominant object features rather than the specific attribute.
  2. Dependency Blindness: Contrastive models often treat text as an unstructured "bag of words." They struggle to model the co-dependency between an object and its attribute, leading to "counterfactual" errors where the model associates an attribute with the wrong object in a crowded scene.

Methodology: Generative Retrieval

ArtVLM utilizes Prefix Language Modeling (PrefixLM). Instead of just checking if an image and a caption "look similar" in a shared vector space, ArtVLM treats recognition as a sentence generation problem.

Key Components

  • Generative Retrieval: The model measures the visual-conditioned probability of generating a short sentence that encodes the object-attribute relationship.
  • Conditional Dependency Graphs: The authors formalize different sentence templates as probabilistic models. For example, the template "{O} is {A}" (e.g., "cat is orange") forces the model to predict the attribute conditioned on both the image and the object name.
  • Hybrid Templates: They found that a hybrid template like "{A}{O} is {A}" (e.g., "fluffy cat is fluffy") performs best because it jointly considers classification, object-attribute compatibility, and attribute prediction.
  • Foundation Model: The researchers use CoCa (Contrastive Captioners) as their backbone, as it natively supports both contrastive and generative objectives, allowing for a fair head-to-head comparison.

Benchmarking and Datasets

The paper evaluates the approach on two primary datasets:

  • VAW (Visual Attribute in the Wild): A large-scale dataset with explicit positive and negative attribute labels.
  • VGARank (Visual Genome Attribute Ranking): A newly introduced benchmark derived from Visual Genome. Unlike VAW, which is a fixed-vocabulary classification task, VGARank is an open-vocabulary ranking task. It includes "hard negatives"—attributes that often co-occur with an object in general but are false for a specific instance—to truly test a model's reasoning.

Key Insights

  • Sequence Matters: Unlike contrastive models, generative models are sensitive to word order. This sensitivity allows the model to "reason" through the structure of a sentence, ensuring the attribute actually belongs to the target object.
  • Meta-Models at Inference: By simply changing the sentence template at test time, users can create different "meta-models" to probe specific logical relations without retraining the underlying VLM.
  • The "Object Prior" Advantage: Generative retrieval naturally incorporates the model's internal knowledge about what attributes are likely for certain objects, which helps filter out physically impossible or highly unlikely combinations.

Results

  • Superior Zero-Shot Performance: On the VAW dataset, ArtVLM's generative retrieval achieved a mean rank of 56.0, significantly outperforming the contrastive version's 95.1 (lower is better).
  • Long-Tail Excellence: ArtVLM excels at recognizing rare attributes. In the "Tail" category of VAW, ArtVLM achieved 59.4% mAP, outperforming specialized state-of-the-art models like SCoNE (48.0%).
  • VGARank Success: In the new VGARank benchmark, generative retrieval consistently outperformed contrastive methods in both attribute recognition (given an object) and object recognition (given an attribute).

Limitations and Future Work

Despite its performance, generative retrieval is more computationally expensive than contrastive retrieval, requiring multiple autoregressive decoding steps. Additionally, the approach can be biased toward shorter sentences because total probability is a product of token probabilities.

Future work may extend this "meta-model" framework to more complex visual tasks, such as detecting relationships between multiple objects or generating more detailed, attribute-accurate image captions to improve the training of other generative models.

Summary updated

BibTeX
@inproceedings{zhu2024artvlm,
  author = {William Yicheng Zhu and Keren Ye and Junjie Ke and Jiahui Yu and Leonidas J. Guibas and Peyman Milanfar and Feng Yang},
  title = {{ArtVLM: Attribute Recognition Through Vision-Based Prefix Language Modeling}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73383-3\_8},
}
Figure