TransNFCM: Translation-Based Neural Fashion Compatibility Modeling

Xun Yang, Yunshan Ma, Lizi Liao, Meng Wang, Tat-Seng Chua

Abstract

Identifying mix-and-match relationships between fashion items is an urgent task in fashion e-commerce recommender systems. However, inferring complicated compatibility patterns in large datasets remains challenging. We propose TransNFCM (Translation-based Neural Fashion Compatibility Modeling), a framework that jointly optimizes fashion item embeddings and category-specific complementary relations in a unified space. By modeling compatibility as a vector translation between categories, we capture both specific and global notions of compatibility. Our deep fashion item encoder exploits both visual and textual features. Extensive experiments on real-world datasets demonstrate that TransNFCM significantly outperforms state-of-the-art methods.

Introduction

In fashion e-commerce, recommending "compatible" items (e.g., matching a blouse with the right pair of pants) is fundamentally different from finding "similar" items. Traditional recommender systems often rely on simple metric learning, which suffers from two major flaws:

  1. Category Unawareness: Standard metrics assume compatibility is a single, universal relationship, ignoring that the features making a shirt match pants differ from those matching a dress to shoes.
  2. Improper Similarity Transitivity: If a neutral top matches both a red skirt and green pants, simple similarity models may force the skirt and pants to be close in the embedding space, even if they clash. This is known as the "one-to-many" problem.

The TransNFCM Framework

TransNFCM treats fashion compatibility as a multi-relational translation problem. Inspired by knowledge graph embedding techniques like TransE, it models compatibility as a directed translation: Head Item + Relation $\approx$ Tail Item.

The TransNFCM architecture showing multimodal encoders and the unified compatibility space where category-specific relations are modeled as translations.

Key components include:

  • Multimodal Item Encoder: A two-channel encoder captures product essence. A V-Encoder (AlexNet) processes images, while a T-Encoder (Text CNN) processes titles and descriptions. These are concatenated into a unified vector.
  • Category-Specific Translation: The model learns specific relation vectors ($r_{c_x c_y}$) for every pair of complementary categories (e.g., Hoodies-to-Jeans).
  • Unified Compatibility Space: Items are mapped into a space where the distance function is $d(x + r_{c_x c_y}, y)$. This allows the model to preserve a "global" notion of compatibility while using the relation vector to highlight category-aware features.

Experimental Results

The model was evaluated on two large-scale public datasets from Polyvore: FashionVC (focusing on 30 top-bottom relations) and PolyvoreMaryland (covering 101 relations across tops, bottoms, shoes, and bags).

TransNFCM consistently outperformed state-of-the-art baselines like SiaNet, BPR, and CSN. On FashionVC, it achieved an AUC of 76.9% and a Hit@10 of 38.1%. On PolyvoreMaryland, it reached an AUC of 74.7% and a Hit@10 of 34.4%.

Ablation study results showing the impact of multimodal features (V+T) and the performance of global vs. category-specific notions of compatibility.

Key Insights

  • Compatibility $\neq$ Similarity: By using translation ($x + r \approx y$), the model can place incompatible items far apart even if they match the same item, as they are reached via different category-specific "bridges."
  • Multimodality: While visual features are dominant, textual descriptions provide "visually-invisible" attributes like style or material that significantly refine compatibility scores.
  • Global vs. Local: Ablation studies (Figure 6) confirm that using both the global notion and category-specific translation is essential. Removing the translation vector leads to a significant performance drop, particularly in "one-to-many" scenarios.

Conclusion and Future Work

TransNFCM represents a major step forward by treating fashion as a graph of relations. Future work will explore fine-grained matching rules (e.g., specific colors or patterns), personalization based on user style preferences, and modeling entire multi-item outfits beyond simple pairs.

Summary updated

Abstract

Identifying mix-and-match relationships between fashion items is an urgent task in a fashion e-commerce recommender system. It will significantly enhance user experience and satisfaction. However, due to the challenges of inferring the rich yet complicated set of compatibility patterns in a large e-commerce corpus of fashion items, this task is still underexplored. Inspired by the recent advances in multi-relational knowledge representation learning and deep neural networks, this paper proposes a novel Translation-based Neural Fashion Compatibility Modeling (TransNFCM) framework, which jointly optimizes fashion item embeddings and category-specific complementary relations in a unified space via an end-to-end learning manner. TransNFCM places items in a unified embedding space where a category-specific relation (category-comp-category) is modeled as a vector translation operating on the embeddings of compatible items from the corresponding categories. By this way, we not only capture the specific notion of compatibility conditioned on a specific pair of complementary categories, but also preserve the global notion of compatibility. We also design a deep fashion item encoder which exploits the complementary characteristic of visual and textual features to represent the fashion products. To the best of our knowledge, this is the first work that uses category-specific complementary relations to model the category-aware compatibility between items in a translation-based embedding space. Extensive experiments demonstrate the effectiveness of TransNFCM over the state-of-the-arts on two real-world datasets.
BibTeX
@inproceedings{yang2019transnfcm,
  author = {Xun Yang and Yunshan Ma and Lizi Liao and Meng Wang and Tat-Seng Chua},
  title = {{TransNFCM: Translation-Based Neural Fashion Compatibility Modeling}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.3301403},
}
Figure