TL;DR
Standard self-supervised learning (SSL) encourages color and texture invariance to identify object shapes, which inadvertently harms downstream tasks like fashion compatibility and retrieval. This paper introduces S-VAL (Self-supervised Tasks for Visual Attribute Learning), an unsupervised framework that forces models to discard high-level shape cues and instead learn discriminative color and texture features. Despite using zero labels, S-VAL outperforms prior SSL baselines by 9.5–16% on fashion benchmarks and even rivals supervised models.
What Problem Does This Paper Address?
In standard computer vision tasks like ImageNet object classification, representations need to be shape-sensitive but color/texture-invariant—a black dog and a white dog belong to the same category. Modern SSL methods (e.g., contrastive learning with heavy color jittering) explicitly amplify this bias.
However, domains like fashion compatibility require the exact opposite: shape-invariant but color- and texture-sensitive representations. In an outfit, completely different garment categories (e.g., a black shirt and black pants) should embed closely because they complement each other, while items of the exact same category but clashing styles should not. Applying standard SSL methods directly to fashion tasks degrades performance because they cluster items purely by shape/category rather than visual attributes.
Methods
The authors propose S-VAL, combining three self-supervised pretext tasks over a ResNet-50 backbone:
- RGB Color Histogram Prediction:
- Instead of standard pixel reconstruction, the network predicts the normalized color histogram (10 bins per channel) for the input image using KL-divergence loss ($\mathcal{L}_{rgb}$).
- Color histograms are naturally orderless representations: they capture dominant colors, contrast, and brightness without encoding spatial shape layout.
- Shapeless Local Patch Discrimination (SLPD):
- Standard Instance Discrimination (ID) takes large crops ($r \in [0.2, 1.0]$), which retain object shape.
- SLPD forces crops to tiny ratios ($r \in [0.05, 0.15]$). These patches strip away global geometry, forcing the contrastive loss ($\mathcal{L}_{SLPD}$) via a memory bank to differentiate items purely on fine-grained textons and local color palettes.
- Texture Discrimination (TD):
- Captures global textures across the entire image using a Gram matrix (bilinear feature representation $G_i(j, k) = g_i(j)g_i(k)$).
- A separate memory bank optimizes a contrastive loss ($\mathcal{L}_{TD}$) over these Gram matrices to pull items with similar overall texture distributions together.
The model optimizes a joint objective: $$\hat{\theta} = \lambda_{rgb}\mathcal{L}_{rgb} + \lambda_{SLPD}\mathcal{L}_{SLPD} + \lambda_{TD}\mathcal{L}_{TD}$$
Datasets
- Polyvore Outfits: 53,306 training outfits (204K images), tested on 10K outfits (47K images) for Compatibility AUC and Fill-In-The-Blank (FITB) accuracy.
- Polyvore-D: A harder disjoint split (71K images) where items in the test outfits never appear in the training outfits.
- Capsule Wardrobe: 15K compatibility questions over 6K images, used purely as a transfer test set.
- Fashion-Gen: 260K luxury fashion item images, used to train representations that are then evaluated on Polyvore.
- DeepFashion (In-Shop Clothes Retrieval): 52K images across 8K clothing items, evaluated on Recall@$k$.
Key Insights and Ideas
- SSL is not one-size-fits-all: Augmentation strategies that supercharge object detection (such as aggressive color jittering and grayscale conversion) actively degrade performance on visual attribute tasks. Removing color distortion from baselines like Local Aggregation immediately boosted Compatibility AUC from 0.56 to 0.74.
- Inverse relationship between category recognition and compatibility: As patch size increases during training, category classification accuracy goes up, while fashion compatibility performance drops sharply.
- Shape-invariance via tiny patches: Restricting contrastive learning to tiny patches ($5\text{–}15\%$ image area) effectively prevents the encoder from "cheating" by recognizing the collar of a shirt or the waistband of pants.
Key Results
- Polyvore Outfits Compatibility:
- S-VAL achieves 0.84 Compatibility AUC and 55.8% FITB accuracy, beating the best unsupervised baseline (Local Aggregation w/o color distortion at 0.74 AUC / 46.3% FITB) by ~10 points.
- S-VAL outperforms supervised baselines like Bi-LSTM (0.65 AUC / 39.7% FITB) and SiameseNet (0.81 AUC / 52.9% FITB) without using any outfit annotations.
- Cross-Dataset Transfer:
- Training on Fashion-Gen and evaluating zero-shot on Polyvore yields 0.81 AUC / 53.3% FITB, compared to 0.73 AUC / 46.5% for Local Aggregation.
- In-Shop Retrieval (DeepFashion):
- S-VAL (SLPD + TD) achieves 46.5% Recall@1, vastly outperforming ImageNet pretraining (16.8%) and unsupervised Instance Discrimination (30.0%). Notably, RGB histogram prediction hurts retrieval because some shape awareness is beneficial when retrieving identical garments.
Limitations and Future Work
- Compatibility Heuristic: The pretext design assumes items with similar colors/textures are compatible. While frequently true in practice, human fashion often relies on intentional contrast, color blocking, and complementary cross-category styling rules that this framework does not explicitly model.
- Agnostic to Garment Categories: Completely stripping away category context can prevent the model from learning category-specific compatibility rules (e.g., shoe style pairing with coat style).
- Future Directions: Adapting SSL for other non-object-centric downstream domains (e.g., medical pathology, materials classification) and incorporating multi-modal signals without requiring hand-curated outfits.
Summary updated