{"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/hypro-a-hybridly-normalized-probabilistic","title":"HYPRO: A Hybridly Normalized Probabilistic Model for Long-Horizon Prediction of Event Sequences","arxiv_id":"2210.01753","date":"2022-10-04","proceeding":null,"authors":["Siqiao Xue","Xiaoming Shi","james Y zhang","Hongyuan Mei"],"abstract":"In this paper, we tackle the important yet under-investigated problem of making long-horizon prediction of event sequences. Existing state-of-the-art models do not perform well at this task due to their autoregressive structure. We propose HYPRO, a hybridly normalized probabilistic model that naturally fits this task: its first part is an autoregressive base model that learns to propose predictions; its second part is an energy function that learns to reweight the proposals such that more realistic predictions end up with higher probabilities. We also propose efficient training and inference algorithms for this model. Experiments on multiple real-world datasets demonstrate that our proposed HYPRO model can significantly outperform previous models at making long-horizon predictions of future events. We also conduct a range of ablation studies to investigate the effectiveness of each component of our proposed methods.","url_abs":"https://arxiv.org/abs/2210.01753v1","url_pdf":"https://arxiv.org/pdf/2210.01753v1.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":"hypro-a-hybridly-normalized-probabilistic","repo_url":"https://github.com/alipay/hypro_tpp","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"hypro-a-hybridly-normalized-probabilistic","repo_url":"https://github.com/ilampard/hypro_tpp","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"hypro-a-hybridly-normalized-probabilistic","repo_url":"https://github.com/ant-research/hypro_tpp","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"hypro-a-hybridly-normalized-probabilistic","repo_url":"https://github.com/ivan-chai/hotpp-benchmark","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[],"methods":[{"method_slug":"base","method_name":"BASE"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2210.01753","atlas_url":"https://app.syntology.ai/?focus=2210.01753","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2210.01753"}},"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":"deterministic:regex_extraction","url":"https://github.com/yangalan123/anhp-andtt","reach":null},{"provenance":"deterministic:regex_extraction","url":"https://github.com/alipay/hypro_tpp","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/iLampard/hypro_tpp","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/hongyuanmei/neural-hawkes-particle-smoothing","reach":{"status":"ok","spdx":"BSD-3-Clause"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ivan-chai/hotpp-benchmark","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ilampard/hypro_tpp","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ant-research/hypro_tpp","reach":null}],"summary":{"ran":14,"ran_draft_wrong":1,"unverified":9},"by_repo_kind":{"official":{"samples":7,"ran":7,"repositories":1},"listed":{"samples":11,"ran":7,"repositories":2},"found_in_text":{"samples":6,"ran":1,"repositories":2}},"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":"bfffdf8e1209b24c","entry":"BaseModel","repo":"ant-research/hypro_tpp","repo_kind":"listed","path":"hypro_tpp/models/xfmr_nhp_fast.py","file_url":"https://github.com/ant-research/hypro_tpp/blob/HEAD/hypro_tpp/models/xfmr_nhp_fast.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"bfffdf8e1209b24c"}},{"code_sha256_prefix":"ad8afbb3cfd7019b","entry":"EncoderLayer","repo":"ant-research/hypro_tpp","repo_kind":"listed","path":"hypro_tpp/models/xfmr_nhp_fast.py","file_url":"https://github.com/ant-research/hypro_tpp/blob/HEAD/hypro_tpp/models/xfmr_nhp_fast.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ad8afbb3cfd7019b"}},{"code_sha256_prefix":"8f782f28d3d8e855","entry":"MultiHeadAttention","repo":"ant-research/hypro_tpp","repo_kind":"listed","path":"hypro_tpp/models/xfmr_nhp_fast.py","file_url":"https://github.com/ant-research/hypro_tpp/blob/HEAD/hypro_tpp/models/xfmr_nhp_fast.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"8f782f28d3d8e855"}},{"code_sha256_prefix":"d68aa2c5bcfcfed4","entry":"SublayerConnection","repo":"ant-research/hypro_tpp","repo_kind":"listed","path":"hypro_tpp/models/xfmr_nhp_fast.py","file_url":"https://github.com/ant-research/hypro_tpp/blob/HEAD/hypro_tpp/models/xfmr_nhp_fast.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d68aa2c5bcfcfed4"}},{"code_sha256_prefix":"4a7ec9134a46cc23","entry":"XFMRNHPFast","repo":"ant-research/hypro_tpp","repo_kind":"listed","path":"hypro_tpp/models/xfmr_nhp_fast.py","file_url":"https://github.com/ant-research/hypro_tpp/blob/HEAD/hypro_tpp/models/xfmr_nhp_fast.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4a7ec9134a46cc23"}},{"code_sha256_prefix":"583f1f767c810249","entry":"XFMRNHPFast","repo":"yangalan123/anhp-andtt","repo_kind":"found_in_text","path":"anhp/model/xfmr_nhp_fast.py","file_url":"https://github.com/yangalan123/anhp-andtt/blob/HEAD/anhp/model/xfmr_nhp_fast.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"583f1f767c810249"}},{"code_sha256_prefix":"8abbfdabbdf5e708","entry":"attention","repo":"alipay/hypro_tpp","repo_kind":"official","path":"hypro_tpp/models/layers.py","file_url":"https://github.com/alipay/hypro_tpp/blob/HEAD/hypro_tpp/models/layers.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"8abbfdabbdf5e708"}},{"code_sha256_prefix":"d51e14e958836775","entry":"compute_delta","repo":"ivan-chai/hotpp-benchmark","repo_kind":"listed","path":"hotpp/losses/common.py","file_url":"https://github.com/ivan-chai/hotpp-benchmark/blob/HEAD/hotpp/losses/common.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":"d51e14e958836775"}},{"code_sha256_prefix":"2148f6ec1007f87b","entry":"create_dataloader","repo":"alipay/hypro_tpp","repo_kind":"official","path":"hypro_tpp/preprocess/data_loader.py","file_url":"https://github.com/alipay/hypro_tpp/blob/HEAD/hypro_tpp/preprocess/data_loader.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":"2148f6ec1007f87b"}},{"code_sha256_prefix":"58ff88767659c8e2","entry":"find_alignment_mc","repo":"alipay/hypro_tpp","repo_kind":"official","path":"hypro_tpp/utils/metrics.py","file_url":"https://github.com/alipay/hypro_tpp/blob/HEAD/hypro_tpp/utils/metrics.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":"58ff88767659c8e2"}},{"code_sha256_prefix":"0d758078e8864fdf","entry":"get_horizon_lengths","repo":"ivan-chai/hotpp-benchmark","repo_kind":"listed","path":"hotpp/info.py","file_url":"https://github.com/ivan-chai/hotpp-benchmark/blob/HEAD/hotpp/info.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":"0d758078e8864fdf"}},{"code_sha256_prefix":"08a43a55e023ab89","entry":"load_config","repo":"alipay/hypro_tpp","repo_kind":"official","path":"hypro_tpp/utils/log.py","file_url":"https://github.com/alipay/hypro_tpp/blob/HEAD/hypro_tpp/utils/log.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":"08a43a55e023ab89"}},{"code_sha256_prefix":"3a664d327d5f2e80","entry":"make_config_string","repo":"alipay/hypro_tpp","repo_kind":"official","path":"hypro_tpp/utils/misc.py","file_url":"https://github.com/alipay/hypro_tpp/blob/HEAD/hypro_tpp/utils/misc.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":"3a664d327d5f2e80"}},{"code_sha256_prefix":"371695e02ece447c","entry":"time_rmse_np","repo":"alipay/hypro_tpp","repo_kind":"official","path":"hypro_tpp/utils/metrics.py","file_url":"https://github.com/alipay/hypro_tpp/blob/HEAD/hypro_tpp/utils/metrics.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":"371695e02ece447c"}},{"code_sha256_prefix":"d72eb69e38a09eba","entry":"type_acc_np","repo":"alipay/hypro_tpp","repo_kind":"official","path":"hypro_tpp/utils/metrics.py","file_url":"https://github.com/alipay/hypro_tpp/blob/HEAD/hypro_tpp/utils/metrics.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d72eb69e38a09eba"}},{"code_sha256_prefix":"1a34b8d0a489e850","entry":"colored","repo":"hongyuanmei/neural-hawkes-particle-smoothing","repo_kind":"found_in_text","path":"mp_manager/core/color_text.py","file_url":"https://github.com/hongyuanmei/neural-hawkes-particle-smoothing/blob/HEAD/mp_manager/core/color_text.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"1a34b8d0a489e850"}},{"code_sha256_prefix":"a84d93385888f3b2","entry":"device_run","repo":"hongyuanmei/neural-hawkes-particle-smoothing","repo_kind":"found_in_text","path":"mp_manager/core/run_func.py","file_url":"https://github.com/hongyuanmei/neural-hawkes-particle-smoothing/blob/HEAD/mp_manager/core/run_func.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"a84d93385888f3b2"}},{"code_sha256_prefix":"aeccc4362da3db37","entry":"eval_embeddings","repo":"ivan-chai/hotpp-benchmark","repo_kind":"listed","path":"hotpp/eval_downstream.py","file_url":"https://github.com/ivan-chai/hotpp-benchmark/blob/HEAD/hotpp/eval_downstream.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":"aeccc4362da3db37"}},{"code_sha256_prefix":"183f293f3497c300","entry":"evaluate","repo":"ivan-chai/hotpp-benchmark","repo_kind":"listed","path":"hotpp/evaluate.py","file_url":"https://github.com/ivan-chai/hotpp-benchmark/blob/HEAD/hotpp/evaluate.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":"183f293f3497c300"}},{"code_sha256_prefix":"502423075a8fcbb0","entry":"makeHiddenForBound","repo":"hongyuanmei/neural-hawkes-particle-smoothing","repo_kind":"found_in_text","path":"nhps/models/utils.py","file_url":"https://github.com/hongyuanmei/neural-hawkes-particle-smoothing/blob/HEAD/nhps/models/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"502423075a8fcbb0"}},{"code_sha256_prefix":"0de796a888ce97a7","entry":"makeHiddenForLambda","repo":"hongyuanmei/neural-hawkes-particle-smoothing","repo_kind":"found_in_text","path":"nhps/models/utils.py","file_url":"https://github.com/hongyuanmei/neural-hawkes-particle-smoothing/blob/HEAD/nhps/models/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"0de796a888ce97a7"}},{"code_sha256_prefix":"7893975b324c3d57","entry":"parse_result","repo":"ivan-chai/hotpp-benchmark","repo_kind":"listed","path":"hotpp/eval_downstream.py","file_url":"https://github.com/ivan-chai/hotpp-benchmark/blob/HEAD/hotpp/eval_downstream.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":"7893975b324c3d57"}},{"code_sha256_prefix":"56bd9a8fb615a7cc","entry":"run","repo":"hongyuanmei/neural-hawkes-particle-smoothing","repo_kind":"found_in_text","path":"mp_manager/core/run_func.py","file_url":"https://github.com/hongyuanmei/neural-hawkes-particle-smoothing/blob/HEAD/mp_manager/core/run_func.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"56bd9a8fb615a7cc"}},{"code_sha256_prefix":"d35314d71442b416","entry":"test","repo":"ivan-chai/hotpp-benchmark","repo_kind":"listed","path":"hotpp/evaluate.py","file_url":"https://github.com/ivan-chai/hotpp-benchmark/blob/HEAD/hotpp/evaluate.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":"d35314d71442b416"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}