BACH: A Bayesian Admixture of Contrastive Heads for Multi-Interest Two-Tower Retrieval

· Source: Machine Learning · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Data Science & Analytics · Depth: Expert, quick

Summary

BACH (Bayesian Admixture of Contrastive Heads) is a novel multi-interest two-tower retrieval model designed to overcome limitations in existing systems. Traditional two-tower retrievers compress user interests into a single embedding, while current multi-interest models suffer "routing collapse" from hard-routing training, under-utilizing heads and lacking per-user interest weight estimates. BACH addresses this by framing multi-interest two-tower retrieval as a per-user mixture over heads, optimized via variational inference. This soft mixture trains all heads, mitigating collapse, and generates a per-user weighting of interests directly usable during serving. BACH also supports a shared global-codebook variant for precomputable retrieval. Evaluated on MovieLens-20M, Taobao, and Netflix benchmarks, BACH consistently improves top-of-ranking retrieval over hard-routing multi-interest and single-vector baselines at every head count. The study also found that scoring candidates by their best head, consistent with serving, outperforms target-routed training, with BACH showing further gains.

Key takeaway

For Machine Learning Engineers building multi-interest retrieval systems, you should consider adopting a Bayesian admixture approach like BACH. This method mitigates routing collapse by training all interest heads and provides explicit per-user interest weightings, directly improving serving relevance. Implement a soft mixture model and prioritize scoring candidates by their best head to achieve superior top-of-ranking retrieval performance compared to traditional hard-routing or single-vector baselines.

Key insights

BACH uses Bayesian admixture and variational inference for multi-interest retrieval, mitigating routing collapse and providing per-user interest weights.

Principles

Method

BACH casts multi-interest two-tower retrieval as a per-user mixture over heads, fit by variational inference. This soft mixture trains every head and produces per-user interest weightings, supporting a global-codebook variant for precomputable retrieval.

In practice

Topics

Best for: AI Engineer, Research Scientist, AI Scientist, Machine Learning Engineer

Related on AIssential

Open in AIssential →

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