Masked Vision-language Transformer in Fashion

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

Abstract

Researchers have developed MVLT, the first end-to-end vision-language transformer specifically designed for the fashion domain. By introducing a novel Masked Image Reconstruction (MIR) task, the model learns to understand fine-grained clothing details—such as fabric texture and collar shapes—at the pixel level. This approach significantly outperforms previous state-of-the-art models in both retrieval and recognition tasks, addressing the limitations of general-purpose vision-language models in specialized e-commerce environments.

Introduction

General-purpose vision-language (VL) models, typically trained on broad datasets like MS-COCO, often struggle when applied to the nuanced world of fashion. The authors identify two primary bottlenecks in the current landscape:

  1. Insufficient Granularity: While identifying a "dog" or a "car" suffices for general computer vision, fashion requires distinguishing between subtle variations like "wool" versus "linen" or specific collar types. Coarse-grained semantics are insufficient for high-quality search and recommendation engines.
  2. Limited Transferability: Most existing models are "hybrid" systems that utilize pre-trained, frozen feature extractors (e.g., ResNet). Since these extractors were not trained on fashion-specific data, they often overlook the discriminative features critical to the industry.

Architecture and Methodology

MVLT moves away from clunky hybrid approaches toward a streamlined, end-to-end architecture. Instead of relying on a separate visual backbone, MVLT utilizes a Pyramid Vision Transformer (PVT). This allows the model to process raw image patches and linguistic tokens simultaneously across four hierarchical stages, capturing features at multiple scales.

The MVLT end-to-end pyramid architecture across four hierarchical stages, integrating MLM, ITM, and MIR tasks.

The model is trained on three simultaneous objectives:

  • Masked Language Modeling (MLM): Predicting missing words in product descriptions.
  • Image-Text Matching (ITM): Determining the alignment between a description and an image.
  • Masked Image Reconstruction (MIR): The core innovation of this work.

Masked Image Reconstruction (MIR)

MIR represents a paradigm shift from traditional classification-based masking. While previous models attempted to predict the category of a missing image patch, MVLT aims to reconstruct the actual pixels. This generative task forces the model to learn a deep, pixel-to-pixel understanding of texture, shape, and style—the "visual grammar" of fashion.

Comparison between traditional Masked Image Modeling (MIM) which predicts features, and the proposed Masked Image Reconstruction (MIR) which generates pixels.

The authors found that a masking ratio of 0.5 (50% of image patches) provided the optimal balance, challenging the model enough to learn meaningful representations without removing too much context.

Key Results and Insights

MVLT was benchmarked against Fashion-Gen 2018, a massive dataset of over 67,000 products. It demonstrated a significant leap over the previous state-of-the-art (SOTA) model, Kaleido-BERT:

  • Retrieval: In Text-to-Image Retrieval (TIR), MVLT improved the Rank@5 metric by 17.4% and the Rank@10 by 20.9%.
  • Recognition: For sub-category recognition, the model improved accuracy by 5.5% and the macro F-measure by nearly 0.2.
  • Efficiency: By eliminating the need for pre-extracted features, the end-to-end pipeline is more extensible and suitable for real-world web applications where speed is paramount.

Conclusion and Future Work

MVLT proves that pixel-level reconstruction is a powerful proxy for understanding complex visual domains like fashion. While highly effective, future work will focus on improving computational efficiency through network pruning and knowledge distillation to handle billion-level datasets. Additionally, the authors aim to evolve the model from patch reconstruction toward full-scale fashion synthesis, potentially integrating more complex generative decoders.

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