Leveraging multimodal LLMs for Shopify’s global catalogue: Recap of expo talk at ICLR 2025
Shopify's Global Catalogue uses fine-tuned open-source vision LLMs (LLaVA 1.5 7B, then LLaMA 3.2 11B, now Qwen2VL 7B) to classify, extract attributes from, standardize and match billions of merchant product listings. The system has four layers: streaming product data with change data capture, multi-task product understanding, graph-based product matching (LSH and embedding candidates, discriminator edge pruning, connected components) and canonical record reconciliation. Training each model to predict a randomly selected subset of fields kept it generalizable and cut median latency from 2s to 500ms and GPU usage by 40%. LLM-agent annotation with an LLM arbitrator, instruction-following eval metrics and active learning driven by low token probabilities support 40M inferences a day on Triton with FP8 quantization.
Related posts
- Evolution of Product Classification at Shopify: From Categories to Comprehensive Product Understanding
Shopify Engineering mediumAdeptShopify's product classification evolved from a 2018 TF-IDF logistic regression model through a 2020 multi-modal classifier to a Vision Language Model system built on the Shopify Product Taxonomy, which covers over 10,000 categories and 1,000+ attributes. A Dataflow pipeline makes two dependent calls to a VLM service (currently Qwen2VL 7B with FP8 quantization, served via NVIDIA Dynamo on Kubernetes with in-flight batching and KV caching): one predicts the category, the other predicts category-specific attributes, and both must succeed. Training data comes from multiple LLM annotators, with judge models arbitrating disagreements and humans reviewing edge cases. The system handles over 30 million predictions a day, merchants accept 85% of predicted categories, and hierarchical precision and recall doubled compared with the earlier neural approach.
- Clustering billions of products for agentic commerce with Catalog API
Shopify Engineering mediumAdeptShopify's Catalog groups billions of merchant product listings under Universal Product Identifiers (UPIs) using a precision-first pipeline. It sets a hard precision threshold and maximizes recall under it, because a wrong merge is worse for buyers than a missed variant. A singleton detector parses Liquid theme code and resolves most shops deterministically. The remaining catalogs are pre-chunked with HNSW/FAISS nearest-neighbor graphs and sparse UPGMA average linkage (distance threshold 0.25, max 200 products per chunk). A two-stage LLM pipeline then extracts brand and model strings using a 'core value proposition' test, and a second critique pass flags outliers in each proposed cluster. Dynamically generated strict JSON schemas, with one required property per product ID, guarantee every product is labeled without skips or malformed output.
- Flow generation through natural language: An agentic modeling approach
Shopify Engineering mediumAdeptShopify fine-tuned Qwen3-32B into a tool-calling agent that turns natural-language requests into Shopify Flow automations for Sidekick, reporting 2.2x lower latency and 68% lower cost than the closed frontier model it replaced. Training data was bootstrapped by reverse-generating user queries and tool trajectories from real merchant workflows. Transpiling Flow's JSON DSL into Python, kept lossless by a round-trip transpiler, raised syntactic correctness by 22 points and semantic correctness by 13. Small train/serve mismatches in tool names, tool order and JSON key order measurably hurt accuracy, and a 1% production rollout exposed a 35% activation gap that offline benchmarks had hidden. That gap was closed with a human-calibrated LLM judge, slice tagging and a weekly retraining flywheel on H200 nodes with FSDP, orchestrated by Tangle.
- Beyond classification: How AI agents are evolving Shopify's product taxonomy at scale
Shopify Engineering easyNoviceShopify maintains its 10,000+ category, 2,000+ attribute product taxonomy with a multi-agent LLM system. One agent analyzes the taxonomy's structure and another analyzes real merchant product data. A synthesis step merges their proposals, and an equivalence-detection agent finds cases where a specific category equals a broader category plus attribute filters (e.g., Women's Golf Shoes = Athletic Shoes + Activity Type=Golf + Gender=Women). Change-type and domain-specific LLM judges filter proposals before human review, as in a MagSafe-compatible attribute approved at 93% confidence. A Telephony pilot compressed what would have been years of manual expansion into weeks.
- Shaping Product Understanding with Contrastive Reinforcement Learning
Etsy Code as Craft hardMasterEtsy fine-tunes Qwen3-VL-8B with GRPO to generate natural-language listing summaries that capture distinguishing product details buried in long descriptions, attributes and images. Training uses search triplets (query, engaged listing, non-engaged listing), and the reward is the margin in query similarity between the two listings' summaries as scored by a frozen two-tower search retriever. Scoring the pair jointly discourages reward hacking, because a generic or keyword-stuffed summary cannot raise one listing's similarity while lowering the other's. Human review found the summaries grounded and specific. Feeding them into a separate semantic relevance classifier improved macro F1 by 8.7% relative to description n-grams, and online experiments are planned next.