mlsanityData to 7 Oct 2026

CodeXEmbed: A Generalist Embedding Model Family for Multiligual and Multi-task Code Retrieval

arXiv 2411.12644 ↗First posted 19 Nov 2024cs.SE cs.AIcited by 33

Not on the map. Why?

Abstract (arXiv)

Despite the success of text retrieval in many NLP tasks, code retrieval remains a largely underexplored area. Most text retrieval systems are tailored for natural language queries, often neglecting the specific challenges of retrieving code. This gap leaves existing models unable to effectively capture the diversity of programming languages and tasks across different domains, highlighting the need for more focused research in code retrieval. To address this, we introduce CodeXEmbed, a family of large-scale code embedding models ranging from 400M to 7B parameters. Our novel training pipeline unifies multiple programming languages and transforms various code-related tasks into a common retrieval framework, enhancing model generalizability and retrieval performance. Our 7B model sets a new state-of-the-art (SOTA) in code retrieval, outperforming the previous leading model, Voyage-Code, by over 20% on CoIR benchmark. In addition to excelling in code retrieval, our models demonstrate competitive performance on the widely adopted BeIR text retrieval benchmark, offering versatility across domains. Experimental results demonstrate that improving retrieval performance significantly enhances end-to-end Retrieval-Augmented Generation (RAG) performance for code-related tasks.

Key facts. Cited by 33 papers in the map (data through 7 Oct 2026). Builds on 58 of its 83 references that are in the map. First posted on arXiv 19 Nov 2024.

Builds on

58 of 83 references.

References · 58

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  4. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  5. 2023Mistral 7Bcited by 3,065
  6. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  7. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,628
  8. 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,591
  9. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  10. 2021BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Modelscited by 1,225
  11. 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,216
  12. 2021Unsupervised Dense Information Retrieval with Contrastive Learningcited by 1,203
38 more
  1. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
  2. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
  3. 2024M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillationcited by 1,050
  4. 2024Gemma: Open Models Based on Gemini Research and Technologycited by 889
  5. 2023StarCoder: may the source be with you!cited by 790
  6. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  7. 2023Towards General Text Embeddings with Multi-stage Contrastive Learningcited by 705
  8. 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 679
  9. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
  10. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
  11. 2023C-Pack: Packed Resources For General Chinese Embeddingscited by 556
  12. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
  13. 2024NV-Embed: Improved Techniques for Training LLMs as Generalist Embedding Modelscited by 466
  14. 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 442
  15. 2024LLM2Vec: Large Language Models Are Secretly Powerful Text Encoderscited by 396
  16. 2022Text and Code Embeddings by Contrastive Pre-Trainingcited by 358
  17. 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
  18. 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 355
  19. 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 346
  20. 2023Improving Text Embeddings with Large Language Modelscited by 295
  21. 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 181
  22. 2022DocPrompting: Generating Code by Retrieving the Docscited by 151
  23. 2021Retrieval Augmented Code Generation and Summarizationcited by 148
  24. 2024CodeGemma: Open Code Models Based on Gemmacited by 145
  25. 2018Improving Text-to-SQL Evaluation Methodologycited by 133
  26. 2023CodeGen2: Lessons for Training LLMs on Programming and Natural Languagescited by 124
  27. 2021Scaling Deep Contrastive Learning Batch Size under Memory Limited Setupcited by 123
  28. 2013A Theoretical Analysis of NDCG Type Ranking Measurescited by 119
  29. 2023Lift Yourself Up: Retrieval-augmented Text Generation with Self Memorycited by 103
  30. 2020Retrieval-Augmented Generation for Code Summarization via Hybrid GNNcited by 89
  31. 2024CodeRAG-Bench: Can Retrieval Augment Code Generation?cited by 89
  32. 2024NV-Retriever: Improving text embedding models with effective hard-negative miningcited by 83
  33. 2024Reliable, Adaptable, and Attributable Language Models with Retrievalcited by 73
  34. 2023Evaluating the Code Quality of AI-Assisted Code Generation Tools: An Empirical Study on GitHub Copilot, Amazon CodeWhisperer, and ChatGPTcited by 71
  35. 2024CoIR: A Comprehensive Benchmark for Code Information Retrieval Modelscited by 59
  36. 2023xCodeEval: A Large Scale Multilingual Multitask Benchmark for Code Understanding, Generation, Translation and Retrievalcited by 46
  37. 2023Teach AI How to Code: Using Large Language Models as Teachable Agents for Programming Educationcited by 38
  38. 2021Dense Hierarchical Retrieval for Open-Domain Question Answeringcited by 33

50 most cited of 58 All 58 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 20; 2026: 12.

33 papers.

Sort:

By area:

  1. 2025jina-embeddings-v4: Universal Embeddings for Multimodal Multilingual Retrievalcited by 72
  2. 2024LLMs are Also Effective Embedding Models: An In-depth Overviewcited by 32
  3. 2025SweRank: Software Issue Localization with Code Rankingcited by 20
  4. 2025Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approachescited by 20
  5. 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
  6. 2025The Automated LLM Speedrunning Benchmark: Reproducing NanoGPT Improvementscited by 12
  7. 2025Bootstrapping Task Spaces for Self-Improvementcited by 10
  8. 2026CreativeBench: Benchmarking and Enhancing Machine Creativity via Self-Evolving Challengescited by 9
  9. 2025CodeMirage: A Multi-Lingual Benchmark for Detecting AI-Generated and Paraphrased Source Code from Production-Level LLMscited by 6
  10. 2025Exploiting Leaderboards for Large-Scale Distribution of Malicious Modelscited by 5
  11. 2025CPRet: A Dataset, Benchmark, and Model for Retrieval in Competitive Programmingcited by 3
  12. 2025C2LLM Technical Report: A New Frontier in Code Retrieval via Adaptive Cross-Attention Poolingcited by 3
21 more
  1. 2025ParaStudent: Closing the Sim2Real Gap in User Simulators for AI Tutor Evaluationcited by 2
  2. 2025AlgoSimBench: Identifying Algorithmically Similar Problems for Competitive Programmingcited by 2
  3. 2025Utilizing Training Data to Improve LLM Reasoning for Tabular Understandingcited by 2
  4. 2025GAPrune: Gradient-Alignment Pruning for Domain-Aware Embeddingscited by 2
  5. 2026On the Challenges and Opportunities of Learned Sparse Retrieval for Codecited by 2
  6. 2026Evaluating Repository-level Software Documentation via Question Answering and Feature-Driven Developmentcited by 2
  7. 2026SWE-QA: A Dataset and Benchmark for Complex Code Understandingcited by 2
  8. 2026MM-IssueLoc: A Controlled Benchmark for Evaluating Visual Evidence in Multimodal Repository-Level Issue Localizationcited by 2
  9. 2025CIDRe: A Reference-Free Multi-Aspect Criterion for Code Comment Quality Measurementcited by 1
  10. 2025OmniLLP: Enhancing LLM-based Log Level Prediction with Context-Aware Retrievalcited by 1
  11. 2025Cross-modal Retrieval Models for Stripped Binary Analysiscited by 1
  12. 2026The "I Don't Know" Filter: Enhancing Agentic Reliability in Function Callingcited by 1
  13. 2025LoRACode: LoRA Adapters for Code Embeddingscited by 0
  14. 2025Evaluating Out-of-Distribution Robustness in Graph-Based Android Malware Classification: A New Principled Benchmarkcited by 0
  15. 2025On the Difficulty of Selecting Few-Shot Examples for Effective LLM-based Vulnerability Detectioncited by 0
  16. 2026CodeMMR: Bridging Natural Language, Code, and Image for Unified Retrievalcited by 0
  17. 2026Do not copy and paste! Rewriting strategies for code retrievalcited by 0
  18. 2026Long Live the Librarian! A Persistent Search Sub-Agent for Energy-Efficient Multi-Agent Software Engineering Systemscited by 0
  19. 2026Recall Before Rerank: Benchmarking Deep Learning Models for Large-Scale Code-to-Code Retrievalcited by 0
  20. 2026Retrieval-Oriented Code Representations in Agentic Bug Localizationcited by 0
  21. 2026GRUET: Quantifying Uncertainty of Agentic Reasoning-and-Acting Processescited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025Towards A Generalist Code Embedding Model Based On Massive Data Synthesis
  2. 2024CodexGraph: Bridging Large Language Models and Code Repositories via Code Graph Databases
  3. 2024Retrieval-augmented code completion for local projects using large language models
  4. 2026Are you Synthesizing or Recalling? Evaluating LLMs on Algorithmic Code Retrieval
  5. 2026ExecRetrieval: Measuring the Functional-Correctness Gap in Code-Embedding Retrieval
  6. 2026CORE-Bench: A Comprehensive Benchmark for Code Retrieval in the Era of Agentic Coding
  7. 2025Functional Consistency of LLM Code Embeddings: A Self-Evolving Data Synthesis Framework for Benchmarking
  8. 2026Context-Augmented Code Generation Using Programming Knowledge Graphs