Masked Vision-Language Transformer in Fashion

Ge-Peng Ji, Mingchen Zhuge, Dehong Gao, Deng-Ping Fan, Christos Sakaridis, Luc Van Gool · DOI

Abstract

The fashion domain requires fine-grained visual-semantic understanding that general-purpose vision-language (VL) models often fail to provide. We present the Masked Vision-Language Transformer (MVLT), the first end-to-end VL framework specifically optimized for fashion. MVLT replaces traditional frozen visual backbones with a Multi-Modal Pyramid Vision Transformer (PVT) and introduces a pixel-level Masked Image Reconstruction (MIR) task. Our approach achieves a significant 17.4% improvement in text-to-image retrieval on the Fashion-Gen benchmark, demonstrating the efficacy of end-to-end training and high-granularity supervision in specialized domains.

Introduction

General-purpose VL models, such as CLIP or early BERT-based architectures, encounter two primary obstacles in fashion applications: insufficient granularity and the "frozen backbone" bottleneck. In fashion, distinguishing between subtle attributes like fabric types (e.g., wool vs. linen) or collar styles (e.g., crewneck vs. V-neck) is critical. However, most existing models rely on pre-trained, frozen visual extractors like ResNet that are not updated during VL pre-training. This prevents the model from adapting to the specific visual nuances of clothing, limiting its transferability and performance.

Comparison of MVLT with previous fashion VL models. MVLT employs an end-to-end Multi-Modal PVT, avoiding the limitations of frozen backbones seen in FashionBERT and Kaleido-BERT.

Methodology

MVLT addresses these challenges through an end-to-end architecture centered on a Multi-Modal Pyramid Vision Transformer (PVT). Unlike standard transformers with fixed resolutions, the PVT extracts hierarchical features at multiple scales, which is essential for capturing both global garment structure and fine-grained textures.

Pre-training Objectives

The model is trained using three primary objectives:

  1. Masked Image Reconstruction (MIR): This is the core innovation of MVLT. While standard models predict feature-level semantics for masked regions, MIR requires the model to reconstruct the actual pixels of masked patches using a U-Net decoder. This forces the model to learn high-frequency details like fabric texture and geometric patterns.
  2. Masked Language Modeling (MLM): The model predicts missing tokens in product descriptions using both textual and visual context.
  3. Image-Text Matching (ITM): A binary task to determine if an image and its description are correctly paired.
Contrast between traditional Masked Image Modeling (MIM) and the proposed Masked Image Reconstruction (MIR). MIR focuses on pixel-level reconstruction to capture fine-grained fashion details.

Experimental Results

We evaluated MVLT primarily on the Fashion-Gen 2018 dataset, which contains over 260,000 high-resolution image-text pairs. MVLT significantly outperformed the previous state-of-the-art, Kaleido-BERT, across several metrics:

  • Retrieval: In Text-to-Image Retrieval (TIR), the Rank@5 score improved by 17.4%, rising from 60.6% to 78.0%.
  • Recognition: Main-category recognition accuracy reached 98.26%, a 3.19% improvement over previous models.
  • Zero-Shot Performance: MVLT demonstrated superior zero-shot capabilities compared to general models like CLIP and ViLBERT on fashion-specific retrieval tasks.

Qualitatively, the MIR task allows the model to "hallucinate" missing clothing parts (e.g., completing a sleeve or a floral pattern) in a way that is semantically consistent with the text description. This confirms that the model has developed a deep understanding of fashion-specific visual-semantic relationships.

Conclusion

MVLT demonstrates that end-to-end training and pixel-level reconstruction are vital for specialized domains like fashion. By allowing the vision backbone to adapt to domain-specific nuances, MVLT overcomes the limitations of general-purpose models. Future work will explore scaling to larger datasets and applying the framework to complex generative tasks like virtual try-on or automated fashion design.

Summary updated

BibTeX
@article{ji2023masked,
  author = {Ge-Peng Ji and Mingchen Zhuge and Dehong Gao and Deng-Ping Fan and Christos Sakaridis and Luc Van Gool},
  title = {{Masked Vision-Language Transformer in Fashion}},
  journal = {Int. J. Autom. Comput.},
  year = {2023},
  doi = {10.1007/s11633-022-1394-4},
}
Figure