NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Visual Attributes

Vittorio Ferrari, Andrew Zisserman

In the mid-2000s, computer vision made massive strides in recognizing what an object was—a car, a cow, or a face. However, humans do not just see discrete categories; we perceive qualities. We see a red car, a striped shirt, or a round ball. This foundational 2007 paper by Vittorio Ferrari and Andrew Zisserman from the University of Oxford tackles the challenge of teaching machines to learn these "visual attributes" directly from the messy, unorganized world of web images.

The Challenge of Weak Supervision

Most object recognition research historically focused on discrete categories. However, attributes are often shared across these categories (e.g., the "stripiness" of a zebra and a shirt). Modeling attributes explicitly allows for better object description and "knowledge transfer"—learning about stripes on a zebra helps a model recognize stripes on a rug.

The core challenge addressed in this paper is weak supervision. Most training data does not come with pixel-perfect labels; it comes from noisy web searches where an image labeled "striped" might only feature a small striped tie in a corner, or might be mislabeled entirely. The authors sought to build a system that could analyze a noisy collection of "striped" and "not striped" images to automatically deduce the visual essence of "striped."

Methods: Modeling Segments and Relationships

To solve this, the researchers represent images as a collection of segments (blobs of uniform color or texture). They then build a probabilistic generative model that views an attribute as a specific pattern of these segments.

Examples of unary (e.g., red, round) and binary (e.g., stripes) visual attributes across different object categories.

The model categorizes attributes into two primary types:

  • Unary Attributes: These are defined by a single segment. For example, "red" is a segment with a specific color profile, while "round" is a segment with a specific geometric shape.
  • Binary Attributes: These are defined by pairs of segments. This distinction is crucial for complex patterns like stripes, which are defined by the relationship between two colors (alternation) and their geometry (parallelism, similar area).

To handle noisy web data, the model employs discriminative learning within a generative framework. Instead of just learning what positive images look like, it optimizes a likelihood ratio. It searches for features common in the positive set (e.g., "striped" images) but rare in the negative set. This prevents the model from accidentally learning spurious correlations, such as assuming "striped" means "having a white background" just because many product photos share that trait.

Datasets and Training in the Wild

The authors took a "wild" approach to data collection. They sourced training images directly from Google Image Search using queries like "red", "striped", and "polka dots." These sets were highly noisy, with 20-36% of the images being completely irrelevant to the target attribute.

For evaluation, they tested the models on diverse images from Yahoo, Google, and Flickr, alongside a negative set of 50 images from the Caltech-101 "Things" dataset to ensure the model wasn't simply firing on any complex object.

Key Insights and Results

The model demonstrated a remarkable ability to learn and localize attributes without bounding box annotations.

  • High Accuracy: The model achieved ROC equal-error rates above 90% for simple color attributes like red and yellow.
  • Generic Pattern Recognition: One of the most powerful features is the ability to learn "generic" patterns. The model learns that stripes are an "ABAB" color pattern. This allows it to recognize red-and-yellow stripes even if it was only trained on black-and-white stripes.
The model successfully learns complex patterns like polka dots on clothing despite noisy training data.
  • The Importance of Layout: For patterns like stripes, the "where" is as important as the "what." The model learns that stripes aren't just long rectangles; they are adjacent, parallel long rectangles of alternating colors. An ablation study showed that removing the "layout" or "geometry" components caused performance to plummet, proving that spatial relationships are the secret sauce of visual patterns.
  • Automatic Localization: Because the model is based on image segments, it can actually highlight the specific pixels that make up the dots or stripes, despite never receiving bounding boxes during training.

Limitations and Future Work

While groundbreaking, the approach has limitations. The model's performance is heavily reliant on the initial image segmentation algorithm; if segments are too messy or fail to align with attribute boundaries, the model struggles. Furthermore, the current implementation focuses on unary and binary relationships. Capturing more complex "n-ary" relationships (like the specific grid of a honeycomb) would require even more sophisticated geometric modeling. Finally, scaling the exhaustive search over appearance codebooks to thousands of possible colors and textures would require more optimized computational strategies.

Summary updated

BibTeX
@inproceedings{ferrari2007learning,
  author = {Vittorio Ferrari and Andrew Zisserman},
  title = {{Learning Visual Attributes}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2007},
}
Figure