SafeLLM4SE: Statistical Evaluation and Reporting for LLM-based Software Engineering Systems
Francisco Ortin
Key points
From the paper's conclusion- This article presents SafeLLM4SE, a practical methodology and reporting standard for statistically principled evaluation of LLM-based software engineering systems.
Abstract
Large language models (LLMs) are increasingly used for software engineering tasks, yet their stochastic behavior challenges the validity, reproducibility, and comparability of their evaluations. Conventional practices such as reporting a single output, an average score, best-of-N, or pass@k performance can obscure variability and estimation uncertainty, potentially leading to misleading conclusions about system reliability. This article presents SafeLLM4SE, a practical methodology and reporting standard for statistically principled evaluation of LLM-based software engineering systems. Rather than treating generated outputs as deterministic artifacts, SafeLLM4SE treats them as realizations of a stochastic process and distinguishes quality, stability, and estimation uncertainty. It combines adaptive sampling with confidence intervals, distribution-aware statistical comparisons, effect sizes, and a minimum reporting standard covering model configuration, reproducibility, evaluation procedures, and resource usage. SafeLLM4SE is also provided as an open-source software package available on PyPI, enabling researchers and practitioners to reproduce and extend the methodology. We illustrate its application by comparing two LLMs on HumanEval, a benchmark of programming problems assessed through functional tests.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Guidelines for empirical studies in software engineering involving large language modelsEmpirical Software Engineering · 2026
- Code-MUE: Measuring Code LLMs’ Uncertainty through Execution-Based Semantic Interaction GraphsProceedings of the ACM on software engineering. · 2026
- From Generation to Verification: A Reproducible Empirical Study of Verification-Guided LLM Workflows for Software EngineeringComputers · 2026
- The Hidden Methodological Layer: Uncovering Threats to Validity in LLM-Assisted Empirical Software EngineeringarXiv · 2026
- Characterizing LLM performance via a Bayesian lensFrontiers in Applied Mathematics and Statistics · 2026
- How Many Sources, Not Just How Many Problems: Planning the Precision of LLM Evaluations from Earlier ResultsarXiv · 2026