Prompt Variability Effects On LLM Code Generation

Andrei Paleyes, Radzim Sendyka, Diana Robinson, Christian Cabrera, Neil D. Lawrence
6/11/2025
cs.SEcs.LG

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

Code generation is one of the most active areas of application of Large Language Models (LLMs). While LLMs lower barriers to writing code and accelerate development process, the overall quality of generated programs depends on the quality of given prompts. Specifically, functionality and quality of generated code can be sensitive to user's background and familiarity with software development. It is therefore important to quantify LLM's sensitivity to variations in the input. To this end we propose a synthetic evaluation pipeline for code generation with LLMs, as well as a systematic persona-based evaluation approach to expose qualitative differences of LLM responses dependent on prospective user background. Both proposed methods are completely independent from specific programming tasks and LLMs, and thus are widely applicable. We provide experimental evidence illustrating utility of our methods and share our code for the benefit of the community.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{paleyes2025prompt,
  title  = {Prompt Variability Effects On LLM Code Generation},
  author = {Andrei Paleyes and Radzim Sendyka and Diana Robinson and Christian Cabrera and Neil D. Lawrence},
  year   = {2025},
  eprint = {2506.10204},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.10204v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.10204.svg)](https://codeofpaper.com/paper/2506.10204)

Discussion