{"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/genome-generative-neuro-symbolic-visual","title":"GENOME: GenerativE Neuro-symbOlic visual reasoning by growing and reusing ModulEs","arxiv_id":"2311.04901","date":"2023-11-08","proceeding":null,"authors":["Zhenfang Chen","Rui Sun","Wenjun Liu","Yining Hong","Chuang Gan"],"abstract":"Recent works have shown that Large Language Models (LLMs) could empower traditional neuro-symbolic models via programming capabilities to translate language into module descriptions, thus achieving strong visual reasoning results while maintaining the model's transparency and efficiency. However, these models usually exhaustively generate the entire code snippet given each new instance of a task, which is extremely ineffective. We propose generative neuro-symbolic visual reasoning by growing and reusing modules. Specifically, our model consists of three unique stages, module initialization, module generation, and module execution. First, given a vision-language task, we adopt LLMs to examine whether we could reuse and grow over established modules to handle this new task. If not, we initialize a new module needed by the task and specify the inputs and outputs of this new module. After that, the new module is created by querying LLMs to generate corresponding code snippets that match the requirements. In order to get a better sense of the new module's ability, we treat few-shot training examples as test cases to see if our new module could pass these cases. If yes, the new module is added to the module library for future reuse. Finally, we evaluate the performance of our model on the testing set by executing the parsed programs with the newly made visual modules to get the results. We find the proposed model possesses several advantages. First, it performs competitively on standard tasks like visual question answering and referring expression comprehension; Second, the modules learned from one task can be seamlessly transferred to new tasks; Last but not least, it is able to adapt to new visual reasoning tasks by observing a few training examples and reusing modules.","url_abs":"https://arxiv.org/abs/2311.04901v1","url_pdf":"https://arxiv.org/pdf/2311.04901v1.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":"genome-generative-neuro-symbolic-visual","repo_url":"https://github.com/umass-foundation-model/genome","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"question-answering","task_name":"Question Answering"},{"task_slug":"referring-expression","task_name":"Referring Expression"},{"task_slug":"referring-expression-comprehension","task_name":"Referring Expression Comprehension"},{"task_slug":"visual-question-answering-1","task_name":"Visual Question Answering"},{"task_slug":"visual-reasoning","task_name":"Visual Reasoning"}],"methods":[{"method_slug":null,"method_name":"Library"},{"method_slug":"set","method_name":"SET"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2311.04901","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2311.04901"}},"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/umass-foundation-model/genome","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran_fixture":1,"ran_draft_wrong":1,"unverified":7},"by_repo_kind":{"listed":{"samples":9,"ran":2,"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":"ca6a88a4dee2025a","entry":"nms","repo":"umass-foundation-model/genome","repo_kind":"listed","path":"engine/nms.py","file_url":"https://github.com/umass-foundation-model/genome/blob/HEAD/engine/nms.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ca6a88a4dee2025a"}},{"code_sha256_prefix":"ce7cf6bf130423fc","entry":"parse_step","repo":"umass-foundation-model/genome","repo_kind":"listed","path":"engine/step_interpreters.py","file_url":"https://github.com/umass-foundation-model/genome/blob/HEAD/engine/step_interpreters.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ce7cf6bf130423fc"}},{"code_sha256_prefix":"193417c3f2d50d05","entry":"create_module_instance","repo":"umass-foundation-model/genome","repo_kind":"listed","path":"engine/interpreter.py","file_url":"https://github.com/umass-foundation-model/genome/blob/HEAD/engine/interpreter.py","link_basis":"harvester_set","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":"193417c3f2d50d05"}},{"code_sha256_prefix":"bf0c8b050a9ad5db","entry":"fix_boxes","repo":"umass-foundation-model/genome","repo_kind":"listed","path":"engine/api.py","file_url":"https://github.com/umass-foundation-model/genome/blob/HEAD/engine/api.py","link_basis":"harvester_set","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":"bf0c8b050a9ad5db"}},{"code_sha256_prefix":"8a2d342cd5ddce4c","entry":"format_prompt","repo":"umass-foundation-model/genome","repo_kind":"listed","path":"engine/prompt.py","file_url":"https://github.com/umass-foundation-model/genome/blob/HEAD/engine/prompt.py","link_basis":"harvester_set","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":"8a2d342cd5ddce4c"}},{"code_sha256_prefix":"2532192495c60124","entry":"get_module_list","repo":"umass-foundation-model/genome","repo_kind":"listed","path":"engine/util.py","file_url":"https://github.com/umass-foundation-model/genome/blob/HEAD/engine/util.py","link_basis":"harvester_set","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":"2532192495c60124"}},{"code_sha256_prefix":"04269c1b860b83ab","entry":"get_prompt","repo":"umass-foundation-model/genome","repo_kind":"listed","path":"engine/prompt.py","file_url":"https://github.com/umass-foundation-model/genome/blob/HEAD/engine/prompt.py","link_basis":"harvester_set","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":"04269c1b860b83ab"}},{"code_sha256_prefix":"c949723a39704cc2","entry":"parse_response","repo":"umass-foundation-model/genome","repo_kind":"listed","path":"engine/gpt.py","file_url":"https://github.com/umass-foundation-model/genome/blob/HEAD/engine/gpt.py","link_basis":"harvester_set","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":"c949723a39704cc2"}},{"code_sha256_prefix":"c12aa6bd7e7aeb47","entry":"strip_dict","repo":"umass-foundation-model/genome","repo_kind":"listed","path":"engine/util.py","file_url":"https://github.com/umass-foundation-model/genome/blob/HEAD/engine/util.py","link_basis":"harvester_set","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":"c12aa6bd7e7aeb47"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}