Super-Class Guided Transformer for Zero-Shot Attribute Classification

Sehyung Kim, Chanhyeong Yang, Jihwan Park, Taehoon Song, Hyunwoo J. Kim

Abstract

Zero-shot attribute classification is essential for fine-grained scene understanding but faces significant hurdles in scalability and generalization. Traditional models often treat attributes as independent entities, failing to exploit shared semantic structures. We introduce SugaFormer (Super-class guided transFormer), a novel framework that organizes attributes into hierarchical "super-classes" (e.g., Color, Shape). By employing super-class guided queries and leveraging pre-trained Vision-Language Models (VLMs) for consistency regularization, SugaFormer achieves state-of-the-art results on the VAW and LSA benchmarks. Notably, it maintains computational efficiency even as the attribute space scales to thousands of categories, providing a robust solution for open-vocabulary attribute recognition.

Introduction

Identifying object attributes—such as a "red," "metallic" bus—is a fundamental task in computer vision. However, performing this in a zero-shot setting, where the model must recognize attributes not seen during training, is notoriously difficult. Existing state-of-the-art models typically rely on "class-wise queries," generating a unique search vector for every attribute. This approach suffers from two primary limitations:

  1. Scalability: Computational costs explode as the number of attributes grows into the thousands.
  2. Generalizability: Models fail to recognize that "seen" attributes (e.g., "red") and "unseen" attributes (e.g., "burgundy") share a common semantic backbone as "Colors."

SugaFormer addresses these issues by shifting the focus from individual attributes to hierarchical groups, as illustrated in the attribute tree structure.

Hierarchical tree structure in attributes, showing how specific traits are grouped under super-classes like Color, Material, and Shape.

Methodology

SugaFormer introduces several key components to improve zero-shot performance and efficiency:

Super-class Query Initialization (SQI)

Instead of using thousands of individual queries, SugaFormer utilizes a fixed number of queries based on super-classes. These queries are initialized using text embeddings of super-class names combined with visual features, allowing the model to focus on specific "semantic channels" (e.g., looking specifically for color information).

Multi-context Decoding (MD)

To capture subtle attributes, the model processes three distinct views: the global image context, a local object crop, and a foreground-masked version of the object.

Super-class guided Consistency Regularization (SCR)

During training, a frozen VLM (BLIP-2) acts as a teacher. The model aligns its internal features with VLM-generated descriptions. Crucially, the authors found that "super-class guided prompts" are far more effective than general prompts for this distillation process.

Comparison between general prompts and super-class guided prompts. Guided prompts provide specific semantic anchors (Color, Shape, Size) that help the VLM generate more accurate attribute descriptions.

Zero-shot Retrieval-based Score Enhancement (ZRSE)

At inference, the VLM’s general knowledge is used to refine predictions for novel attributes, serving as a sanity check to boost accuracy for unseen categories.

Experimental Results

SugaFormer was evaluated on three major benchmarks: VAW (620 attributes), LSA (9,000+ attributes), and OVAD (cross-dataset transfer).

  • State-of-the-Art Performance: On the VAW dataset, SugaFormer achieved an AP_novel of 60.59, a 13.5% relative improvement over previous methods.
  • Scalability: On the LSA dataset, SugaFormer was the only transformer-based model capable of handling over 9,000 attributes without exceeding GPU memory limits, thanks to its hierarchical query structure.
  • Generalization: In cross-dataset tests on OVAD, SugaFormer outperformed CLIP-based models across all attribute frequencies (head, medium, and tail).

Conclusion and Future Work

SugaFormer demonstrates that semantic anchoring through super-classes is a powerful tool for scaling zero-shot recognition. By reducing the query space and providing clear semantic guidance, the model achieves both efficiency and high accuracy. Future work will focus on automating the super-class mapping process—potentially using Large Language Models—and addressing "intra-class interference" where multiple attributes from the same super-class (e.g., a multi-colored object) compete for the same query.

Summary updated

BibTeX
@inproceedings{kim2025super,
  author = {Sehyung Kim and Chanhyeong Yang and Jihwan Park and Taehoon Song and Hyunwoo J. Kim},
  title = {{Super-Class Guided Transformer for Zero-Shot Attribute Classification}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  url = {https://openreview.net/forum?id=8mjWXetwCj},
}
Figure