Two-tower models for candidate retrieval
A short note on a building block I use in recommendation and referral systems: the two-tower model.
One tower encodes the user, the other encodes the item (a post, a product, a person to invite). Both produce vectors in the same space. Retrieval becomes a nearest-neighbour search, which scales to millions of candidates.
Why it matters for growth systems
- Item vectors can be computed in advance.
- The user vector updates with every action.
- A heavier ranking model then needs to look only at the top few hundred candidates.
Retrieval first, ranking second: most production recommenders follow this split.