Pinterest improves search relevance using LLM-based teacher-student distillation pipeline
Pinterest Search relied on engagement signals for ranking, but needed a genuine relevance model to ensure displayed content was pertinent to user queries rather than driven by past behaviour. The system also lacked coverage for multilingual queries and seasonal new concepts not found in limited human-annotated data.
The LLM-based cross-encoder teacher model was effective at predicting relevance but could not be deployed directly for real-time serving due to latency and cost constraints.
The LLM-based relevance pipeline achieved a +2.18% improvement in search feed relevance measured by nDCG@20, and online A/B experiments showed improvements of more than 1% in search feed relevance and more than 1.5% in search fulfillment rates.
The multilingual teacher also generalised to languages not seen during training.
Show all 5 reported metrics
Frequently asked questions
What did this team achieve with this AI workflow?
The LLM-based relevance pipeline achieved a +2.18% improvement in search feed relevance measured by nDCG@20, and online A/B experiments showed improvements of more than 1% in search feed relevance and more than 1.5% i…
What tools did this team use?
Llama-3-8B, BLIP, qLoRA, BM25, mDeBERTa-V3-base, XLM-RoBERTa-large, multilingual BERT-base, T5-base, Hugging Face.
What results were reported?
search feed relevance improvement (nDCG@20, human eval): +2.18%; search feed relevance (online A/B experiment): >1%; search fulfillment rates (online A/B experiment): >1.5%; Llama-3-8B vs BERT-base 5-scale accuracy gain: 12.5% (source-reported, not independently verified).
What failed first in this deployment?
The LLM-based cross-encoder teacher model was effective at predicting relevance but could not be deployed directly for real-time serving due to latency and cost constraints.
How is this ecommerce ops AI workflow structured?
User search query received → Enrich Pin text via BLIP captions → LLM teacher classifies query-Pin relevance → Distill teacher labels to student model → Student model determines search ranking.