{"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/eager-two-stream-generative-recommender-with-1","title":"EAGER: Two-Stream Generative Recommender with Behavior-Semantic Collaboration","arxiv_id":"2406.14017","date":"2024-06-20","proceeding":null,"authors":["Ye Wang","Jiahao Xun","Minjie Hong","Jieming Zhu","Tao Jin","Wang Lin","Haoyuan Li","Linjun Li","Yan Xia","Zhou Zhao","Zhenhua Dong"],"abstract":"Generative retrieval has recently emerged as a promising approach to sequential recommendation, framing candidate item retrieval as an autoregressive sequence generation problem. However, existing generative methods typically focus solely on either behavioral or semantic aspects of item information, neglecting their complementary nature and thus resulting in limited effectiveness. To address this limitation, we introduce EAGER, a novel generative recommendation framework that seamlessly integrates both behavioral and semantic information. Specifically, we identify three key challenges in combining these two types of information: a unified generative architecture capable of handling two feature types, ensuring sufficient and independent learning for each type, and fostering subtle interactions that enhance collaborative information utilization. To achieve these goals, we propose (1) a two-stream generation architecture leveraging a shared encoder and two separate decoders to decode behavior tokens and semantic tokens with a confidence-based ranking strategy; (2) a global contrastive task with summary tokens to achieve discriminative decoding for each type of information; and (3) a semantic-guided transfer task designed to implicitly promote cross-interactions through reconstruction and estimation objectives. We validate the effectiveness of EAGER on four public benchmarks, demonstrating its superior performance compared to existing methods.","url_abs":"https://arxiv.org/abs/2406.14017v2","url_pdf":"https://arxiv.org/pdf/2406.14017v2.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":"eager-two-stream-generative-recommender-with-1","repo_url":"https://github.com/yewzz/EAGER","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"retrieval","task_name":"Retrieval"},{"task_slug":"sequential-recommendation","task_name":"Sequential Recommendation"}],"methods":[{"method_slug":"focus","method_name":"Focus"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2406.14017","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2406.14017"}},"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/yewzz/EAGER","reach":{"status":"ok"}}],"summary":{"ran":8,"ran_violates":1,"unverified":2},"by_repo_kind":{"official":{"samples":11,"ran":9,"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":11,"samples":[{"code_sha256_prefix":"944878bfabf57548","entry":"cal_nll_loss","repo":"yewzz/EAGER","repo_kind":"official","path":"EAGER/lib/HF_Model.py","file_url":"https://github.com/yewzz/EAGER/blob/HEAD/EAGER/lib/HF_Model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"944878bfabf57548"}},{"code_sha256_prefix":"3146f2599952c1b8","entry":"f_measure","repo":"yewzz/EAGER","repo_kind":"official","path":"EAGER/train_din.py","file_url":"https://github.com/yewzz/EAGER/blob/HEAD/EAGER/train_din.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3146f2599952c1b8"}},{"code_sha256_prefix":"626c9395b624179e","entry":"f_measure","repo":"yewzz/EAGER","repo_kind":"official","path":"EAGER/train_rec.py","file_url":"https://github.com/yewzz/EAGER/blob/HEAD/EAGER/train_rec.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"626c9395b624179e"}},{"code_sha256_prefix":"b4a92ef31fda7e78","entry":"info_nce","repo":"yewzz/EAGER","repo_kind":"official","path":"EAGER/lib/HF_Model.py","file_url":"https://github.com/yewzz/EAGER/blob/HEAD/EAGER/lib/HF_Model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b4a92ef31fda7e78"}},{"code_sha256_prefix":"74f85d8cb945ff78","entry":"initialize","repo":"yewzz/EAGER","repo_kind":"official","path":"EAGER/lib/KmeansTree.py","file_url":"https://github.com/yewzz/EAGER/blob/HEAD/EAGER/lib/KmeansTree.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"74f85d8cb945ff78"}},{"code_sha256_prefix":"95b98702324fcb30","entry":"pairwise_distance_function","repo":"yewzz/EAGER","repo_kind":"official","path":"EAGER/lib/KmeansTree.py","file_url":"https://github.com/yewzz/EAGER/blob/HEAD/EAGER/lib/KmeansTree.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"95b98702324fcb30"}},{"code_sha256_prefix":"4552c16201e8e4b0","entry":"presision","repo":"yewzz/EAGER","repo_kind":"official","path":"EAGER/train_din.py","file_url":"https://github.com/yewzz/EAGER/blob/HEAD/EAGER/train_din.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4552c16201e8e4b0"}},{"code_sha256_prefix":"61f08da1a0a17b25","entry":"recall","repo":"yewzz/EAGER","repo_kind":"official","path":"EAGER/train_din.py","file_url":"https://github.com/yewzz/EAGER/blob/HEAD/EAGER/train_din.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"61f08da1a0a17b25"}},{"code_sha256_prefix":"55f1419d4d8c483c","entry":"transpose","repo":"yewzz/EAGER","repo_kind":"official","path":"EAGER/lib/HF_Model.py","file_url":"https://github.com/yewzz/EAGER/blob/HEAD/EAGER/lib/HF_Model.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"55f1419d4d8c483c"}},{"code_sha256_prefix":"7a6c7633bb7110ea","entry":"cut","repo":"yewzz/EAGER","repo_kind":"official","path":"EAGER/lib/generate_train_and_test_data.py","file_url":"https://github.com/yewzz/EAGER/blob/HEAD/EAGER/lib/generate_train_and_test_data.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7a6c7633bb7110ea"}},{"code_sha256_prefix":"82efa6f04d934e54","entry":"kmeans_equal","repo":"yewzz/EAGER","repo_kind":"official","path":"EAGER/lib/KmeansTree.py","file_url":"https://github.com/yewzz/EAGER/blob/HEAD/EAGER/lib/KmeansTree.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"82efa6f04d934e54"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}