Problem
Shopify merchants describe billions of products in their own way. Some give a title and a price, others a long description, and each defines its own attribute names. Key facts sit only in an image, in another language, or in the wrong field. Search, faceting and AI shopping agents then work on messy data, and duplicates of the same item are hard to find. Commercial LLM APIs work at a small scale but were too expensive at this volume.
Example from the article: a brand listed in the product title but omitted from the brand field.
Solution in brief
Shopify fine-tunes one open-source vision-language model per catalogue entity (media, product, variant) to do several extraction tasks at once. Training asks for a random subset of fields per example, so each consumer can request only the fields it needs. Products are then matched through a bipartite graph with discriminator-based edge pruning and merged into canonical records.
Questions this case answers
- How to convert heterogeneous, unstructured multimodal records from many sources into one standardized schema using a single model per entity type at a volume where commercial APIs are too expensive
- How to merge duplicate records across sources into canonical entities while keeping one wrong link from collapsing unrelated records into one cluster
- How to cut latency and GPU cost of a multi-task generative model when each consumer needs only some of its output fields
- How to turn millions of free-form merchant product listings into one structured catalogue?
Tools and methods
- Vision-language model (Qwen2VL 7B, earlier LLaVA 1.5 7B and LLaMA 3.2 11B) — fine-tuned for classification, attribute extraction and description tasks
- Selective field extraction — random field subset per training example
- LLM annotators and arbitrator — build training labels; humans label the test set
- Locality-sensitive hashing, embedding clustering, discriminators — candidate generation and edge pruning for matching
- NVIDIA Triton, FP8 quantization, KV cache, Kafka — serving and write-back
Google or a one-time email code. No password.