{"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/supra-laplacian-encoding-for-transformer-on","title":"Supra-Laplacian Encoding for Transformer on Dynamic Graphs","arxiv_id":"2409.17986","date":"2024-09-26","proceeding":null,"authors":["Yannis Karmim","Marc Lafon","Raphael Fournier S'niehotta","Nicolas Thome"],"abstract":"Fully connected Graph Transformers (GT) have rapidly become prominent in the static graph community as an alternative to Message-Passing models, which suffer from a lack of expressivity, oversquashing, and under-reaching. However, in a dynamic context, by interconnecting all nodes at multiple snapshots with self-attention, GT loose both structural and temporal information. In this work, we introduce Supra-LAplacian encoding for spatio-temporal TransformErs (SLATE), a new spatio-temporal encoding to leverage the GT architecture while keeping spatio-temporal information. Specifically, we transform Discrete Time Dynamic Graphs into multi-layer graphs and take advantage of the spectral properties of their associated supra-Laplacian matrix. Our second contribution explicitly model nodes' pairwise relationships with a cross-attention mechanism, providing an accurate edge representation for dynamic link prediction. SLATE outperforms numerous state-of-the-art methods based on Message-Passing Graph Neural Networks combined with recurrent models (e.g LSTM), and Dynamic Graph Transformers, on 9 datasets. Code is available at: github.com/ykrmm/SLATE.","url_abs":"https://arxiv.org/abs/2409.17986v2","url_pdf":"https://arxiv.org/pdf/2409.17986v2.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":"supra-laplacian-encoding-for-transformer-on","repo_url":"https://github.com/ykrmm/slate","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"dynamic-link-prediction","task_name":"Dynamic Link Prediction"},{"task_slug":"link-prediction","task_name":"Link Prediction"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2409.17986","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2409.17986"}},"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/ykrmm/slate","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":5,"ran_draft_wrong":1},"by_repo_kind":{"official":{"samples":6,"ran":6,"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":"24c179d1051d65ff","entry":"edge_index_to_adj_matrix","repo":"ykrmm/slate","repo_kind":"official","path":"slate/lib/utils.py","file_url":"https://github.com/ykrmm/slate/blob/HEAD/slate/lib/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"24c179d1051d65ff"}},{"code_sha256_prefix":"97a9edbc9b184cc6","entry":"feed_dict_to_device","repo":"ykrmm/slate","repo_kind":"official","path":"slate/lib/utils.py","file_url":"https://github.com/ykrmm/slate/blob/HEAD/slate/lib/utils.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":"97a9edbc9b184cc6"}},{"code_sha256_prefix":"023f8488b000df51","entry":"g_to_device","repo":"ykrmm/slate","repo_kind":"official","path":"slate/lib/utils.py","file_url":"https://github.com/ykrmm/slate/blob/HEAD/slate/lib/utils.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":"023f8488b000df51"}},{"code_sha256_prefix":"2de4e2cc94d2b971","entry":"graphs_to_supra","repo":"ykrmm/slate","repo_kind":"official","path":"slate/lib/supra.py","file_url":"https://github.com/ykrmm/slate/blob/HEAD/slate/lib/supra.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":"2de4e2cc94d2b971"}},{"code_sha256_prefix":"b4a1a41169b57e33","entry":"pad_with_last_val","repo":"ykrmm/slate","repo_kind":"official","path":"slate/models/egcn_h.py","file_url":"https://github.com/ykrmm/slate/blob/HEAD/slate/models/egcn_h.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b4a1a41169b57e33"}},{"code_sha256_prefix":"2378ee541055b5be","entry":"reindex_edge_index","repo":"ykrmm/slate","repo_kind":"official","path":"slate/lib/supra.py","file_url":"https://github.com/ykrmm/slate/blob/HEAD/slate/lib/supra.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":"2378ee541055b5be"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}