LLM-Powered Style Compatibility Labeling Pipeline for E-Commerce Catalog Curation

wayfair · E-commerce · 2025 · source Agentic: no · promotional bias: med · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: E-commerce catalog curation

Wayfair needed scalable style-compatibility labels for product pairs so search and recommendation systems could account for cohesive room design rather than relying only on popularity and behavioral signals.

Constraints:

Architecture

Wayfair built an offline Google Cloud batch pipeline that pulls product images and metadata, constructs structured multimodal prompts for Gemini 2.5 Pro, and stores JSON outputs containing a Yes/No style-compatibility label plus a design-aware rationale. The prompt uses interior-design dimensions, few-shot examples, and rules about same-category and cross-room compatibility. Labels are evaluated against expert judgments and are used to compare recommendation algorithms before future live search and personalization integration.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  Source["Product imagery and metadata source"] --> Prompt["Prompt builder"]
  Prompt --> Judge["Gemini style judge"]
  Judge --> Store["Label store"]
  Store --> Eval["Recommendation evaluation"]
  Expert["Expert holdout set"] --> Eval
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Product imagery and metadata source Provides product images, titles, classes, and descriptive copy for the two products being judged. Prompt builder
Prompt builder Constructs structured prompts with interior-design dimensions, few-shot examples, and compatibility rules. Product imagery and metadata source, Gemini style judge
Gemini style judge Multimodal LLM that classifies whether the product pair is stylistically compatible and returns a rationale. Prompt builder, Label store
Label store Stores the JSON Yes/No labels and design-aware rationales for downstream recommendation evaluation. Gemini style judge, Recommendation evaluation
Expert holdout set Provides expert-labeled product-pair judgments used as the evaluation reference. Recommendation evaluation
Recommendation evaluation Compares recommendation algorithms by measuring the proportion of suggested product pairs labeled style-compatible. Label store, Expert holdout set

Data flow

The batch pipeline collects product imagery and descriptive metadata, builds a structured prompt containing design principles and few-shot examples, sends the product pair to Gemini 2.5 Pro, receives a strict JSON label and rationale, stores the result, and evaluates labels against expert holdout judgments and recommendation-algorithm comparisons.

4 supporting quotes
“The model processes both product imagery and descriptive text (title, class, and romance copy), using structured prompts enriched with a few carefully selected examples to ground its style judgments.”article, stated
“Separately, we designed a batch pipeline on Google Cloud to automate this process at scale. The pipeline pulls product imagery and metadata, builds the structured prompts, sends them to the model, and stores the results”article, stated
“It outputs concise JSON containing the Yes/No label and a brief, design-aware rationale.”article, stated
“We evaluated the system against a hold-out set of expert judgments, treating the human labels as the ground truth”article, stated

Why this architecture

Wayfair used an offline batch labeling architecture because the immediate need was scalable annotation for evaluation and curation, not live request-time ranking. Gemini 2.5 Pro was chosen after model benchmarks for accuracy and Google Cloud integration, while prompt engineering was preferred over heavier RLHF or DPO because the team needed fast domain-specific iteration.

4 supporting quotes
“Compared to higher-effort approaches like RLHF or DPO, prompt engineering offered a faster, lower-overhead way to test hypotheses and iterate quickly with domain-specific guidance.”article, stated
“we selected Gemini 2.5 Pro after benchmarking several Gemini variants and open-source multimodal models—Gemini 2.5 Pro delivered the highest classification accuracy”article, stated
“The immediate impact is the ability to generate style compatibility labels far faster than manual annotation, with measurable agreement to expert judgment.”article, stated
“While we aren’t yet running this in production recommendations, the system is designed to scale, and the next step would be to integrate it into live search and personalization flows.”article, stated

Models used: Gemini 2.5 Pro · Gemini variants · open-source multimodal models

Scale

Alternatives considered (roads not taken)

Traditional human annotation

Rejected because: It was accurate but too slow and costly for scalable style-aware personalization.

“Historically, we relied heavily on human annotation: accurate, but slow and costly.”article, stated
“Our project was to automate this judgment with an LLM, preserving the design sensibility our experts bring while dramatically increasing labeling speed, scalability, and consistency”article, stated

RLHF or DPO for the initial capability

Rejected because: Prompt engineering gave Wayfair a faster and lower-overhead way to test hypotheses with domain guidance.

“Compared to higher-effort approaches like RLHF or DPO, prompt engineering offered a faster, lower-overhead way to test hypotheses and iterate quickly with domain-specific guidance.”article, stated

Long rule lists in prompts

Rejected because: A small set of crisp, realistic examples worked better for teaching Wayfair's aesthetic taste.

“Second, a handful of crisp, realistic examples outperformed long rule lists; examples are how the model learns our taste.”article, stated

Immediate live recommendation deployment

Rejected because: Wayfair is first using the labels for offline evaluation and plans live search/personalization integration as the next step.

“These labels will be used for offline evaluation of recommendation algorithms—an important step toward improving relevance and driving future gains in customer engagement and conversion.”article, stated
“While we aren’t yet running this in production recommendations, the system is designed to scale”article, stated

Patterns

structured-output-contract (integration)

Wayfair constrains model outputs to concise JSON labels and rationales so downstream pipelines can reliably consume annotations.

“It outputs concise JSON containing the Yes/No label and a brief, design-aware rationale.”article, stated
“Third, a strict output contract (JSON only, no extra prose) kept the pipeline resilient and easy to consume downstream.”article, stated

batch-offline-processing (serving)

The system labels product pairs through an offline Google Cloud batch pipeline rather than live request-time serving.

“Separately, we designed a batch pipeline on Google Cloud to automate this process at scale.”article, stated
“While we aren’t yet running this in production recommendations, the system is designed to scale”article, stated

context-engineering (prompting)

Wayfair curates interior-design principles, product metadata, compatibility rules, and few-shot examples into the prompt so the model reasons with the same context human designers use.

“We embedded detailed, interior-design-specific language—shape and silhouette, material and finish harmony, color palette and undertones, proportion, and scale”article, stated
“We provided a small set of few-shot examples drawn from realistic catalog scenarios, including tricky edge cases.”article, stated

eval-driven-development (evaluation)

Model and prompt choices are evaluated against expert-labeled holdout judgments, and the resulting labels become a metric for comparing recommender algorithms.

“We evaluated the system against a hold-out set of expert judgments, treating the human labels as the ground truth and comparing the model’s Yes/No outputs”article, stated
“For future evaluations, we will apply this same approach to compare recommendation algorithms”article, stated

data-quality-loop (data)

Wayfair plans active learning for uncertain cases and ongoing monitoring for seasonal/category drift in style labels.

“we plan to add active learning so uncertain cases are routed to human reviewers for continuous improvement”article, stated
“monitor seasonal and category-specific shifts in style trends (e.g., color palettes and materials that go in and out of fashion)”article, stated

Tradeoffs

Use prompt engineering for the initial style-compatibility system

Chose structured prompts with interior-design rules and few-shot examples over higher-effort RLHF or DPO.

Rationale: Prompt engineering let Wayfair test hypotheses and iterate quickly with domain-specific guidance.

“Compared to higher-effort approaches like RLHF or DPO, prompt engineering offered a faster, lower-overhead way to test hypotheses and iterate quickly with domain-specific guidance.”article, stated

Choose Gemini 2.5 Pro

Chose Gemini 2.5 Pro on Google Cloud over other Gemini variants and open-source multimodal models.

Rationale: Benchmarks showed the highest classification accuracy and clean Google Cloud integration.

“we selected Gemini 2.5 Pro after benchmarking several Gemini variants and open-source multimodal models—Gemini 2.5 Pro delivered the highest classification accuracy and integrated cleanly with our Google Cloud environment.”article, stated

Use labels first for offline recommender evaluation

Chose style-compatibility labels as an offline metric for comparing algorithms over immediate customer-facing recommendation changes.

Rationale: Offline evaluation provides a consistent metric before live search and personalization integration.

“These labels will be used for offline evaluation of recommendation algorithms—an important step toward improving relevance and driving future gains in customer engagement and conversion.”article, stated

Gotchas (what bit them)

Style compatibility is subjective rather than perfectly objective.

Root cause: Even human experts vary in style judgments, so perfect agreement is not a realistic target.

Resolution: Evaluate against expert holdout labels while explicitly acknowledging natural human variation.

“While human annotators generally align well, there is still some natural variation in subjective style judgments, so we expect less than 100% agreement even between experts.”article, stated

Generic prompting produced weaker style-label accuracy.

Root cause: Vague prompts did not sufficiently encode interior-design criteria or Wayfair's taste.

Resolution: Add design-aware instructions and curated few-shot examples, yielding an 11% absolute agreement gain.

“Moving from our initial generic prompt to the final, design-aware instruction set with curated few-shot examples yielded a substantial absolute gain in agreement rate.”article, stated
“By iterating on prompt design with expert-labeled example pairs, we improved annotation accuracy by 11%.”article, stated

Full-catalog pairwise labeling is not yet proven at production scale.

Root cause: The system has not yet run Gemini 2.5 Pro against the full catalog and is not live in recommendations.

Resolution: Use the current labels for offline recommendation evaluation first, then expand toward full-catalog and live search/personalization integration.

“On the technical side, we haven’t yet run Gemini 2.5 Pro against our full catalog, but our approach is built for that expansion.”article, stated
“While we aren’t yet running this in production recommendations, the system is designed to scale, and the next step would be to integrate it into live search and personalization flows.”article, stated

Style preferences drift over time and categories.

Root cause: Color palettes, materials, and style trends change seasonally and by category.

Resolution: Monitor seasonal and category-specific shifts and refresh the labeling approach as trends evolve.

“monitor seasonal and category-specific shifts in style trends (e.g., color palettes and materials that go in and out of fashion)”article, stated

Evaluation

Wayfair benchmarks models and prompts against a holdout set of expert-labeled product-pair judgments, then plans to reuse style-compatibility labels as an offline recommendation-quality metric.

Metrics: agreement with expert judgments · absolute gain in agreement rate · proportion of recommendation pairs labeled compatible

3 supporting quotes
“We evaluated the system against a hold-out set of expert judgments, treating the human labels as the ground truth and comparing the model’s Yes/No outputs to those from individual experts.”article, stated
“Moving from our initial generic prompt to the final, design-aware instruction set with curated few-shot examples yielded a substantial absolute gain in agreement rate.”article, stated
“if one algorithm’s suggested items have a higher proportion of ‘Yes’ labels than another, we will consider it superior.”article, stated

Outcomes

The pipeline targets Wayfair's tens-of-millions-SKU catalog but has not yet run Gemini 2.5 Pro across the full catalog.

4 supporting quotes
“By iterating on prompt design with expert-labeled example pairs, we improved annotation accuracy by 11%.”article, stated
“Those labels now help evaluate—and ultimately improve—the quality of our product recommendations.”article, stated
“The immediate impact is the ability to generate style compatibility labels far faster than manual annotation, with measurable agreement to expert judgment.”article, stated
“While we aren’t yet running this in production recommendations, the system is designed to scale”article, stated