{"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-2602-22278","title":"RETLLM: Training and Data-Free MLLMs for Multimodal Information Retrieval","arxiv_id":"2602.22278","date":"2026-02-25","proceeding":null,"authors":["Dawei Su","Dongsheng Wang"],"abstract":"Multimodal information retrieval (MMIR) has gained attention for its flexibility in handling text, images, or mixed queries and candidates. Recent breakthroughs in multimodal large language models (MLLMs) boost MMIR performance by incorporating MLLM knowledge under the contrastive finetuning framework. However, they suffer from pre-training inconsistency and require large datasets. In this work, we introduce a novel framework, RetLLM, designed to query MLLMs for MMIR in a training- and data-free manner. Specifically, we formulate MMIR as a similarity score generation task and prompt MLLMs to directly predict retrieval scores in a coarse-then-fine pipeline. At the coarse stage, a top-k filtering strategy builds a small yet high-quality candidate pool for each query, enabling MLLMs to focus on semantically relevant candidates. Subsequently, the retrieval score is predicted by feeding both the query and candidate into MLLMs at the fine stage. Importantly, we propose a visual enhancement module during reasoning to help MLLMs re-pick forgotten visuals, improving retrieval. Extensive experiments on MMIR benchmarks show that RetLLM outperforms fine-tuned models. Ablation studies further verify each component. Our work demonstrates that MLLMs can achieve strong MMIR performance without any training, highlighting their inherent multimodal reasoning ability in a simple, scalable framework. We release our code at: https://github.com/alivecat05/RETLLM","url_abs":"https://arxiv.org/abs/2602.22278","url_pdf":"https://arxiv.org/pdf/2602.22278","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":{"atlas_url":"https://app.syntology.ai/?focus=2602.22278","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2602.22278"}},"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/alivecat05/RETLLM","reach":null}],"summary":{"ran_draft_wrong":2,"unverified":12},"by_repo_kind":{"found_in_text":{"samples":14,"ran":2,"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":"d413d290d3c00325","entry":"recall_at_k","repo":"alivecat05/RETLLM","repo_kind":"found_in_text","path":"Codes/main_retrieval_long_module.py","file_url":"https://github.com/alivecat05/RETLLM/blob/HEAD/Codes/main_retrieval_long_module.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d413d290d3c00325"}},{"code_sha256_prefix":"e03d53ba9d4f9ae5","entry":"rotate_half","repo":"alivecat05/RETLLM","repo_kind":"found_in_text","path":"modeling_qwen2_5_vl.py","file_url":"https://github.com/alivecat05/RETLLM/blob/HEAD/modeling_qwen2_5_vl.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e03d53ba9d4f9ae5"}},{"code_sha256_prefix":"24acaeb8ad82253e","entry":"apply_rotary_pos_emb_flashatt","repo":"alivecat05/RETLLM","repo_kind":"found_in_text","path":"modeling_qwen2_5_vl.py","file_url":"https://github.com/alivecat05/RETLLM/blob/HEAD/modeling_qwen2_5_vl.py","link_basis":"plan_row","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":"24acaeb8ad82253e"}},{"code_sha256_prefix":"09445ca10af72017","entry":"apply_rotary_pos_emb_vision","repo":"alivecat05/RETLLM","repo_kind":"found_in_text","path":"modeling_qwen2_5_vl.py","file_url":"https://github.com/alivecat05/RETLLM/blob/HEAD/modeling_qwen2_5_vl.py","link_basis":"plan_row","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":"09445ca10af72017"}},{"code_sha256_prefix":"4d3f99af6174569e","entry":"batchify","repo":"alivecat05/RETLLM","repo_kind":"found_in_text","path":"Codes/main_retrieval_long_module.py","file_url":"https://github.com/alivecat05/RETLLM/blob/HEAD/Codes/main_retrieval_long_module.py","link_basis":"first_harvest_node","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":"4d3f99af6174569e"}},{"code_sha256_prefix":"76755f6879d57a39","entry":"calculate_entropy","repo":"alivecat05/RETLLM","repo_kind":"found_in_text","path":"Codes/Qwen_vl.py","file_url":"https://github.com/alivecat05/RETLLM/blob/HEAD/Codes/Qwen_vl.py","link_basis":"first_harvest_node","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":"76755f6879d57a39"}},{"code_sha256_prefix":"de6a889b9a238540","entry":"calculate_recall_from_results","repo":"alivecat05/RETLLM","repo_kind":"found_in_text","path":"Codes/main_retrieval_long_module.py","file_url":"https://github.com/alivecat05/RETLLM/blob/HEAD/Codes/main_retrieval_long_module.py","link_basis":"first_harvest_node","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":"de6a889b9a238540"}},{"code_sha256_prefix":"c98c3c7150fdcd2f","entry":"compute_entropy","repo":"alivecat05/RETLLM","repo_kind":"found_in_text","path":"Codes/Qwen_vl.py","file_url":"https://github.com/alivecat05/RETLLM/blob/HEAD/Codes/Qwen_vl.py","link_basis":"first_harvest_node","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":"c98c3c7150fdcd2f"}},{"code_sha256_prefix":"22d6dd835992f7a4","entry":"extract_numbers","repo":"alivecat05/RETLLM","repo_kind":"found_in_text","path":"Codes/Qwen2_vl.py","file_url":"https://github.com/alivecat05/RETLLM/blob/HEAD/Codes/Qwen2_vl.py","link_basis":"first_harvest_node","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":"22d6dd835992f7a4"}},{"code_sha256_prefix":"ccce81326befa5c1","entry":"get_featuremap_size","repo":"alivecat05/RETLLM","repo_kind":"found_in_text","path":"Codes/dino_heal.py","file_url":"https://github.com/alivecat05/RETLLM/blob/HEAD/Codes/dino_heal.py","link_basis":"first_harvest_node","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":"ccce81326befa5c1"}},{"code_sha256_prefix":"15f2ce30d8f6af86","entry":"get_vision_attention_map","repo":"alivecat05/RETLLM","repo_kind":"found_in_text","path":"Codes/attention_demo.py","file_url":"https://github.com/alivecat05/RETLLM/blob/HEAD/Codes/attention_demo.py","link_basis":"first_harvest_node","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":"15f2ce30d8f6af86"}},{"code_sha256_prefix":"ebb035364fe02208","entry":"get_vision_attention_map","repo":"alivecat05/RETLLM","repo_kind":"found_in_text","path":"Codes/attention_demo_fixed.py","file_url":"https://github.com/alivecat05/RETLLM/blob/HEAD/Codes/attention_demo_fixed.py","link_basis":"first_harvest_node","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":"ebb035364fe02208"}},{"code_sha256_prefix":"3e4ea555a8a80225","entry":"load_model","repo":"alivecat05/RETLLM","repo_kind":"found_in_text","path":"main_eval.py","file_url":"https://github.com/alivecat05/RETLLM/blob/HEAD/main_eval.py","link_basis":"first_harvest_node","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":"3e4ea555a8a80225"}},{"code_sha256_prefix":"75359491f96c06bb","entry":"text_retrieval","repo":"alivecat05/RETLLM","repo_kind":"found_in_text","path":"main_eval.py","file_url":"https://github.com/alivecat05/RETLLM/blob/HEAD/main_eval.py","link_basis":"first_harvest_node","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":"75359491f96c06bb"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}