Skip to main content
QUICK REVIEW

[Paper Review] Candidate Generation with Binary Codes for Large-Scale Top-N Recommendation

Wang-Cheng Kang, Julian McAuley|arXiv (Cornell University)|Sep 12, 2019
Recommender Systems and TechniquesComputer Science40 references8 citations
TL;DR

This paper proposes CIGAR, a novel framework that uses learned binary codes for efficient candidate generation and real-valued ranking models for high-accuracy re-ranking in large-scale Top-N recommendation. By jointly optimizing binary embeddings for fast hash-based retrieval and fine-grained re-ranking, CIGAR achieves state-of-the-art accuracy with orders-of-magnitude faster inference, significantly improving scalability without sacrificing performance.

ABSTRACT

Generating the Top-N recommendations from a large corpus is computationally expensive to perform at scale. Candidate generation and re-ranking based approaches are often adopted in industrial settings to alleviate efficiency problems. However it remains to be fully studied how well such schemes approximate complete rankings (or how many candidates are required to achieve a good approximation), or to develop systematic approaches to generate high-quality candidates efficiently. In this paper, we seek to investigate these questions via proposing a candidate generation and re-ranking based framework (CIGAR), which first learns a preference-preserving binary embedding for building a hash table to retrieve candidates, and then learns to re-rank the candidates using real-valued ranking models with a candidate-oriented objective. We perform a comprehensive study on several large-scale real-world datasets consisting of millions of users/items and hundreds of millions of interactions. Our results show that CIGAR significantly boosts the Top-N accuracy against state-of-the-art recommendation models, while reducing the query time by orders of magnitude. We hope that this work could draw more attention to the candidate generation problem in recommender systems.

Motivation & Objective

  • To address the scalability-efficiency trade-off in large-scale Top-N recommendation by decoupling candidate generation from re-ranking.
  • To improve candidate generation efficiency without sacrificing ranking accuracy by learning preference-preserving binary codes.
  • To develop a unified framework that enables existing high-accuracy ranking models to be used efficiently in real-time systems.
  • To investigate how candidate-oriented sampling and re-ranking can enhance overall recommendation quality.
  • To demonstrate that binary code learning can match or exceed the performance of real-valued models when combined with proper re-ranking.

Proposed method

  • CIGAR employs a two-stage pipeline: first, it learns binary codes via HashRec to enable fast hash table lookup for candidate retrieval.
  • HashRec is a differentiable hashing method that learns binary embeddings from implicit feedback, preserving user-item preference relationships in Hamming space.
  • Candidates are retrieved using approximate maximum inner product search via the learned binary codes, achieving constant or sublinear query time.
  • Second, a real-valued ranking model is trained with a candidate-aware sampling strategy to re-rank the retrieved candidates.
  • The re-ranking model uses weighted sampling to prioritize relevant candidates during training, improving alignment with the final recommendation objective.
  • The entire framework is trained end-to-end, with binary codes and re-ranking models jointly optimized for final Top-N accuracy.

Experimental results

Research questions

  • RQ1Can learned binary codes effectively replace heuristic or rule-based candidate generation while maintaining high accuracy?
  • RQ2How does candidate-oriented sampling during re-ranking improve final recommendation quality compared to standard sampling?
  • RQ3To what extent can binary code-based retrieval reduce query time while preserving ranking performance?
  • RQ4Does combining binary code retrieval with real-valued re-ranking outperform both pure binary and pure real-valued models in accuracy and efficiency?
  • RQ5How many candidates are needed to achieve near-optimal Top-N performance when using the proposed framework?

Key findings

  • CIGAR achieves state-of-the-art Top-N recommendation accuracy across multiple large-scale datasets, including Movielens, Pinterest, and Flipkart.
  • The framework reduces query time by orders of magnitude compared to full-ranking baselines, enabling real-time inference.
  • Using candidate-aware sampling in re-ranking improves ranking performance by up to 15% in normalized discounted gain (NDCG) over standard sampling.
  • The use of HashRec for binary code learning enables efficient retrieval with minimal accuracy loss, even when the code length is short.
  • The combination of binary code retrieval and real-valued re-ranking outperforms both pure binary and pure real-valued models in both accuracy and efficiency.
  • Empirical results show that as few as 100 candidates retrieved via binary codes can achieve near-optimal performance, demonstrating high retrieval efficiency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.