paper-with-me

Papers

ThrowBench: Benchmarking LLMs by Predicting Runtime Exceptions

2025-03-06 · Julian Aron Prenner, Romain Robbes

Modern Large Language Models (LLMs) have shown astounding capabilities of code understanding and synthesis. In order to assess such capabilities, several benchmarks have been devised (e.g., HumanEval). However, most benchmarks focus on code synthesis from natural language instructions. Hence, such benchmarks do not test for other forms of code understanding. Moreover, there have been concerns about contamination and leakage. That is, benchmark problems (or closely related problems) may appear in training set, strongly biasing benchmark results. In this work we investigate whether large language models can correctly predict runtime program behavior. To this end, we introduce ThrowBench, a benchmark consisting of over 2,400 short user-written programs written in four different programming languages. The majority of these programs throw an exception during runtime (due to a bug). LLMs are asked to predict whether a presented program throws an exception and, if so, which one. Evaluating our benchmark on six state-of-the-art code LLMs we see modest performance ranging from 19 to 38% (F1 score). Benchmarking a wider set of code capabilities could improve the assessment of code LLMs and help identify weak points in current models. Moreover, as ground-truth answers have been determined through program execution, leakage is not a concern. We release ThrowBench as well as all of our results together with this work.

📄 PDF Abstract BibTeX arXiv:2503.04241

Code (1)

giganticode/throwbench 공식 구현

Tasks

BenchmarkingHumanEval

Methods 이 논문이 사용한 방법론

SET Dynamic Sparse Training method where weight mask is updated randomly periodically
Focus 설명 없음

Similar Papers 제목 키워드 기반

Cerberus: Multi-Agent Reasoning and Coverage-Guided Exploration for Static Detection of Runtime Errors

2025-12-24 · Hridya Dhulipala, Xiaokai Rong, Tien N. Nguyen arxiv

In several software development scenarios, it is desirable to detect runtime errors and exceptions in code snippets without actual execution. A typical example is to detect runtime exceptions in online code snippets befo…

LAraBench: Benchmarking Arabic AI with Large Language Models

2023-05-24 · Ahmed Abdelali, Hamdy Mubarak, Shammur Absar Chowdhury, Maram Hasanain 외

Recent advancements in Large Language Models (LLMs) have significantly influenced the landscape of language and speech research. Despite this progress, these models lack specific benchmarking against state-of-the-art (SO…

BenchmarkingFew-Shot Learningtext-to-speechText to Speech+1

Themisto: Jupyter-Based Runtime Benchmark

2025-04-16 · Konstantin Grotov, Sergey Titov

In this work, we present a benchmark that consists of Jupyter notebooks development trajectories and allows measuring how large language models (LLMs) can leverage runtime information for predicting code output and code …

Code Generation

Improving HPC Code Generation Capability of LLMs via Online Reinforcement Learning with Real-Machine Benchmark Rewards

2026-02-12 · Ryo Mikasa, Shun-ichiro Hayashi, Daichi Mukunoki, Tetsuya Hoshino 외 arxiv

Large language models (LLMs) have demonstrated strong code generation capabilities, yet the runtime performance of generated code is not guaranteed, and there have been few attempts to train LLMs using runtime performanc…

Reinforcement LearningCode Generation

Understanding Benchmark Language Under Weakened Formal Semantics

2025-09-22 · Haoyang Chen, Kumiko Tanaka-Ishii arxiv

State-of-the-art NLP benchmarks require interpretation of natural language that specifies conditions, procedures, and exceptions, often relying on implicit assumptions and external knowledge. Constructing complete semant…

Mathematical ReasoningCausal Inference