{"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/tai-text-as-image-for-multi-label-image","title":"TAI++: Text as Image for Multi-Label Image Classification by Co-Learning Transferable Prompt","arxiv_id":"2405.06926","date":"2024-05-11","proceeding":null,"authors":["Xiangyu Wu","Qing-Yuan Jiang","Yang Yang","Yi-Feng Wu","Qing-Guo Chen","Jianfeng Lu"],"abstract":"The recent introduction of prompt tuning based on pre-trained vision-language models has dramatically improved the performance of multi-label image classification. However, some existing strategies that have been explored still have drawbacks, i.e., either exploiting massive labeled visual data at a high cost or using text data only for text prompt tuning and thus failing to learn the diversity of visual knowledge. Hence, the application scenarios of these methods are limited. In this paper, we propose a pseudo-visual prompt~(PVP) module for implicit visual prompt tuning to address this problem. Specifically, we first learn the pseudo-visual prompt for each category, mining diverse visual knowledge by the well-aligned space of pre-trained vision-language models. Then, a co-learning strategy with a dual-adapter module is designed to transfer visual knowledge from pseudo-visual prompt to text prompt, enhancing their visual representation abilities. Experimental results on VOC2007, MS-COCO, and NUSWIDE datasets demonstrate that our method can surpass state-of-the-art~(SOTA) methods across various settings for multi-label image classification tasks. The code is available at https://github.com/njustkmg/PVP.","url_abs":"https://arxiv.org/abs/2405.06926v1","url_pdf":"https://arxiv.org/pdf/2405.06926v1.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":"tai-text-as-image-for-multi-label-image","repo_url":"https://github.com/Jinx630/Pseudo-Visual-Prompt","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"diversity","task_name":"Diversity"},{"task_slug":"image-classification","task_name":"Image Classification"},{"task_slug":"multi-label-image-classification","task_name":"Multi-Label Image Classification"},{"task_slug":"visual-prompt-tuning","task_name":"Visual Prompt Tuning"},{"task_slug":"image-classification","task_name":"image-classification"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2405.06926","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2405.06926"}},"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/Jinx630/Pseudo-Visual-Prompt","reach":{"status":"ok"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/njustkmg/PVP","reach":{"status":"gone","observed_at":"2026-09-17","how":"tree_404+repo_404"}}],"summary":{"ran_draft_wrong":3,"ran":5,"unverified":2},"by_repo_kind":{"official":{"samples":10,"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":10,"samples":[{"code_sha256_prefix":"98f385d847636a3e","entry":"basic_clean","repo":"Jinx630/Pseudo-Visual-Prompt","repo_kind":"official","path":"pvp_finetune/clip/simple_tokenizer.py","file_url":"https://github.com/Jinx630/Pseudo-Visual-Prompt/blob/HEAD/pvp_finetune/clip/simple_tokenizer.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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"98f385d847636a3e"}},{"code_sha256_prefix":"d919ae32e5e4e616","entry":"get_pairs","repo":"Jinx630/Pseudo-Visual-Prompt","repo_kind":"official","path":"pvp_finetune/clip/simple_tokenizer.py","file_url":"https://github.com/Jinx630/Pseudo-Visual-Prompt/blob/HEAD/pvp_finetune/clip/simple_tokenizer.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":"d919ae32e5e4e616"}},{"code_sha256_prefix":"20b78773e7e60f91","entry":"read_im_name_list","repo":"Jinx630/Pseudo-Visual-Prompt","repo_kind":"official","path":"pvp_finetune/datasets/data_helpers.py","file_url":"https://github.com/Jinx630/Pseudo-Visual-Prompt/blob/HEAD/pvp_finetune/datasets/data_helpers.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":"20b78773e7e60f91"}},{"code_sha256_prefix":"ec295967149f55b5","entry":"read_image_label","repo":"Jinx630/Pseudo-Visual-Prompt","repo_kind":"official","path":"pvp_finetune/datasets/data_helpers.py","file_url":"https://github.com/Jinx630/Pseudo-Visual-Prompt/blob/HEAD/pvp_finetune/datasets/data_helpers.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":"ec295967149f55b5"}},{"code_sha256_prefix":"26b2d1385e57b28e","entry":"read_labels","repo":"Jinx630/Pseudo-Visual-Prompt","repo_kind":"official","path":"pvp_finetune/datasets/coco2014_partial.py","file_url":"https://github.com/Jinx630/Pseudo-Visual-Prompt/blob/HEAD/pvp_finetune/datasets/coco2014_partial.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":"26b2d1385e57b28e"}},{"code_sha256_prefix":"8c048cc07f78d7bf","entry":"read_name_list","repo":"Jinx630/Pseudo-Visual-Prompt","repo_kind":"official","path":"pvp_finetune/datasets/coco2014_partial.py","file_url":"https://github.com/Jinx630/Pseudo-Visual-Prompt/blob/HEAD/pvp_finetune/datasets/coco2014_partial.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":"8c048cc07f78d7bf"}},{"code_sha256_prefix":"839b3f7a02ef0dc6","entry":"read_object_labels","repo":"Jinx630/Pseudo-Visual-Prompt","repo_kind":"official","path":"pvp_finetune/datasets/data_helpers.py","file_url":"https://github.com/Jinx630/Pseudo-Visual-Prompt/blob/HEAD/pvp_finetune/datasets/data_helpers.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":"839b3f7a02ef0dc6"}},{"code_sha256_prefix":"9542161e9640b858","entry":"whitespace_clean","repo":"Jinx630/Pseudo-Visual-Prompt","repo_kind":"official","path":"pvp_finetune/clip/simple_tokenizer.py","file_url":"https://github.com/Jinx630/Pseudo-Visual-Prompt/blob/HEAD/pvp_finetune/clip/simple_tokenizer.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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9542161e9640b858"}},{"code_sha256_prefix":"e12169b7806ee0dd","entry":"build_model","repo":"Jinx630/Pseudo-Visual-Prompt","repo_kind":"official","path":"pvp_finetune/clip/model.py","file_url":"https://github.com/Jinx630/Pseudo-Visual-Prompt/blob/HEAD/pvp_finetune/clip/model.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":"e12169b7806ee0dd"}},{"code_sha256_prefix":"fbf8c0143d9c48e3","entry":"load","repo":"Jinx630/Pseudo-Visual-Prompt","repo_kind":"official","path":"pvp_finetune/clip/clip.py","file_url":"https://github.com/Jinx630/Pseudo-Visual-Prompt/blob/HEAD/pvp_finetune/clip/clip.py","link_basis":"harvester_set","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":"fbf8c0143d9c48e3"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}