{"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/vael-bridging-variational-autoencoders-and","title":"VAEL: Bridging Variational Autoencoders and Probabilistic Logic Programming","arxiv_id":"2202.04178","date":"2022-02-07","proceeding":null,"authors":["Eleonora Misino","Giuseppe Marra","Emanuele Sansone"],"abstract":"We present VAEL, a neuro-symbolic generative model integrating variational autoencoders (VAE) with the reasoning capabilities of probabilistic logic (L) programming. Besides standard latent subsymbolic variables, our model exploits a probabilistic logic program to define a further structured representation, which is used for logical reasoning. The entire process is end-to-end differentiable. Once trained, VAEL can solve new unseen generation tasks by (i) leveraging the previously acquired knowledge encoded in the neural component and (ii) exploiting new logical programs on the structured latent space. Our experiments provide support on the benefits of this neuro-symbolic integration both in terms of task generalization and data efficiency. To the best of our knowledge, this work is the first to propose a general-purpose end-to-end framework integrating probabilistic logic programming into a deep generative model.","url_abs":"https://arxiv.org/abs/2202.04178v2","url_pdf":"https://arxiv.org/pdf/2202.04178v2.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":"vael-bridging-variational-autoencoders-and","repo_url":"https://github.com/elemisi/vael","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"logical-reasoning","task_name":"Logical Reasoning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2202.04178","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2202.04178"}},"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/elemisi/vael","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":9},"by_repo_kind":{"official":{"samples":9,"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":"36b03dbd2d056fd0","entry":"PNG_ResizeKeepTransparency","repo":"elemisi/vael","repo_kind":"official","path":"utils/mario_utils/create_mario_dataset.py","file_url":"https://github.com/elemisi/vael/blob/HEAD/utils/mario_utils/create_mario_dataset.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":"36b03dbd2d056fd0"}},{"code_sha256_prefix":"bc47cefc5e031c93","entry":"define_ProbLog_model","repo":"elemisi/vael","repo_kind":"official","path":"utils/mnist_utils/problog_model.py","file_url":"https://github.com/elemisi/vael/blob/HEAD/utils/mnist_utils/problog_model.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":"bc47cefc5e031c93"}},{"code_sha256_prefix":"394476b5273f33d6","entry":"define_experiment","repo":"elemisi/vael","repo_kind":"official","path":"utils/mario_utils/mario_task_VAEL.py","file_url":"https://github.com/elemisi/vael/blob/HEAD/utils/mario_utils/mario_task_VAEL.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":"394476b5273f33d6"}},{"code_sha256_prefix":"6973580d6049d0da","entry":"define_experiment","repo":"elemisi/vael","repo_kind":"official","path":"utils/mnist_utils/mnist_task_VAEL.py","file_url":"https://github.com/elemisi/vael/blob/HEAD/utils/mnist_utils/mnist_task_VAEL.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":"6973580d6049d0da"}},{"code_sha256_prefix":"42a9076db8a2c341","entry":"float_formatter","repo":"elemisi/vael","repo_kind":"official","path":"utils/printing_utils.py","file_url":"https://github.com/elemisi/vael/blob/HEAD/utils/printing_utils.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":"42a9076db8a2c341"}},{"code_sha256_prefix":"a135b4bd171d4ae2","entry":"load_classifier","repo":"elemisi/vael","repo_kind":"official","path":"utils/mario_utils/mario_task_VAEL.py","file_url":"https://github.com/elemisi/vael/blob/HEAD/utils/mario_utils/mario_task_VAEL.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":"a135b4bd171d4ae2"}},{"code_sha256_prefix":"6dd2d5d563ee82b0","entry":"load_mnist_classifier","repo":"elemisi/vael","repo_kind":"official","path":"utils/mnist_utils/mnist_task_VAEL.py","file_url":"https://github.com/elemisi/vael/blob/HEAD/utils/mnist_utils/mnist_task_VAEL.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":"6dd2d5d563ee82b0"}},{"code_sha256_prefix":"d29617a9e3891dd8","entry":"prettify_statistics","repo":"elemisi/vael","repo_kind":"official","path":"utils/printing_utils.py","file_url":"https://github.com/elemisi/vael/blob/HEAD/utils/printing_utils.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":"d29617a9e3891dd8"}},{"code_sha256_prefix":"5e16fd1893ab2577","entry":"resize_with_transparency","repo":"elemisi/vael","repo_kind":"official","path":"utils/mario_utils/create_mario_dataset.py","file_url":"https://github.com/elemisi/vael/blob/HEAD/utils/mario_utils/create_mario_dataset.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":"5e16fd1893ab2577"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}