VICTOR: Visual Incompatibility Detection with Transformers and Fashion-specific contrastive pre-training

Stefanos-Iordanis Papadopoulos, Christos Koutlis, Symeon Papadopoulos, Ioannis KompatsiarisarXiv 2022

TL;DR

Instead of treating outfit compatibility as a simple yes/no binary choice, this paper introduces a multi-task Transformer model (VICTOR) that scores overall outfit compatibility via regression and pinpoints specific mismatching items. By leveraging fashion-specific contrastive language-image pre-training (FLIP), the architecture achieves state-of-the-art results while slashing computational costs (FLOPs) by 88% compared to traditional end-to-end networks.

What Problem Does This Paper Address?

Most fashion recommendation systems treat outfit compatibility as a binary classification task: an outfit is either fully compatible or completely incompatible. While this works fine for generating automated recommendations, it falls short for "Outfit Maker" applications where users mix and match items themselves. If a user creates a look that doesn't quite work, a simple "incompatible" label isn't helpful—they need to know which specific item is ruining the aesthetic (e.g., a clashing pattern or mismatched style).

Furthermore, existing high-performing models rely on resource-heavy end-to-end (E2E) fine-tuning of massive computer vision backbones. This makes them computationally impractical for real-world deployment or rapid hyperparameter experimentation. The authors aim to bridge this gap by creating a model that can identify specific mismatching items efficiently.

Methods

The authors introduce a two-stage framework consisting of domain-specific feature extraction followed by a multi-task Transformer decoder.

  1. Fashion-Specific Contrastive Language-Image Pre-training (FLIP): Instead of relying on generic ImageNet features or expensive E2E training, the authors pre-train computer vision backbones (like ResNet18, EfficientNetV2, MLP-Mixer, and ViT) using a contrastive approach inspired by CLIP. By training on fashion-specific image-text pairs, the visual encoder learns fine-grained fashion attributes (style, texture, color) at a fraction of the downstream training cost.
Figure 2: Workflow of fashion language-image pre-training (FLIP). FLIP consists of a visual and a textual encoder that are trained contrastively to predict the correct image-text pair which are placed in the main diagonal. Images and texts are selected with in-batch sampling.
  1. Visual InCompatibility TransfORmer (VICTOR): Outfits are inherently unordered sets rather than sequential data. VICTOR leverages a Transformer decoder without positional encodings to ensure the model's predictions are permutation-invariant.

VICTOR appends a learnable regression token (<REG>) to the sequence of garment embeddings. The output of this token is used to predict the overall outfit compatibility score ($Y_{OC_r}$) via a Mean Squared Error (MSE) loss. Simultaneously, the outputs of the individual garment tokens are used for Mismatching Item Detection (MID) via a Binary Cross-Entropy (BCE) loss.

Figure 1: Workflow of the VICTOR architecture.

Datasets

  • Polyvore & Polyvore-Disjoint: The standard benchmark datasets for fashion compatibility, containing over 68,000 outfits with images, product names, descriptions, and category tags.
  • Polyvore-MISFITs (New): Because existing datasets only label outfits as fully compatible or fully incompatible, the authors introduced a new benchmark. They generated partially mismatching outfits by taking compatible outfits and randomly replacing a subset of garments ($1 \le r \le n-2$) with "hard negatives"—items from the exact same category but from different outfits. This forces the model to look at subtle stylistic cohesion rather than simple category mismatches (like two pairs of shoes in one outfit).

Key Insights and Ideas

  • Multi-Task Synergy: One of the most compelling findings is that training the model to simultaneously predict overall compatibility ($OC_r$) and detect specific mismatching items ($MID$) yields better performance than training separate models for each individual task. Addressing these two closely related phenomena forces the network to learn deeper structural relationships between garments.
  • The Power of Unordered Sets: By removing positional encodings from the Transformer, the model naturally treats an outfit as a cohesive collection where the relationship between a hat and shoes is evaluated identically, regardless of the order they are fed into the network.
  • FLIP as an Efficiency Sweet Spot: Domain-specific contrastive pre-training allows features to be extracted once and reused across multiple downstream experiments (like tuning the loss weight $\alpha$), eliminating the need to backpropagate through massive vision backbones during outfit training.

Key Results

  • Massive Efficiency Gains: VICTOR with FLIP reduces instance-wise floating-point operations (FLOPs) by an average of 88% compared to conventional end-to-end training methods. When accounting for feature reusability across multiple experiments, total study-wise operations dropped by up to 98%.
  • State-of-the-Art Performance: Despite the massive reduction in compute, the multi-modal version of VICTOR (Image + Text) set a new state-of-the-art performance on the challenging Polyvore-Disjoint dataset, achieving an AUC of 0.90 (using a ViT B/32 backbone).
  • Qualitative Success: In inference testing, the model successfully identified complex stylistic mismatches, such as spotting when a casual leopard-print legging or a colorful Aztec jacket disrupted an otherwise monochromatic or minimalist outfit.

Limitations and Future Work

  • Random Sampling Quirks: The automated generation of the Polyvore-MISFITs dataset relies on random replacement within categories. By pure chance, a randomly selected replacement item might actually match the outfit, leading to noisy ground-truth labels.
  • Clean Background Bias: The model was trained on Polyvore images, which feature isolated garments against clean, white backgrounds. Performance might degrade when applied to "in-the-wild" images where clothes are worn by people in complex real-world environments.
  • Lack of Personalization: The model evaluates compatibility based on a global consensus of stylist data, ignoring individual user preferences, subcultures, or regional fashion trends. The authors suggest integrating personalization mechanisms as a vital next step.

Summary updated

BibTeX
@misc{papadopoulos2022victor,
  author = {Stefanos-Iordanis Papadopoulos and Christos Koutlis and Symeon Papadopoulos and Ioannis Kompatsiaris},
  title = {{VICTOR: Visual Incompatibility Detection with Transformers and Fashion-specific contrastive pre-training}},
  year = {2022},
  eprint = {2207.13458},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.13458},
}
Figure