atlas

Research map / Label-efficient and robust learning / Recognition and long-tail

Towards A Generalist Code Embedding Model Based On Massive Data Synthesis

NeurIPS 2025 · Label-efficient and robust learning › Recognition and long-tail · approach: Multilingual language representation pretraining · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces CodeR, a 1.5B code embedding model trained on the synthetic CodeR-Pile dataset (2.9M samples, 47 tasks) with a three-stage weak-to-strong curriculum called Annealing, reaching state-of-the-art on CoIR and CodeRAG.

Problem

Code embedding models for retrieval-augmented code tasks are limited by scarce high-quality training data, since existing embedding training data is text-centric and does not capture code-specific semantic relationships.

Approach

A DRU-guided synthetic data pipeline (LLM brainstorming of 47 code retrieval tasks, lightweight LLM triplet generation with real-corpus hard-negative mining) combined with a three-stage Annealing curriculum that moves from text-only to mixed to code-only data.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
train with full code data, integrating synthetic and existing retrieval dataCodeR-1.5B · CoIRNDCG@10 (Avg): 79.77 -> 81.77Helped
train with full code data, integrating synthetic and existing retrieval dataCodeR-1.5B · CoIR-filterNDCG@10 (Avg): 91.08 -> 93.00Helped
train with full code data, integrating synthetic and existing retrieval dataCodeR-1.5B · CodeRAGNDCG@10 (Avg): 70.9 -> 72.8Helped
add code retrieval training data to text-only dataCodeR-1.5B · CoIRNDCG@10 (Avg): 70.12 -> 81.77Helped
use all four major task types rather than only Text-to-Code Retrieval (ablation)CodeR-1.5B · CoIRNDCG@10 (Avg): 65.65 -> 67.64Helped
use GPT-4o mini rather than Qwen2.5-Coder-32B-Instruct to generate training samples (ablation)CodeR-1.5B · CoIR (7 tasks)NDCG@10 (Avg): 67.29 -> 68.95Helped
replace mined hard negatives with LLM-generated hard negatives (ablation)CodeR-1.5B · CoIR (7 tasks)NDCG@10 (Avg): 67.29 -> 56.40Hurt
replace mined hard negatives with 1 LLM-generated hard negative (ablation)CodeR-1.5B · CoIR (7 tasks)NDCG@10 (Avg): 67.29 -> 59.38Hurt
add the second-stage mixed-data training after Stage-1 (ablation)CodeR-1.5B · CoIRNDCG@10 (Avg): 63.14 -> 69.13Helped
add the final code-only Stage-3 training (ablation)CodeR-1.5B · CoIRNDCG@10 (Avg): 69.13 -> 70.12Helped
add the three-stage Annealing curriculum instead of direct mixed-data training (ablation)CodeR-1.5B · CoIRNDCG@10 (Avg): 68.49 -> 70.12Helped
add text-only training data (ablation)CodeR-1.5B · CoIRNDCG@10 (Avg): 68.89 -> 70.12Helped

Surprising findings

Limitations

Experimental setup

Datasets: CodeR-Pile BGE training set CoIR training datasets GitHub-code-clean

Benchmarks: CoIR CoIR-filter CodeRAG

Metrics: NDCG@10

Baselines: BGE-M3 E5-Mistral-7B-Instruct Gemini-embedding UniXcoder Jina-v2-code CodeXEmbed Voyage-code-002 Voyage-code-003 SFR-mistral-7B BGE-base

Builds on: E5-Mistral CoIR Qwen2.5-Coder Topk-PercPos InfoNCE

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy