# The Complexity Kink: LLM Rubric Instruments for Causal Inference on Code Generation Reliability

*Michael Hernandez, Tian Zhao*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/138945) · [OpenReview](https://openreview.net/forum?id=ucjCOJf47M) · [alphaXiv](https://www.alphaxiv.org/abs/2609.19616) · [Open on the map](../papers.html#p138945)

Category: [LLM Agents, Evals & Benchmarks](../pcat/17.md) › [Long-Horizon Coding and Proof Benchmarks](../pgroup/99.md) · Type: benchmark or dataset · Keywords: code generation, benchmark, complexity measurement, reliability evaluation, LLM assessment

Areas: [Code & Coding Agents](../areas/codegen.md) › Code Verification › Coding agent benchmarks; [Evaluation & Benchmarks](../areas/evaluation.md) › Language Model and Agent Benchmarks › Code Generation Benchmarks; [Evaluation Methodology & Auditing](../areas/eval-methodology.md) › Language Model Benchmarking › Evaluation benchmarks; [Benchmarks for LLMs & Agents](../areas/bench-llm-agents.md) › Cross-Domain Agent Evaluation › LLM Benchmarks

## Summary
The Complexity Kink benchmark introduces a rubric-based, prompt-side measurement of code generation complexity to reliably detect sharp reliability drops in LLMs.

## Explained to a 5-year-old
We made a test that checks how hard a programming problem is before a robot tries to solve it. The test looks at things like loops, choices, and data storage. When the robot fails, we can see if it’s because the problem was too hard, not because it wrote bad code. This helps us know when robots start getting confused. It also helps people build better tools that don’t hide mistakes.

## Explained to a 5-year-old, longer
We want to know how hard a programming task really is before a computer program tries to do it. Usually, when a program fails, we look at the code it wrote to guess the difficulty. But that can be wrong because a failing program often writes short or broken code that looks easy. So we created a new test that measures the difficulty of the problem itself, not the code. The test looks at many parts of the problem, like if there are many choices, loops, or special cases. We used a set of many programming problems from a big collection of examples. We asked several judges to rate each problem using a simple checklist. The judges agreed with each other very well, which means the test is reliable. Then we asked many different computer programs to solve these problems and saw how often they succeeded. We found that as the problem gets harder, the success rate drops, sometimes sharply. This helps us understand when programs start to struggle and gives us a better way to compare them. It also helps developers make tools that catch real problems instead of hiding them.

## For a technical reader
The paper introduces a benchmark that evaluates code generation models by measuring the intrinsic complexity of programming tasks before any model generates code. It uses a six-dimensional rubric to score prompts on branching, iteration, state, data structures, edge cases, and algorithmic composition, ensuring that difficulty is independent of model output. A panel of LLM judges provides reliable ratings, and the benchmark evaluates a diverse set of models using unit tests and statistical techniques like instrumental variables and threshold regression. This approach reveals whether model reliability degrades smoothly or exhibits a sharp threshold as task complexity increases. The resulting framework gives engineers a more trustworthy way to compare models, diagnose failure points, and design evaluations that do not mask critical errors.

## Problem
Evaluating code generation models often conflates task difficulty with model output complexity, because failures produce low-complexity code that masks true reliability limits. This makes it hard to tell whether model performance degrades smoothly or exhibits a sharp threshold at higher complexity.

## Method
The approach builds a 5,000-prompt Python benchmark from existing code datasets, scoring each prompt with a six-dimensional rubric that captures structural complexity before generation. It then evaluates a panel of models with unit-test execution and uses instrumental variables and threshold regression to estimate the relationship between prompt-side complexity and model pass rates.

## Results
The LLM judges achieved high inter-rater reliability (ICC = 0.865), and the model panel evaluation revealed a relationship between prompt-side complexity and pass rates, identified via instrumental variables and threshold regression.

## Contributions
The paper provides a rubric-based, prompt-side benchmark that separates intended solution complexity from generated output, enabling reliable detection of sharp reliability thresholds in code generation models. It also demonstrates the use of instrumental variables and threshold regression to analyze complexity-reliability relationships.

## Practical relevance
It offers a more reliable evaluation framework for comparing code generation models and designing safer deployments by exposing true complexity-related failures.

## Research questions this paper is counted under

- [How can we design evaluations that reliably measure genuine model performance, not artifacts or shortcuts?](../q/631.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/138945)
