{"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/temporal-interest-network-for-click-through","title":"Temporal Interest Network for User Response Prediction","arxiv_id":"2308.08487","date":"2023-08-15","proceeding":null,"authors":["Haolin Zhou","Junwei Pan","Xinyi Zhou","Xihua Chen","Jie Jiang","Xiaofeng Gao","Guihai Chen"],"abstract":"User response prediction is essential in industrial recommendation systems, such as online display advertising. Among all the features in recommendation models, user behaviors are among the most critical. Many works have revealed that a user's behavior reflects her interest in the candidate item, owing to the semantic or temporal correlation between behaviors and the candidate. While the literature has individually examined each of these correlations, researchers have yet to analyze them in combination, that is, the semantic-temporal correlation. We empirically measure this correlation and observe intuitive yet robust patterns. We then examine several popular user interest models and find that, surprisingly, none of them learn such correlation well. To fill this gap, we propose a Temporal Interest Network (TIN) to capture the semantic-temporal correlation simultaneously between behaviors and the target. We achieve this by incorporating target-aware temporal encoding, in addition to semantic encoding, to represent behaviors and the target. Furthermore, we conduct explicit 4-way interaction by deploying target-aware attention and target-aware representation to capture both semantic and temporal correlation. We conduct comprehensive evaluations on two popular public datasets, and our proposed TIN outperforms the best-performing baselines by 0.43% and 0.29% on GAUC, respectively. During online A/B testing in Tencent's advertising platform, TIN achieves 1.65% cost lift and 1.93% GMV lift over the base model. It has been successfully deployed in production since October 2023, serving the WeChat Moments traffic. We have released our code at https://github.com/zhouxy1003/TIN.","url_abs":"https://arxiv.org/abs/2308.08487v4","url_pdf":"https://arxiv.org/pdf/2308.08487v4.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":"temporal-interest-network-for-click-through","repo_url":"https://github.com/zhouxy1003/tin","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok"}},{"paper_slug":"temporal-interest-network-for-click-through","repo_url":"https://github.com/junwei-pan/recscope","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok"}}],"tasks":[{"task_slug":"click-through-rate-prediction","task_name":"Click-Through Rate Prediction"},{"task_slug":"prediction","task_name":"Prediction"},{"task_slug":"recommendation-systems","task_name":"Recommendation Systems"}],"methods":[{"method_slug":"base","method_name":"BASE"},{"method_slug":null,"method_name":"None"},{"method_slug":"fail","method_name":"fail"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2308.08487","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2308.08487"}},"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/zhouxy1003/tin","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/junwei-pan/recscope","reach":{"status":"ok"}}],"summary":{"ran":4,"unverified":3},"by_repo_kind":{"official":{"samples":7,"ran":4,"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":7,"samples":[{"code_sha256_prefix":"2b8f6d1bfbb4bc60","entry":"calc_auc","repo":"zhouxy1003/tin","repo_kind":"official","path":"model/bert4rec/train_bert4rec.py","file_url":"https://github.com/zhouxy1003/tin/blob/HEAD/model/bert4rec/train_bert4rec.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":"2b8f6d1bfbb4bc60"}},{"code_sha256_prefix":"21b4500e6d91d348","entry":"extract_axis_1","repo":"zhouxy1003/tin","repo_kind":"official","path":"model/base_model/model.py","file_url":"https://github.com/zhouxy1003/tin/blob/HEAD/model/base_model/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":"21b4500e6d91d348"}},{"code_sha256_prefix":"b5e91b6aaa3d3a99","entry":"sum_pooling","repo":"zhouxy1003/tin","repo_kind":"official","path":"model/bert4rec/model_bert4rec.py","file_url":"https://github.com/zhouxy1003/tin/blob/HEAD/model/bert4rec/model_bert4rec.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":"b5e91b6aaa3d3a99"}},{"code_sha256_prefix":"42ea7168debbed90","entry":"target_attention","repo":"zhouxy1003/tin","repo_kind":"official","path":"model/tin/tin.py","file_url":"https://github.com/zhouxy1003/tin/blob/HEAD/model/tin/tin.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":"42ea7168debbed90"}},{"code_sha256_prefix":"8dd6a8bb175546aa","entry":"bert4rec_attention","repo":"zhouxy1003/tin","repo_kind":"official","path":"model/bert4rec/model_bert4rec.py","file_url":"https://github.com/zhouxy1003/tin/blob/HEAD/model/bert4rec/model_bert4rec.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":"8dd6a8bb175546aa"}},{"code_sha256_prefix":"248cb3f5394e5f0e","entry":"self_attention","repo":"zhouxy1003/tin","repo_kind":"official","path":"model/bst/model_bst.py","file_url":"https://github.com/zhouxy1003/tin/blob/HEAD/model/bst/model_bst.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":"248cb3f5394e5f0e"}},{"code_sha256_prefix":"135f0e7132410854","entry":"vanilla_self_attention","repo":"zhouxy1003/tin","repo_kind":"official","path":"model/bert4rec/model_bert4rec.py","file_url":"https://github.com/zhouxy1003/tin/blob/HEAD/model/bert4rec/model_bert4rec.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":"135f0e7132410854"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}