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 · DOI

In modern recommendation systems, a fundamental tension exists between the high accuracy of "dense" retrieval and the extreme efficiency of "generative" retrieval. This paper, a collaboration between Meta AI and several academic institutions, introduces LIGER (LeveragIng dense retrieval for GEnerative Retrieval), a hybrid architecture designed to resolve this trade-off while specifically addressing the critical failure of generative models in cold-start scenarios.

The Retrieval Dilemma

Sequential recommendation aims to predict a user's next interaction based on their historical behavior. Currently, two paradigms dominate the field:

  1. Dense Retrieval (DR): The traditional embedding-centric approach. Items are mapped to high-dimensional vectors, and recommendations are made by calculating similarity (e.g., inner product) between a user vector and every item in the database. While accurate and robust to new items, it is memory-intensive and computationally expensive at scale ($O(N)$ complexity).
  2. Generative Retrieval (GR): A newer approach where a Transformer directly "generates" the ID of the next item. It utilizes Semantic IDs (SIDs)—hierarchical numerical sequences that capture item categories (e.g., "Electronics > Audio"). While highly efficient ($O(tK)$ complexity), GR struggles with accuracy and suffers from a complete failure in cold-start scenarios, where it cannot recommend items not seen during training.

The LIGER Framework

LIGER unifies these paradigms through a multi-objective Transformer architecture. Unlike pure generative models that overfit to specific ID sequences, LIGER forces the model to learn both a generative path for speed and a dense path for semantic mapping.

Figure 5: Architecture comparison between Dense Retrieval, Generative Retrieval, and the proposed LIGER model.

As shown in the architecture diagram, LIGER utilizes a bidirectional Transformer encoder that processes item representations, positions, and Semantic IDs. It then branches into two heads:

  • The Generative Head: Predicts the next item's SID sequence using standard language modeling loss.
  • The Dense Head: Produces a high-quality user representation vector trained to align with the text-based embeddings of target items.

During inference, LIGER employs a two-step process. First, it uses the generative head and beam search to quickly generate a candidate set. Second, it supplements this list with cold-start items and uses the dense head to re-rank the small candidate pool. This maintains the efficiency of GR while regaining the ranking power of DR.

Experimental Evaluation

The authors evaluated LIGER on four academic benchmarks: Amazon Beauty, Sports, Toys, and Steam. A key finding was the "Softmax Bottleneck": generative models fail at cold-start not because of the SIDs themselves, but because the next-token prediction mechanism assigns near-zero probability to IDs not frequently seen during training.

Figure 4: Performance comparison (Recall@10) highlighting the cold-start failure of generative retrieval (TIGER) compared to dense retrieval.

As illustrated in the results table, the generative baseline (TIGER) frequently achieves a 0.0 Recall@10 for cold-start items across multiple datasets. In contrast, LIGER bridges this gap. For instance, in the Amazon Beauty dataset, while TIGER failed entirely on cold-start items, LIGER achieved a 0.10 Recall@10, matching or exceeding specialized dense models while maintaining a significantly lower computational footprint.

Conclusion

LIGER demonstrates that the strengths of generative and dense retrieval are complementary. By forcing a model to learn semantic mappings alongside ID generation, researchers can build recommendation systems that are both lightning-fast and capable of handling the dynamic nature of real-world catalogs. Future work will focus on scaling these hybrid models to industrial-sized datasets with millions of items.

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