ExecRetrieval
Tests whether code search ranks a function that passes the requested tests above superficially similar alternatives.
Benchmark design
These annotations use Evidence-Centered Benchmark Design (ECBD) to describe how the authors designed the benchmark and which choices they justify in their publication.
What the authors tested
We haven’t summarized validation evidence for this edition yet.
Limitations
- Passing means passing the benchmark’s supplied tests for that query. Rank cutoffs measure different use cases and are reported separately.
Benchmark design choices
Intended use
Evaluate the functional correctness of code retrieved by embeddings and lexical search.
Abstract and §1Capability
Retrieve passing Python implementations for a natural-language query even when similar failing candidates are present.
§3 and Figure 1Tasks
The release has 939 queries and 4,694 Python snippets spanning ten algorithmic domains.
Table 1 and §3.1Model setup
The reference uses each embedding model’s documented input setup and compares it with BM25.
§4.3Task selection
The authors validate the benchmark queries with an executable test suite and freeze the retrieval corpus for all models.
§3 and §4.4Scoring
Exec@k measures whether any of the top results passes all tests. Execution precision and identity-based ranking are reported separately.
Table 7 and Appendix FDesign annotations from the paper
Reported model results
- 1
Gemini Embedding 20.331Sources for Gemini Embedding 2 - 2
Gemini Embedding 0010.329Sources for Gemini Embedding 001 - 3
Mistral Embed0.224Sources for Mistral Embed - 4
Qwen3-8B0.214Sources for Qwen3-8B - 5
Qwen3-4B BF160.204Sources for Qwen3-4B BF16 - 6
Qwen3-4B FP160.196Sources for Qwen3-4B FP16 - 7
Codestral Embed 25050.185Sources for Codestral Embed 2505 - 8
OpenAI 3-large0.113Sources for OpenAI 3-large - 9
OpenAI ada-0020.104Sources for OpenAI ada-002 - 9GTE-large0.104Sources for GTE-large
- 11MiniLM-L120.086Sources for MiniLM-L12
- 12mE5-large0.085Sources for mE5-large
- 12BGE-M3 (dense)0.085Sources for BGE-M3 (dense)
- 14
OpenAI 3-small0.083Sources for OpenAI 3-small - 14BGE-base0.083Sources for BGE-base
- 16BGE-large0.078Sources for BGE-large
- 17E5-large0.077Sources for E5-large
- 18MPNet-base0.076Sources for MPNet-base
- 19Multi-QA MPNet0.073Sources for Multi-QA MPNet
- 20GTE-base0.071Sources for GTE-base
- 21MiniLM-L60.069Sources for MiniLM-L6
- 21E5-base0.069Sources for E5-base
- BM25 (lexical)Baseline0.058Sources for BM25 (lexical)
- 23Para-MiniLM0.05Sources for Para-MiniLM
- 1
Gemini Embedding 0010.889Sources for Gemini Embedding 001 - 2
Gemini Embedding 20.823Sources for Gemini Embedding 2 - 3
Mistral Embed0.795Sources for Mistral Embed - 4
Qwen3-4B FP160.791Sources for Qwen3-4B FP16 - 5
Qwen3-4B BF160.786Sources for Qwen3-4B BF16 - 6
Qwen3-8B0.784Sources for Qwen3-8B - 7
Codestral Embed 25050.781Sources for Codestral Embed 2505 - 8
OpenAI 3-large0.701Sources for OpenAI 3-large - 9
OpenAI ada-0020.662Sources for OpenAI ada-002 - 10GTE-large0.661Sources for GTE-large
- 11E5-large0.636Sources for E5-large
- 12BGE-large0.63Sources for BGE-large
- 13GTE-base0.627Sources for GTE-base
- 14BGE-base0.626Sources for BGE-base
- 15
OpenAI 3-small0.624Sources for OpenAI 3-small - 16mE5-large0.622Sources for mE5-large
Example items
Figure 1 · Query q_0348, lowest set bit
Retrieve a routine that returns the lowest set bit of a number. Several routines look relevant to the language query, but the first one that passes every behavior test appears fourth in the ranked list.
Published example, summarizedFigure 1 identifies query q_0348 and shows its result for Gemini Embedding 2. Table 7 evaluates retrieval across all 939 queries at several cutoff ranks.
Aaryan Kapoor and Md Abdullah Al Hafiz KhanPublication and sources
Result sources
23 models in sources
Review
ExecRetrieval