Learning Scalable Discriminative Dictionary with Sample Relatedness

Jiashi Feng, Stefanie Jegelka, Shuicheng Yan, Trevor Darrell

Abstract

This paper introduces a dictionary learning framework that automatically discovers discriminative, mid-level binary features (attributes) from image data without requiring manual labels. By leveraging the Indian Buffet Process to adapt dictionary size to data complexity and incorporating "sample relatedness" to encourage similar objects to share features, the method significantly improves performance in object recognition and image retrieval, particularly when training data is scarce.

The Problem with Hand-Crafted Attributes

In computer vision, attributes such as furry, striped, or four-legged serve as a bridge between low-level pixels and high-level object categories. Traditionally, these attributes are manually pre-defined by experts. However, this approach suffers from three major flaws:

  1. Scalability: Manually annotating thousands of images with dozens of attributes is expensive and does not scale.
  2. Discriminativeness: Human-defined attributes may not be the most effective for distinguishing between specific, similar classes (e.g., "four-legged" does not help distinguish a dog from a cat).
  3. Generalization: Fixed attribute sets often fail to adapt to the specific complexities of new datasets or novel object categories.

The authors propose moving away from "hand-crafted" attributes toward a system that learns a scalable, discriminative dictionary of binary features directly from the data.

The AdaptiveDictionary Framework

The proposed framework, AdaptiveDictionary, combines three key components to learn these latent attributes:

  • Non-parametric Bayesian Priors (IBP): Using an asymptotic limit of the Indian Buffet Process (IBP), the model treats the dictionary as having an "infinite" potential size. The actual number of active features is determined automatically based on the complexity of the training data.
  • Joint Generative-Discriminative Learning: The model simultaneously learns features that reconstruct the image (generative) and features that are useful for classification (discriminative) by optimizing a joint objective function.
  • Sample Relatedness Regularization: This core innovation incorporates a term that encourages "related" samples (e.g., different breeds of dogs) to have similar binary feature representations. Relatedness is derived from semantic hierarchies like WordNet, allowing the model to transfer knowledge from well-represented classes to those with very few training examples.
The AdaptiveDictionary framework leverages sample relatedness (e.g., Pug vs. Samoyed) to learn shared discriminative attributes.

Key Insights and Interpretability

One of the most significant advantages of this approach is the discovery of an "infinite" dictionary. Unlike standard dictionary learning, which requires a fixed size, this model grows with the data. For the Animals with Attributes (AwA) dataset, it automatically determined that 204 basis features were optimal.

Furthermore, by forcing related classes to share features, the model discovers "latent attributes" that capture the essence of a category group. Qualitative results show that these learned basis features actually correspond to visual concepts like "furry textures" or "dotted/striped patterns," proving the model captures meaningful mid-level information without explicit human labeling.

Qualitative results showing that learned basis features correspond to consistent visual concepts like textures and patterns across different categories.

Experimental Results

The framework was evaluated on major benchmarks including AwA, ILSVRC2010 (ImageNet), and PASCAL VOC2007. Key findings include:

  • Superior Accuracy: On the AwA dataset, the proposed method consistently outperformed baselines using manual attributes, random attributes, and other state-of-the-art discriminative learning methods.
  • Robustness to Small Data: The impact of sample relatedness was most visible with small training sets. When using only 15 images per category, incorporating relatedness improved accuracy by approximately 6%.
  • Large-Scale Performance: On the massive ILSVRC2010 dataset, the method outperformed the best-performing baseline by 4–7% in multi-class classification, even while using fewer total attributes.
  • Efficiency: Because the learned features are binary, they are extremely efficient for large-scale image retrieval, allowing for fast similarity calculations.

Conclusion

By automating the discovery of discriminative attributes and leveraging semantic relationships between classes, the AdaptiveDictionary framework provides a scalable alternative to manual attribute labeling. While the current model assumes Gaussian distributions for image features, future work may integrate exponential family distributions and explore deeper architectures to further enhance performance and efficiency.

Summary updated

BibTeX
@inproceedings{feng2014learning,
  author = {Jiashi Feng and Stefanie Jegelka and Shuicheng Yan and Trevor Darrell},
  title = {{Learning Scalable Discriminative Dictionary with Sample Relatedness}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2014},
  doi = {10.1109/cvpr.2014.213},
}
Figure