{"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/dyg-mamba-continuous-state-space-modeling-on","title":"DyG-Mamba: Continuous State Space Modeling on Dynamic Graphs","arxiv_id":"2408.06966","date":"2024-08-13","proceeding":null,"authors":["Dongyuan Li","Shiyin Tan","Ying Zhang","Ming Jin","Shirui Pan","Manabu Okumura","Renhe Jiang"],"abstract":"Dynamic graph learning aims to uncover evolutionary laws in real-world systems, enabling accurate social recommendation (link prediction) or early detection of cancer cells (classification). Inspired by the success of state space models, e.g., Mamba, for efficiently capturing long-term dependencies in language modeling, we propose DyG-Mamba, a new continuous state space model (SSM) for dynamic graph learning. Specifically, we first found that using inputs as control signals for SSM is not suitable for continuous-time dynamic network data with irregular sampling intervals, resulting in models being insensitive to time information and lacking generalization properties. Drawing inspiration from the Ebbinghaus forgetting curve, which suggests that memory of past events is strongly correlated with time intervals rather than specific details of the events themselves, we directly utilize irregular time spans as control signals for SSM to achieve significant robustness and generalization. Through exhaustive experiments on 12 datasets for dynamic link prediction and dynamic node classification tasks, we found that DyG-Mamba achieves state-of-the-art performance on most of the datasets, while also demonstrating significantly improved computation and memory efficiency.","url_abs":"https://arxiv.org/abs/2408.06966v1","url_pdf":"https://arxiv.org/pdf/2408.06966v1.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":[],"tasks":[{"task_slug":"dynamic-link-prediction","task_name":"Dynamic Link Prediction"},{"task_slug":"dynamic-node-classification","task_name":"Dynamic Node Classification"},{"task_slug":"graph-learning","task_name":"Graph Learning"},{"task_slug":"language-modeling","task_name":"Language Modeling"},{"task_slug":"language-modelling","task_name":"Language Modelling"},{"task_slug":"link-prediction","task_name":"Link Prediction"},{"task_slug":"mamba","task_name":"Mamba"},{"task_slug":"node-classification","task_name":"Node Classification"},{"task_slug":"state-space-models","task_name":"State Space Models"}],"methods":[{"method_slug":"mamba","method_name":"Mamba"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2408.06966","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2408.06966"}},"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":"deterministic:regex_extraction","url":"https://github.com/Clearloveyuan/DyG-Mamba","reach":{"status":"ok"}}],"summary":{"ran":5,"unverified":1},"by_repo_kind":{"found_in_text":{"samples":6,"ran":5,"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":6,"samples":[{"code_sha256_prefix":"727d90514a9a5475","entry":"compute_src_dst_node_time_shifts","repo":"Clearloveyuan/DyG-Mamba","repo_kind":"found_in_text","path":"models/MemoryModel.py","file_url":"https://github.com/Clearloveyuan/DyG-Mamba/blob/HEAD/models/MemoryModel.py","link_basis":"harvester_set","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":"727d90514a9a5475"}},{"code_sha256_prefix":"1de6e005e59cdf96","entry":"edge_bank_time_window_memory","repo":"Clearloveyuan/DyG-Mamba","repo_kind":"found_in_text","path":"models/EdgeBank.py","file_url":"https://github.com/Clearloveyuan/DyG-Mamba/blob/HEAD/models/EdgeBank.py","link_basis":"harvester_set","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":"1de6e005e59cdf96"}},{"code_sha256_prefix":"0f56e3ae8a152b2b","entry":"edge_bank_unlimited_memory","repo":"Clearloveyuan/DyG-Mamba","repo_kind":"found_in_text","path":"models/EdgeBank.py","file_url":"https://github.com/Clearloveyuan/DyG-Mamba/blob/HEAD/models/EdgeBank.py","link_basis":"harvester_set","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":"0f56e3ae8a152b2b"}},{"code_sha256_prefix":"88019ae3a9154bea","entry":"linear_attn","repo":"Clearloveyuan/DyG-Mamba","repo_kind":"found_in_text","path":"models/DyGMamba.py","file_url":"https://github.com/Clearloveyuan/DyG-Mamba/blob/HEAD/models/DyGMamba.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":"88019ae3a9154bea"}},{"code_sha256_prefix":"8bcef3dc22f0489a","entry":"predict_link_probabilities","repo":"Clearloveyuan/DyG-Mamba","repo_kind":"found_in_text","path":"models/EdgeBank.py","file_url":"https://github.com/Clearloveyuan/DyG-Mamba/blob/HEAD/models/EdgeBank.py","link_basis":"harvester_set","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":"8bcef3dc22f0489a"}},{"code_sha256_prefix":"949d4613b1961d37","entry":"create_block","repo":"Clearloveyuan/DyG-Mamba","repo_kind":"found_in_text","path":"models/DyGMamba.py","file_url":"https://github.com/Clearloveyuan/DyG-Mamba/blob/HEAD/models/DyGMamba.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":"949d4613b1961d37"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}