{"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/arxiv-2606-15307","title":"Adapting Reinforcement Learning with Chain-of-Thought Supervision for Explainable Detection of Hateful and Propagandistic Memes","arxiv_id":"2606.15307","date":"2026-06-13","proceeding":null,"authors":["Mohamed Bayan Kmainasi","Mucahid Kutlu","Ali Ezzat Shahroor","Abul Hasnat","Firoj Alam"],"abstract":"Hateful and propagandistic memes exploit the interplay between images and text to convey harmful intent that neither modality reveals alone. Although thinking-based multimodal large language models (MLLMs) have advanced vision-language understanding, their application to meme content moderation remains underexplored. We propose a reinforcement learning-based post-training method that improves classification performance and reference-based explanation quality in thinking-based MLLMs via task-specific rewards and Group Relative Policy Optimization (GRPO). Concretely, we (i) conduct a systematic empirical study of off-the-shelf MLLMs for hateful and propagandistic meme understanding across English and Arabic benchmarks, (ii) extend existing meme datasets with weakly supervised chain-of-thought (CoT) rationales via distillation and multi-LLM fine-grained propaganda annotations, (iii) introduce a GRPO-based objective with thinking-length regularization that jointly optimizes classification accuracy and explanation quality, and (iv) investigate self-supervised GRPO on unlabeled memes using consensus-based pseudo-labels. Experiments on the Hateful Memes and ArMeme benchmarks show that our approach improves over previously reported results on FHM accuracy (up to +2.1%, from 79.9% to 82.0%) and on ArMeme macro-F1 (up to +7.6 points, from 0.536 to 0.612 with explanations; +6.1 compared to the original ArMeme benchmark), while also generating natural-language explanations. On ArMeme, sequence-classification baselines remain stronger in terms of raw accuracy, whereas our approach provides more balanced per-class performance along with explanations. We publicly release our code, data extensions, and evaluation resources.","url_abs":"https://arxiv.org/abs/2606.15307","url_pdf":"https://arxiv.org/pdf/2606.15307","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2606.15307","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2606.15307"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/MohamedBayan/MemeReason","reach":null}],"summary":{"ran":19,"unverified":2},"by_repo_kind":{"found_in_text":{"samples":21,"ran":19,"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":21,"samples":[{"code_sha256_prefix":"49b653113fea6de9","entry":"as_compact_json","repo":"MohamedBayan/MemeReason","repo_kind":"found_in_text","path":"annotation/consolidate_annotations.py","file_url":"https://github.com/MohamedBayan/MemeReason/blob/HEAD/annotation/consolidate_annotations.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":"49b653113fea6de9"}},{"code_sha256_prefix":"324967c6a6c4b693","entry":"classification_metrics","repo":"MohamedBayan/MemeReason","repo_kind":"found_in_text","path":"evaluation/compute_metrics.py","file_url":"https://github.com/MohamedBayan/MemeReason/blob/HEAD/evaluation/compute_metrics.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":"324967c6a6c4b693"}},{"code_sha256_prefix":"513fd97ff50dad22","entry":"client_from_env","repo":"MohamedBayan/MemeReason","repo_kind":"found_in_text","path":"annotation/azure_batch.py","file_url":"https://github.com/MohamedBayan/MemeReason/blob/HEAD/annotation/azure_batch.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":"513fd97ff50dad22"}},{"code_sha256_prefix":"033c0d3e1d4d06bd","entry":"collate","repo":"MohamedBayan/MemeReason","repo_kind":"found_in_text","path":"training/unimodal/train_image_classifier.py","file_url":"https://github.com/MohamedBayan/MemeReason/blob/HEAD/training/unimodal/train_image_classifier.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":"033c0d3e1d4d06bd"}},{"code_sha256_prefix":"9da5d59a7b5f1751","entry":"collate","repo":"MohamedBayan/MemeReason","repo_kind":"found_in_text","path":"training/unimodal/train_text_classifier.py","file_url":"https://github.com/MohamedBayan/MemeReason/blob/HEAD/training/unimodal/train_text_classifier.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":"9da5d59a7b5f1751"}},{"code_sha256_prefix":"7eaffa29be6d6425","entry":"compute_metrics","repo":"MohamedBayan/MemeReason","repo_kind":"found_in_text","path":"training/unimodal/train_image_classifier.py","file_url":"https://github.com/MohamedBayan/MemeReason/blob/HEAD/training/unimodal/train_image_classifier.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":"7eaffa29be6d6425"}},{"code_sha256_prefix":"f85c65c949b629e1","entry":"extract_label","repo":"MohamedBayan/MemeReason","repo_kind":"found_in_text","path":"data_prep/build_unlabeled_training_set.py","file_url":"https://github.com/MohamedBayan/MemeReason/blob/HEAD/data_prep/build_unlabeled_training_set.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":"f85c65c949b629e1"}},{"code_sha256_prefix":"84d7d237b351e205","entry":"extract_label_and_explanation","repo":"MohamedBayan/MemeReason","repo_kind":"found_in_text","path":"evaluation/compute_metrics.py","file_url":"https://github.com/MohamedBayan/MemeReason/blob/HEAD/evaluation/compute_metrics.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":"84d7d237b351e205"}},{"code_sha256_prefix":"23b8127583dc83fe","entry":"first_explanation_block","repo":"MohamedBayan/MemeReason","repo_kind":"found_in_text","path":"training/rewards.py","file_url":"https://github.com/MohamedBayan/MemeReason/blob/HEAD/training/rewards.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":"23b8127583dc83fe"}},{"code_sha256_prefix":"b292f7554e17d3e4","entry":"first_label_line","repo":"MohamedBayan/MemeReason","repo_kind":"found_in_text","path":"training/rewards.py","file_url":"https://github.com/MohamedBayan/MemeReason/blob/HEAD/training/rewards.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":"b292f7554e17d3e4"}},{"code_sha256_prefix":"ea3a5543a765757b","entry":"first_think_block","repo":"MohamedBayan/MemeReason","repo_kind":"found_in_text","path":"training/rewards.py","file_url":"https://github.com/MohamedBayan/MemeReason/blob/HEAD/training/rewards.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":"ea3a5543a765757b"}},{"code_sha256_prefix":"bcc2eb61ab57d401","entry":"load_jsonl","repo":"MohamedBayan/MemeReason","repo_kind":"found_in_text","path":"annotation/azure_batch.py","file_url":"https://github.com/MohamedBayan/MemeReason/blob/HEAD/annotation/azure_batch.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":"bcc2eb61ab57d401"}},{"code_sha256_prefix":"f291f6bb0f74ccc4","entry":"load_prompt","repo":"MohamedBayan/MemeReason","repo_kind":"found_in_text","path":"data_prep/prepare_training_data.py","file_url":"https://github.com/MohamedBayan/MemeReason/blob/HEAD/data_prep/prepare_training_data.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":"f291f6bb0f74ccc4"}},{"code_sha256_prefix":"6031a2c4c5569b7e","entry":"load_split_local","repo":"MohamedBayan/MemeReason","repo_kind":"found_in_text","path":"data_prep/prepare_training_data.py","file_url":"https://github.com/MohamedBayan/MemeReason/blob/HEAD/data_prep/prepare_training_data.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":"6031a2c4c5569b7e"}},{"code_sha256_prefix":"71972f6d1cc6bb71","entry":"normalize_label","repo":"MohamedBayan/MemeReason","repo_kind":"found_in_text","path":"evaluation/compute_metrics.py","file_url":"https://github.com/MohamedBayan/MemeReason/blob/HEAD/evaluation/compute_metrics.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":"71972f6d1cc6bb71"}},{"code_sha256_prefix":"98d69637f11a050c","entry":"parse_json_response","repo":"MohamedBayan/MemeReason","repo_kind":"found_in_text","path":"annotation/consolidate_annotations.py","file_url":"https://github.com/MohamedBayan/MemeReason/blob/HEAD/annotation/consolidate_annotations.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":"98d69637f11a050c"}},{"code_sha256_prefix":"aed764678b5baf98","entry":"predict_and_save","repo":"MohamedBayan/MemeReason","repo_kind":"found_in_text","path":"training/unimodal/train_image_classifier.py","file_url":"https://github.com/MohamedBayan/MemeReason/blob/HEAD/training/unimodal/train_image_classifier.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":"aed764678b5baf98"}},{"code_sha256_prefix":"be3590c06fd5bd9b","entry":"prompt_fields","repo":"MohamedBayan/MemeReason","repo_kind":"found_in_text","path":"annotation/azure_batch.py","file_url":"https://github.com/MohamedBayan/MemeReason/blob/HEAD/annotation/azure_batch.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":"be3590c06fd5bd9b"}},{"code_sha256_prefix":"ed1d04a19f894910","entry":"stratified_sample","repo":"MohamedBayan/MemeReason","repo_kind":"found_in_text","path":"data_prep/build_unlabeled_training_set.py","file_url":"https://github.com/MohamedBayan/MemeReason/blob/HEAD/data_prep/build_unlabeled_training_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":"ed1d04a19f894910"}},{"code_sha256_prefix":"073ca25521339013","entry":"load_split_hub","repo":"MohamedBayan/MemeReason","repo_kind":"found_in_text","path":"data_prep/prepare_training_data.py","file_url":"https://github.com/MohamedBayan/MemeReason/blob/HEAD/data_prep/prepare_training_data.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":"073ca25521339013"}},{"code_sha256_prefix":"a436bd27aac5281b","entry":"predict_and_save","repo":"MohamedBayan/MemeReason","repo_kind":"found_in_text","path":"training/unimodal/train_text_classifier.py","file_url":"https://github.com/MohamedBayan/MemeReason/blob/HEAD/training/unimodal/train_text_classifier.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":"a436bd27aac5281b"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CL","source":"arxiv_2026.jsonl"},"syntology_extracted_results":{"kind":"leaderboard_placements","source":"Syntology's leaderboard-shaped extractor over the paper's own arXiv-HTML tables: a model pointed at a cell, the number was read from that cell and checked against the board's metric, dataset, split and scale, and an independent check accepted the entry; not reviewed by the paper's authors or the archive's editors","extractor_model":"global.anthropic.claude-sonnet-4-5-20250929-v1:0","verifier_model":null,"prompt_sha":"fa63d4bb9d755694","coverage":{"sentence":"Syntology has checked 6,795 of the 9,581 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9581,"papers_checked":6795},"entries":[],"not_placed":{"boards":1,"rejected_by_independent_check":0,"refused_by_a_rule":1,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}