Abstract
Attribute-based representations help machine learning models perform tasks based on human understandable concepts, allowing a closer human-machine collaboration. However, learning attributes that accurately reflect the content of an image is not always straightforward, as per-image ground truth attributes are often not available. We propose applying the Multiple Instance Learning (MIL) paradigm to attribute learning (AMIL) while only using class-level labels. We allow the model to under-predict the positive attributes, which may be missing in a particular image due to occlusions or unfavorable pose, but not to over-predict the negative ones, which are almost certainly not present. We evaluate it in the zero-shot learning (ZSL) setting, where training and test classes are disjoint, and show that this also allows to profit from knowledge about the semantic relatedness of attributes. In addition, we apply the MIL assumption to ZSL classification and propose MIL-DAP, an attribute-based zero-shot classification method, based on Direct Attribute Prediction (DAP), to evaluate attribute prediction methods when no image-level data is available for evaluation. Experiments on CUB-200-2011, SUN Attributes and AwA2 show improvements on attribute detection, attribute-based zero-shot classification and weakly supervised part localization.
Introduction
Attribute-based representations, such as "pointed beak" or "red legs," are considered a "holy grail" for human-AI collaboration because they provide a semantically meaningful bridge between raw pixels and high-level classification. However, training models to recognize these attributes is notoriously difficult due to label noise. Most large-scale datasets provide only class-level labels (e.g., "all Arctic Terns have red legs"). In practice, these attributes may be occluded by the environment or hidden by the animal's pose in any specific image. Standard training forces models to predict these attributes regardless of visual evidence, leading models to memorize class signatures rather than learning to detect actual visual features.
Attribute Multiple Instance Learning (AMIL)
To address this, we reframe attribute learning as a Multiple Instance Learning (MIL) problem. Instead of treating every image as a "hard" positive for every class-level attribute, we treat the dataset as a collection of "bags."
Asymmetric Loss
The core of the AMIL approach is an asymmetric treatment of label noise. We divide attributes into two categories based on class-level knowledge:
- Negative Bags: Classes that are known never to have the attribute. Here, we use a strict Binary Cross Entropy (BCE) loss. If the attribute is predicted, it is a definitive error.
- Positive Bags: Classes that can have the attribute. Here, we use a noise-robust loss (such as Generalized Cross Entropy or Bootstrapping). This allows the model to "under-predict" an attribute if the visual evidence is missing, treating the absence as expected noise rather than a training failure.
Leveraging Semantic Relatedness
Beyond the loss formulation, we introduce a Gram Loss ($\mathcal{L}_{\text{Gram}}$) to exploit the semantic relationships between attributes. If two attributes are semantically related (e.g., "red leg" and "yellow leg"), the model is encouraged to learn similar visual prototypes for them. This regularization helps the model learn more robust features and improves its ability to localize specific parts of an object, even without explicit bounding box annotations.
Experimental Results
We evaluated AMIL on three standard benchmarks: CUB-200-2011 (birds), SUN Attributes (scenes), and Animals with Attributes 2 (AwA2).
Key Findings
- Zero-Shot Learning (ZSL): On the CUB dataset, our approach (Bootstrap+MIL+G) improved ZSL accuracy to 41.52%, a significant increase over the 36.77% baseline.
- Part Localization: The model's ability to accurately "point" to specific attributes improved dramatically. For instance, the Percentage of Correctly Localized Parts (PCP) for the "leg" attribute reached 50.1%, compared to 36.2% for the baseline.
- Metric Validity: Our research suggests that standard class-level evaluation can be misleading. Models trained on perfect image-level labels often perform worse on class-level benchmarks because those benchmarks reward the memorization of class signatures rather than true attribute detection.
Conclusion
By embracing the inherent asymmetry of label noise in attribute learning, AMIL provides a more realistic and effective framework for training semantically meaningful models. While improvements were most pronounced in fine-grained datasets with clear visual attributes like CUB, the approach consistently outperformed standard training across various noise-robust loss functions. Future work will explore automatically extracting attribute relationships from text corpora to extend the benefits of Gram Loss to more diverse and subjective datasets.
Summary updated