Papers › Retrieval with Learned Similarities

Retrieval with Learned Similarities

22 Jul 2024arXiv:2407.15462archive 2025-07-28

Bailu Ding, Jiaqi Zhai

Retrieval plays a fundamental role in recommendation systems, search, and natural language processing (NLP) by efficiently finding relevant items from a large corpus given a query. Dot products have been widely used as the similarity function in such tasks, enabled by Maximum Inner Product Search (MIPS) algorithms for efficient retrieval. However, state-of-the-art retrieval algorithms have migrated to learned similarities. These advanced approaches encompass multiple query embeddings, complex neural networks, direct item ID decoding via beam search, and hybrid solutions. Unfortunately, we lack efficient solutions for retrieval in these state-of-the-art setups. Our work addresses this gap by investigating efficient retrieval techniques with expressive learned similarity functions. We establish Mixture-of-Logits (MoL) as a universal approximator of similarity functions, demonstrate that MoL's expressiveness can be realized empirically to achieve superior performance on diverse retrieval scenarios, and propose techniques to retrieve the approximate top-k results using MoL with tight error bounds. Through extensive experimentation, we show that MoL, enhanced by our proposed mutual information-based load balancing loss, sets new state-of-the-art results across heterogeneous scenarios, including sequential retrieval models in recommendation systems and finetuning language models for question answering; and our approximate top-k algorithms outperform baselines by up to 66x in latency while achieving >.99 recall rate compared to exact algorithms.

PaperPDFCode

Code

bailuding/rails officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

Question AnsweringRecommendation SystemsRetrieval

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Recommendation Systems Amazon-Book HSTU+MoL HR@10 0.0613 #14 of 16 Archive leaderboard report
Recommendation Systems Amazon-Book HSTU+MoL HR@50 0.1292 #14 of 16 Archive leaderboard report
Recommendation Systems Amazon-Book HSTU+MoL NDCG@10 0.0350 #14 of 16 Archive leaderboard report
Recommendation Systems Amazon-Book HSTU+MoL NDCG@50 0.0498 #14 of 16 Archive leaderboard report
Recommendation Systems MovieLens 1M HSTU+MoL HR@10 (full corpus) .3412 #28 of 31 Archive leaderboard report
Recommendation Systems MovieLens 1M HSTU+MoL NDCG@10 (full corpus) .1979 #28 of 31 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections