A Tale of Color Variants: Representation and Self-Supervised Learning in Fashion E-Commerce

Ujjal Kr Dutta, Sandeep Repakula, Maulik Parmar, Abhinav Ravi

Abstract

Identifying color variants—products identical in design but differing in color—is a significant challenge in fashion e-commerce. While supervised learning with manual triplets is effective, it lacks scalability. This paper explores Self-Supervised Learning (SSL) as a solution, leveraging color jittering as a proxy for real-world color variants. We introduce PBCNet (Patch-Based Contrastive Net), a framework that employs deterministic slicing to capture stylistic features more effectively than standard random cropping. Our results show that PBCNet achieves performance comparable to supervised models, providing a scalable approach to fashion product identification.

Introduction

For fashion retailers, identifying color variants is essential for providing a seamless shopping experience. A color variant is a product that shares the exact same style and design as another but is presented in a different hue. Teaching a machine to recognize these similarities while ignoring color differences requires robust visual representation learning.

Defining the Color Variant Problem

The core task is to distinguish between products that are true color variants and those that are merely similar. This is typically framed as a triplet problem: given an "anchor" product, the model must identify a "positive" color variant and distinguish it from a "negative" sample that may have a similar color but a different style.

Illustration of the color variants identification problem, defining anchor, positive (color variant), and negative (non-variant) samples.

The PBCNet Framework

We propose a three-step pipeline to solve this problem:

  1. Object Detection: A YOLOv2-based detector isolates the primary fashion item, removing background noise.
  2. Embedding Learning: A ResNet34 backbone maps the isolated item into a vector space.
  3. Clustering: Agglomerative clustering groups these embeddings into sets of color variants.

Standard SSL methods often rely on random cropping, which can discard critical stylistic details like necklines or hemlines. PBCNet introduces deterministic slicing, dividing the detected object into four fixed patches (top, bottom, left, right). These patches are processed and sum-pooled, ensuring the model captures the structural essence of the garment.

Self-Supervised Learning and Color Jitter

The "aha moment" of this research is the realization that color jittering—a common augmentation in contrastive SSL—is a perfect synthetic proxy for identifying color variants. By training a model to be invariant to color jitter, it naturally learns to group real-world color variants together.

The contrastive self-supervised learning architecture used for training the embedding model without manual labels.

Results and Conclusion

PBCNet was tested against state-of-the-art SSL baselines (MoCo v2, BYOL, SimSiam) on large-scale datasets. It consistently outperformed these baselines, achieving a Color Group Accuracy (CGacc) of up to 0.85. This performance nearly matches that of fully supervised models, demonstrating that SSL, when combined with domain-specific architectural choices like deterministic slicing, can effectively solve complex identity problems in fashion e-commerce without the need for exhaustive manual labeling.

Summary updated

Abstract

In this paper, we address a crucial problem in fashion e-commerce (with respect to customer experience, as well as revenue): color variants identification, i.e., identifying fashion products that match exactly in their design (or style), but only to differ in their color. We propose a generic framework, that leverages deep visual Representation Learning at its heart, to address this problem for our fashion e-commerce platform. Our framework could be trained with supervisory signals in the form of triplets, that are obtained manually. However, it is infeasible to obtain manual annotations for the entire huge collection of data usually present in fashion e-commerce platforms, such as ours, while capturing all the difficult corner cases. But, to our rescue, interestingly we observed that this crucial problem in fashion e-commerce could also be solved by simple color jitter based image augmentation, that recently became widely popular in the contrastive Self-Supervised Learning (SSL) literature, that seeks to learn visual representations without using manual labels. This naturally led to a question in our mind: Could we leverage SSL in our use-case, and still obtain comparable performance to our supervised framework? The answer is, Yes! because, color variant fashion objects are nothing but manifestations of a style, in different colors, and a model trained to be invariant to the color (with, or without supervision), should be able to recognize this! This is what the paper further demonstrates, both qualitatively, and quantitatively, while evaluating a couple of state-of-the-art SSL techniques, and also proposing a novel method.
BibTeX
@inproceedings{dutta2022tale,
  author = {Ujjal Kr Dutta and Sandeep Repakula and Maulik Parmar and Abhinav Ravi},
  title = {{A Tale of Color Variants: Representation and Self-Supervised Learning in Fashion E-Commerce}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  url = {https://openreview.net/forum?id=1CMRqd9PlUh},
}
Figure