Problem
ZipRecruiter matches job seekers with jobs: over 36 million resumes, over 12 million active postings and hundreds of millions of interaction events per year, so the model must score billions of pairs. New jobs arrive every day, most titles are rare, and the texts are free-form with slang and jargon. A model tuned only for job seekers can push irrelevant candidates to employers and lower their satisfaction.
Example from the article: a "Data Scientist" posting is about 0.1% of all jobs, and "MD" can mean Medical Doctor or Managing Director.
Solution in brief
Pre-train an encoder per entity type on similarity signals from interactions, so unseen jobs get embeddings without retraining. Build a job-seeker embedding from the resume, searches and job interactions, and score it against the job embedding by a dot product. Train with a dual contrastive loss that covers both directions, seeker to job and job to seeker.
Questions this case answers
- How to score billions of user-item pairs in real time with a model that serves two sides of a marketplace and stays accurate on items unseen in training
- How to learn embeddings for entities described by unstructured text when interaction data is sparse and the item catalog changes every day
- How to recommend jobs to job seekers when the marketplace has tens of millions of resumes and millions of jobs?
- How to train a two-sided recommender so that it does not serve only one side of the marketplace?
Tools and methods
- Two-tower model — job-seeker and job encoders scored by a dot product of L2-normalized embeddings, cheap at inference
- Siamese network with contrastive focal loss — job encoder trained on co-applied job pairs
- Triplet loss — resume encoder trained on employer thumbs-up and thumbs-down
- Activity and search encoders — merge clicks, applications and searches into one representation
- Dual contrastive loss with negative sampling — in-batch negatives for the job side, corpus-sampled negatives for the seeker side
Google or a one-time email code. No password.
