LinkedIn's Trie-Head speeds wide-beam generative retrieval by up to 5.57x over Python constraints
_reachsumit · x · 2026-11-18
A LinkedIn team published a paper tackling two serving bottlenecks of wide-beam generative retrieval (GR):
- Problem: GR predicts catalog entries as short semantic identifiers (SIDs); trie-constrained beam search keeps them valid, but wide beams incur vocabulary-wide score tensors that are mostly discarded, plus repeated attention over the same prompt.
- Trie-Head: a model-native output interface storing the identifier trie as validated GPU tensors. Compared with a Python custom logit processor (CLP), it avoids Python constraint callbacks and full-vocabulary candidate buffers, cutting CPU–GPU coordination and memory traffic; it scores compact codebook candidates and preserves the original model's valid-token scores without retraining.
- Shared-context attention: reuses prompt key/value blocks across beams while keeping private decode tails.
- Deployment & results: implemented in SGLang and used for candidate sourcing in LinkedIn Hiring Assistant and qualification retrieval; at beam width 200, closed-loop throughput improves up to 5.57x over CLP and 2.63x over BF16 FlashRec.
More from Infra
- Baseten's 'Inference Engineering' book back in print, free copies at re:Invent — philipkiely · 2026-11-29
- Debate: inference demand makes H100s more valuable while NVDA stock heads south — teortaxesTex · 2026-11-29
- Prefetching MoE experts 2 layers ahead boosts V100 decode speed 29.9% — WaroftanksPro · 2026-11-29
- Leopold's $880K-per-H100 revenue claim vs "Nvidia has zero moat" draws flak — teortaxesTex · 2026-11-29
- JITEngine from Berkeley ecosystem synthesizes custom Mac LLM inference engines, up to 2.7x faster — CShorten30 · 2026-11-29
- Dev Uses Neon to Build 'ultra' CLI That Wraps Google Colab GPUs — andrew_n_carr · 2026-11-29