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.
The PBCNet Framework
We propose a three-step pipeline to solve this problem:
- Object Detection: A YOLOv2-based detector isolates the primary fashion item, removing background noise.
- Embedding Learning: A ResNet34 backbone maps the isolated item into a vector space.
- 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.
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