{"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/expectation-complete-graph-representations","title":"Expectation-Complete Graph Representations with Homomorphisms","arxiv_id":"2306.05838","date":"2023-06-09","proceeding":null,"authors":["Pascal Welke","Maximilian Thiessen","Fabian Jogl","Thomas Gärtner"],"abstract":"We investigate novel random graph embeddings that can be computed in expected polynomial time and that are able to distinguish all non-isomorphic graphs in expectation. Previous graph embeddings have limited expressiveness and either cannot distinguish all graphs or cannot be computed efficiently for every graph. To be able to approximate arbitrary functions on graphs, we are interested in efficient alternatives that become arbitrarily expressive with increasing resources. Our approach is based on Lov\\'asz' characterisation of graph isomorphism through an infinite dimensional vector of homomorphism counts. Our empirical evaluation shows competitive results on several benchmark graph learning tasks.","url_abs":"https://arxiv.org/abs/2306.05838v2","url_pdf":"https://arxiv.org/pdf/2306.05838v2.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":"expectation-complete-graph-representations","repo_url":"https://github.com/ocatias/homcountgnns","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"expectation-complete-graph-representations","repo_url":"https://github.com/pwelke/homcount","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"graph-learning","task_name":"Graph Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2306.05838","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2306.05838"}},"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/ocatias/homcountgnns","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/pwelke/homcount","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":10},"by_repo_kind":{"official":{"samples":10,"ran":0,"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":"0db6ddd2616d04dc","entry":"compute_final_tracking_dict","repo":"ocatias/homcountgnns","repo_kind":"official","path":"Exp/training_loop_functions.py","file_url":"https://github.com/ocatias/homcountgnns/blob/HEAD/Exp/training_loop_functions.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":"0db6ddd2616d04dc"}},{"code_sha256_prefix":"11bcc8c9edb1d6e0","entry":"compute_loss_predictions","repo":"ocatias/homcountgnns","repo_kind":"official","path":"Exp/training_loop_functions.py","file_url":"https://github.com/ocatias/homcountgnns/blob/HEAD/Exp/training_loop_functions.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":"11bcc8c9edb1d6e0"}},{"code_sha256_prefix":"b5c4765e5836293f","entry":"dict_to_args","repo":"ocatias/homcountgnns","repo_kind":"official","path":"Exp/run_experiment.py","file_url":"https://github.com/ocatias/homcountgnns/blob/HEAD/Exp/run_experiment.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":"b5c4765e5836293f"}},{"code_sha256_prefix":"94cf6905f3dcab5a","entry":"get_graph_norm","repo":"ocatias/homcountgnns","repo_kind":"official","path":"Models/utils.py","file_url":"https://github.com/ocatias/homcountgnns/blob/HEAD/Models/utils.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":"94cf6905f3dcab5a"}},{"code_sha256_prefix":"5c19bfd30a45d69f","entry":"get_nonlinearity","repo":"ocatias/homcountgnns","repo_kind":"official","path":"Models/utils.py","file_url":"https://github.com/ocatias/homcountgnns/blob/HEAD/Models/utils.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":"5c19bfd30a45d69f"}},{"code_sha256_prefix":"0b3d1cd7066aaf21","entry":"get_pooling_fn","repo":"ocatias/homcountgnns","repo_kind":"official","path":"Models/utils.py","file_url":"https://github.com/ocatias/homcountgnns/blob/HEAD/Models/utils.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":"0b3d1cd7066aaf21"}},{"code_sha256_prefix":"d28a5900845bb48e","entry":"mean_different_length_array","repo":"pwelke/homcount","repo_kind":"official","path":"experiments/plot_equivalence_class_counting.py","file_url":"https://github.com/pwelke/homcount/blob/HEAD/experiments/plot_equivalence_class_counting.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":"d28a5900845bb48e"}},{"code_sha256_prefix":"226aee21eee53d3f","entry":"parse_args","repo":"ocatias/homcountgnns","repo_kind":"official","path":"Exp/parser.py","file_url":"https://github.com/ocatias/homcountgnns/blob/HEAD/Exp/parser.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":"226aee21eee53d3f"}},{"code_sha256_prefix":"e9e6e17f984c669d","entry":"std_different_length_array","repo":"pwelke/homcount","repo_kind":"official","path":"experiments/plot_equivalence_class_counting.py","file_url":"https://github.com/pwelke/homcount/blob/HEAD/experiments/plot_equivalence_class_counting.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":"e9e6e17f984c669d"}},{"code_sha256_prefix":"0bf4c377291fbef4","entry":"train","repo":"ocatias/homcountgnns","repo_kind":"official","path":"Exp/training_loop_functions.py","file_url":"https://github.com/ocatias/homcountgnns/blob/HEAD/Exp/training_loop_functions.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":"0bf4c377291fbef4"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}