ReadingResearchRadarInvestment framework
Sign in / Sign up
← Back to reading
NewsMaterial4 min readDisconfirmAI Editorial

How Shopify Uses LLMs to Reconcile Inconsistent Product Options for AI Shopping Agents

Shopify engineer Andrei Danilchenko explains a two-stage pipeline that builds a shared product vocabulary from merchant evidence and applies it to standardize options across listings, plus an Option Mining component that recovers missing choices from titles and metafields when merchants describe variants in separate listings.

2026-12-04 21:51 GMT+8

When an AI shopping agent encounters four listings for the same shirt from different stores, it sees "Color: Black," "Colour: Black," "Style: Black/M," and "Couleur: Noir." A human reading these side by side recognizes they describe the same choice. An agent comparing thousands of such listings needs a systematic way to reconcile them. Shopify's engineering team describes how they built that system.

The central design decision is to separate vocabulary construction from application. Rather than asking a large language model to produce a clean list of standardized names in one pass, Shopify divides the work into two jobs: first building and reviewing shared meanings from merchant evidence, then applying those mappings to product variants. The construction process must make equivalent terms meet without forcing distinct properties together.

The Build pipeline starts by aggregating merchant-provided option names and their observed values, grouped by product category. This grouping matters: a "Size" field on clothing and a "Size" field on a storage device should not compete for the same interpretation simply because their names match. Category context narrows the question before the LLM considers plausible meanings. The existing Standard Product Taxonomy, which Shopify has open-sourced, enters here as a starting vocabulary rather than a fixed endpoint. The LLM can reuse an existing attribute, propose a missing one, or reject unsuitable input. This makes extension an explicit decision rather than an automatic outcome.

A key insight is establishing the property before interpreting the answer. Resolving the attribute first gives values a meaning and a type. A clothing size needs its sizing system. A package weight needs a number and a unit. A color can use named values. Treating them all as labels would hide information needed later. One pass still leaves duplicates because evidence is processed in batches, and two batches can propose different names for the same missing property. The system therefore compares new attribute proposals within each category before resolving their values, using text embeddings to retrieve plausible matches and then LLM judgment to confirm equivalence.

Sign in / Sign up
ReadingResearchRadarInvestment framework

Option Mining addresses a different failure mode. Some merchants sell each version of a product as a separate listing and describe the difference only in the title, description, or a metafield. When clustering brings these listings into one product group, the group contains variants whose only listed option is "Size," creating what Shopify calls an option collision: different variants with identical option sets. Option Mining compares related products from the same store and group, using an LLM to find distinguishing properties absent from their options. In the shoe example, it adds "Color = White," "Color = Olive," and "Color = Black" from a custom metafield, turning an existing fact into an explicit choice. To make this affordable at scale, Shopify uses distillation: a smaller student LLM learns from outputs produced by a larger teacher LLM on this focused extraction task.

The Apply pipeline uses the released taxonomy and mappings to build standardized option sets for product variants. For each product group, it selects a primary merchant and uses that merchant's wording for display labels when available, helping match brand-owner language while standardizing across multiple merchants. A Value Filling component completes gaps where product evidence supports an answer but the option field is empty.

Four LLM judges review proposed additions before release, each with a specific question: attribute precision, attribute uniqueness, value precision, and value uniqueness. Shopify states that these judges were calibrated against human taxonomist decisions and matched their quality in evaluations, while applying rules more consistently and reviewing more proposals than annotators could. The resulting expanded taxonomy reportedly contains 2.5 times as many attributes and 3.6 times as many values as the starting taxonomy.

What remains unverified is the general effectiveness of this approach compared to alternatives. The article provides no benchmark against other standardization methods, no error rates on downstream AI shopping tasks, and no comparison of the distillation student's accuracy against the teacher on held-out data. The scale figures (100 million product groups, 200 million distinct option combinations) establish the problem size but not the solution's coverage or accuracy. The design reasoning is clearly explained and well-supported by the engineering narrative; the performance claims are vendor self-report.

Sources

  • shopify.engineeringShopify↗
Continue researching →