{"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/textual-training-for-the-hassle-free-removal","title":"Textual Training for the Hassle-Free Removal of Unwanted Visual Data: Case Studies on OOD and Hateful Image Detection","arxiv_id":"2409.19840","date":"2024-09-30","proceeding":null,"authors":["Saehyung Lee","Jisoo Mok","Sangha Park","Yongho Shin","Dahuin Jung","Sungroh Yoon"],"abstract":"In our study, we explore methods for detecting unwanted content lurking in visual datasets. We provide a theoretical analysis demonstrating that a model capable of successfully partitioning visual data can be obtained using only textual data. Based on the analysis, we propose Hassle-Free Textual Training (HFTT), a streamlined method capable of acquiring detectors for unwanted visual content, using only synthetic textual data in conjunction with pre-trained vision-language models. HFTT features an innovative objective function that significantly reduces the necessity for human involvement in data annotation. Furthermore, HFTT employs a clever textual data synthesis method, effectively emulating the integration of unknown visual data distribution into the training process at no extra cost. The unique characteristics of HFTT extend its utility beyond traditional out-of-distribution detection, making it applicable to tasks that address more abstract concepts. We complement our analyses with experiments in out-of-distribution detection and hateful image detection. Our codes are available at https://github.com/Saehyung-Lee/HFTT","url_abs":"https://arxiv.org/abs/2409.19840v2","url_pdf":"https://arxiv.org/pdf/2409.19840v2.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":"textual-training-for-the-hassle-free-removal","repo_url":"https://github.com/saehyung-lee/hftt","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"out-of-distribution-detection","task_name":"Out-of-Distribution Detection"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2409.19840","atlas_url":"https://app.syntology.ai/?focus=2409.19840","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2409.19840"}},"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":"deterministic:regex_extraction","url":"https://github.com/Saehyung-Lee/HFTT","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/saehyung-lee/hftt","reach":{"status":"ok"}}],"summary":{"ran_fixture":1,"ran_draft_wrong":4,"unverified":4},"by_repo_kind":{"official":{"samples":9,"ran":5,"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":"0d95e28fac98427f","entry":"accuracy","repo":"Saehyung-Lee/HFTT","repo_kind":"official","path":"utils.py","file_url":"https://github.com/Saehyung-Lee/HFTT/blob/HEAD/utils.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":"0d95e28fac98427f"}},{"code_sha256_prefix":"98f385d847636a3e","entry":"basic_clean","repo":"Saehyung-Lee/HFTT","repo_kind":"official","path":"clip/simple_tokenizer.py","file_url":"https://github.com/Saehyung-Lee/HFTT/blob/HEAD/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":"Saehyung-Lee/HFTT","repo_kind":"official","path":"clip/simple_tokenizer.py","file_url":"https://github.com/Saehyung-Lee/HFTT/blob/HEAD/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":"aa2ba35b3854fa14","entry":"store_model_weights","repo":"Saehyung-Lee/HFTT","repo_kind":"official","path":"utils.py","file_url":"https://github.com/Saehyung-Lee/HFTT/blob/HEAD/utils.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"none","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"aa2ba35b3854fa14"}},{"code_sha256_prefix":"9542161e9640b858","entry":"whitespace_clean","repo":"Saehyung-Lee/HFTT","repo_kind":"official","path":"clip/simple_tokenizer.py","file_url":"https://github.com/Saehyung-Lee/HFTT/blob/HEAD/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":"a3349fd74af96f2c","entry":"BlipForRetrieval","repo":"saehyung-lee/hftt","repo_kind":"official","path":"model.py","file_url":"https://github.com/saehyung-lee/hftt/blob/HEAD/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":"a3349fd74af96f2c"}},{"code_sha256_prefix":"30862aa4330bfa12","entry":"average_checkpoints","repo":"Saehyung-Lee/HFTT","repo_kind":"official","path":"utils.py","file_url":"https://github.com/Saehyung-Lee/HFTT/blob/HEAD/utils.py","link_basis":"plan_row","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":"30862aa4330bfa12"}},{"code_sha256_prefix":"6bd715ee224790cc","entry":"build_model","repo":"Saehyung-Lee/HFTT","repo_kind":"official","path":"clip/model.py","file_url":"https://github.com/Saehyung-Lee/HFTT/blob/HEAD/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":"6bd715ee224790cc"}},{"code_sha256_prefix":"cf95c9535b05ab37","entry":"load","repo":"Saehyung-Lee/HFTT","repo_kind":"official","path":"clip/clip.py","file_url":"https://github.com/Saehyung-Lee/HFTT/blob/HEAD/clip/clip.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":"cf95c9535b05ab37"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}