{"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/cocog-2-controllable-generation-of-visual","title":"CoCoG-2: Controllable generation of visual stimuli for understanding human concept representation","arxiv_id":"2407.14949","date":"2024-07-20","proceeding":null,"authors":["Chen Wei","Jiachen Zou","Dietmar Heinke","Quanying Liu"],"abstract":"Humans interpret complex visual stimuli using abstract concepts that facilitate decision-making tasks such as food selection and risk avoidance. Similarity judgment tasks are effective for exploring these concepts. However, methods for controllable image generation in concept space are underdeveloped. In this study, we present a novel framework called CoCoG-2, which integrates generated visual stimuli into similarity judgment tasks. CoCoG-2 utilizes a training-free guidance algorithm to enhance generation flexibility. CoCoG-2 framework is versatile for creating experimental stimuli based on human concepts, supporting various strategies for guiding visual stimuli generation, and demonstrating how these stimuli can validate various experimental hypotheses. CoCoG-2 will advance our understanding of the causal relationship between concept representations and behaviors by generating visual stimuli. The code is available at \\url{https://github.com/ncclab-sustech/CoCoG-2}.","url_abs":"https://arxiv.org/abs/2407.14949v1","url_pdf":"https://arxiv.org/pdf/2407.14949v1.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":"cocog-2-controllable-generation-of-visual","repo_url":"https://github.com/ncclab-sustech/cocog-2","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"decision-making","task_name":"Decision Making"},{"task_slug":"image-generation","task_name":"Image Generation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2407.14949","atlas_url":"https://app.syntology.ai/?focus=2407.14949","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2407.14949"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/ncclab-sustech/cocog-2","reach":{"status":"ok"}}],"summary":{"ran":7,"ran_fixture":1,"unverified":1},"by_repo_kind":{"official":{"samples":9,"ran":8,"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":9,"samples":[{"code_sha256_prefix":"ac269a0e4b8d946e","entry":"default_loader","repo":"ncclab-sustech/cocog-2","repo_kind":"official","path":"dataset.py","file_url":"https://github.com/ncclab-sustech/cocog-2/blob/HEAD/dataset.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ac269a0e4b8d946e"}},{"code_sha256_prefix":"6bf70eea0a13600e","entry":"get_loss_dim","repo":"ncclab-sustech/cocog-2","repo_kind":"official","path":"guidance_set.py","file_url":"https://github.com/ncclab-sustech/cocog-2/blob/HEAD/guidance_set.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6bf70eea0a13600e"}},{"code_sha256_prefix":"6ad77f4e176c0a30","entry":"get_loss_similarity","repo":"ncclab-sustech/cocog-2","repo_kind":"official","path":"guidance_set.py","file_url":"https://github.com/ncclab-sustech/cocog-2/blob/HEAD/guidance_set.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6ad77f4e176c0a30"}},{"code_sha256_prefix":"6aa2e91fb7ed939e","entry":"get_loss_smooth","repo":"ncclab-sustech/cocog-2","repo_kind":"official","path":"guidance_set.py","file_url":"https://github.com/ncclab-sustech/cocog-2/blob/HEAD/guidance_set.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6aa2e91fb7ed939e"}},{"code_sha256_prefix":"0ae9b5b39db5b9c0","entry":"is_image_file","repo":"ncclab-sustech/cocog-2","repo_kind":"official","path":"dataset.py","file_url":"https://github.com/ncclab-sustech/cocog-2/blob/HEAD/dataset.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0ae9b5b39db5b9c0"}},{"code_sha256_prefix":"a3f4286c53c29d0a","entry":"make_dataset","repo":"ncclab-sustech/cocog-2","repo_kind":"official","path":"dataset.py","file_url":"https://github.com/ncclab-sustech/cocog-2/blob/HEAD/dataset.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a3f4286c53c29d0a"}},{"code_sha256_prefix":"02566da69866c48c","entry":"trunc_normal_","repo":"ncclab-sustech/cocog-2","repo_kind":"official","path":"prior_networks.py","file_url":"https://github.com/ncclab-sustech/cocog-2/blob/HEAD/prior_networks.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"02566da69866c48c"}},{"code_sha256_prefix":"4f6768a3bc645e2a","entry":"unpatchify","repo":"ncclab-sustech/cocog-2","repo_kind":"official","path":"prior_networks.py","file_url":"https://github.com/ncclab-sustech/cocog-2/blob/HEAD/prior_networks.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4f6768a3bc645e2a"}},{"code_sha256_prefix":"62f91e0069da2565","entry":"encode_image","repo":"ncclab-sustech/cocog-2","repo_kind":"official","path":"customized_pipe.py","file_url":"https://github.com/ncclab-sustech/cocog-2/blob/HEAD/customized_pipe.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"62f91e0069da2565"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}