atlas

Research map / Large language models / Agents, code and math

Unsupervised Evaluation of Code LLMs with Round-Trip Correctness

ICML 2024 · Large language models › Agents, code and math · approach: Execution-based code verification · 0 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.

Proposes round-trip correctness (RTC), an unsupervised evaluation where an LLM describes code and then regenerates it from the description, scored by unit tests or exact match, and shows it correlates with pass@1 on HumanEval and ARCADE while scaling to 58 real-world projects and code editing.

Problem

Code LLM evaluation relies on a few small, manually curated benchmarks (HumanEval, MBPP, ARCADE, DS-1000) that cover narrow software domains and are costly to expand.

Approach

Evaluate a model by chaining a forward task (code-to-natural-language description) with its inverse backward task (description-to-code) and checking whether the regenerated code is semantically equivalent to the original, using existing unit tests or exact match as the similarity function, with a forward-lift measure against an uninformative description.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use RTC_pass instead of standard pass@1 to evaluate synthesisCode LLM evaluation · HumanEval and ARCADEcorrelation with pass@1: r=0.96 for HumanEval and r=0.96 for ARCADEHelped
Evaluate models across open-source project domains with RTC_passGemini Nano 2 and Gemini Pro · 58 open-source Python projectsRTC_pass: r=0.75, Spearman's ρ=0.76Mixed
Use Gemini Pro instead of Gemini Nano 2EditingRTC · CodeReviewer test set sample (1K)RTC_exact_match: 5.2 -> 12.9Helped
Use Gemini Pro instead of Gemini Nano 2EditingRTC · CodeReviewer test set sample (1K)forward lift (ExactMatch): 4.8 -> 12.4Helped

Surprising findings

Limitations

Experimental setup

Datasets: HumanEval ARCADE CodeReviewer 58 open-source Python projects (5,961 samples)

Benchmarks: HumanEval ARCADE CodeReviewer 58 open-source Python projects

Metrics: RTC pass pass@1 forward lift RTC exact match RTC BLEU RTC ROUGE Pearson correlation Spearman correlation

Baselines: pass@1 exact match BLEU ROUGE BERTScore HumanEvalExplain

Builds on: property-based testing IdentityChain back translation HumanEvalPack

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