Sherlock: Sparse Hierarchical Embeddings for Visually-Aware One-Class Collaborative Filtering

Ruining He, Chunbin Lin, Jianguo Wang, Julian McAuley

Abstract

Building successful recommender systems requires uncovering the underlying dimensions that describe item properties and user preferences. In visually-driven domains like fashion, modeling the visual appearance of items is critical but challenging due to the complexity of visual preferences and the scale of real-world data. We introduce Sherlock, a novel hierarchical embedding architecture that models visual dimensions across different product categories. By leveraging a product taxonomy, Sherlock captures both high-level global characteristics (e.g., colorfulness) and subtle, category-specific nuances (e.g., casualness) simultaneously, effectively addressing the cold-start problem in visually-aware recommendation.

Introduction

Traditional Collaborative Filtering (CF) methods often struggle with the "cold-start" problem, where new items lack interaction data. Visually-aware models like Visual Bayesian Personalized Ranking (VBPR) mitigate this by incorporating image features from Deep Convolutional Neural Networks (CNNs). However, VBPR typically employs a single global transformation for all items, assuming that visual traits like "formality" manifest identically across disparate categories such as watches and coats. Sherlock addresses this limitation by structuring visual embeddings hierarchically, allowing the model to learn category-specific visual semantics.

Methodology: Sparse Hierarchical Embeddings

The core of Sherlock is its Sparse Hierarchical Embedding architecture. Rather than a flat embedding space, the model distributes visual feature learning across a product's category tree.

The Sherlock architecture decomposes visual embeddings into segments corresponding to different levels of the product taxonomy.
  1. Feature Extraction: High-dimensional visual features (4096-D) are extracted from the FC7 layer of a pre-trained CNN.
  2. Hierarchical Stacking: An item's final visual embedding is formed by concatenating segments learned at different levels of the hierarchy. For example, the Root Node captures global visual dimensions applicable to all items (e.g., brightness), while Leaf Nodes capture fine-grained nuances specific to sub-categories (e.g., the difference between a running shoe and a loafer).
  3. Optimization: The model is trained using Bayesian Personalized Ranking (BPR), optimizing for a ranking that prioritizes items a user has interacted with over those they have not.

Experimental Setup

The model was evaluated on three large-scale Amazon datasets: Men’s Clothing (~1.1M users), Women’s Clothing (~1.5M users), and Full Clothing (~2.9M users). The taxonomy utilized included 10 second-level and 106 third-level categories. Performance was measured using the Area Under the ROC Curve (AUC) in both warm-start and cold-start scenarios.

Key Insights: Semantic Specialization

A primary finding is that visual dimensions exhibit different semantics depending on their level in the hierarchy. Top-level nodes tend to capture broad, "global" features, while bottom-level nodes specialize in "subtle" category-specific styles.

Visualization of learned dimensions: Top-level nodes capture global traits like darkness/brightness, while bottom-level nodes capture category-specific styles like formal vs. casual.

By sharing parameters at the root and parent levels, Sherlock achieves high expressive power with a reduced parameter count compared to training independent models for every sub-category. This sparsity prevents overfitting and allows the model to generalize better to new items.

Results and Discussion

Sherlock consistently outperformed state-of-the-art baselines, including VBPR and its variants. On the Full Clothing dataset, Sherlock showed a 4.2% to 5.7% improvement in AUC over VBPR. These gains were most pronounced in cold-start settings, where the hierarchical visual understanding effectively compensated for the absence of historical interaction data. Furthermore, the model successfully disentangles general "visual appeal" from personalized "visual taste," leading to more nuanced recommendations.

Conclusion

Sherlock demonstrates that a hierarchical approach to visual embeddings significantly enhances the performance of recommender systems in visually-rich domains. By aligning the model architecture with existing product taxonomies, Sherlock captures the multi-scale nature of visual preferences. Future work may explore dynamic dimension allocation across the hierarchy and the integration of other modalities like text descriptions into this sparse hierarchical framework.

Summary updated

BibTeX
@inproceedings{he2016sherlock,
  author = {Ruining He and Chunbin Lin and Jianguo Wang and Julian McAuley},
  title = {{Sherlock: Sparse Hierarchical Embeddings for Visually-Aware One-Class Collaborative Filtering}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2016},
  url = {https://openreview.net/forum?id=rJZcHEfdZH},
}
Figure