{"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/autoconj-recognizing-and-exploiting-conjugacy","title":"Autoconj: Recognizing and Exploiting Conjugacy Without a Domain-Specific Language","arxiv_id":"1811.11926","date":"2018-11-29","proceeding":"NeurIPS 2018 12","authors":["Matthew D. Hoffman","Matthew J. Johnson","Dustin Tran"],"abstract":"Deriving conditional and marginal distributions using conjugacy relationships\ncan be time consuming and error prone. In this paper, we propose a strategy for\nautomating such derivations. Unlike previous systems which focus on\nrelationships between pairs of random variables, our system (which we call\nAutoconj) operates directly on Python functions that compute log-joint\ndistribution functions. Autoconj provides support for conjugacy-exploiting\nalgorithms in any Python embedded PPL. This paves the way for accelerating\ndevelopment of novel inference algorithms and structure-exploiting modeling\nstrategies.","url_abs":"http://arxiv.org/abs/1811.11926v1","url_pdf":"http://arxiv.org/pdf/1811.11926v1.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":"autoconj-recognizing-and-exploiting-conjugacy","repo_url":"https://github.com/google-research/autoconj","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"none","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"autoconj-recognizing-and-exploiting-conjugacy","repo_url":"https://github.com/pyro-ppl/funsor","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1811.11926","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1811.11926"}},"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/pyro-ppl/funsor","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/google-research/autoconj","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran_honours":1,"unverified":25},"by_repo_kind":{"official":{"samples":26,"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":"9910e2fc297f8665","entry":"identity","repo":"google-research/autoconj","repo_kind":"official","path":"autoconj/matchers.py","file_url":"https://github.com/google-research/autoconj/blob/HEAD/autoconj/matchers.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9910e2fc297f8665"}},{"code_sha256_prefix":"c705fdeedd76a185","entry":"categorical_gen_log_prob","repo":"google-research/autoconj","repo_kind":"official","path":"autoconj/log_probs.py","file_url":"https://github.com/google-research/autoconj/blob/HEAD/autoconj/log_probs.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":"c705fdeedd76a185"}},{"code_sha256_prefix":"da702c67e99ec146","entry":"cavi","repo":"google-research/autoconj","repo_kind":"official","path":"autoconj/meanfield.py","file_url":"https://github.com/google-research/autoconj/blob/HEAD/autoconj/meanfield.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":"da702c67e99ec146"}},{"code_sha256_prefix":"9b4aad47e027d8f8","entry":"convert_to_info_form","repo":"google-research/autoconj","repo_kind":"official","path":"autoconj/pgm.py","file_url":"https://github.com/google-research/autoconj/blob/HEAD/autoconj/pgm.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":"9b4aad47e027d8f8"}},{"code_sha256_prefix":"fc8eb89a1ef2be49","entry":"diag","repo":"google-research/autoconj","repo_kind":"official","path":"autoconj/pgm.py","file_url":"https://github.com/google-research/autoconj/blob/HEAD/autoconj/pgm.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":"fc8eb89a1ef2be49"}},{"code_sha256_prefix":"3f14981d1896eed5","entry":"dirichlet_gen_log_prob","repo":"google-research/autoconj","repo_kind":"official","path":"autoconj/log_probs.py","file_url":"https://github.com/google-research/autoconj/blob/HEAD/autoconj/log_probs.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":"3f14981d1896eed5"}},{"code_sha256_prefix":"e70563afc1400104","entry":"dot","repo":"google-research/autoconj","repo_kind":"official","path":"autoconj/meanfield.py","file_url":"https://github.com/google-research/autoconj/blob/HEAD/autoconj/meanfield.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":"e70563afc1400104"}},{"code_sha256_prefix":"05bcfc1a14861dd4","entry":"elbo","repo":"google-research/autoconj","repo_kind":"official","path":"autoconj/meanfield.py","file_url":"https://github.com/google-research/autoconj/blob/HEAD/autoconj/meanfield.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":"05bcfc1a14861dd4"}},{"code_sha256_prefix":"e36d3b08dba13eda","entry":"find_chain","repo":"google-research/autoconj","repo_kind":"official","path":"autoconj/graph_util.py","file_url":"https://github.com/google-research/autoconj/blob/HEAD/autoconj/graph_util.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":"e36d3b08dba13eda"}},{"code_sha256_prefix":"bca42d1ba8b67d66","entry":"find_distribution","repo":"google-research/autoconj","repo_kind":"official","path":"autoconj/exponential_families.py","file_url":"https://github.com/google-research/autoconj/blob/HEAD/autoconj/exponential_families.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":"bca42d1ba8b67d66"}},{"code_sha256_prefix":"9620be7a00d2457b","entry":"find_distributions","repo":"google-research/autoconj","repo_kind":"official","path":"autoconj/exponential_families.py","file_url":"https://github.com/google-research/autoconj/blob/HEAD/autoconj/exponential_families.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":"9620be7a00d2457b"}},{"code_sha256_prefix":"4ddc35d0438d85d4","entry":"interceptable","repo":"google-research/autoconj","repo_kind":"official","path":"autoconj/pplham.py","file_url":"https://github.com/google-research/autoconj/blob/HEAD/autoconj/pplham.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":"4ddc35d0438d85d4"}},{"code_sha256_prefix":"025020121b5bd6b8","entry":"is_array_literal","repo":"google-research/autoconj","repo_kind":"official","path":"autoconj/patterns.py","file_url":"https://github.com/google-research/autoconj/blob/HEAD/autoconj/patterns.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":"025020121b5bd6b8"}},{"code_sha256_prefix":"ecbebdfffeb10669","entry":"is_array_node","repo":"google-research/autoconj","repo_kind":"official","path":"autoconj/patterns.py","file_url":"https://github.com/google-research/autoconj/blob/HEAD/autoconj/patterns.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":"ecbebdfffeb10669"}},{"code_sha256_prefix":"1fe11a44758a1081","entry":"is_constant","repo":"google-research/autoconj","repo_kind":"official","path":"autoconj/rewrites.py","file_url":"https://github.com/google-research/autoconj/blob/HEAD/autoconj/rewrites.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":"1fe11a44758a1081"}},{"code_sha256_prefix":"8983bb7ba182edd4","entry":"is_empty_seq","repo":"google-research/autoconj","repo_kind":"official","path":"autoconj/matchers.py","file_url":"https://github.com/google-research/autoconj/blob/HEAD/autoconj/matchers.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":"8983bb7ba182edd4"}},{"code_sha256_prefix":"5d69c1b7affd2f80","entry":"is_node","repo":"google-research/autoconj","repo_kind":"official","path":"autoconj/patterns.py","file_url":"https://github.com/google-research/autoconj/blob/HEAD/autoconj/patterns.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":"5d69c1b7affd2f80"}},{"code_sha256_prefix":"7b9bf90edf87a32b","entry":"is_seq","repo":"google-research/autoconj","repo_kind":"official","path":"autoconj/matchers.py","file_url":"https://github.com/google-research/autoconj/blob/HEAD/autoconj/matchers.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":"7b9bf90edf87a32b"}},{"code_sha256_prefix":"a1c40e227c2af45f","entry":"make_factor_graph","repo":"google-research/autoconj","repo_kind":"official","path":"autoconj/graph_util.py","file_url":"https://github.com/google-research/autoconj/blob/HEAD/autoconj/graph_util.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":"a1c40e227c2af45f"}},{"code_sha256_prefix":"611a2db65fa8e846","entry":"make_log_joint_fn","repo":"google-research/autoconj","repo_kind":"official","path":"autoconj/pplham.py","file_url":"https://github.com/google-research/autoconj/blob/HEAD/autoconj/pplham.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":"611a2db65fa8e846"}},{"code_sha256_prefix":"da5a5c0bcb37542f","entry":"make_matcher","repo":"google-research/autoconj","repo_kind":"official","path":"autoconj/exponential_families.py","file_url":"https://github.com/google-research/autoconj/blob/HEAD/autoconj/exponential_families.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":"da5a5c0bcb37542f"}},{"code_sha256_prefix":"d22860046eb90f2e","entry":"make_tree_normal_log_normalizer","repo":"google-research/autoconj","repo_kind":"official","path":"autoconj/pgm.py","file_url":"https://github.com/google-research/autoconj/blob/HEAD/autoconj/pgm.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":"d22860046eb90f2e"}},{"code_sha256_prefix":"4edacc4b7ca610a9","entry":"maybe_add","repo":"google-research/autoconj","repo_kind":"official","path":"autoconj/rewrites.py","file_url":"https://github.com/google-research/autoconj/blob/HEAD/autoconj/rewrites.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":"4edacc4b7ca610a9"}},{"code_sha256_prefix":"bbaa27290efb46d6","entry":"maybe_multiply","repo":"google-research/autoconj","repo_kind":"official","path":"autoconj/rewrites.py","file_url":"https://github.com/google-research/autoconj/blob/HEAD/autoconj/rewrites.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":"bbaa27290efb46d6"}},{"code_sha256_prefix":"428b0cf043265d10","entry":"multinomial_gen_log_prob","repo":"google-research/autoconj","repo_kind":"official","path":"autoconj/log_probs.py","file_url":"https://github.com/google-research/autoconj/blob/HEAD/autoconj/log_probs.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":"428b0cf043265d10"}},{"code_sha256_prefix":"ba4df33433a8f507","entry":"simplify_sweep","repo":"google-research/autoconj","repo_kind":"official","path":"autoconj/canonicalize.py","file_url":"https://github.com/google-research/autoconj/blob/HEAD/autoconj/canonicalize.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":"ba4df33433a8f507"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}