Categorizing Products at Scale - Shopify
Apr 30, 2020

Summary
This post details the implementation of a product categorization system using Kesler's Construction to convert n one-vs-all classifiers into a single binary classifier. It leverages Logistic Regression and a greedy approach for inference on a hierarchical taxonomy. Text featurization uses HashingTF with PySpark, focusing on product title, description, collection, tags, vendor, and merchant-provided type. The system addresses scale and structure challenges of the Google Product Taxonomy (GPT) and is used by over 20 teams for features like marketing recommendations and market segmentation.
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