{"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/recurrence-enhanced-vision-and-language","title":"Recurrence-Enhanced Vision-and-Language Transformers for Robust Multimodal Document Retrieval","arxiv_id":"2503.01980","date":"2025-03-03","proceeding":"CVPR 2025 1","authors":["Davide Caffagni","Sara Sarto","Marcella Cornia","Lorenzo Baraldi","Rita Cucchiara"],"abstract":"Cross-modal retrieval is gaining increasing efficacy and interest from the research community, thanks to large-scale training, novel architectural and learning designs, and its application in LLMs and multimodal LLMs. In this paper, we move a step forward and design an approach that allows for multimodal queries, composed of both an image and a text, and can search within collections of multimodal documents, where images and text are interleaved. Our model, ReT, employs multi-level representations extracted from different layers of both visual and textual backbones, both at the query and document side. To allow for multi-level and cross-modal understanding and feature extraction, ReT employs a novel Transformer-based recurrent cell that integrates both textual and visual features at different layers, and leverages sigmoidal gates inspired by the classical design of LSTMs. Extensive experiments on M2KR and M-BEIR benchmarks show that ReT achieves state-of-the-art performance across diverse settings. Our source code and trained models are publicly available at https://github.com/aimagelab/ReT.","url_abs":"https://arxiv.org/abs/2503.01980v1","url_pdf":"https://arxiv.org/pdf/2503.01980v1.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":"recurrence-enhanced-vision-and-language","repo_url":"https://github.com/aimagelab/ret","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"cross-modal-retrieval","task_name":"Cross-Modal Retrieval"},{"task_slug":"retrieval","task_name":"Retrieval"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2503.01980","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2503.01980"}},"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/aimagelab/ReT","reach":null}],"summary":{"ran":3,"ran_honours":1,"unverified":2},"by_repo_kind":{"official":{"samples":6,"ran":4,"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":"77b0dfaabd33bb62","entry":"RetCell","repo":"aimagelab/ReT","repo_kind":"official","path":"src/models/ret/modeling_ret.py","file_url":"https://github.com/aimagelab/ReT/blob/HEAD/src/models/ret/modeling_ret.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"77b0dfaabd33bb62"}},{"code_sha256_prefix":"efd2c64c80d9da04","entry":"RetConfig","repo":"aimagelab/ReT","repo_kind":"official","path":"src/models/ret/modeling_ret.py","file_url":"https://github.com/aimagelab/ReT/blob/HEAD/src/models/ret/modeling_ret.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"efd2c64c80d9da04"}},{"code_sha256_prefix":"42f58d719a525dfd","entry":"RetModelOutput","repo":"aimagelab/ReT","repo_kind":"official","path":"src/models/ret/modeling_ret.py","file_url":"https://github.com/aimagelab/ReT/blob/HEAD/src/models/ret/modeling_ret.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"42f58d719a525dfd"}},{"code_sha256_prefix":"6f2879b3a1509c9a","entry":"get_additive_attn_mask","repo":"aimagelab/ReT","repo_kind":"official","path":"src/models/ret/modeling_ret.py","file_url":"https://github.com/aimagelab/ReT/blob/HEAD/src/models/ret/modeling_ret.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"6f2879b3a1509c9a"}},{"code_sha256_prefix":"f12e1adead40d190","entry":"RetLayerStrategy","repo":"aimagelab/ReT","repo_kind":"official","path":"src/models/ret/modeling_ret.py","file_url":"https://github.com/aimagelab/ReT/blob/HEAD/src/models/ret/modeling_ret.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":"f12e1adead40d190"}},{"code_sha256_prefix":"a61ac2ba2a2004ff","entry":"RetModel","repo":"aimagelab/ReT","repo_kind":"official","path":"src/models/ret/modeling_ret.py","file_url":"https://github.com/aimagelab/ReT/blob/HEAD/src/models/ret/modeling_ret.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":"a61ac2ba2a2004ff"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}