{"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/towards-multi-modal-sarcasm-detection-via","title":"Towards Multi-Modal Sarcasm Detection via Hierarchical Congruity Modeling with Knowledge Enhancement","arxiv_id":"2210.03501","date":"2022-10-07","proceeding":null,"authors":["Hui Liu","Wenya Wang","Haoliang Li"],"abstract":"Sarcasm is a linguistic phenomenon indicating a discrepancy between literal meanings and implied intentions. Due to its sophisticated nature, it is usually challenging to be detected from the text itself. As a result, multi-modal sarcasm detection has received more attention in both academia and industries. However, most existing techniques only modeled the atomic-level inconsistencies between the text input and its accompanying image, ignoring more complex compositions for both modalities. Moreover, they neglected the rich information contained in external knowledge, e.g., image captions. In this paper, we propose a novel hierarchical framework for sarcasm detection by exploring both the atomic-level congruity based on multi-head cross attention mechanism and the composition-level congruity based on graph neural networks, where a post with low congruity can be identified as sarcasm. In addition, we exploit the effect of various knowledge resources for sarcasm detection. Evaluation results on a public multi-modal sarcasm detection dataset based on Twitter demonstrate the superiority of our proposed model.","url_abs":"https://arxiv.org/abs/2210.03501v2","url_pdf":"https://arxiv.org/pdf/2210.03501v2.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":"towards-multi-modal-sarcasm-detection-via","repo_url":"https://github.com/less-and-less-bugs/hkemodel","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"image-captioning","task_name":"Image Captioning"},{"task_slug":"sarcasm-detection","task_name":"Sarcasm Detection"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2210.03501","atlas_url":"https://app.syntology.ai/?focus=2210.03501","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2210.03501"}},"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/less-and-less-bugs/hkemodel","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":7,"unverified":2},"by_repo_kind":{"official":{"samples":9,"ran":7,"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":"e4ca38c3c035ccad","entry":"CutoutDefault","repo":"less-and-less-bugs/hkemodel","repo_kind":"official","path":"aug_lib.py","file_url":"https://github.com/less-and-less-bugs/hkemodel/blob/HEAD/aug_lib.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e4ca38c3c035ccad"}},{"code_sha256_prefix":"df17f3e84b39ba95","entry":"L2_Norm","repo":"less-and-less-bugs/hkemodel","repo_kind":"official","path":"utils/compute_scores.py","file_url":"https://github.com/less-and-less-bugs/hkemodel/blob/HEAD/utils/compute_scores.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"df17f3e84b39ba95"}},{"code_sha256_prefix":"ed18fb8667743e9d","entry":"get_four_metrics","repo":"less-and-less-bugs/hkemodel","repo_kind":"official","path":"utils/compute_scores.py","file_url":"https://github.com/less-and-less-bugs/hkemodel/blob/HEAD/utils/compute_scores.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ed18fb8667743e9d"}},{"code_sha256_prefix":"249b3fa8193d045c","entry":"get_metrics","repo":"less-and-less-bugs/hkemodel","repo_kind":"official","path":"utils/compute_scores.py","file_url":"https://github.com/less-and-less-bugs/hkemodel/blob/HEAD/utils/compute_scores.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"249b3fa8193d045c"}},{"code_sha256_prefix":"0e688f22521702da","entry":"pad_tensor","repo":"less-and-less-bugs/hkemodel","repo_kind":"official","path":"utils/data_utils.py","file_url":"https://github.com/less-and-less-bugs/hkemodel/blob/HEAD/utils/data_utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0e688f22521702da"}},{"code_sha256_prefix":"621248420b870218","entry":"read_json","repo":"less-and-less-bugs/hkemodel","repo_kind":"official","path":"utils/data_utils.py","file_url":"https://github.com/less-and-less-bugs/hkemodel/blob/HEAD/utils/data_utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"621248420b870218"}},{"code_sha256_prefix":"48e784d3b59fd880","entry":"reads_json","repo":"less-and-less-bugs/hkemodel","repo_kind":"official","path":"utils/data_utils.py","file_url":"https://github.com/less-and-less-bugs/hkemodel/blob/HEAD/utils/data_utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"48e784d3b59fd880"}},{"code_sha256_prefix":"d89b3877276c7068","entry":"float_parameter","repo":"less-and-less-bugs/hkemodel","repo_kind":"official","path":"aug_lib.py","file_url":"https://github.com/less-and-less-bugs/hkemodel/blob/HEAD/aug_lib.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d89b3877276c7068"}},{"code_sha256_prefix":"f0777303762c1ba8","entry":"int_parameter","repo":"less-and-less-bugs/hkemodel","repo_kind":"official","path":"aug_lib.py","file_url":"https://github.com/less-and-less-bugs/hkemodel/blob/HEAD/aug_lib.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f0777303762c1ba8"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}