nv78 commited on
Commit
7bb0095
Β·
verified Β·
1 Parent(s): 814b7bc

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +73 -0
README.md ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - code
5
+ - evaluation
6
+ - benchmark
7
+ - coding-agents
8
+ - reliability
9
+ - security
10
+ pipeline_tag: text-generation
11
+ ---
12
+
13
+ # CodeBench
14
+
15
+ **CodeBench** is an evaluation framework for measuring the *reliable* code
16
+ generation ability of AI coding agents, beyond inflated pass@k scores.
17
+
18
+ ## Key Findings
19
+
20
+ | Finding | Result |
21
+ |---|---|
22
+ | **H1 β€” Category error** | Standard pass@k treats test-case counts as independent sample counts, producing different scores for agents with identical true reliability |
23
+ | **H2 β€” Score inflation** | Current pass@5 β‰ˆ 0.96–0.97 collapses to reliability@5 β‰ˆ 0.00–0.12 when the category error is corrected |
24
+ | **H3 β€” Proxy validity** | Single-rollout proxy score has low Spearman correlation with reliability@k; β‰₯5 rollouts needed for reliable ranking |
25
+ | **H4 β€” Security gap** | Security-adjusted reliability@5 is meaningfully lower than reliability@5; leaderboard rank flips when security is accounted for |
26
+
27
+ ## Metrics
28
+
29
+ - **`reliability@k`** β€” correct operationalization of Chen et al. (2021) pass@k,
30
+ using per-(task, agent) rollout counts and binary execution success
31
+ - **`security_adjusted_reliability@k`** β€” reliability@k counting only rollouts
32
+ that are both correct *and* produce code with no insecure patterns (eval,
33
+ exec, os.system, yaml.load without Loader, pickle.loads)
34
+
35
+ ## Agents Evaluated
36
+
37
+ | Agent | Provider | Model |
38
+ |---|---|---|
39
+ | `anote-code` | Anthropic | claude-sonnet-4-6 (Anote system prompt) |
40
+ | `claude-code` | Anthropic | claude-sonnet-4-6 |
41
+ | `codex` | OpenAI | gpt-4o |
42
+
43
+ ## Figures
44
+
45
+ ### Figure 1 β€” Baseline: pass@1 vs current pass@5
46
+ ![fig1](figures/fig1_baseline.png)
47
+
48
+ ### Figure 2 β€” H1: Category-error proof
49
+ ![fig2](figures/fig2_h1_proof.png)
50
+
51
+ ### Figure 3 β€” H2: Score inflation magnitude
52
+ ![fig3](figures/fig3_h2_comparison.png)
53
+
54
+ ### Figure 4 β€” H3: Proxy vs reliability@k correlation
55
+ ![fig4](figures/fig4_h3_correlation.png)
56
+
57
+ ### Figure 5 β€” H4: Security-adjusted reliability leaderboard
58
+ ![fig5](figures/fig5_h4_security_leaderboard.png)
59
+
60
+ ## Datasets
61
+
62
+ - [nv78/codebench-tasks](https://huggingface.co/datasets/nv78/codebench-tasks) β€” benchmark task definitions
63
+ - [nv78/codebench-results](https://huggingface.co/datasets/nv78/codebench-results) β€” experiment results (h4_security + swebench_smoke)
64
+
65
+ ## Citation
66
+
67
+ ```
68
+ @misc{codebench2026,
69
+ title = {CodeBench: Measuring Reliable Code Generation},
70
+ author = {Anote AI},
71
+ year = {2026}
72
+ }
73
+ ```