[Paper Review] StackEval: Benchmarking LLMs in Coding Assistance
This paper introduces StackEval and StackUnseen, two comprehensive benchmarks to evaluate large language models (LLMs) in coding assistance tasks across 25 programming languages. It evaluates LLMs on code generation, debugging, optimization, and conceptual understanding, while also studying LLMs as judges—achieving 84.4% accuracy in assessing solution acceptability—revealing strengths in historical tasks but significant performance drops on emerging, unseen coding challenges.
We present two comprehensive benchmarks to evaluate the performance of language models in coding assistance tasks, covering code writing, debugging, code review, and conceptual understanding. Our main contribution includes two curated datasets: StackEval, a large-scale benchmark derived from Stack Overflow questions, and StackUnseen, a dynamic benchmark featuring the most recent Stack Overflow content. These benchmarks offer novel insights into the capabilities and limitations of LLMs, particularly in handling new and emerging content. Additionally, we assess LLMs' proficiency as judges for coding tasks using a curated, human-annotated dataset, exploring their evaluation capabilities and potential biases, including whether they favor their own generated solutions. Our findings underscore the potential of these benchmarks to advance LLM development and application in coding assistance. To ensure reproducibility, we publicly share our datasets and evaluation code at https://github.com/ProsusAI/stack-eval .
Motivation & Objective
- To address the lack of comprehensive, multi-language, and multi-task benchmarks for evaluating LLMs in real-world coding assistance tasks.
- To create a dynamic benchmark, StackUnseen, using the latest Stack Overflow content to assess LLM generalization on emerging technologies and recent programming practices.
- To investigate the reliability and potential biases of LLMs when used as judges for coding task evaluations.
- To provide a publicly available, reproducible evaluation suite to support ongoing research and development in AI-powered software engineering.
- To uncover limitations in LLM performance on complex, niche, or novel coding problems, especially outside of training data distribution.
Proposed method
- StackEval is constructed from 25 programming languages using human-verified Stack Overflow questions, covering four coding assistance tasks: debugging, implementation, optimization, and conceptual understanding.
- StackUnseen is a continuously updated benchmark derived from the most recent Stack Overflow data dump, designed to evaluate LLMs on unseen, emerging coding challenges.
- A curated, human-annotated dataset of LLM-generated responses and expert evaluations is used to train and assess LLMs as judges for coding task quality.
- Chain-of-thought prompting and inclusion of reference answers are evaluated as techniques to improve LLM judge performance and reduce bias.
- Statistical analyses are applied to detect potential self-preference bias, where LLM judges favor their own generated solutions over others.
- An interactive leaderboard is released alongside the datasets to enable real-time performance tracking across different LLMs and task types.
Experimental results
Research questions
- RQ1How do LLMs perform across diverse coding assistance tasks—debugging, implementation, optimization, and conceptual understanding—on a multi-language benchmark?
- RQ2To what extent do LLMs generalize to new, emerging programming challenges not present in their training data?
- RQ3Can LLMs serve as reliable judges for coding task evaluations, and do they exhibit self-preference bias toward their own generated solutions?
- RQ4How do prompting strategies like chain-of-thought and reference answer inclusion affect the accuracy of LLM judges?
- RQ5What are the key limitations of current LLMs in handling complex, niche, or evolving coding problems compared to established tasks?
Key findings
- LLMs achieve high performance on historical and common coding tasks in StackEval, demonstrating strong capabilities in standard code generation and debugging.
- Performance drops significantly on complex, niche, or less common coding problems, indicating limitations in reasoning and generalization beyond common patterns.
- StackUnseen reveals a substantial performance gap for LLMs when evaluating questions involving emerging technologies and recent programming practices, highlighting generalization challenges.
- LLMs-as-judges achieve 84.4% success rate in determining solution acceptability, demonstrating strong but not perfect reliability in evaluation tasks.
- LLM judges show detectable self-preference bias, favoring their own generated solutions, which poses a risk for biased evaluation in automated code review systems.
- The study confirms that current LLMs are not yet fully reliable for critical software development tasks without human oversight, especially in safety-critical or high-quality code contexts.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.