Using Rich Image and Text Data to Categorize Products at Scale - Shopify

This post details the modernization of Shopify's product categorization model, which now incorporates both rich image and text data. The new model uses transfer learning with pre-trained Multi-Lingual BERT for text and MobileNet-V2 for images, converting them into embeddings. The architecture is framed as a multi-task, multi-class classification problem, with each level of the Google Product Taxonomy (GPT) treated as a separate classification task. The output of each layer is fed back into the next to improve predictions. The model is trained using distributed TensorFlow on Google Cloud Platform with data parallelization to handle the massive dataset and model complexity. During inference, additional logic is applied to ensure hierarchical consistency, selecting the highest confidence category at Level 1 and then choosing the highest confidence descendant at subsequent levels. This approach increased leaf precision by 8% and doubled coverage.
More from the Product Categorization System trail
- Clustering billions of products for agentic commerce with Catalog API (2026) - Shopify
- How AI Agents are Evolving Shopify's Product Taxonomy at Scale (2025) - Shopify
- Leveraging multimodal LLMs for Shopify’s global catalogue: Recap of expo talk at ICLR 2025 - Shopify
- Augmented commerce: Machine learning at Shopify (2025) - Shopify
- Evolution of Product Classification at Shopify: From Categories to Comprehensive Product Understanding (2025) - Shopify