Kaleido-BERT: Vision-Language Pre-training on Fashion Domain

Mingchen Zhuge, Dehong Gao, Deng-Ping Fan, Linbo Jin, Ben Chen, Haoming Zhou, Minghui Qiu, Ling Shao

Introduction

General-purpose Vision-Language (VL) models, such as UNITER or VL-BERT, have demonstrated impressive performance on broad datasets like MS-COCO. However, these models often struggle with the specialized requirements of the fashion e-commerce domain. In fashion, the distinction between subtle attributes—such as fabric type, sleeve length, or pattern—is paramount. General models typically suffer from two primary issues: a granularity gap, where fixed-size grids or object detection boxes miss fine-grained textures, and a semantic gap, where random masking fails to establish strong links between specific fashion terminology and visual features.

Methodology

Kaleido-BERT addresses these gaps through a novel architecture designed to capture multi-scale details and enforce semantic alignment.

Overview of the Kaleido-BERT framework, illustrating the flow from patch generation to alignment-guided masking and pre-training tasks.

Kaleido Patch Generator (KPG)

To overcome the granularity gap, the Kaleido Patch Generator (KPG) produces 55 patches across five different scales (from 1x1 to 5x5). This "kaleido" strategy ensures the model captures both global silhouettes and local textures. Additionally, a Saliency Detection (SOD) network is employed to focus the model's attention on the product itself, effectively filtering out irrelevant background noise.

Attention-based Alignment Generator (AAG)

Before the primary pre-training phase, a simpler image-captioning model (SAT) is used to generate a "rough draft" of cross-modal alignments. This Attention-based Alignment Generator (AAG) identifies which words in a fashion caption likely correspond to specific image patches.

Alignment Guided Masking (AGM)

The core innovation of Kaleido-BERT is Alignment Guided Masking (AGM). Unlike standard BERT-style models that mask tokens randomly, AGM prioritizes masking pairs of words and patches that the AAG has identified as related. For instance, if the word "collar" is aligned with a specific visual patch, masking one forces the model to rely on the other to reconstruct the missing information. This strategy explicitly "forces" the model to learn fine-grained cross-modal connections.

Pre-training Tasks

The model is supervised via Aligned Kaleido Patch Modeling (AKPM), which includes five self-supervised sub-tasks designed to build a deep understanding of fashion imagery:

  1. Rotation: Predicting patch orientation.
  2. Jigsaw: Solving spatial puzzles with 2x2 patches.
  3. Camouflage: Identifying patches swapped from different products.
  4. Grey-to-Color: Reconstructing color from grayscale inputs.
  5. Blank-to-Color: Reconstructing patches from zeroed-out inputs using context.

Experiments and Results

Kaleido-BERT was evaluated on the Fashion-Gen benchmark, which contains over 260,000 high-resolution image-text pairs. The model achieved new State-of-the-Art (SOTA) results across several downstream tasks:

  • Image-Text Retrieval: Improved Rank@1 by 4.03% (ITR) and 7.13% (TIR) over previous benchmarks.
  • Category Recognition: Achieved 95.07% accuracy, a 3.28% improvement.
  • Fashion Captioning: Increased the Bleu4 score by 1.2 points.

Qualitative analysis reveals that Kaleido-BERT is significantly better at localizing specific attributes (e.g., "v-neck" or "faux fur") within an image compared to general-purpose models.

Conclusion

Kaleido-BERT demonstrates that domain-specific strategies—specifically multi-scale patch generation and guided masking—are essential for mastering the nuances of fashion e-commerce. By bridging the granularity and semantic gaps, the model provides a robust framework for high-precision fashion search and recognition. Future work may explore applying this "kaleido" approach to other detail-oriented domains such as medical imaging.

Summary updated

BibTeX
@inproceedings{zhuge2021kaleido,
  author = {Mingchen Zhuge and Dehong Gao and Deng-Ping Fan and Linbo Jin and Ben Chen and Haoming Zhou and Minghui Qiu and Ling Shao},
  title = {{Kaleido-BERT: Vision-Language Pre-training on Fashion Domain}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.01246},
}
Figure