Learning the Compositional Visual Coherence for Complementary Recommendations

Zhi Li, Bo Wu, Qi Liu, Likang Wu, Hongke Zhao, Tao Mei

Introduction

In the realm of e-commerce, recommendation systems have evolved from simple "people who bought X also bought Y" logic to sophisticated models that understand item compatibility. However, fashion presents a unique challenge: true complementary recommendation requires more than just pairwise matching; it demands an understanding of compositional visual coherence. This paper introduces the Content Attentive Neural Network (CANN), a model designed to master the art of matching items within the context of an entire outfit.

The Challenge of Compositional Coherence

Traditional recommendation engines often focus on pairwise relations—determining if Item A goes with Item B. Yet, fashion is inherently compositional. A shirt might pair well with a specific skirt, but the addition of a jacket and shoes changes the visual dynamic of the entire collection.

Comparison of co-purchased, compatible, and compositional relations in fashion recommendation.

As illustrated in Figure 1, while co-purchased relations (a) and compatible relations (b) provide some signal, they often fail to capture the holistic "vibe" or compositional relation (c) that professional stylists consider. Coherence is multi-layered, involving both broad stylistic impressions and fine-grained details like color and texture.

The CANN Framework

To address these complexities, the authors propose CANN, which utilizes a dual-attention mechanism to capture visual harmony at different scales.

The architecture of Content Attentive Neural Networks (CANN), featuring Global and Focal Coherence Learning modules.

Global Coherence Learning (GCL)

The GCL module focuses on the "big picture." Using a pre-trained Inception-V3 model, it extracts global features from images and employs a multi-head attention mechanism. This allows the model to learn how every item in a potential outfit relates to every other item, capturing overarching styles such as "formal" or "bohemian."

Focal Coherence Learning (FCL)

To analyze specific details, the authors developed Semantic-Focal Content Extraction (SFCE). This module identifies key semantic regions (e.g., the lapel of a blazer or the strap of a bag) and extracts color and texture histograms. A hierarchical attention module then learns "focal coherence"—how these specific details harmonize across the collection.

Compositional Optimization

CANN is trained using a "Fill-In-The-Blank" (FITB) strategy. The model is presented with an incomplete outfit and must select the correct missing item from a pool of candidates. This approach forces the network to learn the underlying rules of visual compatibility rather than just memorizing co-occurrence patterns.

Experimental Evaluation

The model was rigorously tested on the Polyvore dataset, which contains over 90,000 professional outfits. The evaluation included two main tasks:

  1. FITB_Random: Selecting the correct item from a pool of random alternatives.
  2. FITB_Category: A more difficult task where alternatives are from the same category as the correct item (e.g., choosing the right black shoes among many black shoes).

CANN demonstrated a significant performance leap over state-of-the-art baselines, particularly in the challenging FITB_Category task.

Metric Bi-LSTM NGNN (SOTA) CANN (Ours)
Accuracy (FITB_Random) 83.6% 87.3% 90.7%
Accuracy (FITB_Category) 58.2% 57.3% 66.5%

Ablation studies further revealed that color-focal features are generally more influential than texture-focal features in determining compatibility, highlighting the importance of color harmony in human fashion perception.

Conclusion

CANN represents a significant step forward in fashion AI by moving beyond pairwise compatibility to holistic compositional coherence. By balancing global style with focal details like color and texture, the model provides recommendations that are not just functional, but stylistically sound. Future work will look toward integrating multimodal data, such as text descriptions, to further refine these visual synergies.

Summary updated

BibTeX
@inproceedings{li2020learning,
  author = {Zhi Li and Bo Wu and Qi Liu and Likang Wu and Hongke Zhao and Tao Mei},
  title = {{Learning the Compositional Visual Coherence for Complementary Recommendations}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.24963/ijcai.2020/489},
}
Figure