mlsanityData to 14 Oct 2026

CodeMMR: Bridging Natural Language, Code, and Image for Unified Retrieval

arXiv 2604.15663 ↗First posted 17 Apr 2026cs.SE cs.AIcited by 0

On the map: Retrieval-augmented generation → RAG for code

Abstract (arXiv)

Code search, framed as information retrieval (IR), underpins modern software engineering and increasingly powers retrieval-augmented generation (RAG), improving code discovery, reuse, and the reliability of LLM-based coding. Yet existing code IR models remain largely text-centric and often overlook the visual and structural aspects inherent in programming artifacts such as web interfaces, data visualizations, SVGs, schematic diagrams, and UML. To bridge this gap, we introduce MMCoIR, the first comprehensive benchmark for evaluating multimodal code IR across five visual domains, eight programming languages, eleven libraries, and show the challenge of the task through extensive evaluation. Therefore, we then propose CodeMMR, a unified retrieval model that jointly embeds natural language, code, and images into a shared semantic space through instruction-based multimodal alignment. CodeMMR achieves strong generalization across modalities and languages, outperforming competitive baselines (e.g., UniIR, GME, VLM2Vec) by an average of 10 points on nDCG@10. Moreover, integrating CodeMMR into RAG enhances code generation fidelity and visual grounding on unseen code generation tasks, underscoring the potential of multimodal retrieval as a core enabler for next-generation intelligent programming systems. Datasets are available at HuggingFace.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in RAG for code, one of 15 directions in Retrieval-augmented generation. Builds on 35 of its 38 references that are in the map. First posted on arXiv 17 Apr 2026.

Builds on

35 of 38 references.

Closest ancestors · 2

Same direction, newest first

  1. 2024CodeRAG-Bench: Can Retrieval Augment Code Generation?20 Jun
  2. 2024EVOR: Evolving Retrieval for Code Generation19 Feb

Other references · 33

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  2. 2018Representation Learning with Contrastive Predictive Codingcited by 7,777
  3. 2022BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generationcited by 4,322
  4. 2024Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolutioncited by 4,234
  5. 2021Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervisioncited by 3,864
  6. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
  7. 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 367
  8. 2024VLM2Vec: Training Vision-Language Models for Massive Multimodal Embedding Taskscited by 228
  9. 2024GME: Improving Universal Multimodal Retrieval by Multimodal LLMscited by 170
  10. 2023UniIR: Training and Benchmarking Universal Multimodal Information Retrieverscited by 166
  11. 2024MM-Embed: Universal Multimodal Retrieval with Multimodal LLMscited by 161
  12. 2024Unlocking the conversion of Web Screenshots into HTML Code with the WebSight Datasetcited by 129
21 more
  1. 2024ChartMimic: Evaluating LMM's Cross-Modal Reasoning Capability via Chart-to-Code Generationcited by 129
  2. 2024MagicLens: Self-Supervised Image Retrieval with Open-Ended Instructionscited by 119
  3. 2025VLM2Vec-V2: Advancing Multimodal Embedding for Videos, Images, and Visual Documentscited by 116
  4. 2024LamRA: Large Multimodal Model as Your Advanced Retrieval Assistantcited by 106
  5. 2023StarVector: Generating Scalable Vector Graphics Code from Images and Textcited by 102
  6. 2025ChartCoder: Advancing Multimodal Large Language Model for Chart-to-Code Generationcited by 92
  7. 2021CoSQA: 20,000+ Web Queries for Code Search and Question Answeringcited by 75
  8. 2024Web2Code: A Large-scale Webpage-to-Code Dataset and Evaluation Framework for Multimodal LLMscited by 74
  9. 2025OmniSVG: A Unified Scalable Vector Graphics Generation Modelcited by 74
  10. 2024CoIR: A Comprehensive Benchmark for Code Information Retrieval Modelscited by 60
  11. 2023xCodeEval: A Large Scale Multilingual Multitask Benchmark for Code Understanding, Generation, Translation and Retrievalcited by 47
  12. 2024WebCode2M: A Real-World Dataset for Code Generation from Webpage Designscited by 44
  13. 2025Think Then Embed: Generative Context Improves Multimodal Embeddingcited by 41
  14. 2024CodeXEmbed: A Generalist Embedding Model Family for Multiligual and Multi-task Code Retrievalcited by 34
  15. 2024From Words to Structured Visuals: A Benchmark and Framework for Text-to-Diagram Generation and Editingcited by 31
  16. 2024Sketch2Code: Evaluating Vision-Language Models for Interactive Web Design Prototypingcited by 29
  17. 2025TikZero: Zero-Shot Text-Guided Graphics Program Synthesiscited by 24
  18. 2025ChartGen: Scaling Chart Understanding Via Code-Guided Synthetic Chart Generationcited by 8
  19. 2025Unified Modeling Language Code Generation from Diagram Images Using Multimodal Large Language Modelscited by 7
  20. 2025CoQuIR: A Comprehensive Benchmark for Code Quality-Aware Information Retrievalcited by 6
  21. 2025Revela: Dense Retriever Learning via Language Modelingcited by 3

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Towards A Generalist Code Embedding Model Based On Massive Data Synthesis
  2. 2025SACL: Understanding and Combating Textual Bias in Code Retrieval with Semantic-Augmented Reranking and Localization
  3. 2026Context-Augmented Code Generation Using Programming Knowledge Graphs
  4. 2024CodeGRAG: Bridging the Gap between Natural Language and Programming Language via Graphical Retrieval Augmented Generation
  5. 2024Retrieval-augmented code completion for local projects using large language models
  6. 2024Context-Augmented Code Generation Using Programming Knowledge Graphs
  7. 2025Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approaches
  8. 2026CORE-Bench: A Comprehensive Benchmark for Code Retrieval in the Era of Agentic Coding