The Complexity Kink: A Prompt-Side Structural Complexity Index for Code-Generation Reliability
Summary
The paper introduces a six-dimension prompt-side structural complexity index to measure code-generation reliability in LLMs independently of functional correctness, evaluating 21 models on 5,000 Python prompts to identify nonmonotonic reliability regimes.
View Cached Full Text
Cached at: 09/18/26, 09:01 AM
# The Complexity Kink: A Prompt-Side Structural Complexity Index for Code-Generation Reliability
Source: [https://arxiv.org/html/2609.19616](https://arxiv.org/html/2609.19616)
Tian ZhaoAffiliation:University of Wisconsin–MilwaukeeEmail:[tzhao@uwm\.edu](mailto:)
###### Abstract
Complexity measured from generated code is failure\-dependent: a difficult prompt can produce a short failing program and then be assigned low output complexity\. We introduce a six\-dimension prompt\-side structural\-complexity index that is scored before generation and kept separate from functional correctness\. We first select 5,000 Python prompts across six bands of a preliminary single\-rater rubric score\. Four out\-of\-panel LLM raters then rescore the locked prompts, providing 19,997 score rows; composite inter\-rater reliability is ICC=0\.872=0\.872on the 4,998 prompts with all four ratings\. We evaluate 21 models on every prompt, yielding 105,000 model\-prompt generations\. In the unadjusted mean\-pooled analysis, pass rate has a nonmonotone breakpoint at compositeγ^=13\.75\\hat\{\\gamma\}=13\.75, with 79\.9% at or below and 87\.6% above\. This pooled pattern is not a universal failure cutoff\. Task\-type fixed effects shift the breakpoint to 10\.75 and reduce the regime gap from 7\.6 to 2\.1 percentage points\. A post hoc construction\-frame control shifts it to 8\.50 with a raw regime gap of−3\.5\-3\.5points, and neither frame alone reproduces the pooled\+7\.6\+7\.6\-point change\. Model\-specific fits also include 16 upward and five downward changes\. A 365\-prompt audit\-clean extension closely matches the original matched\-five\-model point estimates at the well\-supported bins 15 and 16, but adds only 14 prompts above bin 16\. Among zero\-pass generations with computable Lizard complexity, 28\.5% pair a prompt composite above 8 with generated\-output complexity at most 10, illustrating the measurement problem\. Human agreement is moderate and rater\-dependent on a disagreement\-enriched calibration set, while paraphrase and cross\-language rescoring preserve score ordering\. Overidentification tests strongly reject the joint restrictions on the six rubric dimensions, so we treat the composite as an index and make no causal interpretation of the 2SLS estimates\. The contribution is a pre\-generation measurement framework and a bounded observational analysis of reliability regimes\.
## 1Introduction
Large language models \(LLMs\) are increasingly evaluated and deployed as code generators\. The standard evaluation question is functional: does the generated program pass the tests? Benchmarks such as HumanEval\[[1](https://arxiv.org/html/2609.19616#bib.bib1)\], MBPP\[[2](https://arxiv.org/html/2609.19616#bib.bib2)\], and SWE\-Bench\[[8](https://arxiv.org/html/2609.19616#bib.bib8)\]have made this question measurable at scale\. They do not directly answer how reliability varies with the structure required by a programming task\. Two models with similar average pass rates may behave very differently on prompts that require interacting branches, data structures, edge cases, or algorithmic steps\.
The difficulty is that task complexity is often measured after generation, from the program the model produced\. When a model succeeds, the generated program may be a useful proxy for one implementation of the requested solution\. When it fails, the output is often a short stub, partial solution, syntax error, or otherwise broken program with low measured cyclomatic complexity\. A structurally demanding prompt can therefore enter a low\-complexity bin precisely because the model failed\. This failure\-dependent measurement can flatten, shift, or hide the relationship between task structure and pass rate\. We call this the*Reverse Threshold Problem*: the apparent unreliability of simple generated code may partly reflect more complex code that was never produced\.
A natural baseline is to approximate prompt complexity with keyword features, such as counts of branch, loop, recursion, or data\-structure terms in the instruction\. Such features are cheap, transparent, and fixed before generation, but they reduce interacting program structure to surface cues\. We instead use a rubric that asks separate questions about branching, iteration, state, data structures, edge cases, and composition\. The result is still a proxy, not ground truth, but it is measured at the right time: before the evaluated model produces an answer\.
We present the Complexity Kink benchmark, a prompt\-side measurement study that keeps intended solution structure separate from generated\-output complexity and functional correctness\. From OpenCodeInstruct\[[3](https://arxiv.org/html/2609.19616#bib.bib3)\], we construct 5,000 Python prompts stratified across six bands of a preliminary single\-rater rubric score\. Four out\-of\-panel LLM judges rescore the locked prompts, and 21 evaluated models each generate one solution per prompt\. Our primary analysis estimates the shape of pass rate as a function of the unbinned ensemble index\. We also compare output\-side cyclomatic complexity and report 2SLS diagnostics, but the candidate instruments fail their joint exclusion restrictions and receive no causal interpretation\.
The empirical results do not support a universal cutoff\. The mean\-pooled curve declines through the middle of the index and rebounds in the denser high region, but task type and construction frame substantially change the gap and its estimated location\. In particular, the two prompt\-source frames differ sharply in both score and pass rate, and neither reproduces the pooled\+7\.6\+7\.6\-point change on its own\. Five model\-specific fits move downward across their breakpoints while 16 move upward\. A matched five\-model extension closely matches the original point estimates at bins 15 and 16, where it materially increases support, but the region above 16 remains too thin for a strong endpoint claim\.
Contributions\.
- •We formalize failure\-dependent output complexity and illustrate it in this sample: 28\.5% of zero\-pass complete cases combine a structurally nontrivial prompt with generated\-output cyclomatic complexity at most 10\.
- •We introduce an ensemble\-scored prompt\-side index and examine its reliability against human ratings, plain\-language paraphrases, and Java and C\+\+ re\-expressions\.
- •We construct a 5,000\-prompt Python benchmark stratified by a preliminary rubric score and evaluate 21 models with unit tests, including model\-specific, pooling, repeated\-sampling, task\-type, and audit\-clean tail checks\.
- •We report the limits of the measurement design as results\. Task and construction\-frame composition explain much of the pooled breakpoint, the extreme tail remains sparse, and the candidate IV restrictions fail\.
## 2Related Work
LLM code evaluation\.HumanEval\[[1](https://arxiv.org/html/2609.19616#bib.bib1)\], MBPP\[[2](https://arxiv.org/html/2609.19616#bib.bib2)\], and SWE\-Bench\[[8](https://arxiv.org/html/2609.19616#bib.bib8)\]established functional testing as the central evaluation protocol for code\-generating LLMs\. These benchmarks ask whether generated code passes hidden or public tests, and that functional outcome remains the target variable in our work\. Our contribution is orthogonal: we study how to measure the structural complexity of the task whose solution is being attempted\. OpenCodeInstruct\[[3](https://arxiv.org/html/2609.19616#bib.bib3)\]provides a large source of instruction\-code pairs from which such a benchmark can be drawn, but generated code can inherit solver failures and reference code can reflect one implementation rather than latent task structure\.
Complexity measurement and benchmark bias\.Cyclomatic complexity and related code metrics are attractive because they are computable from source code, beginning with McCabe’s graph\-theoretic formulation and continuing through static\-analysis tools such as Lizard\[[9](https://arxiv.org/html/2609.19616#bib.bib9),[10](https://arxiv.org/html/2609.19616#bib.bib10)\]\. In code\-generation evaluation, however, the available source code is often the model output itself\. This makes the metric post\-treatment: measured complexity is affected by model success or failure\[[11](https://arxiv.org/html/2609.19616#bib.bib11)\]\. The present work addresses this by scoring complexity from the prompt before any evaluated model generates code\.
Instrumental variables and threshold estimation\.Instrumental variables \(IVs\) are a standard response to endogenous regressors in econometrics\[[4](https://arxiv.org/html/2609.19616#bib.bib4)\], and weak\-instrument and overidentification tests are essential diagnostics\[[18](https://arxiv.org/html/2609.19616#bib.bib18),[7](https://arxiv.org/html/2609.19616#bib.bib7),[19](https://arxiv.org/html/2609.19616#bib.bib19)\]\. Empirical software engineering has increasingly used econometric designs to reason about endogeneity\[[12](https://arxiv.org/html/2609.19616#bib.bib12),[13](https://arxiv.org/html/2609.19616#bib.bib13)\]\. We examine whether separate rubric dimensions can instrument generated\-output complexity, but the empirical restrictions reject and we retain those fits only as diagnostics\. The primary breakpoint analysis instead uses the rubric composite directly\. For that descriptive question, we adapt Hansen’s threshold\-regression and bootstrap sup\-Wald framework\[[6](https://arxiv.org/html/2609.19616#bib.bib6)\]\.
LLMs as judges and rubric scorers\.G\-Eval\[[14](https://arxiv.org/html/2609.19616#bib.bib14)\], AlpacaEval\[[15](https://arxiv.org/html/2609.19616#bib.bib15)\], and MT\-Bench\[[16](https://arxiv.org/html/2609.19616#bib.bib16)\]use LLMs to evaluate open\-ended model outputs, while rubric\-based automatic evaluation has a longer history in NLP\[[17](https://arxiv.org/html/2609.19616#bib.bib17)\]\. We use LLM judges differently\. The judges do not score generated answers, rank models, or determine pass/fail outcomes\. They score the input prompt before generation, using a published structural rubric, and are excluded from the evaluated model panel\. This turns LLM judgment into a measurement layer for a latent input property rather than an outcome evaluator, reducing the risk that the judge simply reproduces the same output\-side bias the benchmark is meant to diagnose\.
## 3Background: Failure\-Dependent Output Complexity
Letκi∗\\kappa\_\{i\}^\{\*\}denote the latent structure required by taskii, letyimy\_\{im\}denote the functional outcome for modelmm, and letκimobs\\kappa\_\{im\}^\{\\mathrm\{obs\}\}be the cyclomatic complexity measured on that model’s generated output\. Even a passing output is only one implementation of the task, soκimobs\\kappa\_\{im\}^\{\\mathrm\{obs\}\}need not equalκi∗\\kappa\_\{i\}^\{\*\}\. More importantly, the measurement itself depends on the outcome:
κimobs=g\(κi∗,yim,ηim\),\\kappa\_\{im\}^\{\\mathrm\{obs\}\}=g\(\\kappa\_\{i\}^\{\*\},y\_\{im\},\\eta\_\{im\}\),\(1\)where failed generations often collapse to short programs with low measured complexity\. Stratifying pass rate byκimobs\\kappa\_\{im\}^\{\\mathrm\{obs\}\}therefore conditions on a post\-generation quantity affected by success\.
We address the timing problem with a prompt\-side indexCiC\_\{i\}, computed before any evaluated model generates code\. Our primary target is descriptive: the conditional relationship𝔼\[yi∣Ci\]\\mathbb\{E\}\[y\_\{i\}\\mid C\_\{i\}\]in the constructed benchmark, whereyiy\_\{i\}is pass rate averaged over evaluated models\. The six rubric dimensions can also be considered as candidate instruments forκiobs\\kappa\_\{i\}^\{\\mathrm\{obs\}\}, but causal interpretation would require strong exclusion restrictions\. The diagnostics below reject those restrictions, so the IV analysis does not identify a causal effect\.
## 4Methodology
### 4\.1Data
We use 5,000 Python coding tasks drawn from OpenCodeInstruct\[[3](https://arxiv.org/html/2609.19616#bib.bib3)\]\. Construction combines 2,246 retained prompts from an earlier stage with 2,754 newly collected candidates after automated contract and test\-quality filtering\. The earlier draw scanned a 200,000\-record source\-ordered prefix, and later candidate collection deliberately supplemented the high reference\-complexity tail\. We retain this two\-level construction\-frame indicator for a post hoc sensitivity analysis\. A preliminaryo4\-minirater scored candidates with the same six\-dimension rubric used below\. We then selected 834 prompts in each of the preliminary\-score bands 0 to 3 and 4 to 6, and 833 in each of 7 to 9, 10 to 12, 13 to 15, and 16 to 24\. This score was used for sampling only\.
After the prompt set was locked, the four\-judge ensemble rescored every prompt\. All reported analyses use that ensemble mean, not the preliminary sampling score\. Re\-scoring changes the distribution: using the continuous bands\[0,3\]\[0,3\],\(3,6\]\(3,6\],\(6,9\]\(6,9\],\(9,12\]\(9,12\],\(12,15\]\(12,15\], and\(15,24\]\(15,24\], the analyzed\-index counts are 319, 943, 940, 898, 1,425, and 475\. The benchmark is therefore stratified by the preliminary score, but not balanced on the final index\. Neither distribution represents the natural OpenCodeInstruct frequency distribution\. Reference\-solution cyclomatic complexity helped shape the upstream candidate pool and is retained for alignment checks; it is never the analyzed prompt index or generated\-output complexity\.
The evaluated panel comprises 21 models spanning multiple providers: Claude Opus 4\.6, Opus 4\.7, and Sonnet 4\.6; GPT\-5\.4, GPT\-5\-mini, GPT\-4\.1, GPT\-OSS\-20B, and GPT\-OSS\-120B; Gemini 3\.1 Pro Preview and Gemini 3 Flash; Grok\-3; DeepSeek V3\.2; Kimi K2\.5; Qwen 3\.6 Plus and Qwen 3\.5\-9B; Mistral Large\-3, Mistral Small 2412, and Ministral\-3\-14B\-reasoning; Llama 3\.3\-70B; GLM 4\.7\-flash; and Trinity\-large\. None of the four rubric judges appears in this panel, reducing direct scorer\-model overlap without establishing instrument validity\. The reported panel contains 21 models\. A locally served, quantized AuroraGPT\-IT\-v4 run covered only the earlier prompt frame and therefore lacked outputs for the 2,754 newly added prompts\. It was excluded before the final panel analysis in a post hoc decision without a prespecified eligibility rule\. For transparency, its pass rate on the earlier frame was 20\.6%; performance was not a documented exclusion criterion\. Our claims are limited to the reported 21\-model panel\. Each of the 21 evaluated models generated one solution per prompt, yielding a total of21×5,000=105,00021\\times 5\{,\}000=105\{,\}000generations\. Pass rate is the fraction of Nvidia\-supplied unit tests passed\. In the combined analysis that follows, pass rate is averaged across the 21 models per prompt to produce a prompt level dataset withN=5,000N=5\{,\}000\. Per model analyses use the sameN=5,000N=5\{,\}000rows per model\. For each generation, we compute McCabe cyclomatic complexity with Lizard on the cleaned generated Python code and sum it across reported functions\[[10](https://arxiv.org/html/2609.19616#bib.bib10)\]\. This quantity is tagged as generated\-output complexity in the artifact\. It is not dataset metadata, a post\-generation rubric score, or reference\-solution complexity\. Lizard complexity is available for 103,948 of the 105,000 generations; analyses involving it use complete cases and report the denominator\.
### 4\.2Rubric Scoring
#### 4\.2\.1Scoring models and deployment
Prompts are scored by four out\-of\-panel LLM judges deployed through Azure AI Foundry:o4\-mini,gpt\-5\.5,llama\-4\-maverick, andcommand\-a\. All 5,000 prompts receive ensemble scores with the same rubric prompt\. Coverage is effectively complete: 4,998 prompts have four judge scores, one prompt has three, and one prompt has two, for 19,997 total score rows\. We aggregate by taking the mean score for each prompt\-dimension pair across available judges\. The resulting ensemble has high composite inter\-rater reliability \(ICC=0\.872=0\.872on 4,998 complete cases\), and scorer disagreement is retained for diagnostic analysis rather than hidden\.
#### 4\.2\.2The rubric
Each prompt is scored on six dimensions, each00to44, as shown in Table[1](https://arxiv.org/html/2609.19616#S4.T1)\.
Table 1:Complexity dimensions and scoring criteria\.The primary prompt\-side index isCi=∑d=16Zi,d∈\[0,24\]C\_\{i\}=\\sum\_\{d=1\}^\{6\}Z\_\{i,d\}\\in\[0,24\], whereZi,dZ\_\{i,d\}is the ensemble mean for dimensiondd\. The dimension vector𝐙i=\(Zi,1,…,Zi,6\)\\mathbf\{Z\}\_\{i\}=\(Z\_\{i,1\},\\ldots,Z\_\{i,6\}\)is retained for interpretation, reliability analysis, and secondary IV diagnostics\.
#### 4\.2\.3Design decisions
Why six dimensions rather than a single holistic score?Separate dimensions make the index interpretable, expose where raters disagree, and allow per\-dimension human calibration\. They also permit an overidentification test when treated as candidate IVs, although passing that test is not guaranteed\.
Why a 0 to 4 scale?An odd cardinality scale admits a neutral middle score for genuinely ambiguous prompts, which a 0 to 3 or 0 to 5 scale does not\.
Why frame the rubric around code structure rather than task difficulty?A prompt asking how hard a task is for an LLM would build the outcome into the measure\. The rubric instead anchors each dimension to expected solution structure and explicitly excludes LLM difficulty, code length, and language idioms\.
Why exclude the scoring ensemble from the evaluated panel?This separation reduces circularity between the systems assigning index values and those whose reliability is measured\. It does not by itself establish accuracy, human agreement, or IV exclusion\.
### 4\.3Primary Breakpoint Analysis
For a candidate breakpointγ\\gamma, we fit separate linear relationships on the two sides of the prompt\-side composite:
𝔼\[yi∣Ci\]=\{α1\+β1Ci,Ci≤γ,α2\+β2Ci,Ci\>γ\.\\mathbb\{E\}\[y\_\{i\}\\mid C\_\{i\}\]=\\begin\{cases\}\\alpha\_\{1\}\+\\beta\_\{1\}C\_\{i\},&C\_\{i\}\\leq\\gamma,\\\\ \\alpha\_\{2\}\+\\beta\_\{2\}C\_\{i\},&C\_\{i\}\>\\gamma\.\\end\{cases\}\(2\)The mean\-pooled outcome first averages pass rate across the 21 models within prompt, yieldingN=5,000N=5\{,\}000\. Model\-specific fits use the same prompt index and test infrastructure\. We also report median pooling and 21 leave\-one\-model\-out fits\. The regime means are descriptive summaries of a selection\-stratified sample\.
Because benchmark construction combines two prompt\-source frames, we also run a construction\-frame sensitivity\. We add a binary indicator for the 2,246 retained earlier prompts versus the 2,754 later candidates to the pooled and split regressions, compare a model with frame\-specific linear slopes, and repeat the threshold search within each frame\.
To locate the breakpoint, we adapt Hansen’s threshold\-regression procedure\[[6](https://arxiv.org/html/2609.19616#bib.bib6)\]:
1. 1\.For each candidateγ\\gammaon a percentile\-spaced grid overCiC\_\{i\}, requiring at least 500 prompts in each regime, we compare \([2](https://arxiv.org/html/2609.19616#S4.E2)\) with a pooled single\-line model using a Wald\-typeFF\-statisticW\(γ\)W\(\\gamma\)\.
2. 2\.The supremumW∗=supγW\(γ\)W^\{\*\}=\\sup\_\{\\gamma\}W\(\\gamma\)identifies the thresholdγ^\\hat\{\\gamma\}\.
3. 3\.UnderH0H\_\{0\}of no threshold, we use Rademacher wild\-bootstrap residual resampling and recomputeW∗W^\{\*\}at each draw\. A separate pairs bootstrap estimates the threshold interval\.
The revised mean\-pooled analysis uses 2,000 wild\-bootstrap draws, 1,000 pairs\-bootstrap draws for the interval, and 2,000 shuffled\-index placebo draws\. Model\-specific fits use 500 wild\-bootstrap and 500 placebo draws\. We repeat the search with nine task\-type fixed effects and, separately, with a construction\-frame indicator, using a 300\-draw wild bootstrap for each controlled specification\.
### 4\.4Output\-Complexity and IV Diagnostics
We first compare pass rate directly against generated\-output complexity and quantify the reverse\-threshold cell among failed generations\. As a secondary diagnostic, we regress generated\-output complexity on the six rubric dimensions and use the fitted value in a 2SLS pass\-rate regression:
κiobs\\displaystyle\\kappa\_\{i\}^\{\\mathrm\{obs\}\}=π0\+𝐙i𝝅\+νi,\\displaystyle=\\pi\_\{0\}\+\\mathbf\{Z\}\_\{i\}\\boldsymbol\{\\pi\}\+\\nu\_\{i\},\(3\)yi\\displaystyle y\_\{i\}=α\+βκ^i\+ui\.\\displaystyle=\\alpha\+\\beta\\widehat\{\\kappa\}\_\{i\}\+u\_\{i\}\.\(4\)We estimate these equations withIV2SLSfromlinearmodels\[[5](https://arxiv.org/html/2609.19616#bib.bib5)\]\. With six candidate instruments and one endogenous regressor, the Sargan overidentification statistic has five degrees of freedom\. We also report a robust Wooldridge overidentification test, individual\-instrument fits, principal\-component rotations, and post hoc subsets\. These tests reject the full instrument set, soβ^\\hat\{\\beta\}is a diagnostic coefficient rather than a causal estimate\.
### 4\.5Additional Robustness Designs
We added several stress tests after the initial analysis\. Nine task categories are assigned to all prompts by one out\-of\-panel judge; three additional judges label a shared 500\-prompt subset\. We examine the two recorded prompt\-source frames, compare first\-draw and five\-draw outcomes on 359 prompts and four models, test 150 plain\-language paraphrases, and re\-express 117 prompts in each of Java and C\+\+ for rescoring\. Two members of the research team also grade a disagreement\-enriched calibration sample with the LLM scores hidden\. Finally, a prompt\-side\-selected extension retains 365 new prompts only after contract audit and successful execution of every reference solution\. These analyses are post hoc robustness checks, not preregistered confirmation\.
##### Workflow
Figure[1](https://arxiv.org/html/2609.19616#S4.F1)summarizes the measurement and analysis workflow\.
Figure 1:Measurement and analysis workflow\. The prompt\-side composite is computed before generation and is primary in the breakpoint analysis\. Generated\-output complexity and 2SLS fits are retained as diagnostic comparisons\.
## 5Results
### 5\.1Rubric Alignment with Reference Complexity
Before estimating the breakpoint model, we examine how the rubric aligns with reference\-solution cyclomatic complexity from OpenCodeInstruct\. Because reference complexity helped shape the candidate pool, this is an association check rather than an independent validation\. Table[2](https://arxiv.org/html/2609.19616#S5.T2)reports the composite rubric distribution by referenceκ\\kappabin\.
Table 2:Rubric composite by reference\-solution cyclomatic complexity bin for the 4,997 prompts with an available reference\-CC value\. Three prompts lack that measurement\. The two measures have a strong positive association overall \(Pearsonr=0\.80r=0\.80, Spearmanρ=0\.81\\rho=0\.81\), although the bin means are not monotone at every adjacent value\.
### 5\.2Low\-end Alignment:κ=1\\kappa=1versusκ=2\\kappa=2
A useful low\-end alignment check asks whether the rubric distinguishes prompts whose reference implementations haveκ=1\\kappa=1from those withκ=2\\kappa=2\. If a hard task fails and produces a short stub, generated\-output cyclomatic complexity can collapse towardκ=1\\kappa=1, so this comparison is an alignment check rather than a validation of latent task structure\. To test whether the LLM rubric adds information beyond a cheap lexical proxy, we compare it with two keyword features computed from the same prompt text: a total count of structural cue words and a loop\-specific cue count\. These keyword features are fixed before generation, but they only detect surface words rather than the intended solution structure\.
Table 3:The prompt\-side rubric discriminatesκ=1\\kappa=1fromκ=2\\kappa=2before generation\. Keyword features capture some surface structure but are less directly tied to intended code structure\.The rubric’s separation is driven primarily by iteration \(\+0\.24\+0\.24\), state \(\+0\.19\+0\.19\), and branching \(\+0\.09\+0\.09\)\. The lexical baseline also separates the two groups, so this comparison does not establish that the rubric dominates every simple proxy\. Its advantages are the explicit structural dimensions, multi\-rater uncertainty, and broader calibration checks below\.
### 5\.3Rater and Measurement Calibration
The four\-judge composite has ICC=0\.872=0\.872on the 4,998 prompts with complete ratings\. We also conducted a deliberately difficult human calibration: the first author graded 200 prompts, roughly half sampled for high LLM\-judge disagreement, and a second research\-team member graded 50 overlapping prompts\. LLM scores were hidden during grading\. On all 200 prompts, first\-author agreement with the ensemble was Pearsonr=0\.408r=0\.408, Spearmanρ=0\.373\\rho=0\.373, and ICC\(2,1\)=0\.395\(2,1\)=0\.395, with a mean offset of−1\.18\-1\.18points\. On the shared 50, the two graders’ Pearson correlation was 0\.561, while their separate correlations with the LLM composite were 0\.613 and 0\.921\. On that shared subset, the first and second graders’ mean offsets were−0\.69\-0\.69and−1\.35\-1\.35points\. These are stress\-test estimates with substantial rater variation, not a human ground\-truth certificate\.
Two further checks probe whether the index follows presentation rather than structure\. Across 150 plain\-language rewrites, rank stability is high \(Spearmanρ=0\.963\\rho=0\.963\); the mean shift is small \(−0\.115\-0\.115on the 0 to 24 scale\) but statistically detectable \(pairedp=0\.031p=0\.031\), and 91\.3% of pairs are within one point\. For 117 prompts re\-expressed in each language, the composite correlates 0\.992 between Python and Java and 0\.969 between Python and C\+\+\. Inter\-judge ICC is 0\.912 in Python, 0\.913 in Java, and 0\.882 in C\+\+\. This is evidence about score transfer, not non\-Python generation reliability\.
### 5\.4Generated\-Output Complexity Misses the Prompt\-Side Pattern
Figure[2](https://arxiv.org/html/2609.19616#S5.F2)compares reliability against Lizard complexity measured on the generated output\. The curve is nonmonotone and does not show a clean decline\. More directly, among 14,776 zero\-pass generations with a computable Lizard value, 4,216 \(28\.5%\) have prompt composite\>8\>8but output CC≤10\\leq 10\. The corresponding complete\-case shares are 26\.8%, 24\.9%, and 24\.1% for pass rate at most 0\.25, 0\.50, and 0\.65\. An additional 977 zero\-pass rows have no computable output CC and are excluded from these denominators\.
Figure 2:Generated\-output complexity is failure\-dependent\. \(a\) Across 103,948 complete\-case generations, points show mean pass rate by integer Lizard output CC; the shaded descriptive band is±1\.96\\pm 1\.96generation\-row standard errors and does not adjust for repeated prompts or models\. Here 40 denotes CC≥40\\geq 40\. The dashed blue line is the conditional mean prompt composite, read on the right axis\. \(b\) Among zero\-pass complete cases, the outlined cell contains 4,216 of 14,776 generations \(28\.5%\): the prompt composite is\>8\>8while generated\-output CC is≤10\\leq 10\.Among passing generations only, where output CC is less contaminated by failed stubs, a descriptive linear mapping hasR2=0\.623R^\{2\}=0\.623and maps promptγ^=13\.75\\hat\{\\gamma\}=13\.75to output CC about 22\.9\. This is a selection\-conditioned scale translation, not a second threshold estimate\. The OLS and 2SLS comparisons are reported in Appendix[A](https://arxiv.org/html/2609.19616#A1)\.
### 5\.5The Mean\-Pooled Breakpoint
On the unadjusted mean\-pooled benchmark, the sup\-Wald search selectsγ^=13\.75\\hat\{\\gamma\}=13\.75on the prompt composite, with sup\-Wald=121\.70=121\.70\. None of 2,000 wild\-bootstrap draws or 2,000 shuffled\-index placebo draws reaches the observed statistic; with the finite Monte Carlo correction, each givespMC≤1/2001<0\.001p\_\{\\mathrm\{MC\}\}\\leq 1/2001<0\.001\. At or belowγ^\\hat\{\\gamma\},n=3,617n=3\{,\}617prompts have mean pass rate 79\.9%; above it,n=1,383n=1\{,\}383have mean pass rate 87\.6%\. The relationship is not a monotone collapse: pass rate declines through the middle of the index, reaches a trough near composite 10, and rebounds in the denser high region\. A model comparison selects the piecewise form over linear and cubic specifications by BIC \(1,243 versus 1,464 and 1,305\)\.
Figure 3:Unadjusted mean\-pooled relationship in the original 5,000\-prompt benchmark\. Pass rate is first averaged across 21 models within prompt\. Display binbbcontainsCi∈\[b−0\.5,b\+0\.5\)C\_\{i\}\\in\[b\-0\.5,b\+0\.5\), so exact half\-point boundaries enter the higher bin\. The dashed line marks the thresholdγ^=13\.75\\hat\{\\gamma\}=13\.75estimated from the unbinned composite; the shaded vertical band is the 95% pairs\-bootstrap interval\. This figure does not include task\-type or construction\-frame controls, or the separate 365\-prompt extension\.The 95% pairs\-bootstrap interval is\[7\.75,14\.0\]\[7\.75,14\.0\]\. Its width reflects the broad trough visible in Figure[3](https://arxiv.org/html/2609.19616#S5.F3)\. The estimate summarizes an observational breakpoint in this constructed benchmark, not a universal point at which harder prompts become easier\.
### 5\.6Task\-Type and Construction\-Frame Sensitivity
We label all 5,000 prompts using a nine\-category taxonomy fixed before labeling\. One out\-of\-panel judge labels the full set; three more label a shared 500\-prompt subset, with Krippendorffα=0\.787\\alpha=0\.787\. Adding task\-type fixed effects shiftsγ^\\hat\{\\gamma\}from 13\.75 to 10\.75, reduces sup\-Wald from 121\.7 to 19\.6, and reduces the raw regime gap from 7\.6 to 2\.1 percentage points\. None of 300 wild\-bootstrap draws reaches the observed controlled statistic \(pMC≤1/301<0\.01p\_\{\\mathrm\{MC\}\}\\leq 1/301<0\.01\)\. Task composition therefore explains a substantial part of the pooled pattern\.
Table 4:Mean\-pooled breakpoint under composition controls\. Regime means are raw summaries at each specification’s selected breakpoint\.A piecewise composite term at 10\.75 raises predictiveR2R^\{2\}from 0\.084 for task type alone to 0\.136; the piecewise term alone hasR2=0\.045R^\{2\}=0\.045\. This is incremental predictive fit, not causal independence\. Four of five sufficiently large task categories still reject the full IV restrictions, so task type does not explain away the overidentification failure\.
The construction\-frame sensitivity is more consequential\. The 2,246 retained earlier\-frame prompts have mean composite 7\.92 and mean pass rate 0\.747, while the 2,754 later candidates have mean composite 11\.42 and mean pass rate 0\.880\. With a common construction\-frame fixed effect in every threshold regression, the selected breakpoint moves to 8\.50 and the raw regime means move from 0\.841 to 0\.806\. None of 300 wild\-bootstrap draws reaches the controlled sup\-Wald statistic of 47\.4 \(pMC≤1/301p\_\{\\mathrm\{MC\}\}\\leq 1/301\)\. However, a simpler model with frame\-specific linear slopes has lower BIC than the source\-controlled breakpoint model \(963 versus 977\) with nearly the sameR2R^\{2\}\(0\.0991 versus 0\.0997\)\.
The within\-frame fits explain why we narrow the claim\. The earlier frame selects 7\.75, but the break is not significant \(sup\-Wald 3\.43, bootstrapp=0\.19p=0\.19\), and a linear decline has lower BIC\. The later candidate frame selects 14\.25 and supports nonlinearity \(sup\-Wald 36\.71,pMC≤1/301p\_\{\\mathrm\{MC\}\}\\leq 1/301\), but its raw regime change is only\+0\.9\+0\.9points, from 0\.877 to 0\.885\. At the pooled threshold, later candidates make up 39\.9% of prompts below but 94\.7% above\. Thus the pooled trough and rebound remain features of the constructed benchmark, while the large upward regime gap is largely construction\-frame composition rather than evidence that increasing prompt complexity improves reliability\.
### 5\.7Model and Pooling Heterogeneity
Model\-specific thresholds range from 7\.75 to 14\.25, with median 11\.25\. Sixteen models have higher mean pass rate above their own threshold and five have lower rates: Grok\-3, Kimi K2\.5, Gemini 3\.1 Pro Preview, GPT\-5\.4, and Qwen 3\.6 Plus\. The same prompt set, scores, and test harness are reused, so these are comparative model fits rather than independent replications\. The mean\-pooled threshold remains exactly 13\.75 in all 21 leave\-one\-model\-out fits\. Median pooling still selects a piecewise form, but shifts the threshold to 10\.75 and narrows the raw gap to 2\.3 points \(0\.839 to 0\.862\)\. Full results appear in Appendix[B](https://arxiv.org/html/2609.19616#A2)\.
A 459\-prompt diagnostic at display bins 13 and 17 gives an external\-library coefficient of−0\.050\-0\.050\(p=0\.61p=0\.61\) after prompt controls\. This provides no support for a library or framework explanation, while the construction\-frame analysis above shows that source composition is material\.
### 5\.8Audit\-Clean High\-Complexity Extension
We independently selected high\-composite candidates on the prompt side, audited their contracts, and retained only prompts whose reference solution passes every supplied test\. This yields 365 new prompts: 218/133/11/3 at display bins 15/16/17/18\. To avoid changing model composition, Figure[4](https://arxiv.org/html/2609.19616#S5.F4)uses the five models present in both the original and extension runs\. At bin 15, the extension and original means are 0\.880 and 0\.894; at bin 16 they are 0\.799 and 0\.808\. The differences are−0\.014\-0\.014and−0\.009\-0\.009\(Welchp=0\.377p=0\.377andp=0\.765p=0\.765\)\. Combined support rises to 1,068 and 390 prompts, and the same\-frame threshold, estimated from the unbinned composite, remains 14\.0, with mean pass 0\.783 at or below and 0\.859 above\.
Figure 4:Audit\-clean extension in a matched five\-model frame\. \(a\) Pass rate is first averaged over the five models shared by the original benchmark and extension, then over prompts within display bins, where binbbcontainsCi∈\[b−0\.5,b\+0\.5\)C\_\{i\}\\in\[b\-0\.5,b\+0\.5\)\. Error bars and the shaded band are prompt\-level normal\-approximation intervals using±1\.96\\pm 1\.96standard errors\. The dashed line is the same\-frame threshold estimated on the unbinned composite\. \(b\) The 365 additions materially raise support at bins 15 and 16\. Only 14 additions lie above 16, so bins 17 and 18 remain descriptive\.A separate fixed\-version three\-model check with Claude Opus 4\.6, GPT\-5\.4, and Gemini 3\.1 Pro Preview analyzes the same 150 midrange anchors plus 365 retained tail prompts per model\. Their bin\-15 pass rates are 0\.941, 0\.940, and 0\.936, and their bin\-16 rates are 0\.871, 0\.850, and 0\.845\. Only 14 retained tail prompts lie above bin 16, so the extreme\-tail shape remains unresolved\.
### 5\.9Repeated\-Sampling Robustness
On a 359\-prompt, four\-model subset with five draws per prompt\-model cell at temperature 0\.8 \(7,180 scored generations\), the mean within\-cell standard deviation is 0\.064 and the median is zero\. The first draw and five\-draw mean both selectγ^=14\.25\\hat\{\\gamma\}=14\.25\. Their Pearson correlation is 0\.960, but this is a part\-whole comparison because the first draw contributes to the mean\. This local check supports threshold\-location stability for the sampled subset; it does not establish universal single\-draw reliability\.
## 6Discussion
### 6\.1Interpretation After the IV Diagnostics
The full six\-dimension IV specification does not support causal identification\. Its Sargan statistic isJ=411\.32J=411\.32on five degrees of freedom, and the robust Wooldridge overidentification statistic is 350\.59; both reject at machine precision\. This is not explained away by sample size\. Across 200 random subsamples at each size, meanJ/NJ/Nchanges only from 0\.102 atn=250n=250to 0\.082 atn=4,000n=4\{,\}000, and 97\.5% of then=250n=250draws already reject\. Under the null, expectedJJwould be about five; the mean atn=250n=250is 25\.5\.
The dimensions also imply conflicting just\-identified coefficients\. Data structures is positive \(0\.002130\.00213,p=3\.2×10−6p=3\.2\\times 10^\{\-6\}\), while state \(−0\.00378\-0\.00378\) and composition \(−0\.00416\-0\.00416\) are strongly negative\. Rotating the same space does not repair the disagreement: all overidentified leading\-principal\-component fits reject, while PC1 alone is just\-identified and therefore has no overidentification test\. A few post hoc subsets do not reject, such as branching plus edge cases \(p=0\.968p=0\.968, robust first\-stage Waldχ2\(2\)=7,570\\chi^\{2\}\(2\)=7\{,\}570\), but subset search is multiplicity\-sensitive and does not validate the original six\-dimension IV specification\.
What survives is the composite’s use as a pre\-generation index\. Its timing avoids the mechanical failure dependence of generated\-output CC, and its association with reference CC, human ratings, paraphrases, and language re\-expressions can be evaluated directly\. None of those checks turns the index into a causal instrument\.
### 6\.2What the Breakpoint Means
The unadjusted mean\-pooled breakpoint is a compact description of a nonmonotone curve in a selection\-stratified benchmark\. It is not a universal difficulty limit\. Four results make that boundary especially important\. First, task\-type controls shrink the gap from 7\.6 to 2\.1 points and move the estimated location\. Second, construction\-frame control reverses the selected raw regime gap, and neither frame alone reproduces the pooled increase\. Third, median pooling shifts the estimate to 10\.75\. Fourth, five model\-specific curves move downward while 16 move upward\. The leave\-one\-model\-out stability shows that no single model creates the mean\-pooled estimate, but it does not remove dependence on the pooling functional or prompt composition\.
The 365\-prompt extension strengthens the evidence only where it adds support\. Bins 15 and 16 closely match the original matched\-five\-model point estimates, while bins 17 and 18 receive only 11 and three additions\. We therefore find similar rates through bin 16 within this frame and leave the extreme tail unresolved\.
### 6\.3Why a Prompt\-Side Index Is Useful
The central design choice is temporal rather than causal: measure the input before the evaluated system acts\. A lexical proxy also has this advantage and may be preferable when transparency or cost dominates\. The rubric offers a different tradeoff: six interpretable structural dimensions, ensemble disagreement, and a scale that can be calibrated across raters and prompt variants\. The disagreement\-enriched two\-grader calibration shows that the measurement remains uncertain in this sample and argues for reporting uncertainty rather than treating any single rater as ground truth\.
The same pre\-generation principle may transfer beyond Python code prompts, but the evidence here is narrow\. Java and C\+\+ rescoring preserves the index ordering, while generation and execution remain Python\-only\. Applications to other textual artifacts would need their own rubric, human calibration, and outcome\-specific validation\.
### 6\.4Implications for Benchmark Design
Analyses that stratify by generated\-output complexity should report how missing and failed outputs enter the metric\. A prompt\-side score can supplement those plots, provided its sampling frame, rater reliability, and sensitivity to task composition are visible\. We recommend reporting the full curve, bin support, alternative pooling choices, and task\-type\-adjusted results rather than reducing reliability to one average or one cutoff\. Such scores are diagnostic summaries, not deployment rules without prospective validation\.
## 7Limitations
Constructed sampling frame\.The benchmark is balanced across bands of a preliminary single\-rater score, not the final four\-judge index\. Its source pool also inherits a 200,000\-record prefix scan and deliberate high\-reference\-complexity supplementation\. The retained and later\-candidate frames differ sharply in score and pass rate, and the source sensitivity shows that their changing mixture explains much of the pooled rebound\. The benchmark therefore does not estimate performance under the natural OpenCodeInstruct prompt distribution\. Regime means and thresholds are conditional on this constructed frame and its selection rater\.
Scorer dependence and human disagreement\.Systematic LLM\-rater bias can propagate into the index\. The four\-judge ensemble makes disagreement observable but cannot remove common\-mode bias\. Human\-LLM agreement is only moderate on the disagreement\-enriched 200\-prompt sample and varies substantially by rater\.
Composition and pooling\.Task\-type and construction\-frame controls substantially alter the breakpoint, and median pooling also changes its location\. The mean\-pooled 13\.75 estimate should not be read without those sensitivities\.
Post hoc model exclusion\.AuroraGPT\-IT\-v4 was removed in a post hoc panel decision without a prespecified eligibility rule and lacks final\-frame outputs for 2,754 prompts\. A like\-for\-like 22\-model sensitivity on the final frame is therefore unavailable\.
Sparse extreme tail\.The audit\-clean extension adds 351 prompts at bins 15 and 16 but only 14 above 16\. The endpoint beyond bin 16 remains underpowered\.
Python execution only\.Java and C\+\+ results test score transfer after re\-expression\. We did not rerun generation and unit\-test execution in those languages\.
No causal IV claim\.The overidentification restrictions reject even in small subsamples, and candidate instruments imply conflicting coefficients\. The 2SLS fits cannot identify a causal effect\.
Post hoc checks and cross\-sectional scope\.The task taxonomy, construction\-frame sensitivity, tail extension, human calibration, paraphrase, language, and repeated\-sampling checks were added after the initial analysis\. They sharpen the evidence but are not preregistered\. We also do not track comparable prompts and model families over time\.
## 8Conclusion
Generated\-output cyclomatic complexity is a poor stand\-in for prompt structure when failures can produce short or unscorable programs\. A prompt\-side index avoids that mechanical timing problem and reveals a nonmonotone reliability relationship in this 5,000\-prompt, 21\-model benchmark\. The unadjusted mean\-pooled breakpoint is 13\.75, but task\-type controls shrink the gap, construction\-frame sensitivity shows that the large pooled rebound is mostly compositional, median pooling moves the estimate, and model\-specific directions differ\.
The audit\-clean extension closely matches the bin\-15 and bin\-16 point estimates in a matched five\-model frame, while support above bin 16 remains too sparse for a strong claim\. Human calibration is moderate, paraphrase and language\-transfer checks preserve ordering, and repeated sampling preserves the local threshold estimate\. The six candidate instruments fail their joint restrictions, so the contribution is measurement and observational analysis, not causal identification\.
For benchmark designers, the practical lesson is modest: supplement output\-derived metrics with pre\-generation measures, publish the rubric and rater uncertainty, show support counts, and report how task composition and pooling alter the curve\.
Reproducibility\.The anonymous source artifact contains analysis code, locked result summaries, aggregate robustness results, and source tables for the figures\. Large prompt and generated\-output bundles are retained separately and are not part of the Git snapshot\.
## References
- \[1\]M\. Chen et al\., “Evaluating Large Language Models Trained on Code,”*arXiv:2107\.03374*, 2021\.
- \[2\]J\. Austin et al\., “Program Synthesis with Large Language Models,”*arXiv:2108\.07732*, 2021\.
- \[3\]NVIDIA, “OpenCodeInstruct,” Hugging Face Datasets, 2025\.
- \[4\]J\. M\. Wooldridge,*Econometric Analysis of Cross Section and Panel Data*, 2nd ed\., MIT Press, 2010\.
- \[5\]K\. Sheppard, “linearmodels: Linear panel, instrumental\-variable, asset\-pricing, and system\-regression models for Python,” version 7\.0, 2025\. \[Online\]\. Available:[https://bashtage\.github\.io/linearmodels/](https://bashtage.github.io/linearmodels/)
- \[6\]B\. E\. Hansen, “Sample Splitting and Threshold Estimation,”*Econometrica*, vol\. 68, no\. 3, pp\. 575 to 603, 2000\.
- \[7\]L\. P\. Hansen, “Large Sample Properties of Generalized Method of Moments Estimators,”*Econometrica*, vol\. 50, no\. 4, pp\. 1029 to 1054, 1982\.
- \[8\]C\. E\. Jimenez et al\., “SWE\-bench: Can Language Models Resolve Real\-World GitHub Issues?”*arXiv:2310\.06770*, 2023\.
- \[9\]T\. J\. McCabe, “A Complexity Measure,”*IEEE Transactions on Software Engineering*, vol\. SE\-2, no\. 4, pp\. 308 to 320, 1976\. doi:10\.1109/TSE\.1976\.233837\.
- \[10\]T\. Yin, “Lizard: A Simple Code Complexity Analyzer,” GitHub repository\. \[Online\]\. Available:[https://github\.com/terryyin/lizard](https://github.com/terryyin/lizard)
- \[11\]J\. M\. Montgomery, B\. Nyhan, and M\. Torres, “How Conditioning on Posttreatment Variables Can Ruin Your Experiment and What to Do about It,”*American Journal of Political Science*, vol\. 62, no\. 3, pp\. 760 to 775, 2018\. doi:10\.1111/ajps\.12357\.
- \[12\]L\. Graf\-Vlachy and S\. Wagner, “Cleaning Up Confounding: Accounting for Endogeneity Using Instrumental Variables and Two\-Stage Models,”*ACM Transactions on Software Engineering and Methodology*, vol\. 33, no\. 8, article 199, 2024\. doi:10\.1145/3674730\.
- \[13\]J\. Siebert, “Applications of Statistical Causal Inference in Software Engineering,”*Information and Software Technology*, vol\. 159, article 107198, 2023\. doi:10\.1016/j\.infsof\.2023\.107198\.
- \[14\]Y\. Liu et al\., “G\-Eval: NLG Evaluation using GPT\-4 with Better Human Alignment,”*arXiv:2303\.16634*, 2023\.
- \[15\]X\. Li et al\., “AlpacaEval: An Automatic Evaluator of Instruction Following Models,” 2023\. \[Online\]\. Available:[https://github\.com/tatsu\-lab/alpaca\_eval](https://github.com/tatsu-lab/alpaca_eval)
- \[16\]L\. Zheng et al\., “Judging LLM\-as\-a\-Judge with MT\-Bench and Chatbot Arena,”*arXiv:2306\.05685*, 2023\.
- \[17\]T\. B\. Hashimoto et al\., “Unifying Human and Statistical Evaluation for Natural Language Generation,”*arXiv:1904\.02792*, 2019\.
- \[18\]J\. H\. Stock and M\. Yogo, “Testing for Weak Instruments in Linear IV Regression,” in*Identification and Inference for Econometric Models*, Cambridge Univ\. Press, 2005, pp\. 80 to 108\.
- \[19\]C\. G\. Bowsher, “On testing overidentifying restrictions in dynamic panel data models,”*Economics Letters*, vol\. 77, no\. 2, pp\. 211 to 220, 2002\.
## Appendix AAdditional Econometric Diagnostics
### A\.1First\-stage relevance
The first\-stage regression \([3](https://arxiv.org/html/2609.19616#S4.E3)\) on the combined dataset yields a heteroscedasticity\-robust Wald statistic ofχ2\(6\)=13,611\.3\\chi^\{2\}\(6\)=13\{,\}611\.3and a classical jointF\(6,4993\)=2,265\.4F\(6,4993\)=2\{,\}265\.4\. PartialR2R^\{2\}on generated\-output complexity is0\.6810\.681\. Per\-model robust Wald statistics range fromχ2\(6\)=6,053\.7\\chi^\{2\}\(6\)=6\{,\}053\.7\(GPT\-5\-mini\) to 14,693\.2 \(Mistral Small 2412\)\. The dimensions are strongly relevant to output CC, but relevance does not establish exclusion validity\.
Table 5:First\-stage OLS coefficients for candidate rubric dimensions predicting generated\-output complexity\. Heteroscedasticity\-consistent \(HC1\) standard errors are in parentheses\.N=5,000N=5\{,\}000\.Dimensionπ^\\hat\{\\pi\}SEBranching1\.090∗∗∗1\.090^\{\*\*\*\}\(0\.238\)\(0\.238\)Iteration0\.634∗∗∗0\.634^\{\*\*\*\}\(0\.172\)\(0\.172\)State2\.091∗∗∗2\.091^\{\*\*\*\}\(0\.292\)\(0\.292\)Data structures2\.851∗∗∗2\.851^\{\*\*\*\}\(0\.138\)\(0\.138\)Edge cases6\.024∗∗∗6\.024^\{\*\*\*\}\(0\.279\)\(0\.279\)Composition−0\.766∗∗\-0\.766^\{\*\*\}\(0\.291\)\(0\.291\)Constant−4\.924∗∗∗\-4\.924^\{\*\*\*\}\(0\.311\)\(0\.311\)PartialR2R^\{2\}0\.681Classical jointFF2,265\.4Robust Waldχ2\(6\)\\chi^\{2\}\(6\)13,611\.3NN5,000p∗∗<0\.01\{\}^\{\*\*\}p<0\.01,∗∗∗p<0\.001\{\}^\{\*\*\*\}p<0\.001All six dimensions are individually significant first\-stage predictors\.*Edge cases*and*data structures*have the largest conditional associations;*composition*is negative after conditioning on the other five dimensions, illustrating substantial shared variance\.
### A\.2Overidentification diagnostics
The Sargan statistic is411\.32411\.32onχ2\(5\)\\chi^\{2\}\(5\)and the robust Wooldridge statistic is350\.59350\.59; both reject at machine precision\. The same pattern appears in every model\-specific fit\. The restrictions fail well before the full sample size\. Table[6](https://arxiv.org/html/2609.19616#A1.T6)summarizes 200 random draws at eachnn\.
Table 6:Overidentification under random subsampling\. Under the null,𝔼\[J\]≈5\\mathbb\{E\}\[J\]\\approx 5\. Values are means over 200 draws at each subsample size\.The just\-identified coefficients disagree in sign: branching−0\.00083\-0\.00083\(p=0\.043p=0\.043\), iteration−0\.00035\-0\.00035\(p=0\.519p=0\.519\), state−0\.00378\-0\.00378\(p=2\.1×10−12p=2\.1\\times 10^\{\-12\}\), data structures\+0\.00213\+0\.00213\(p=3\.2×10−6p=3\.2\\times 10^\{\-6\}\), edge cases−0\.00084\-0\.00084\(p=0\.035p=0\.035\), and composition−0\.00416\-0\.00416\(p<10−15p<10^\{\-15\}\)\. The sign disagreement is consistent with the failed joint restrictions\.
Principal\-component rotation preserves the same disagreement\. With all six PCs,J=411\.32J=411\.32exactly; every overidentified leading\-PC specification from PC1 to PC2 through PC1 to PC6 rejects\. PC1 alone is just\-identified, so it provides no overidentification test\. Several post hoc subsets do not reject, including branching plus edge cases \(J=0\.0016J=0\.0016,p=0\.968p=0\.968, robust first\-stage Waldχ2\(2\)=7,570\\chi^\{2\}\(2\)=7\{,\}570\), but they are exploratory and multiplicity\-sensitive\.
### A\.3Output\-CC regression diagnostics
Table 7:Descriptive OLS and candidate\-IV 2SLS fits of pass rate on prompt\-level mean generated\-output CC, averaged over model generations with computable CC\. Of 5,000 prompts, 4,294 have all 21 model values and 706 use fewer\. OLS uses HC1 standard errors and 2SLS uses heteroscedasticity\-robust standard errors\. Because the full instrument set fails overidentification, the 2SLS coefficient is not causal\.The direct output\-CC slope is small and positive, while the invalid candidate\-IV fit is near zero\. The failed exclusion restrictions prevent a causal reading of their difference\. Separately, a fractional\-probit fit of pass rate on the prompt composite gives a marginal effect at the mean of−0\.00193\-0\.00193\(SE=0\.00480=0\.00480,p=0\.124p=0\.124\); linear OLS on the prompt composite gives−0\.00186\-0\.00186\(R2=0\.0008R^\{2\}=0\.0008,p=0\.022p=0\.022\)\. These small global prompt\-index slopes are compatible with the visibly nonmonotone conditional curve\.
### A\.4Keyword\-feature baseline
Table[8](https://arxiv.org/html/2609.19616#A1.T8)compares the keyword\-feature baseline and the prompt\-side rubric on the main measurement weaknesses\. The keyword baseline is an internal lexical proxy computed from prompt text, not a prior published result\.
Table 8:Keyword\-feature baseline and prompt\-side rubric\. Both are measured before generation; the rubric adds explicit dimensions and rater uncertainty, while the lexical proxy is cheaper and deterministic\.
## Appendix BPer\-model Details
Figure 5:Model\-specific pass rate by prompt\-side composite display bin in the original benchmark\. BinbbcontainsCi∈\[b−0\.5,b\+0\.5\)C\_\{i\}\\in\[b\-0\.5,b\+0\.5\), so exact half\-point boundaries enter the higher bin\. Rows are 21 evaluated models and columns are bins 1 to 16\. The diamond marks each model’s fitted breakpoint in the corresponding display bin\. Sparse original bins 0 and 17 to 19 contain 3, 45, 6, and 5 prompts and are omitted\.Table 9:Model\-specific breakpoint estimates\.Δ\\Deltais PassC\>γ^−\{\}\_\{C\>\\hat\{\\gamma\}\}\-PassC≤γ^\{\}\_\{C\\leq\\hat\{\\gamma\}\}in percentage points\. Boot and placebo columns report exceedances out of 500 resamples; zero exceedances imply finite Monte CarlopMC≤1/501≈0\.002p\_\{\\mathrm\{MC\}\}\\leq 1/501\\approx 0\.002, notp=0p=0\. The combined row uses 2,000 resamples\.
## Appendix CReverse\-threshold and Robustness Details
### C\.1Reverse\-threshold complete cases
Figure[6](https://arxiv.org/html/2609.19616#A3.F6)expands the 2\-by\-2 diagnostic in Figure[2](https://arxiv.org/html/2609.19616#S5.F2)\. Zero\-pass complete cases flow from Lizard complexity on generated code to the prompt composite\. Highlighted flows are prompts with composite\>8\>8whose failed outputs have CC≤10\\leq 10\.
Figure 6:Reverse Threshold Problem among 14,776 zero\-pass generations with computable Lizard CC\. Generated\-output complexity is on the left and the pre\-generation prompt composite on the right\. Highlighted flows have output CC≤10\\leq 10and prompt composite\>8\>8\.In the revised combined analysis, none of 2,000 wild\-bootstrap or 2,000 shuffled\-index placebo statistics reaches the observedW∗=121\.70W^\{\*\}=121\.70\. With the standard plus\-one correction, each givespMC≤1/2001<0\.001p\_\{\\mathrm\{MC\}\}\\leq 1/2001<0\.001\. For each model\-specific fit, the observed statistic exceeds all 500 bootstrap and 500 placebo draws, corresponding topMC≤1/501≈0\.002p\_\{\\mathrm\{MC\}\}\\leq 1/501\\approx 0\.002\.
### C\.2Task\-type controls
The nine fixed categories contain 2,005 data\-structures/algorithms prompts, 654 array/matrix/grid, 619 numeric/math, 617 string/text, 341 other, 276 stateful simulation, 215 parsing/serialization, 190 logic/validation, and 83 API/library orchestration prompts\. On the shared 500\-prompt reliability set, pairwise Cohenκ\\kapparanges from 0\.737 to 0\.856 and Krippendorffα=0\.787\\alpha=0\.787\.
The piecewise composite at 10\.75 hasR2=0\.04537R^\{2\}=0\.04537alone\. Task\-type fixed effects haveR2=0\.08387R^\{2\}=0\.08387alone, and their combination hasR2=0\.13640R^\{2\}=0\.13640\. Thus the piecewise term adds 0\.05253 in\-sample predictiveR2R^\{2\}beyond the labels\. Table[10](https://arxiv.org/html/2609.19616#A3.T10)shows that the IV failure is not localized to one task category\.
Table 10:Full six\-dimension Sargan test within task categories having at least 300 prompts\.
### C\.3Construction\-frame sensitivity
All 5,000 prompts map to the recorded construction frame\. The retained earlier frame contains 2,246 prompts and the later candidate frame contains 2,754\. At the pooledγ^=13\.75\\hat\{\\gamma\}=13\.75, later candidates account for 39\.9% of the lower regime and 94\.7% of the upper regime\. Within the earlier frame, raw pass rate is 0\.749 below versus 0\.691 above that pooled threshold, with only 73 prompts above\. Within the later frame, it is 0\.875 versus 0\.886\. The overlap limitation makes reweighting unstable, so we report the controlled and within\-frame fits rather than treating a standardized contrast as definitive\.
Table 11:Unbinned threshold searches within the two construction frames\. Regime means are raw summaries at each frame’s selected breakpoint\.For the earlier frame, linear BIC is 1,216\.0 versus 1,224\.6 for the piecewise fit\. For the later frame, piecewise BIC is−674\.6\-674\.6versus−617\.8\-617\.8for linear\. Across both frames, a model with frame\-specific linear slopes hasR2=0\.0991R^\{2\}=0\.0991and BIC 963\.2, compared withR2=0\.0997R^\{2\}=0\.0997and BIC 976\.9 for the common\-frame\-effect breakpoint model\. Thus nonlinearity remains in the later frame, but the data do not support a common within\-frame transition of the pooled magnitude\.
### C\.4Pooling and repeated sampling
Every leave\-one\-model\-out mean\-pooled fit selects 13\.75\. Median pooling selects 10\.75, with 0\.839 at or below and 0\.862 above\. Table[12](https://arxiv.org/html/2609.19616#A3.T12)gives the repeated\-sampling subset\. The subset has 359 prompts, four models, five draws, and 7,180 executed generations\.
Table 12:Repeated\-sampling threshold check\. The first draw is part of the five\-draw mean, sor=0\.960r=0\.960is a part\-whole comparison\.
### C\.5High\-complexity extension
Table[13](https://arxiv.org/html/2609.19616#A3.T13)keeps the original and extension sources separate\. Pass rate is first averaged over the five matched models within prompt\. The two well\-supported comparisons differ by about one percentage point and are not statistically distinguishable\. Bins 17 and 18 remain too small for stable comparisons\.
Table 13:Matched\-five\-model high\-bin support and pass rates\. Parentheses contain prompt counts\.The separate fixed\-version three\-model check analyzes 515 prompts per model: 150 midrange anchors plus 365 audit\-clean additions\. Claude Opus 4\.6, GPT\-5\.4, and Gemini 3\.1 Pro Preview have bin\-15 pass rates 0\.941, 0\.940, and 0\.936, and bin\-16 rates 0\.871, 0\.850, and 0\.845\. The 11 and three prompts in bins 17 and 18 are descriptive only\.
### C\.6Human, paraphrase, and language checks
Table 14:Prompt\-index calibration checks\. Human results use a disagreement\-enriched stress\-test sample\. Language results test rescoring after re\-expression, not generation or execution\.The paraphrases have median character length 46\.3% of the originals\. Their mean composite shift is−0\.115\-0\.115\(pairedp=0\.031p=0\.031\), with 91\.3% within one point and 99\.3% within two\. On the same 117 prompts used for language re\-expression, Python inter\-judge ICC is 0\.912\.
## Appendix DSubmission artifact and reproducibility details
For anonymous review, the source artifact includes the six\-dimension rubric, model metadata, analysis scripts for the breakpoint, task\-control, diagnostic\-IV, placebo, and figure pipelines, locked summary outputs, an aggregate robustness summary, and the source CSVs used for the tail\-extension and output\-CC figures\. Large prompt and generated\-output bundles are not committed in the Git snapshot, so reproducing model inference and execution requires the separately retained data bundle and provider access\.
Existing assets and licenses\.The source task pool is OpenCodeInstruct under CC BY 4\.0\[[3](https://arxiv.org/html/2609.19616#bib.bib3)\]\. Generated\-output cyclomatic complexity is computed with Lizard 1\.21\.0 under the MIT License\[[10](https://arxiv.org/html/2609.19616#bib.bib10)\]; diagnostic IV estimation useslinearmodels7\.0 under the NCSA License\[[5](https://arxiv.org/html/2609.19616#bib.bib5)\]\. The source repository itself is released under the MIT License\.
Compute\.The main compute cost is inference: four rubric judges score 5,000 prompts each, and 21 evaluated models each generate one answer for every prompt\. Open\-weight or locally served models are run one model at a time on A100\-class GPU workers; serverless/API models are run through provider batch or hosted inference endpoints\. Unit\-test execution, Lizard scoring, and econometric analysis run on CPU workers\. Exact wall times, worker memory, and total compute were not logged consistently across providers, so we do not claim a complete compute accounting\.
Execution safeguards\.Generated code is executed only inside the benchmark unit\-test harness with timeouts and isolated working directories\. The source artifact does not release a trained model or a public code\-generation service\.
LLM usage\.LLMs are part of the core methodology as rubric judges and as evaluated code\-generation models\. LLM\-assisted drafting and editing were also used under author supervision; all scientific claims, analysis choices, and final text remain the authors’ responsibility\.Similar Articles
Beyond Prompt Engineering: A Systematic Analysis of Prompt Lexical Sensitivity and Its Impacts on Quality
This paper presents a large-scale analysis of prompt lexical sensitivity in large language models, revealing a scaling law for prompt performance stability and introducing an automated Prompt-Refining Agent that reduces performance variance in tasks like code generation.
Rethinking Complexity Metrics for LLM-Integrated Applications: Beyond Source Code
This paper introduces Hecate, the first tool that quantifies complexity across both prompt and code layers in LLM-integrated applications, using a Prompt-as-Specification formalism rooted in Hoare logic and evaluating 52 candidate metrics on open-source repositories to identify those that capture structural breadth beyond traditional code-only metrics.
Prompting Complexity: Shortest Prompts for Texts and Behaviors in LLMs
This paper formalizes the concept of prompting complexity, which measures the shortest plausible prompt required for a fixed language model to produce a target text or behavior, drawing an analogy to resource-bounded Kolmogorov complexity.
Why Prompt Optimization Works, and Why It Sometimes Doesn't: A Causal-Inspired Edit-Level Analysis
This paper conducts a causal-inspired analysis of automated prompt optimization across frameworks, LLMs, and tasks, identifying that specific edit types (e.g., complexity-increasing, meta-instructional) have systematic negative or positive effects depending on task characteristics, explaining generalization failures.
Measuring language complexity from hierarchical reuse of recurring patterns
Introduces the ladderpath index as a measure of language complexity based on algorithmic information theory, applied to 21 parallel corpora. The index is approximately invariant across languages, supporting the equi-complexity hypothesis, and reveals trade-offs between character inventory and corpus length.