Abstract
This paper introduces a Graph Neural Network (GNN) approach to predict fashion compatibility by leveraging "context"—the web of items already known to be compatible with a product. By moving beyond simple pairwise comparisons and considering an item's relational neighborhood, the proposed model achieves state-of-the-art results on major fashion benchmarks, demonstrating that style is better understood through connections than in isolation.
Introduction
Determining if a pair of shoes matches a particular shirt is a deceptively complex task. Traditional machine learning approaches typically treat this as a pairwise similarity problem: they extract visual features from two items and calculate a compatibility score. However, these methods are often "inflexible" because fashion is subjective and context-dependent. A shirt might match a pair of jeans in a casual setting but fail to match those same jeans if the desired context is a formal gala.
Existing models often ignore the broader relational information—the "style neighborhood"—that defines an item's aesthetic. The challenge addressed here is how to incorporate this relational context to make more robust, nuanced compatibility predictions.
Methodology
The authors frame fashion compatibility as a link prediction problem on a graph. The architecture consists of three primary stages:
- Graph Construction: Clothing items are represented as nodes, and edges represent known compatibility (e.g., items appearing together in the same outfit).
- The Encoder (GCN): The model uses a Graph Convolutional Network (GCN) to create item embeddings. Instead of just looking at an item's image, the GCN aggregates visual features (extracted via a ResNet-50) from the item’s neighbors. This produces a "context-aware" embedding that captures not just what the item looks like, but what kind of "company" it keeps.
- The Decoder: To predict if two items are compatible, the decoder takes their context-aware embeddings and computes a probability score using a symmetric logistic regression function based on the absolute difference between the vectors.
Training is conducted using a graph auto-encoder framework, minimizing cross-entropy loss between predicted compatibility and ground truth. A key technical detail is the use of a regularization technique where edges are randomly dropped during training, forcing the model to remain effective even when an item has very few known neighbors.
Datasets and Evaluation
The researchers evaluated their model on three diverse datasets:
- Polyvore: A crowd-sourced dataset of outfits, including "Original," "Resampled" (harder negative samples), and "Subset" versions.
- Fashion-Gen: A dataset of luxury items curated by professional designers, providing an "expert" ground truth for style.
- Amazon: A massive dataset used to test the model's ability to predict "also bought" and "bought together" relationships within Men's and Women's clothing categories.
Key Insights and Results
- Context as a Performance Multiplier: As the model is allowed to see more of an item's neighbors at test time (increasing $k$), accuracy climbs dramatically. On Polyvore, accuracy jumped from ~62% with no context ($k=0$) to nearly 97% with a 15-item neighborhood.
- Structural Knowledge: In cross-gender experiments on the Amazon dataset, the context-aware model proved much more robust than standard visual-only models. This suggests that the structure of compatibility is somewhat universal across domains, even if specific visual styles differ.
- State-of-the-Art Performance: The model outperformed previous leading methods, such as Bi-LSTMs and Siamese Networks, on the Polyvore Fill-In-The-Blank (FITB) task (96.9% accuracy) and Outfit Compatibility Prediction.
Conclusion
By conditioning embeddings on neighbors, this model can "shift" its representation of an item based on the outfit it belongs to, mimicking the way humans perceive fashion differently depending on the ensemble. While the model faces challenges with the "cold start" problem (items with no neighbors), its ability to leverage relational context represents a significant step forward in automated fashion recommendation.
Summary updated