Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Etsy Code as Craft 9 min read Case study hardMaster

Shaping Product Understanding with Contrastive Reinforcement Learning

Etsy 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.

Assumes: reinforcement learning fine-tuning of LLMscontrastive learningtwo-tower dense retrieval

Related posts

  • How Etsy Uses LLMs to Improve Search Relevance

    Etsy Code as Craft mediumAdept

    Etsy built an LLM-powered semantic relevance framework that complements engagement signals, which favor popular listings, with judgments of how well listings match query intent across three classes: relevant, partially relevant and irrelevant. Human-labeled golden data validates an o3-based few-shot chain-of-thought annotator with self-consistency sampling. That annotator generates training data for a cascaded distillation stack: a fine-tuned Qwen 3 VL 4B teacher for daily offline evaluation and A/B monitoring via vLLM, and a BERT two-tower student that adds under 10ms in real-time search. The student filters irrelevant results, supplies ranking features and loss weights, and boosts relevant listings, raising fully relevant results from 58% to 62%, though engagement sometimes dips as relevance rises.

  • Understanding Etsy’s Vast Inventory with LLMs

    Etsy Code as Craft mediumAdept

    Etsy extracts structured product attributes such as color, material and dimensions from unstructured listing titles, descriptions and photos using LLMs. It does this because sellers rarely fill optional attribute fields, and passing raw text and images into search would add too much latency. The pipeline injects per-listing JSON context (listing data, expert-picked few-shot examples, taxonomy rules) into parallel prompts routed through LiteLLM across regions, then validates outputs with Pydantic. Evaluation moved from error-prone human labels to expert-reviewed "silver labels" from frontier LLMs, and each run first scores a ground-truth sample and aborts if precision or recall drift from baseline. In target categories, complete attribute coverage rose from 31% to 91%, and LLM-inferred attributes in search filters raised filter engagement and conversion.

  • Paper Announcement: Leveraging Multimodal LLMs for Large-Scale Product Retrieval Evaluation

    Zalando Engineering mediumAdept

    Zalando uses multimodal LLMs to judge query-product relevance for search evaluation and reaches agreement comparable to human annotators on 20,000 multilingual (English and German) examples. For each query, one LLM writes query-specific annotation guidelines, then a multimodal annotator such as GPT-4o labels each retrieved product as highly relevant, acceptable substitute or irrelevant using both text and images. The pipeline is up to 1,000x cheaper than human labeling and processes 20,000 pairs in about 20 minutes. Humans and LLMs make about the same number of errors but of different types: humans miss brand mismatches, while LLMs are overly strict or misread brand names. That makes LLMs a good fit for bulk annotation, with humans reserved for tricky cases.

  • Leveraging multimodal LLMs for Shopify’s global catalogue: Recap of expo talk at ICLR 2025

    Shopify Engineering mediumAdept

    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.

  • Automated merchant review summary system with integrated feedback

    Grab Engineering easyNovice

    Grab generates consumer-facing merchant review summaries with a pipeline that stratifies review samples by a sentiment-scored rating distribution, uses an LLM to produce overall and topic-based summaries (taste, packaging, portion size), and has a separate LLM check each claim against the sampled reviews before publication. Summaries are regenerated when new reviews or negative helpfulness feedback cross configured thresholds. Matching the rating distribution doesn't guarantee coverage of time periods, languages or segments, LLM validation reduces but doesn't eliminate unsupported claims, and feedback-driven regeneration needs anti-abuse controls.

The quest for software engineering knowledge.

Look:
Layout: