{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/recommender-systems-with-generative-retrieval","title":"Recommender Systems with Generative Retrieval","arxiv_id":"2305.05065","date":"2023-05-08","proceeding":"NeurIPS 2023 11","authors":[],"abstract":"Modern recommender systems perform large-scale retrieval by first embedding queries and item candidates in the same unified space, followed by approximate nearest neighbor search to select top candidates given a query embedding. In this paper, we propose a novel generative retrieval approach, where the retrieval model autoregressively decodes the identifiers of the target candidates. To that end, we create semantically meaningful tuple of codewords to serve as a Semantic ID for each item. Given Semantic IDs for items in a user session, a Transformer-based sequence-to-sequence model is trained to predict the Semantic ID of the next item that the user will interact with. To the best of our knowledge, this is the first Semantic ID-based generative model for recommendation tasks. We show that recommender systems trained with the proposed paradigm significantly outperform the current SOTA models on various datasets. In addition, we show that incorporating Semantic IDs into the sequence-to-sequence model enhances its ability to generalize, as evidenced by the improved retrieval performance observed for items with no prior interaction history.","url_abs":"https://arxiv.org/abs/2305.05065v3","url_pdf":"https://arxiv.org/pdf/2305.05065v3.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"recommender-systems-with-generative-retrieval","repo_url":"https://github.com/EdoardoBotta/RQ-VAE-Recommender","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"recommendation-systems","task_name":"Recommendation Systems"},{"task_slug":"retrieval","task_name":"Retrieval"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2305.05065","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2305.05065"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/EdoardoBotta/RQ-VAE-Recommender","reach":null}],"summary":{"ran_draft_wrong":1,"unverified":4},"by_repo_kind":{"listed":{"samples":5,"ran":1,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"dce94bdb74c8ec33","entry":"_strip_dedup_col","repo":"EdoardoBotta/RQ-VAE-Recommender","repo_kind":"listed","path":"modules/model.py","file_url":"https://github.com/EdoardoBotta/RQ-VAE-Recommender/blob/HEAD/modules/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"dce94bdb74c8ec33"}},{"code_sha256_prefix":"1f14d55de416638b","entry":"EncoderDecoderRetrievalModel","repo":"EdoardoBotta/RQ-VAE-Recommender","repo_kind":"listed","path":"modules/model.py","file_url":"https://github.com/EdoardoBotta/RQ-VAE-Recommender/blob/HEAD/modules/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1f14d55de416638b"}},{"code_sha256_prefix":"1c452c4837125e67","entry":"GenerationOutput","repo":"EdoardoBotta/RQ-VAE-Recommender","repo_kind":"listed","path":"modules/model.py","file_url":"https://github.com/EdoardoBotta/RQ-VAE-Recommender/blob/HEAD/modules/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1c452c4837125e67"}},{"code_sha256_prefix":"bfd6ee16e9863ff5","entry":"ModelOutput","repo":"EdoardoBotta/RQ-VAE-Recommender","repo_kind":"listed","path":"modules/model.py","file_url":"https://github.com/EdoardoBotta/RQ-VAE-Recommender/blob/HEAD/modules/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"bfd6ee16e9863ff5"}},{"code_sha256_prefix":"b2b07769cd3f924f","entry":"TokenizedSeqBatch","repo":"EdoardoBotta/RQ-VAE-Recommender","repo_kind":"listed","path":"modules/model.py","file_url":"https://github.com/EdoardoBotta/RQ-VAE-Recommender/blob/HEAD/modules/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b2b07769cd3f924f"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}