ITEm: Unsupervised Image-Text Embedding Learning for eCommerce

Baohao Liao, Michael Kozielski, Sanjika Hewavitharana, Jiangbo Yuan, Shahram Khadivi, Tomer Lancewicki · DOI

Introduction

In eCommerce, products are characterized by a combination of visual attributes and textual descriptions. While multi-modal models aim to leverage both, they often suffer from "text-dominance," where the model relies excessively on information-dense titles (containing brands, models, and categories) while neglecting visual cues. This imbalance leads to failures in distinguishing products with similar titles but different visual states, such as a new versus a damaged item. Researchers at eBay have introduced ITEm (Image-Text Embedding model), an unsupervised approach designed to learn fine-grained embeddings by forcing the model to integrate information from both modalities more effectively.

Methodology: The ITEm Architecture

ITEm utilizes a single-stream transformer architecture, similar to BERT, where text tokens and raw image patches are processed jointly from the initial layers. This differs from dual-stream models like CLIP, which use separate encoders.

The core innovation of ITEm lies in its unsupervised pre-training objectives. Beyond standard tasks like Masked Language Modeling (MLM) and Image-Text Matching (ITM), the authors introduce two novel "Global Information" tasks:

  1. GMLM (Global Masked Language Modeling): The model predicts a masked word using only the global [CLS] token and the word's position.
  2. GMIM (Global Masked Image Modeling): The model reconstructs a masked image patch using only the global [CLS] token and the patch's position.

These tasks compel the [CLS] token to serve as a high-capacity bottleneck that must compress and retain fine-grained details from both text and images. By preventing the model from relying on local context (neighboring words or pixels), ITEm ensures that the global embedding captures the "essence" of the product.

Experimental Setup and Datasets

The model was trained and evaluated using the ITOP (Image-Text Online Product) dataset, a large-scale collection from a major eCommerce platform. ITOP consists of 1.1 million index products and 5,000 manually annotated query products spanning 1,275 leaf categories.

Figure 4: Examples of eCommerce products from the ITOP dataset, showcasing the variety of categories, titles, and visual representations.

Additionally, the Stanford Online Product (SOP) dataset was used for qualitative evaluation to demonstrate the model's generalizability across different domains.

Results and Discussion

ITEm demonstrates significant improvements over state-of-the-art baselines in both recommendation and classification tasks.

Product Recommendation

On the ITOP test set, ITEm achieved a Mean Average Precision (MAP@10) of 60.05%, a substantial lead over CLIP (51.50%). This success is attributed to the model's ability to perform fine-grained matching, which is critical when distinguishing between highly similar items.

Figure 6: A comparison of query and index sets for a product matching task. ITEm must distinguish between matching items and subtle distractors, such as different versions of the same plush toy.

Category Prediction

In leaf category classification, ITEm reached an accuracy of 91.09% (Acc@1), outperforming CLIP (90.42%) and text-only models like RoBERTa (88.92%). Qualitative analysis suggests that ITEm is less prone to being distracted by background elements, focusing instead on relevant product features and title keywords.

Conclusion

ITEm addresses the challenge of text-dominance in eCommerce by employing novel unsupervised pre-training tasks that balance attention between visual and textual modalities. By avoiding the need for expensive object detectors and relying on unsupervised learning, ITEm provides a scalable and effective solution for diverse product inventories. Future work will focus on expanding evaluation to more public datasets and refining the model's ability to handle subtle product variations.

Summary updated

BibTeX
@misc{liao2023item,
  author = {Baohao Liao and Michael Kozielski and Sanjika Hewavitharana and Jiangbo Yuan and Shahram Khadivi and Tomer Lancewicki},
  title = {{ITEm: Unsupervised Image-Text Embedding Learning for eCommerce}},
  year = {2023},
  eprint = {2311.02084},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.02084},
}
Figure