How LinkedIn Rebuilt Search with AI: New AI Based Architecture

· Source: Machine Learning on Medium · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering, Data Science & Analytics · Depth: Intermediate, extended

Summary

LinkedIn has fundamentally rebuilt its search architecture, moving from keyword matching to a semantic understanding of user intent to handle millions of real-time queries per second. The new AI-based system comprises five stages: Query Understanding, Embedding-Based Retrieval (EBR), Small Language Model (SLM) Ranking, an Auction Layer, and Explainability. It leverages a bi-encoder for fast, broad retrieval of ~1,000 candidates and a 0.6B parameter cross-encoder SLM for precise ranking, distilled from larger 7B and 1.7B teacher models. Offline and nearline pipelines using Spark, Flyte, and Flink precompute embeddings and summaries. Cost optimizations like model pruning, summarization, and embedding compression achieved a ~75x throughput increase with minimal quality impact, making the system economically viable. A continuous LLM Judge system ensures quality monitoring and training data generation.

Key takeaway

For AI Engineers designing large-scale semantic search or recommendation systems, LinkedIn's architecture demonstrates that separating fast, broad retrieval from precise ranking is critical. You should prioritize model distillation (e.g., 7B to 0.6B parameters) and aggressive cost optimizations like embedding compression to achieve high throughput (e.g., 22,000 items/sec/GPU) with minimal quality degradation. Implement an LLM judge early to establish robust quality metrics (NDCG@10, AUC) and generate continuous training data, ensuring your system evolves effectively.

Key insights

LinkedIn's AI search architecture shifts from keyword matching to semantic intent understanding via a multi-stage funnel for scale and precision.

Principles

Method

The system processes queries through an LLM-powered understanding layer, then uses a bi-encoder for embedding-based retrieval (EBR) to find ~1,000 candidates, followed by a 0.6B parameter SLM cross-encoder for precise ranking, and finally an auction layer.

In practice

Topics

Best for: NLP Engineer, CTO, VP of Engineering/Data, AI Engineer, Machine Learning Engineer, AI Architect

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Machine Learning on Medium.