Unifying Generative and Dense Retrieval for Sequential Recommendation

Liu Yang, Fabian Paischer, Kaveh Hassani, Jiacheng Li, Shuai Shao, Zhang Gabriel Li, Yun He, Xue Feng, Nima Noorshams, Sem Park, Bo Long, Robert D Nowak, Xiaoli Gao, Hamid Eghbalzadeh · Submission to ICLR 2025 · Rejected

TL;DR

LIGER (LeveragIng dense retrieval for GEnerative Retrieval) is a hybrid recommendation framework that combines the high-ranking accuracy of dense retrieval with the resource efficiency of generative retrieval. By using a generative model to prune the search space and a dense encoder for final ranking, LIGER achieves state-of-the-art performance on sequential recommendation tasks while significantly outperforming existing generative models on "cold-start" items.

What Problem Does This Paper Address?

In sequential recommendation, the goal is to predict the next item a user will interact with based on their history. Currently, two paradigms dominate the field, each with distinct trade-offs:

  1. Sequential Dense Retrieval (DR): These models represent users and items as high-dimensional vectors (embeddings). Retrieval involves a "Maximum Inner Product Search" (MIPS) across all items. While highly accurate, DR scales poorly. As the number of items ($N$) grows, storing and searching millions of embeddings becomes computationally and financially expensive ($O(N)$ complexity).
  2. Generative Retrieval (GR): A newer approach where a model (like a Transformer) directly predicts the "ID" of the next item, much like a language model predicts the next word. This is highly efficient ($O(\text{log } N)$) but typically suffers from lower ranking accuracy and a severe "cold-start" problem—it struggles to recommend new items that weren't seen frequently during training.
Performance gap between Dense and Generative (TIGER) retrieval

The authors identify a lack of fair, controlled comparisons between these two paradigms and propose a unified architecture to capture the "best of both worlds."

Methods: Introducing LIGER

The authors introduce LIGER, which integrates dense retrieval mechanisms into a generative framework to overcome the limitations of both.

Comparison of Dense Retrieval, Generative Retrieval, and the proposed LIGER architecture

Key components of the LIGER framework include:

  • Semantic IDs (SIDs): Instead of arbitrary integer IDs, items are assigned "Semantic IDs" generated via an RQ-VAE (Residual Quantized Variational Autoencoder) based on their textual descriptions (title, brand, category, price). This ensures that semantically similar items share similar ID prefixes.
  • Joint Training: Unlike standard GR, which only uses a next-token prediction loss, LIGER is trained on two objectives simultaneously:
  • Generative Loss: Predicting the next item's Semantic ID tokens.
  • Dense Loss: Aligning the encoder's output representation with the target item's text embedding using cosine similarity.
  • Hybrid Inference: During recommendation, LIGER uses a two-step process. First, the generative "head" uses beam search to quickly identify a small set of $K$ candidates. Second, the dense "head" ranks these $K$ candidates using the predicted embedding.
  • Cold-Start Supplementation: To fix the generative model's tendency to ignore new items, the authors explicitly add cold-start items to the candidate set before the final dense ranking stage.

Key Insights and Ideas

  • The Objective Function Gap: The authors discovered that the performance gap between DR and GR isn't necessarily about the IDs used, but the loss function. Similarity-based ranking (DR) is fundamentally better at fine-grained ranking than next-token probability (GR).
  • The Generative "Hard" Threshold: GR models fail at cold-start because of beam search. If a cold-start item's probability is even slightly lower than the top-$K$ items, it is completely pruned. DR is "softer" because it can use text embeddings as a prior to recognize a new item's relevance.
  • Efficiency vs. Scale: On small academic datasets (~12k items), Dense Retrieval is actually faster because inner-product math is highly optimized. However, LIGER/GR scales much better; once the item pool exceeds 1 million, the $O(N)$ cost of Dense Retrieval becomes a bottleneck, while LIGER's cost remains relatively flat.

Key Results

The model was evaluated on four widely used academic benchmarks (Amazon Beauty, Sports, Toys, and Steam), with specific hold-out splits for items with fewer than five interactions to test cold-start capabilities.

  • Superior Accuracy: LIGER consistently achieved the best or second-best results across all datasets. For example, on the Beauty dataset, LIGER achieved an NDCG@10 of 4.020, significantly higher than the base generative model (TIGER) at 3.216.
  • Solving Cold-Start: The improvement in cold-start scenarios was dramatic. On the Toys dataset, the generative TIGER model had a 0.0 Recall@10 for cold-start items, whereas LIGER achieved 13.063.
  • Bridging the Gap: A "Normalized Performance Gap" analysis showed that as the number of candidates ($K$) retrieved by the generative head increases, LIGER's performance smoothly interpolates toward (and eventually matches) the performance of pure Dense Retrieval.

Limitations and Future Work

While promising, the study focused on academic datasets with roughly 12,000 items. While the authors provide theoretical scaling analysis, the practical performance of LIGER on industry-scale datasets (billions of items) remains to be proven. Additionally, the current method of supplementing the candidate set with cold-start items assumes the system can easily identify and inject these items. Developing more automated ways to integrate cold-start items directly into the beam search itself would be a valuable next step for real-world deployment.

Summary updated

BibTeX
@misc{yang2024unifying,
  author = {Liu Yang and Fabian Paischer and Kaveh Hassani and Jiacheng Li and Shuai Shao and Zhang Gabriel Li and Yun He and Xue Feng and Nima Noorshams and Sem Park and Bo Long and Robert D Nowak and Xiaoli Gao and Hamid Eghbalzadeh},
  title = {{Unifying Generative and Dense Retrieval for Sequential Recommendation}},
  year = {2024},
  eprint = {2411.18814},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.18814},
}
Figure