Metraipolis › archive › dc_590a5daf78e3

Specification Before Generation: A Pre-Registered, Five-Model Paired Evaluation of a Specification Frame for LLM-Generated Code in Money, Time, Idempotency, and Access… — arXiv:2609.23270

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.23270
License (as archived)
CC0-1.0
Archived
2026-10-09T07:01:17.578Z
SHA-256 of the archived text
1d2b7a17b133d43d8e42c76de334aa67b5396517fb32b171e78caf1a7262dda9
Stable URL of this page
https://metraipolis.com/documento/dc_590a5daf78e3

How to cite

Specification Before Generation: A Pre-Registered, Five-Model Paired Evaluation of a Specification Frame for LLM-Generated Code in Money, Time, Idempotency, and Access… — arXiv:2609.23270 — arXiv (en), https://arxiv.org/abs/2609.23270 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_590a5daf78e3 (Metraipolis archive dc_590a5daf78e3, sha256 1d2b7a17b133d43d8e42c76de334aa67b5396517fb32b171e78caf1a7262dda9)
BibTeX
@misc{dc590a5daf78e3,
  title = {Specification Before Generation: A Pre-Registered, Five-Model Paired Evaluation of a Specification Frame for LLM-Generated Code in Money, Time, Idempotency, and Access… — arXiv:2609.23270},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.23270},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_590a5daf78e3; sha256 1d2b7a17b133d43d8e42c76de334aa67b5396517fb32b171e78caf1a7262dda9},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.23270. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Code generated by large language models passes security checks at a rate that has barely moved in four years. In regulated backends, the defect classes that matter most are money arithmetic, time handling, retry safety, and access control. Teams answer with instruction files, yet the largest controlled study of instruction files we are aware of found no general benefit. This paper tests a narrower idea: generated code improves when the prompt carries a specification, a fixed preamble stating what must be true of the result. We pre-registered hypotheses, refuters, analysis code, and a one-shot generation rule, then ran 50 realistic backend tasks from finance, healthcare, and insurance practice through five frontier models from five vendor lineages, each task twice: bare, and preceded by a 267-word filled specification frame. Nine deterministic AST-based checkers scored the outputs. The Bandit security scanner, which knows nothing of the frame, scored them independently. The frame reduced defects in all five models (mean reduction 0.16 to 0.70 findings per task, every Holm-adjusted sign test significant, every bootstrap confidence interval excluding zero). Where the arms differed, the frame arm won 95 of 100 times. It never made any model worse in any domain. Bandit found 53 medium-or-high issues in the bare arm and 11 in the frame arm, in the same direction for every model. The effect was largest where a model's unprompted defaults were weakest: the frame supplies the discipline a model lacks. All 500 outputs, prompts, checkers, scoring code, and the pre-registration are published with a DOI, so any team can re-derive the result without trusting the author.

Tema degli esploratori: fiducia digitale e crittografia (retro-catalogo arXiv: annunci del 2026-09-22 in cs.CR).
Categorie arXiv: Software Engineering (cs.SE) ; Cryptography and Security (cs.CR).
Pagina del lavoro: https://arxiv.org/abs/2609.23270 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-09T06:56:01.028Z dalla pagina https://arxiv.org/catchup/cs.CR/2026-09-22?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).