Pinterest has developed a multilingual search relevance system that uses large language models (LLMs) to improve search accuracy while reducing the computational costs associated with deploying large AI models at scale.
The approach combines knowledge distillation, semi-supervised learning and human-annotated training data to transfer the capabilities of a large language model into a smaller, more efficient production model.
According to Pinterest’s engineering research, the system improved search ranking quality by 2.18%, while search fulfilment increased by 0.7% in the United States and 2% across non-US markets.
The development demonstrates how technology companies can integrate generative AI capabilities into existing search infrastructure without relying on resource-intensive models for every user request.
How Pinterest uses AI to understand search intent
Traditional search ranking systems often rely on keyword matching and predicted user engagement. However, popular content may not necessarily satisfy a user’s specific search requirements.

Pinterest addresses this distinction by classifying search relevance across five levels, ranging from highly relevant to highly irrelevant.
To improve its understanding of visual content, the platform combines multiple information sources, including Pin titles and descriptions, linked webpage content, AI-generated image captions, user-curated board titles and historical search engagement data.
Pinterest uses the BLIP image-captioning model to generate textual descriptions of visual content, allowing its language models to evaluate information that may not appear in conventional metadata.
This approach increased relevance classification accuracy from 45.7% using synthetic image captions alone to 58% when incorporating the complete set of textual features.
Knowledge distillation reduces AI deployment costs
Running a large language model for every search query would introduce substantial computational costs and latency.
Pinterest addresses this through a teacher-student architecture, in which a larger language model generates relevance judgements offline. These predictions are then used to train a lightweight neural network responsible for scoring live search results.
The process, known as knowledge distillation, allows the smaller model to reproduce aspects of the larger model’s behaviour while operating within production search performance requirements.
Pinterest also uses training optimisation techniques, including QLoRA, mixed precision and gradient checkpointing, to reduce memory requirements when training larger models.
By applying its teacher model to historical search logs containing billions of records, Pinterest generated additional training labels without relying exclusively on manual human annotation.
Pinterest improves search accuracy with 30 million AI-generated training labels
Pinterest’s experiments demonstrate how different model architectures, content representations and training datasets influence search relevance.
| Model or training approach | Relevance classification accuracy |
|---|---|
| SearchSAGE baseline | 50.3% |
| Llama-3-8B teacher model | 60.2% |
| Student model trained on 300,000 human labels | 48.4% |
| Student model trained on 30 million AI-generated labels | 54.8% |
The findings indicate that AI-generated training labels can improve production model performance while reducing dependence on expensive manual annotation.
Pinterest also recorded improvements in human relevance evaluations across the United States, Germany, France and the United Kingdom.
The architecture offers a practical reference for technology companies developing multilingual search engines, recommendation systems and AI-powered content discovery platforms. Combining offline language model processing with lightweight production models allows businesses to balance search accuracy, computational efficiency and international scalability.
Sources
ByteByteGo: How Pinterest Built LLM-Powered Search in 20 Languages With Minimal Training, 1 December 2026.

Sara is a Software Engineering and Business student with a passion for astronomy, cultural studies, and human-centered storytelling. She explores the quiet intersections between science, identity, and imagination, reflecting on how space, art, and society shape the way we understand ourselves and the world around us. Her writing draws on curiosity and lived experience to bridge disciplines and spark dialogue across cultures.

