{"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/mm-ifengine-towards-multimodal-instruction","title":"MM-IFEngine: Towards Multimodal Instruction Following","arxiv_id":"2504.07957","date":"2025-04-10","proceeding":null,"authors":["Shengyuan Ding","Shenxi Wu","Xiangyu Zhao","Yuhang Zang","Haodong Duan","Xiaoyi Dong","Pan Zhang","Yuhang Cao","Dahua Lin","Jiaqi Wang"],"abstract":"The Instruction Following (IF) ability measures how well Multi-modal Large Language Models (MLLMs) understand exactly what users are telling them and whether they are doing it right. Existing multimodal instruction following training data is scarce, the benchmarks are simple with atomic instructions, and the evaluation strategies are imprecise for tasks demanding exact output constraints. To address this, we present MM-IFEngine, an effective pipeline to generate high-quality image-instruction pairs. Our MM-IFEngine pipeline yields large-scale, diverse, and high-quality training data MM-IFInstruct-23k, which is suitable for Supervised Fine-Tuning (SFT) and extended as MM-IFDPO-23k for Direct Preference Optimization (DPO). We further introduce MM-IFEval, a challenging and diverse multi-modal instruction-following benchmark that includes (1) both compose-level constraints for output responses and perception-level constraints tied to the input images, and (2) a comprehensive evaluation pipeline incorporating both rule-based assessment and judge model. We conduct SFT and DPO experiments and demonstrate that fine-tuning MLLMs on MM-IFInstruct-23k and MM-IFDPO-23k achieves notable gains on various IF benchmarks, such as MM-IFEval (+10.2$\\%$), MIA (+7.6$\\%$), and IFEval (+12.3$\\%$). The full data and evaluation code will be released on https://github.com/SYuan03/MM-IFEngine.","url_abs":"https://arxiv.org/abs/2504.07957v1","url_pdf":"https://arxiv.org/pdf/2504.07957v1.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":"mm-ifengine-towards-multimodal-instruction","repo_url":"https://github.com/syuan03/mm-ifengine","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"instruction-following","task_name":"Instruction Following"}],"methods":[{"method_slug":"dpo","method_name":"DPO"},{"method_slug":"sft","method_name":"SFT"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2504.07957","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2504.07957"}},"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/SYuan03/MM-IFEngine","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"unverified":10},"by_repo_kind":{"official":{"samples":10,"ran":0,"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":"84c7395a12c7e1c6","entry":"blend","repo":"SYuan03/MM-IFEngine","repo_kind":"official","path":"data_gen/data_filter/gene_modified_multi.py","file_url":"https://github.com/SYuan03/MM-IFEngine/blob/HEAD/data_gen/data_filter/gene_modified_multi.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"84c7395a12c7e1c6"}},{"code_sha256_prefix":"ac88bbff6adddd64","entry":"check_whether_each_paragraph_sentence_number_in_range","repo":"SYuan03/MM-IFEngine","repo_kind":"official","path":"data_gen/utils/function_and_compare.py","file_url":"https://github.com/SYuan03/MM-IFEngine/blob/HEAD/data_gen/utils/function_and_compare.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ac88bbff6adddd64"}},{"code_sha256_prefix":"251e207ef99662b8","entry":"check_whether_response_paragraph_number_in_range","repo":"SYuan03/MM-IFEngine","repo_kind":"official","path":"data_gen/utils/function_and_compare.py","file_url":"https://github.com/SYuan03/MM-IFEngine/blob/HEAD/data_gen/utils/function_and_compare.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"251e207ef99662b8"}},{"code_sha256_prefix":"df99d5fd8c7abf1f","entry":"check_whether_response_sentence_number_in_range","repo":"SYuan03/MM-IFEngine","repo_kind":"official","path":"data_gen/utils/function_and_compare.py","file_url":"https://github.com/SYuan03/MM-IFEngine/blob/HEAD/data_gen/utils/function_and_compare.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"df99d5fd8c7abf1f"}},{"code_sha256_prefix":"2f44e0bdacb86a19","entry":"generate_cmp_pt","repo":"SYuan03/MM-IFEngine","repo_kind":"official","path":"eval_mmifeval/score_multi_constraint_mp_with_image_v11.py","file_url":"https://github.com/SYuan03/MM-IFEngine/blob/HEAD/eval_mmifeval/score_multi_constraint_mp_with_image_v11.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2f44e0bdacb86a19"}},{"code_sha256_prefix":"bfc1d1359defdfd7","entry":"generate_eval_pt","repo":"SYuan03/MM-IFEngine","repo_kind":"official","path":"eval_mmifeval/score_multi_constraint_mp_with_image_v11.py","file_url":"https://github.com/SYuan03/MM-IFEngine/blob/HEAD/eval_mmifeval/score_multi_constraint_mp_with_image_v11.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"bfc1d1359defdfd7"}},{"code_sha256_prefix":"835e1fc79e60473f","entry":"generate_eval_pt_vision","repo":"SYuan03/MM-IFEngine","repo_kind":"official","path":"eval_mmifeval/score_multi_constraint_mp_with_image_v11.py","file_url":"https://github.com/SYuan03/MM-IFEngine/blob/HEAD/eval_mmifeval/score_multi_constraint_mp_with_image_v11.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"835e1fc79e60473f"}},{"code_sha256_prefix":"7886dadebf6b2bb6","entry":"get_logger","repo":"SYuan03/MM-IFEngine","repo_kind":"official","path":"data_gen/utils/log.py","file_url":"https://github.com/SYuan03/MM-IFEngine/blob/HEAD/data_gen/utils/log.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7886dadebf6b2bb6"}},{"code_sha256_prefix":"ffcf3b57894527a4","entry":"get_real_image_key","repo":"SYuan03/MM-IFEngine","repo_kind":"official","path":"data_gen/utils/tools.py","file_url":"https://github.com/SYuan03/MM-IFEngine/blob/HEAD/data_gen/utils/tools.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ffcf3b57894527a4"}},{"code_sha256_prefix":"b60d3d0a9aefac4a","entry":"infer_one_image","repo":"SYuan03/MM-IFEngine","repo_kind":"official","path":"data_gen/data_filter/gene_modified_multi.py","file_url":"https://github.com/SYuan03/MM-IFEngine/blob/HEAD/data_gen/data_filter/gene_modified_multi.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b60d3d0a9aefac4a"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}