Problem
LinkedIn's homepage feed ranker scores posts for each member. Its inputs were mostly dense count-based and categorical features, with no learned representation of individual member or hashtag IDs. The team wanted one vector per ID, but that meant hundreds of millions of parameters, billion-record daily datasets, slow training and gigabytes of memory for each served model.
Example from the article: member IDs and hashtag IDs (for example #GAI) became rows in embedding tables, and the ranker grew about 500x in size.
Solution in brief
Learn embedding tables for member and hashtag IDs jointly with the ranking task, pool the embeddings of past interactions, and feed them into a wider, gated MLP. Train on all feed sessions with inverse-propensity weights. Horovod model parallelism, lazy data pipelines, in-memory serving and minimal perfect hashing keep it affordable.
Questions this case answers
- How to add high-cardinality categorical IDs as learned embeddings to a production ranking model without breaking training time, serving memory or latency limits
- How to reduce self-reinforcing bias when a ranking model is trained on impressions chosen by an earlier model
- How to add embeddings of member and hashtag IDs to a feed ranking model?
- How to train a ranking model with hundreds of millions of embedding parameters in hours, not days?
Tools and methods
- Sparse ID embedding tables — one learned vector per member or hashtag, trained jointly with the ranker
- GDMix mixed-effect ranker — global model plus per-post random effects, retrained more often
- Gated MLP — gate on hidden layers, cheaper than widening
- Inverse propensity weighting — corrects training data for earlier models' choices
- Horovod, TensorFlow, Kubernetes — multi-GPU training with model parallelism
- Apache Spark — data flows with virtual views
- Minimal perfect hashing — collision-free ID-to-integer vocabulary
Google or a one-time email code. No password.