{"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/cross-modal-prompts-adapting-large-pre","title":"Cross-modal Prompts: Adapting Large Pre-trained Models for Audio-Visual Downstream Tasks","arxiv_id":"2311.05152","date":"2023-11-09","proceeding":"NeurIPS 2023 11","authors":["Haoyi Duan","Yan Xia","Mingze Zhou","Li Tang","Jieming Zhu","Zhou Zhao"],"abstract":"In recent years, the deployment of large-scale pre-trained models in audio-visual downstream tasks has yielded remarkable outcomes. However, these models, primarily trained on single-modality unconstrained datasets, still encounter challenges in feature extraction for multi-modal tasks, leading to suboptimal performance. This limitation arises due to the introduction of irrelevant modality-specific information during encoding, which adversely affects the performance of downstream tasks. To address this challenge, this paper proposes a novel Dual-Guided Spatial-Channel-Temporal (DG-SCT) attention mechanism. This mechanism leverages audio and visual modalities as soft prompts to dynamically adjust the parameters of pre-trained models based on the current multi-modal input features. Specifically, the DG-SCT module incorporates trainable cross-modal interaction layers into pre-trained audio-visual encoders, allowing adaptive extraction of crucial information from the current modality across spatial, channel, and temporal dimensions, while preserving the frozen parameters of large-scale pre-trained models. Experimental evaluations demonstrate that our proposed model achieves state-of-the-art results across multiple downstream tasks, including AVE, AVVP, AVS, and AVQA. Furthermore, our model exhibits promising performance in challenging few-shot and zero-shot scenarios. The source code and pre-trained models are available at https://github.com/haoyi-duan/DG-SCT.","url_abs":"https://arxiv.org/abs/2311.05152v2","url_pdf":"https://arxiv.org/pdf/2311.05152v2.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":"cross-modal-prompts-adapting-large-pre","repo_url":"https://github.com/haoyi-duan/dg-sct","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2311.05152","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2311.05152"}},"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":"deterministic:regex_extraction","url":"https://github.com/haoyi-duan/DG-SCT","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/haoyi-duan/dg-sct","reach":{"status":"ok"}}],"summary":{"ran":2,"ran_fixture":4,"ran_draft_wrong":3,"unverified":3},"by_repo_kind":{"official":{"samples":12,"ran":9,"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":12,"samples":[{"code_sha256_prefix":"c958e0e97761c999","entry":"Attention","repo":"haoyi-duan/dg-sct","repo_kind":"official","path":"DG-SCT/AVVP/nets/grouping.py","file_url":"https://github.com/haoyi-duan/dg-sct/blob/HEAD/DG-SCT/AVVP/nets/grouping.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c958e0e97761c999"}},{"code_sha256_prefix":"68095f4e08371ab1","entry":"AttnBlock","repo":"haoyi-duan/dg-sct","repo_kind":"official","path":"DG-SCT/AVVP/nets/grouping.py","file_url":"https://github.com/haoyi-duan/dg-sct/blob/HEAD/DG-SCT/AVVP/nets/grouping.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"68095f4e08371ab1"}},{"code_sha256_prefix":"7f8930ec08c074cc","entry":"compute_accuracy_supervised","repo":"haoyi-duan/dg-sct","repo_kind":"official","path":"DG-SCT/AVE/main_trans.py","file_url":"https://github.com/haoyi-duan/dg-sct/blob/HEAD/DG-SCT/AVE/main_trans.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7f8930ec08c074cc"}},{"code_sha256_prefix":"d9def42110729a85","entry":"conv1x1","repo":"haoyi-duan/DG-SCT","repo_kind":"official","path":"DG-SCT/AVE/nets/Resnet_VGGSound.py","file_url":"https://github.com/haoyi-duan/DG-SCT/blob/HEAD/DG-SCT/AVE/nets/Resnet_VGGSound.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d9def42110729a85"}},{"code_sha256_prefix":"160bb14bd76201b4","entry":"conv3x3","repo":"haoyi-duan/DG-SCT","repo_kind":"official","path":"DG-SCT/AVE/nets/Resnet_VGGSound.py","file_url":"https://github.com/haoyi-duan/DG-SCT/blob/HEAD/DG-SCT/AVE/nets/Resnet_VGGSound.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"160bb14bd76201b4"}},{"code_sha256_prefix":"3ac6b7d76e8e3584","entry":"drop_path","repo":"haoyi-duan/DG-SCT","repo_kind":"official","path":"DG-SCT/AVE/nets/layers.py","file_url":"https://github.com/haoyi-duan/DG-SCT/blob/HEAD/DG-SCT/AVE/nets/layers.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3ac6b7d76e8e3584"}},{"code_sha256_prefix":"02566da69866c48c","entry":"trunc_normal_","repo":"haoyi-duan/DG-SCT","repo_kind":"official","path":"DG-SCT/AVE/nets/layers.py","file_url":"https://github.com/haoyi-duan/DG-SCT/blob/HEAD/DG-SCT/AVE/nets/layers.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":"f9fd6241d935f07b","entry":"window_partition","repo":"haoyi-duan/DG-SCT","repo_kind":"official","path":"DG-SCT/AVE/nets/htsat.py","file_url":"https://github.com/haoyi-duan/DG-SCT/blob/HEAD/DG-SCT/AVE/nets/htsat.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f9fd6241d935f07b"}},{"code_sha256_prefix":"fb32094c6dbece71","entry":"window_reverse","repo":"haoyi-duan/DG-SCT","repo_kind":"official","path":"DG-SCT/AVE/nets/htsat.py","file_url":"https://github.com/haoyi-duan/DG-SCT/blob/HEAD/DG-SCT/AVE/nets/htsat.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fb32094c6dbece71"}},{"code_sha256_prefix":"8fb5518d8f58c85c","entry":"GroupingLayer","repo":"haoyi-duan/dg-sct","repo_kind":"official","path":"DG-SCT/AVVP/nets/grouping.py","file_url":"https://github.com/haoyi-duan/dg-sct/blob/HEAD/DG-SCT/AVVP/nets/grouping.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":"8fb5518d8f58c85c"}},{"code_sha256_prefix":"996151644872d493","entry":"matvec_product","repo":"haoyi-duan/DG-SCT","repo_kind":"official","path":"DG-SCT/AVE/nets/my_layers.py","file_url":"https://github.com/haoyi-duan/DG-SCT/blob/HEAD/DG-SCT/AVE/nets/my_layers.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":"996151644872d493"}},{"code_sha256_prefix":"15a9bbf56c41539e","entry":"resnet18","repo":"haoyi-duan/DG-SCT","repo_kind":"official","path":"DG-SCT/AVE/nets/Resnet_VGGSound.py","file_url":"https://github.com/haoyi-duan/DG-SCT/blob/HEAD/DG-SCT/AVE/nets/Resnet_VGGSound.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":"15a9bbf56c41539e"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}