potentialpaper

RepoEquiv: Benchmarking Large Language Models' Understanding for Repository-Level Semantic Equivalence

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 20:22 UTC · f5dd1e63864f ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "dLJZKrfZLX"
- }
- ],
- "title": "RepoEquiv: Benchmarking Large Language Models' Understanding for Repository-Level Semantic Equivalence",
- "authors": [],
- "abstract": "Large language models (LLMs) for code and agentic coding systems are rapidly improving at complex repository-level programming tasks. However, training and evaluating these systems largely rely on execution-based signals from unit tests, which are costly to obtain and difficult to scale across web-scale repositories and heterogeneous execution environments. We advocate a complementary approach: learning an LLM-based verifier for semantic equivalence that determines whether two pieces of code produce identical outputs for all valid inputs, thereby reducing the need for explicit execution. We introduce RepoEquiv, a benchmark and dataset suite for repository-level semantic equivalence constructed from repository-level code infilling datasets spanning both general-purpose and scientific programming domains. Unlike prior benchmarks focused on standalone functions with synthetic perturbations, RepoEquiv features repository-level context and dependencies, as well as realistic candidate code snippets generated by diverse coding LLMs. Evaluating 5 representative LLMs on RepoEquiv shows that semantic equivalence verification in repository contexts remains challenging for off-the-shelf models. Fine-tuning on RepoEquiv substantially improves verifier performance on general coding repositories, demonstrating the feasibility of learned semantic verifiers for scalable, execution-free evaluation, and yields uniform gains across all four scientific coding benchmarks, indicating promising out-of-domain generalization for learned verifiers. We further conduct calibration analysis and find that fine-tuning reduces calibration error, and we measure the resulting cost-accuracy trade-off directly: routing low-confidence cases to execution reaches 95% accuracy on the scientific benchmarks while executing 58% of cases, against 80% under confidence-agnostic routing. RepoEquiv establishes a foundation for developing learned semantic verifiers that can significantly reduce the cost of large-scale evaluation and learning for repository-level code generation.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "a88b844e-6968-413d-a79a-2364ffd9ddc9"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "RepoEquiv: Benchmarking Large Language Models' Understanding for Repository-Level Semantic Equivalence",
+ "authors": [],
+ "abstract": "Large language models (LLMs) for code and agentic coding systems are rapidly improving at complex repository-level programming tasks. However, training and evaluating these systems largely rely on execution-based signals from unit tests, which are costly to obtain and difficult to scale across web-scale repositories and heterogeneous execution environments. We advocate a complementary approach: learning an LLM-based verifier for semantic equivalence that determines whether two pieces of code produce identical outputs for all valid inputs, thereby reducing the need for explicit execution. We introduce RepoEquiv, a benchmark and dataset suite for repository-level semantic equivalence constructed from repository-level code infilling datasets spanning both general-purpose and scientific programming domains. Unlike prior benchmarks focused on standalone functions with synthetic perturbations, RepoEquiv features repository-level context and dependencies, as well as realistic candidate code snippets generated by diverse coding LLMs. Evaluating 5 representative LLMs on RepoEquiv shows that semantic equivalence verification in repository contexts remains challenging for off-the-shelf models. Fine-tuning on RepoEquiv substantially improves verifier performance on general coding repositories, demonstrating the feasibility of learned semantic verifiers for scalable, execution-free evaluation, and yields uniform gains across all four scientific coding benchmarks, indicating promising out-of-domain generalization for learned verifiers. We further conduct calibration analysis and find that fine-tuning reduces calibration error, and we measure the resulting cost-accuracy trade-off directly: routing low-confidence cases to execution reaches 95% accuracy on the scientific benchmarks while executing 58% of cases, against 80% under confidence-agnostic routing. RepoEquiv establishes a foundation for developing learned semantic verifiers that can significantly reduce the cost of large-scale evaluation and learning for repository-level code generation.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}