Machine Learning in Content Moderation at Etsy
Etsy's Trust & Safety team detects policy-violating listings with a supervised multimodal classifier that combines an ALBERT text encoder and an EfficientNet image encoder. The two embeddings are fused EmbraceNet-style by late concatenation, followed by a softmax over violation classes plus a neutral no-violation class, and the model is trained with focal loss to handle class imbalance. Training data pairs annotated violations with hard negatives (items reviewed and found not violating) and randomly sampled easy negatives, split by time for progressive evaluation. Because true recall can't be measured at Etsy's listing volume, the team uses an annotated recall proxy, rolls out new challenger models against the champion via canary A/B tests, and retrains when monitoring shows performance degrading. The system has removed over 100,000 violations in a year.
Related posts
- Understanding Etsy’s Vast Inventory with LLMs
Etsy Code as Craft mediumAdeptEtsy 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.
- 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.
- How We’re Building Scam Alert on WhatsApp With End-to-End Encryption and Verifiability Guarantees
Meta Engineering hardMasterWhatsApp's Scam Alert is an optional feature that runs an on-device ML classifier over messages from non-contacts and shows a private in-chat warning. No message content leaves the device unless the user chooses to report it. Model versions are published to a public transparency ledger and the weights are released, so Meta cannot send a targeted model to one user. Telemetry is limited to aggregate warning and user-action counts, which pass through a confidential federated analytics pipeline built on attested CVM-based TEEs, OHTTP relays, anonymous credentials, secure aggregation, k-anonymity thresholds and differential privacy. Clients refuse to transmit if the attestation or the privacy parameters fail locally enforced guardrails.
- Data-Centric Machine Learning: Building Shopify Inbox’s Message Classification Model
Shopify Engineering mediumAdeptShopify Inbox's message classifier improved from ~70% to ~90% accuracy, and from ~35% to ~80% high-confidence coverage, by investing in better training data rather than model tweaks. The v1 prototype used Universal Sentence Encoder embeddings with UMAP/HDBSCAN clustering and semi-supervised labeling on 40,000 examples. For v2, the team fine-tuned DistilBERT on 20,000 human-labeled messages. Those labels came from a 45-topic taxonomy built with support advisors and domain experts, refined through inter-annotator agreement exercises, and scrubbed of personal information with Presidio and Faker. Model predictions were then used to surface underrepresented topics for further annotation.
- Using Rich Image and Text Data to Categorize Products at Scale
Shopify Engineering mediumAdeptShopify rebuilt its product categorization model as a multi-task, multi-class neural network that predicts all seven levels of the hierarchical Google Product Taxonomy. Multilingual BERT text embeddings and MobileNet-V2 image embeddings feed stacked hidden layers, with each level's output passed into the next level's prediction. Training combines the seven per-level losses with weights and uses class weights to handle imbalance, without forcing child predictions to match the parent. At inference, a Keras subclass model walks the taxonomy and only considers descendants of the chosen parent, and per-level confidence thresholds are hand-tuned for sensitive categories. The 250M-parameter model, trained with data-parallel distributed TensorFlow on GCP, raised leaf precision by 8% and nearly doubled coverage.