Evolution of Product Classification at Shopify: From Categories to Comprehensive Product Understanding

Kshetrajna Raghavan8 May 2025

Problem

A commerce platform with millions of merchants has to know what each product is: its category, its attributes and a clean description. Search, recommendations, tax calculation and content screening depend on this. Shopify's first classifier (logistic regression on TF-IDF, 2018) struggled as products grew more varied, and a category alone said too little. The platform needed one consistent taxonomy and attributes that depend on the category.

Example from the article: a product is placed in the hierarchy Furniture > Chairs > Kitchen & Dining Room Chairs, and then gets the attributes defined for that category.

Solution in brief

Shopify predicts in two stages with a vision language model (VLM): first the category plus a simplified description, then the attributes that this category defines. The prompt of the second call uses the output of the first. Training labels come from several LLMs that annotate independently, an arbitration step for disagreements, and human review of hard cases.

Questions this case answers
  • How to turn unstructured listings with images and text into labels from a fixed hierarchy plus structured fields that depend on the assigned label
  • How to get consistent training labels at catalog scale when no single labeler is reliable and manual review is too expensive
  • How to run a multi-modal model in a streaming pipeline at high daily volume under a limited GPU budget
  • How to classify millions of merchant products into a fixed taxonomy and extract category-specific attributes at scale?

Tools and methods

  • Vision language model — reads product image and text together and returns category and attributes
  • Shopify Product Taxonomy — hierarchy of categories with category-specific attributes and standard values
  • Multi-LLM annotation with arbitration — builds training labels from independent LLM votes and judge models
  • FP8 quantization, in-flight batching, KV cache — cut GPU memory and raise throughput for serving
  • Dataflow pipeline, Kubernetes, NVIDIA Triton / Dynamo — streaming orchestration and GPU model serving
Continue reading — it's free

Google or a one-time email code. No password.