DevIntent: How Much Does LLM-Generated Code Violate Developer Intent?

Susana Haing, Natan Vidra, Spurthi Setty
8/7/2026
cs.SEcs.CL

No confident code implementation found for this paper.

Abstract

Code generated by LLMs can violate a developer's implicit intentions when given an ambiguous prompt, yet standard benchmarks measure only whether code passes its stated test. We introduce the Intent Violation Rate (IVR) and a 49-problem pilot benchmark derived from HumanEval+.

Show full abstract

Each problem strips implicit constraints from a clarified prompt and encodes them as hidden constraint tests. IVR measures the fraction of LLM-generated solutions that pass the stated (visible) tests yet fail hidden constraint tests that capture unstated intent. Evaluating Claude Sonnet 4.6 and OpenAI GPT 4.1, we find both pass over 92\% of stated tests yet violate intent in over half of problems (54.5\% and 63.5\%), following a systematic, bimodal pattern consistent across both models. Out findings indicate that pass rates overstate how well generated code reflects developer intent.

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. Any repos shown below are weak matches — 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{haing2026devintent,
  title  = {DevIntent: How Much Does LLM-Generated Code Violate Developer Intent?},
  author = {Susana Haing and Natan Vidra and Spurthi Setty},
  year   = {2026},
  eprint = {2608.07614},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.07614v1}
}

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/2608.07614.svg)](https://codeofpaper.com/paper/2608.07614)

Discussion