{"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/tagnn-target-attentive-graph-neural-networks","title":"TAGNN: Target Attentive Graph Neural Networks for Session-based Recommendation","arxiv_id":"2005.02844","date":"2020-05-06","proceeding":null,"authors":["Feng Yu","Yanqiao Zhu","Qiang Liu","Shu Wu","Liang Wang","Tieniu Tan"],"abstract":"Session-based recommendation nowadays plays a vital role in many websites, which aims to predict users' actions based on anonymous sessions. There have emerged many studies that model a session as a sequence or a graph via investigating temporal transitions of items in a session. However, these methods compress a session into one fixed representation vector without considering the target items to be predicted. The fixed vector will restrict the representation ability of the recommender model, considering the diversity of target items and users' interests. In this paper, we propose a novel target attentive graph neural network (TAGNN) model for session-based recommendation. In TAGNN, target-aware attention adaptively activates different user interests with respect to varied target items. The learned interest representation vector varies with different target items, greatly improving the expressiveness of the model. Moreover, TAGNN harnesses the power of graph neural networks to capture rich item transitions in sessions. Comprehensive experiments conducted on real-world datasets demonstrate its superiority over state-of-the-art methods.","url_abs":"https://arxiv.org/abs/2005.02844v1","url_pdf":"https://arxiv.org/pdf/2005.02844v1.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":"tagnn-target-attentive-graph-neural-networks","repo_url":"https://github.com/CRIPAC-DIG/TAGNN","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"diversity","task_name":"Diversity"},{"task_slug":"graph-neural-network","task_name":"Graph Neural Network"},{"task_slug":"session-based-recommendations","task_name":"Session-Based Recommendations"}],"methods":[{"method_slug":"graph-neural-network","method_name":"Graph Neural Network"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/session-based-recommendations-on-diginetica","task":"Session-Based Recommendations","dataset":"Diginetica","model":"TAGNN","rank_in_archive_order":7,"of":13,"metrics":{"Hit@20":"51.31","MRR@20":"18.03"},"uses_additional_data":false},{"leaderboard":"/sota/session-based-recommendations-on-yoochoose1","task":"Session-Based Recommendations","dataset":"yoochoose1","model":"TAGNN","rank_in_archive_order":3,"of":4,"metrics":{"MRR@20":"31.12","Precision@20":"71.02"},"uses_additional_data":false},{"leaderboard":"/sota/session-based-recommendations-on-yoochoose1-1","task":"Session-Based Recommendations","dataset":"yoochoose1/64","model":"TAGNN","rank_in_archive_order":8,"of":11,"metrics":{"HR@20":"71.02","MRR@20":"31.12"},"uses_additional_data":false}],"syntology":{"syntology_url":"https://syntology.ai/paper/2005.02844","atlas_url":"https://app.syntology.ai/?focus=2005.02844","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2005.02844"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/CRIPAC-DIG/TAGNN","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran":1,"ran_honours":2,"unverified":3},"by_repo_kind":{"official":{"samples":6,"ran":3,"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":"ab41533f85ff63ce","entry":"split_validation","repo":"CRIPAC-DIG/TAGNN","repo_kind":"official","path":"utils.py","file_url":"https://github.com/CRIPAC-DIG/TAGNN/blob/HEAD/utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ab41533f85ff63ce"}},{"code_sha256_prefix":"c653657a12ab28d4","entry":"trans_to_cpu","repo":"CRIPAC-DIG/TAGNN","repo_kind":"official","path":"model.py","file_url":"https://github.com/CRIPAC-DIG/TAGNN/blob/HEAD/model.py","link_basis":"plan_row","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c653657a12ab28d4"}},{"code_sha256_prefix":"7a27709bcab8b8f3","entry":"trans_to_cuda","repo":"CRIPAC-DIG/TAGNN","repo_kind":"official","path":"model.py","file_url":"https://github.com/CRIPAC-DIG/TAGNN/blob/HEAD/model.py","link_basis":"plan_row","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7a27709bcab8b8f3"}},{"code_sha256_prefix":"62fa0eabd16730ce","entry":"build_graph","repo":"CRIPAC-DIG/TAGNN","repo_kind":"official","path":"utils.py","file_url":"https://github.com/CRIPAC-DIG/TAGNN/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"62fa0eabd16730ce"}},{"code_sha256_prefix":"d00d2724457e5fc9","entry":"data_masks","repo":"CRIPAC-DIG/TAGNN","repo_kind":"official","path":"utils.py","file_url":"https://github.com/CRIPAC-DIG/TAGNN/blob/HEAD/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d00d2724457e5fc9"}},{"code_sha256_prefix":"65806d9881d0fec6","entry":"forward","repo":"CRIPAC-DIG/TAGNN","repo_kind":"official","path":"model.py","file_url":"https://github.com/CRIPAC-DIG/TAGNN/blob/HEAD/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"65806d9881d0fec6"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}