{"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/griffin-towards-a-graph-centric-relational","title":"Griffin: Towards a Graph-Centric Relational Database Foundation Model","arxiv_id":"2505.05568","date":"2025-05-08","proceeding":null,"authors":["Yanbo Wang","Xiyuan Wang","Quan Gan","Minjie Wang","Qibin Yang","David Wipf","Muhan Zhang"],"abstract":"We introduce Griffin, the first foundation model attemptation designed specifically for Relational Databases (RDBs). Unlike previous smaller models focused on single RDB tasks, Griffin unifies the data encoder and task decoder to handle diverse tasks. Additionally, we enhance the architecture by incorporating a cross-attention module and a novel aggregator. Griffin utilizes pretraining on both single-table and RDB datasets, employing advanced encoders for categorical, numerical, and metadata features, along with innovative components such as cross-attention modules and enhanced message-passing neural networks (MPNNs) to capture the complexities of relational data. Evaluated on large-scale, heterogeneous, and temporal graphs extracted from RDBs across various domains (spanning over 150 million nodes), Griffin demonstrates superior or comparable performance to individually trained models, excels in low-data scenarios, and shows strong transferability with similarity and diversity in pretraining across new datasets and tasks, highlighting its potential as a universally applicable foundation model for RDBs. Code available at https://github.com/yanxwb/Griffin.","url_abs":"https://arxiv.org/abs/2505.05568v2","url_pdf":"https://arxiv.org/pdf/2505.05568v2.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":"griffin-towards-a-graph-centric-relational","repo_url":"https://github.com/yanxwb/griffin","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"decoder","task_name":"Decoder"},{"task_slug":"diversity","task_name":"Diversity"}],"methods":[{"method_slug":"concatenated-skip-connection","method_name":"Concatenated Skip Connection"},{"method_slug":"softmax","method_name":"Softmax"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2505.05568","atlas_url":"https://app.syntology.ai/?focus=2505.05568","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2505.05568"}},"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/yanxwb/Griffin","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/yanxwb/griffin","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran":2,"ran_draft_wrong":3,"unverified":3},"by_repo_kind":{"official":{"samples":8,"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":0,"samples":[{"code_sha256_prefix":"7915517bfa8f8dd3","entry":"RMPNN","repo":"yanxwb/griffin","repo_kind":"official","path":"hmodel.py","file_url":"https://github.com/yanxwb/griffin/blob/HEAD/hmodel.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7915517bfa8f8dd3"}},{"code_sha256_prefix":"11386c5bd45cc746","entry":"SelfAttentionAggregator","repo":"yanxwb/griffin","repo_kind":"official","path":"hmodel.py","file_url":"https://github.com/yanxwb/griffin/blob/HEAD/hmodel.py","link_basis":"first_harvest_node","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":"11386c5bd45cc746"}},{"code_sha256_prefix":"52e11df8e2d86ba6","entry":"_attention_merge_feat_with_relation","repo":"yanxwb/griffin","repo_kind":"official","path":"hmodel.py","file_url":"https://github.com/yanxwb/griffin/blob/HEAD/hmodel.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"52e11df8e2d86ba6"}},{"code_sha256_prefix":"9ced55dcca7738bb","entry":"checktaskfeat","repo":"yanxwb/griffin","repo_kind":"official","path":"hmodel.py","file_url":"https://github.com/yanxwb/griffin/blob/HEAD/hmodel.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9ced55dcca7738bb"}},{"code_sha256_prefix":"3f4cad3bccd66e1b","entry":"compute_output","repo":"yanxwb/griffin","repo_kind":"official","path":"hmaintask_combine.py","file_url":"https://github.com/yanxwb/griffin/blob/HEAD/hmaintask_combine.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"3f4cad3bccd66e1b"}},{"code_sha256_prefix":"2284b2cf3b9cb01d","entry":"GriffinMod","repo":"yanxwb/griffin","repo_kind":"official","path":"hmodel.py","file_url":"https://github.com/yanxwb/griffin/blob/HEAD/hmodel.py","link_basis":"first_harvest_node","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":"2284b2cf3b9cb01d"}},{"code_sha256_prefix":"60bdfff1f041522d","entry":"SelfAverageAggregator","repo":"yanxwb/griffin","repo_kind":"official","path":"hmodel.py","file_url":"https://github.com/yanxwb/griffin/blob/HEAD/hmodel.py","link_basis":"first_harvest_node","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":"60bdfff1f041522d"}},{"code_sha256_prefix":"21a1cdf79f2acf85","entry":"_attention_merge_feat_self_attention","repo":"yanxwb/griffin","repo_kind":"official","path":"hmodel.py","file_url":"https://github.com/yanxwb/griffin/blob/HEAD/hmodel.py","link_basis":"first_harvest_node","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":"21a1cdf79f2acf85"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}