{"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/arxiv-2511-08028","title":"Generalizable Insights for Graph Transformers in Theory and Practice","arxiv_id":"2511.08028","date":"2025-11-11","proceeding":"NeurIPS","authors":["Timo Stoll","Luis Müller","Christopher Morris"],"abstract":"Graph Transformers (GTs) have shown strong empirical performance, yet current architectures vary widely in their use of attention mechanisms, positional embeddings (PEs), and expressivity. Existing expressivity results are often tied to specific design choices and lack comprehensive empirical validation on large-scale data. This leaves a gap between theory and practice, preventing generalizable insights that exceed particular application domains. Here, we propose the Generalized-Distance Transformer (GDT), a GT architecture using standard attention that incorporates many advancements for GTs from recent years, and develop a fine-grained understanding of the GDT's representation power in terms of attention and PEs. Through extensive experiments, we identify design choices that consistently perform well across various applications, tasks, and model scales, demonstrating strong performance in a few-shot transfer setting without fine-tuning. Our evaluation covers over eight million graphs with roughly 270M tokens across diverse domains, including image-based object detection, molecular property prediction, code summarization, and out-of-distribution algorithmic reasoning. We distill our theoretical and practical findings into several generalizable insights about effective GT design, training, and inference.","url_abs":"https://arxiv.org/abs/2511.08028","url_pdf":"https://arxiv.org/pdf/2511.08028","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2511.08028","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2511.08028"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/GraphPKU/BREC","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":1,"unverified":9},"by_repo_kind":{"found_in_text":{"samples":10,"ran":1,"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":"8cece8d22b52bc54","entry":"choose_activation","repo":"GraphPKU/BREC","repo_kind":"found_in_text","path":"GSN/models_misc.py","file_url":"https://github.com/GraphPKU/BREC/blob/HEAD/GSN/models_misc.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8cece8d22b52bc54"}},{"code_sha256_prefix":"1faf842417b2551e","entry":"add_x","repo":"GraphPKU/BREC","repo_kind":"found_in_text","path":"SparseWL/neural_higher_order/BREC/BRECDataset_v3_3wl.py","file_url":"https://github.com/GraphPKU/BREC/blob/HEAD/SparseWL/neural_higher_order/BREC/BRECDataset_v3_3wl.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1faf842417b2551e"}},{"code_sha256_prefix":"e9338dcfe790cb42","entry":"add_x","repo":"GraphPKU/BREC","repo_kind":"found_in_text","path":"GNNAsKernel/BRECDataset_v3.py","file_url":"https://github.com/GraphPKU/BREC/blob/HEAD/GNNAsKernel/BRECDataset_v3.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e9338dcfe790cb42"}},{"code_sha256_prefix":"33d9138581ad51f0","entry":"center_pool","repo":"GraphPKU/BREC","repo_kind":"found_in_text","path":"I2GNN/count_models.py","file_url":"https://github.com/GraphPKU/BREC/blob/HEAD/I2GNN/count_models.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"33d9138581ad51f0"}},{"code_sha256_prefix":"fd75ed3af6526291","entry":"get_node_idx","repo":"GraphPKU/BREC","repo_kind":"found_in_text","path":"SUN/models.py","file_url":"https://github.com/GraphPKU/BREC/blob/HEAD/SUN/models.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fd75ed3af6526291"}},{"code_sha256_prefix":"831d6722f61aac8f","entry":"get_root_idx","repo":"GraphPKU/BREC","repo_kind":"found_in_text","path":"SUN/models.py","file_url":"https://github.com/GraphPKU/BREC/blob/HEAD/SUN/models.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"831d6722f61aac8f"}},{"code_sha256_prefix":"8cd80e01b2bc14dc","entry":"get_subgraph_idx","repo":"GraphPKU/BREC","repo_kind":"found_in_text","path":"SUN/models.py","file_url":"https://github.com/GraphPKU/BREC/blob/HEAD/SUN/models.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8cd80e01b2bc14dc"}},{"code_sha256_prefix":"513e5ba0da199b50","entry":"graph6_to_pyg","repo":"GraphPKU/BREC","repo_kind":"found_in_text","path":"ProvablyPowerfulGraphNetworks_torch/BRECDataset_v3.py","file_url":"https://github.com/GraphPKU/BREC/blob/HEAD/ProvablyPowerfulGraphNetworks_torch/BRECDataset_v3.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"513e5ba0da199b50"}},{"code_sha256_prefix":"0d66a182b2d21b13","entry":"graph6_to_pyg","repo":"GraphPKU/BREC","repo_kind":"found_in_text","path":"SparseWL/neural_higher_order/BREC/BRECDataset_v3_3wl.py","file_url":"https://github.com/GraphPKU/BREC/blob/HEAD/SparseWL/neural_higher_order/BREC/BRECDataset_v3_3wl.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0d66a182b2d21b13"}},{"code_sha256_prefix":"ac9535cc854a350e","entry":"update_cfg","repo":"GraphPKU/BREC","repo_kind":"found_in_text","path":"GNNAsKernel/core/config.py","file_url":"https://github.com/GraphPKU/BREC/blob/HEAD/GNNAsKernel/core/config.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ac9535cc854a350e"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_api"},"syntology_extracted_results":null}