Abstract: Attributes possess appealing properties and benefit many computer vision problems, such as object recognition, learning with humans in the loop, and image retrieval. Whereas the existing work mainly pursues utilizing attributes for various computer vision problems, we contend that the most basic problem—how to accurately and robustly detect attributes from images—has been left under-explored. Especially, the existing work rarely explicitly tackles the need that attribute detectors should generalize well across different categories, including those previously unseen. Noting that this is analogous to the objective of multi-source domain generalization, if we treat each category as a domain, we provide a novel perspective to attribute detection and propose to gear the techniques in multi-source domain generalization for the purpose of learning cross-category generalizable attribute detectors. We validate our understanding and approach with extensive experiments on four challenging datasets and three different problems.
The Challenge of Attribute Generalization
While visual attributes like "furry," "striped," or "four-legged" are widely used in computer vision for tasks like zero-shot learning and image search, the most basic step—actually detecting these attributes in an image—remains surprisingly difficult.
The core challenge is generalization. An attribute detector for "four-legged" should ideally work on a giant panda even if it was only trained on images of horses and cows. However, most existing methods use features originally designed for object recognition. These features are optimized to find the boundaries between categories (e.g., what makes a zebra different from an elephant). Attributes, conversely, are often shared across those boundaries. As shown in Figure 1, attribute concepts are often orthogonal to the object categories themselves. To detect attributes accurately, we need to explicitly "break" these class boundaries and find features that transcend specific categories.
Attributes as a Domain Generalization Problem
The authors propose a novel perspective: treating each object category as a distinct "domain." This reframes attribute detection as a multi-source domain generalization problem. The goal is to find a feature transformation that eliminates the "mismatches" between these categories, allowing the model to focus on universal signals rather than species-specific noise.
Methodology: KDICA
The researchers developed Kernel-alignment Domain-Invariant Component Analysis (KDICA) to address this. Building upon Unsupervised Domain-Invariant Component Analysis (UDICA), which aims to minimize the distributional variance between different domains, KDICA introduces Centered Kernel Alignment. This technique ensures the learned features align with the actual attribute labels provided in the training data. The result is a feature representation that is both category-invariant and attribute-discriminative.
Experimental Results
The approach was validated on four diverse benchmarks: Animal with Attributes (AWA), Caltech-UCSD Birds 2011 (CUB), aPascal-aYahoo, and the UCF101 video dataset. The proposed KDICA method consistently outperformed state-of-the-art baselines:
- Attribute Prediction: On the AWA dataset, KDICA achieved an average Area Under Curve (AUC) of 84.4%, compared to 78.9% for the popular Direct Attribute Prediction (DAP) model.
- Zero-Shot Learning: This is where the method truly shined. On AWA, KDICA reached 73.8% accuracy, a massive jump over DAP’s 58.9%.
- Image Retrieval: For complex queries involving multiple attributes, KDICA improved retrieval performance (AUC) from 76.1% to 79.4%.
Insights and Limitations
A key finding is the "magnification effect": improving the quality of basic attribute detectors leads to even larger gains in downstream tasks like zero-shot learning. This suggests that the reliability of underlying attribute predictions is currently the primary bottleneck for high-level vision tasks.
However, the method has limitations. Qualitative analysis showed that KDICA struggles when attributes are shared by visually very similar categories (like "swim" for various marine mammals). In these cases, there isn't enough "category noise" to filter out, meaning the domain generalization perspective offers less of an advantage. Additionally, while efficient, kernel-based methods can face scaling challenges in extremely large-scale data scenarios.
Summary updated