atlas

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

StackEval: Benchmarking LLMs in Coding Assistance

NeurIPS 2024 · Large language models › Agents, code and math · approach: Code generation benchmarks · 3 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.

Introduces StackEval and StackUnseen, Stack Overflow-derived coding-assistance benchmarks (plus a human-labelled LLM-as-judge dataset) and evaluates many LLMs as solvers and judges, including self-preference tests.

Problem

Existing coding benchmarks (HumanEval, SWE-bench, MultiPL-E) focus on function completion or narrow tasks, are prone to training-data leakage, and do not cover broad coding-assistance tasks like debugging, implementation, optimization and conceptual questions; reliable open-ended evaluation is also

Approach

Curates real Stack Exchange questions with accepted answers into a multi-language, multi-task benchmark, adds a time-separated "unseen" split of recent questions to limit leakage, and scores answers with an LLM judge using a reference answer and a 0-3 acceptability rubric, validated against human labels.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add a reference answer to the judging prompt (ablation)LLM judges · LLM-as-a-Judge benchmarkaccuracy: 78.3% $\pm$ 1.9% -> 83.6% $\pm$ 0.4%; 81.3% $\pm$ 0.3% -> 82.1% $\pm$ 1.3%; 80.7% $\pm$ 0.2% -> 81.9% $\pm$ 1.6%; 78.7% Helped
Add chain-of-thought reasoning without a reference answer (ablation)LLM judges · LLM-as-a-Judge benchmarkaccuracy: 78.3% $\pm$ 1.9% -> 73.9% $\pm$ 1.2%; 80.7% $\pm$ 0.2% -> 77.6% $\pm$ 0.2%; 78.7% $\pm$ 0.4% -> 76.1% $\pm$ 0.4%; 71.3% Hurt
Add chain-of-thought reasoning and a reference answer (ablation)LLM judges · LLM-as-a-Judge benchmarkaccuracy: 78.3% $\pm$ 1.9% -> 84.4% $\pm$ 1.8%; 81.3% $\pm$ 0.3% -> 82.8% $\pm$ 0.2%; 78.7% $\pm$ 0.4% -> 81.2% $\pm$ 0.9%; 71.3% Helped
Add chain-of-thought reasoning and a reference answer (ablation)LLM judges · LLM-as-a-Judge benchmarkaccuracy: 80.7% $\pm$ 0.2% -> 81.5% $\pm$ 0.3%; 79.9% $\pm$ 1.2% -> 80.5% $\pm$ 0.2%Mixed
Evaluate recent, unseen Stack Overflow questions instead of historical questionsLLMs on coding assistance tasks · StackEval vs. StackUnseenacceptance rate: 95.5% -> 83.0%; 89.5% -> 76.3%; 90.7% -> 71.6%; 86.9% -> 66.5%; 81.9% -> 52.6%; 80.2% -> 50.5%; 76.5% -> 47.9%Hurt

Surprising findings

Limitations

Experimental setup

Datasets: Stack Exchange data dumps (Stack Overflow, Ask Ubuntu, Super User, Unix & Linux, Software Engineering, Server Fault)

Benchmarks: StackEval StackUnseen LLM-as-a-Judge benchmark

Metrics: acceptance rate judge accuracy Wilcoxon signed-rank p-value (self-preference)

Baselines: GPT-4 Turbo Claude-3.5 Sonnet Gemini-1.5 Pro Mistral Large 2 WizardLM-2 8x22B Llama3.1-70B O1 Preview

Builds on: LLM-as-a-Judge MT-Bench HumanEval MultiPL-E

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