{"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/factor-graph-grammars","title":"Factor Graph Grammars","arxiv_id":"2010.12048","date":"2020-10-22","proceeding":"NeurIPS 2020 12","authors":["David Chiang","Darcey Riley"],"abstract":"We propose the use of hyperedge replacement graph grammars for factor graphs, or factor graph grammars (FGGs) for short. FGGs generate sets of factor graphs and can describe a more general class of models than plate notation, dynamic graphical models, case-factor diagrams, and sum-product networks can. Moreover, inference can be done on FGGs without enumerating all the generated factor graphs. For finite variable domains (but possibly infinite sets of graphs), a generalization of variable elimination to FGGs allows exact and tractable inference in many situations. For finite sets of graphs (but possibly infinite variable domains), a FGG can be converted to a single factor graph amenable to standard inference techniques.","url_abs":"https://arxiv.org/abs/2010.12048v1","url_pdf":"https://arxiv.org/pdf/2010.12048v1.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":"factor-graph-grammars","repo_url":"https://github.com/diprism/fggs","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2010.12048","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2010.12048"}},"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/diprism/fggs","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":12},"by_repo_kind":{"listed":{"samples":12,"ran":0,"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":"d71e565172ad5efb","entry":"check_namespace_collisions","repo":"diprism/fggs","repo_kind":"listed","path":"fggs/conjunction.py","file_url":"https://github.com/diprism/fggs/blob/HEAD/fggs/conjunction.py","link_basis":"harvester_set","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":"d71e565172ad5efb"}},{"code_sha256_prefix":"8113b8e4ec1d2f12","entry":"conjoinable","repo":"diprism/fggs","repo_kind":"listed","path":"fggs/conjunction.py","file_url":"https://github.com/diprism/fggs/blob/HEAD/fggs/conjunction.py","link_basis":"harvester_set","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":"8113b8e4ec1d2f12"}},{"code_sha256_prefix":"09483848f5353140","entry":"copy_graph","repo":"diprism/fggs","repo_kind":"listed","path":"fggs/factorize.py","file_url":"https://github.com/diprism/fggs/blob/HEAD/fggs/factorize.py","link_basis":"harvester_set","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":"09483848f5353140"}},{"code_sha256_prefix":"7c870e47872c836e","entry":"count_fillin","repo":"diprism/fggs","repo_kind":"listed","path":"fggs/factorize.py","file_url":"https://github.com/diprism/fggs/blob/HEAD/fggs/factorize.py","link_basis":"harvester_set","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":"7c870e47872c836e"}},{"code_sha256_prefix":"42a012fd1d9dfef8","entry":"fgg_to_json","repo":"diprism/fggs","repo_kind":"listed","path":"fggs/formats.py","file_url":"https://github.com/diprism/fggs/blob/HEAD/fggs/formats.py","link_basis":"harvester_set","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":"42a012fd1d9dfef8"}},{"code_sha256_prefix":"0ea118dd9a35351c","entry":"is_clique","repo":"diprism/fggs","repo_kind":"listed","path":"fggs/factorize.py","file_url":"https://github.com/diprism/fggs/blob/HEAD/fggs/factorize.py","link_basis":"harvester_set","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":"0ea118dd9a35351c"}},{"code_sha256_prefix":"38e7e95c55d79a3b","entry":"json_to_hrg","repo":"diprism/fggs","repo_kind":"listed","path":"fggs/formats.py","file_url":"https://github.com/diprism/fggs/blob/HEAD/fggs/formats.py","link_basis":"harvester_set","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":"38e7e95c55d79a3b"}},{"code_sha256_prefix":"587341fd5a95a3bc","entry":"make_letterer","repo":"diprism/fggs","repo_kind":"listed","path":"fggs/indices.py","file_url":"https://github.com/diprism/fggs/blob/HEAD/fggs/indices.py","link_basis":"harvester_set","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":"587341fd5a95a3bc"}},{"code_sha256_prefix":"437c0bb143f506a4","entry":"make_timer","repo":"diprism/fggs","repo_kind":"listed","path":"fggs/sum_product.py","file_url":"https://github.com/diprism/fggs/blob/HEAD/fggs/sum_product.py","link_basis":"harvester_set","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":"437c0bb143f506a4"}},{"code_sha256_prefix":"807706f0e53f2db7","entry":"post_einsum","repo":"diprism/fggs","repo_kind":"listed","path":"fggs/equation.py","file_url":"https://github.com/diprism/fggs/blob/HEAD/fggs/equation.py","link_basis":"harvester_set","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":"807706f0e53f2db7"}},{"code_sha256_prefix":"4267a5b7eb36eb8c","entry":"unexpanded_shape","repo":"diprism/fggs","repo_kind":"listed","path":"fggs/equation.py","file_url":"https://github.com/diprism/fggs/blob/HEAD/fggs/equation.py","link_basis":"harvester_set","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":"4267a5b7eb36eb8c"}},{"code_sha256_prefix":"703c5641417ae388","entry":"weights_to_json","repo":"diprism/fggs","repo_kind":"listed","path":"fggs/factors.py","file_url":"https://github.com/diprism/fggs/blob/HEAD/fggs/factors.py","link_basis":"harvester_set","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":"703c5641417ae388"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}