CRAFT: Complementary Recommendations Using Adversarial Feature Transformer

Cong Phuoc Huynh, Arridhana Ciptadi, Ambrish Tyagi, Amit AgrawalarXiv 2018

TL;DR

CRAFT (Complementary Recommendation using Adversarial Feature Transform) is an unsupervised framework that learns to suggest items that "go together"—like a specific top for a pair of jeans—by modeling visual co-occurrences in real-world images. By training a generative transformer in feature space rather than pixel space, the system produces diverse, high-quality recommendations that fashion experts prefer over traditional similarity-based methods.

What Problem Does This Paper Address?

Traditional recommendation engines often rely on "collaborative filtering" (people who bought X also bought Y). While effective, this ignores the primary driver of fashion: visual compatibility.

Existing visual recommendation methods typically focus on finding similar items (e.g., "find me more blue jeans"). However, a complementary recommendation is fundamentally different; you don't want more jeans to go with your jeans—you want a shirt or shoes that look good with them. Supervised approaches to this problem require massive, manually labeled datasets of "good" outfits, which are expensive and subjective. CRAFT addresses this by learning style and compatibility in an unsupervised way, directly from images of people wearing outfits.

Methods

The authors introduce a GAN-inspired architecture that operates entirely within a latent feature space.

  1. Feature Extraction: They use a pre-trained Inception-v4 model to extract high-dimensional features from images of tops and bottoms. These are reduced to 128-dimensional vectors using PCA to avoid the "curse of dimensionality."
  2. Adversarial Training: The core is a two-player game:
  3. Conditional Feature Transformer ($T_\phi$): This takes a query item's feature (e.g., a pair of pants) and a random noise vector ($z$) as input. It attempts to "transform" these into a feature vector representing a complementary item (e.g., a top).
  4. Discriminator ($D_\theta$): This network tries to distinguish between "real" pairs (actual outfits from the dataset) and "fake" pairs (the query pants + the transformer's synthesized top feature).
  5. Recommendation Generation: During inference, the transformer generates several potential complementary feature vectors by varying the noise input. The system then performs a nearest-neighbor search in a catalog of real items to find the closest matches to these synthesized features.
Figure 2. Generating recommendations using the proposed CRAFT network.

By working in feature space rather than generating raw pixels, the model is much easier to train, avoids common GAN pitfalls like "mode collapse," and ensures the final recommendation is always a real, purchasable product.

Datasets

  • Training Set: 473,000 full-length outfit images. These were automatically processed using a semantic segmentation network (trained on the Human Parsing in the Wild dataset) to crop out the "upper-clothes" and "pants/skirt" regions.
  • Evaluation: A subset of 64 diverse query bottoms (ranging from common blue jeans to rare patterned skirts) was used for a user study.

Key Insights and Ideas

  • Co-occurrence as a Proxy for Compatibility: The central hypothesis is that the frequency with which items appear together in real-world photos is a strong indicator of their complementary relationship.
  • Diversity through Stochasticity: Because the transformer takes a random noise vector as input, it can generate a wide variety of "correct" answers for a single query. This prevents the system from just recommending the same white t-shirt for every pair of pants.
  • Manifold Generalization: Traditional nearest-neighbor methods (NN-Source) fail when a query item is rare because there aren't enough "similar" examples to draw from. CRAFT learns the underlying transformation between the "bottoms manifold" and the "tops manifold," allowing it to generalize even for unusual items.
Visualizing how the discriminator scores different tops for a given query bottom

Key Results

The authors conducted a study with four fashion specialists to evaluate the recommendations.

  • Expert Preference: CRAFT achieved a mean acceptance rate of 70.3%, significantly outperforming the NN-Source baseline (66.5%) and a Random baseline (60.2%).
  • Performance on Rare Items: The performance gap was most pronounced for "low-density" items (rare styles). While NN-Source performance degraded significantly on rare items, CRAFT remained consistent, demonstrating its superior ability to generalize style rules.
  • Incompatibility Learning: The authors found that items assigned the lowest scores by their discriminator were indeed visually jarring, suggesting the model successfully learned the concept of "clashing" styles.
Quantitative comparison of acceptance rates across different algorithms

Limitations and Future Work

  • Fixed Encoders: The current model uses a pre-trained, fixed feature encoder. The authors suggest that end-to-end training of domain-specific encoders could further improve performance.
  • Semi-Supervised Extension: While currently unsupervised, the framework could easily incorporate labeled data (e.g., "expert-curated outfits") to further refine its understanding of high-end fashion.
  • Broader Domains: The approach is general enough to be applied to other complementary domains, such as interior design (matching sofas with chairs) or electronics.

Summary updated

BibTeX
@misc{huynh2018craft,
  author = {Cong Phuoc Huynh and Arridhana Ciptadi and Ambrish Tyagi and Amit Agrawal},
  title = {{CRAFT: Complementary Recommendations Using Adversarial Feature Transformer}},
  year = {2018},
  eprint = {1804.10871},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1804.10871},
}

Loading related content...

Figure