English

Efficient Code Embeddings from Code Generation Models

Computation and Language 2025-09-01 v1 Artificial Intelligence Information Retrieval

Abstract

jina-code-embeddings is a novel code embedding model suite designed to retrieve code from natural language queries, perform technical question-answering, and identify semantically similar code snippets across programming languages. It makes innovative use of an autoregressive backbone pre-trained on both text and code, generating embeddings via last-token pooling. We outline the training recipe and demonstrate state-of-the-art performance despite the relatively small size of the models, validating this approach to code embedding model construction.

Keywords

Cite

@article{arxiv.2508.21290,
  title  = {Efficient Code Embeddings from Code Generation Models},
  author = {Daria Kryvosheieva and Saba Sturua and Michael Günther and Scott Martens and Han Xiao},
  journal= {arXiv preprint arXiv:2508.21290},
  year   = {2025}
}

Comments

9 pages, table and evaluations 5-9

R2 v1 2026-07-01T05:11:24.761Z