atlas

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

Beyond Accuracy: Evaluating Self-Consistency of Code Large Language Models with IdentityChain

ICLR 2024 · Large language models › Agents, code and math · approach: Mathematical and structural reasoning benchmarks · 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.

Defines self-consistency for Code LLMs (NL-to-PL and PL-to-NL round trips) and proposes IdentityChain, a greedy-decoding framework with a Test Output Match score to evaluate self-consistency alongside accuracy across eleven code LLMs.

Problem

Conventional evaluations of Code LLMs measure NL-to-PL and PL-to-NL accuracy in isolation and ignore whether a model stays consistent when translating its own outputs back and forth between natural language and code.

Approach

Formalizes self-consistency as preserving semantics along an identity chain of model-generated NL-to-PL and PL-to-NL translations, approximates semantic equality with a test-output-match (TOM) metric, and uses greedy decoding with early stopping to make evaluation efficient.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Evaluate self-consistency over five identity-chain steps rather than one stepCode LLMs evaluated with IdentityChain · HumanEvalPlus and MBPP Sanitizedself-consistency (SCon): up to 43.8%Hurt
Evaluate strong self-consistency over five identity-chain steps rather than initial accuracyCode LLMs evaluated with IdentityChain · HumanEvalPlus and MBPP Sanitizedstrong self-consistency (SSCon): up to 78.0%Hurt
Use TOM instead of Exact Match for estimating semantic equivalenceIdentityChain self-consistency evaluation · GPT-3.5 one-step chainsPearson correlation with human judgment: .285 -> .461Helped
Use TOM instead of CodeBLEU for estimating semantic equivalenceIdentityChain self-consistency evaluation · GPT-3.5 one-step chainsPearson correlation with human judgment: .179 -> .461Helped
Use TOM instead of Pass/Fail Match for estimating semantic equivalenceIdentityChain self-consistency evaluation · GPT-3.5 one-step chainsPearson correlation with human judgment: .294 -> .461Helped
Use TOM instead of BLEU for PL-to-NL evaluationIdentityChain · GPT-3.5 one-step chains; 117 problemsPearson correlation with human judgment: .285 -> .500Helped
Use TOM instead of ROUGE-L for PL-to-NL evaluationIdentityChain · GPT-3.5 one-step chains; 117 problemsPearson correlation with human judgment: .254 -> .500Helped
Use TOM instead of chrF for PL-to-NL evaluationIdentityChain · GPT-3.5 one-step chains; 117 problemsPearson correlation with human judgment: .271 -> .500Helped
Use TOM instead of BERTScore for PL-to-NL evaluationIdentityChain · GPT-3.5 one-step chains; 117 problemsPearson correlation with human judgment: .381 -> .500Helped
Increase model size from StarCoderBase-7B to StarCoderBase-15BStarCoderBase · HumanEvalPlus and MBPP Sanitizedstrong self-consistency (SSCon@5): 8.6 -> 8.0; 23.0 -> 21.0Hurt
Increase model size from StarCoderBase-7B to StarCoderBase-15BStarCoderBase · HumanEvalPlus and MBPP SanitizedPass@1: 24.5 -> 27.0; 43.6 -> 44.0Helped
Replace greedy decoding with higher-temperature decodingCode LLMs evaluated with IdentityChain · HumanEvalPlus and MBPP SanitizedSCon@5Hurt

Surprising findings

Limitations

Experimental setup

Datasets: HumanEvalPlus-Mini-v0.1.6 MBPP sanitized test split

Benchmarks: HumanEvalPlus MBPP Sanitized

Metrics: Pass@1 self-consistency (SC) score strong self-consistency (SSC) score TOM score Pearson correlation Spearman correlation Kendall-Tau correlation

Baselines: Exact Match CodeBLEU Pass/Fail Match BLEU ROUGE-L chrF BERTScore

Builds on: HumanEval MBPP CodeBLEU Pass@K

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