paper-with-me

Papers

ExecRetrieval: Measuring the Functional-Correctness Gap in Code-Embedding Retrieval

2026-09-01 · Aaryan Kapoor, Md Abdullah Al Hafiz Khan hf

Embedding-based code retrieval is a core component of coding agents and retrieval-augmented code generation, where retrieving correct code matters more than retrieving lexically similar code. Existing code-retrieval benchmarks do not plant controlled, execution-verified single-edit variants of each query's canonical implementation in the search pool, leaving the question of whether embeddings can functionally discriminate correct from near-clone-but-incorrect code unanswered in a retrieval setting. Resolving this requires a benchmark whose search pool itself contains the relevant counterfactuals -- execution-verified buggy variants near-identical to each canonical -- so that a retriever's rank ordering can be directly tested for functional discrimination rather than topical or identity overlap. We introduce ExecRetrieval, 939 Python tasks each paired with one execution-verified canonical implementation and up to four execution-verified buggy distractors, each generated by a mechanical mutation making a single targeted edit, and evaluate 23 dense embedding configurations plus BM25 under provider-native invocation with paired McNemar tests and query-level bootstrap intervals. With near-clone counterfactuals in the pool, the top hosted system reaches exec@10 = 1.00 but only exec@1 = 0.331; rank-1 misses are paired buggy variants 91.5-99.4% of the time across the four leading systems, and the canonical scores below at least one of its four paired distractors in 67-78% of queries on the leading systems. The full dataset, execution oracle, embedding matrices, environment snapshot, and pairwise statistical tests are released at the URL in Appendix D.

📄 PDF Abstract BibTeX arXiv:2609.01865

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generation

Similar Papers 제목 키워드 기반

On the Limitations of Embedding Based Methods for Measuring Functional Correctness for Code Generation

2024-04-26 · Atharva Naik

The task of code generation from natural language (NL2Code) has become extremely popular, especially with the advent of Large Language Models (LLMs). However, efforts to quantify and track this progress have suffered due…

Code GenerationHumanEval

FuncEvalGMN: Evaluating Functional Correctness of SQL via Graph Matching Network

2024-07-09 · Yi Zhan, Yang Sun, Han Weng, Longjie Cui 외

In this paper, we propose a novel graph-based methodology to evaluate the functional correctness of SQL generation. Conventional metrics for assessing SQL code generation, such as matching-based and execution-based metho…

Code GenerationGraph Matching

Code-MUE: Measuring Code LLMs' Uncertainty through Execution-based Semantic Interaction Graphs

2026-07-14 · Xiaoning Ren, Yinxing Xue, Lei Ma, Yuheng Huang arxiv

As Code Large Language Models (LLMs) become central to modern software engineering, their inherent stochasticity poses significant real-world risks, where even minor errors can lead to severe functional, security, or saf…

Towards Dependability Metrics for Neural Networks

2018-06-06 · Chih-Hong Cheng, Georg Nührenberg, Chung-Hao Huang, Harald Ruess 외

Artificial neural networks (NN) are instrumental in realizing highly-automated driving functionality. An overarching challenge is to identify best safety engineering practices for NN and other learning-enabled components…

SolBench: A Dataset and Benchmark for Evaluating Functional Correctness in Solidity Code Completion and Repair

2025-03-03 · Zaoyu Chen, Haoran Qin, Nuo Chen, Xiangyu Zhao 외

Smart contracts are crucial programs on blockchains, and their immutability post-deployment makes functional correctness vital. Despite progress in code completion models, benchmarks for Solidity, the primary smart contr…

Code CompletionCode RepairRetrieval