When Is Program Structure Required? Certificate-Grounded Calibration of Program-Induction Difficulty
Organizations: Independent Researcher, China
Abstract
A program-induction benchmark is informative when its examples require the structure it aims to test. Yet a two-rule generator can produce demonstrations that a single rule also explains. We introduce certificate-grounded calibration, which constructs matched tasks with minimum solution lengths of one and two in a bounded string-replacement language. Complete one-rule enumeration and an executable two-rule witness certify the change before model inference. We evaluate 120 reference families with three to six shared examples, using 1,440 new model trajectories and 480 saved trajectories. Across Qwen3-8B and Olmo-3-7B-Think, displayed-task completion is 23.53-45.83 percentage points lower on certified separation tasks, while success on a wholly unshown witness pair is 8.40-13.45 points higher. These witness gains accompany lower agreement on uniformly sampled strings and 1.93-5.78% agreement on inputs that activate both reference rules. Recertification also reveals that a single unchanged example can exclude a shortcut and determine whether two rules are required. Together, these results show how the evidence supplied by examples shapes both the required solution and the programs models produce. The construction provides an executable testbed for comparing program search, final-answer delivery, and behavior on new inputs under verified task requirements.
Figures & tables
| Model | Target | Control | Separation | (pp) | Adjusted interval |
|---|---|---|---|---|---|
| Qwen | Visible six | 67/120 | 12/120 | -45.83 | [-57.50, -34.17] |
| Common nine | 0/120 | 9/120 | +7.50 | [+1.67, +14.17] | |
| Olmo | Visible six | 52/120 | 15/120 | -30.83 | [-44.17, -17.50] |
| Common nine | 0/120 | 11/120 | +9.17 | [+3.33, +16.67] | |
| Phi † | Visible six | 5/120 | 2/120 | -2.50 | [-8.33, +3.33] |
| Common nine | 0/120 | 1/120 | +0.83 | [+0.00, +3.33] |
| Model | Control | Separation | (pp) | Adjusted interval |
|---|---|---|---|---|
| Qwen3-8B | 0/120 | 11/120 | +9.17 | [+3.33, +15.83] |
| Olmo-3-7B-Think | 0/120 | 14/120 | +11.67 | [+5.00, +19.17] |
| Phi-4-mini † | 1/120 | 1/120 | +0.00 | [-2.50, +3.33] |
| Model | C/S | Displayed [CI] | Unshown pair [CI] | ||
|---|---|---|---|---|---|
| Qwen | 3 | 119 | 59/15 | ||
| 4 | 119 | 61/15 | |||
| 5 | 120 | 67/12 | |||
| 6 | 120 | 68/19 | |||
| Olmo | 3 | 119 | 53/14 | ||
| 4 | 119 | 47/19 |
| Model | UNIFORM [CI] | ACTIVE [CI] | ACTIVE S (%) | |
|---|---|---|---|---|
| Qwen | 3 | 5.78 | ||
| 4 | 4.33 | |||
| 5 | 2.76 | |||
| 6 | 5.00 | |||
| Olmo | 3 | 5.28 | ||
| 4 | 4.94 |
| Condition | Visible six | Common nine | Unshown | Timeouts |
|---|---|---|---|---|
| Control | 120/120 | 0/120 | 0/120 | 0 |
| Separation | 95/120 | 86/120 | 87/120 | 25 |
Appendix figures & tables20 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Condition | Native | Final | Candidate | Parsed | CAP | EOS |
|---|---|---|---|---|---|---|---|
| Qwen | Control | 67 | 67 | 67 | 75 | 43 | 77 |
| Separation | 12 | 12 | 13 | 19 | 101 | 19 | |
| Olmo | Control | 3 | 52 | 57 | 57 | 63 | 57 |
| Separation | 1 | 15 | 17 | 21 | 99 | 21 | |
| Phi † | Control | 6 | 5 | 7 | 13 | 97 | 23 |
| Separation | 3 | 2 | 3 | 8 | 100 | 20 |
| Model | Target | Gain | Loss | |
|---|---|---|---|---|
| Qwen | Visible six | 0 | 55 | 3.33e-16 |
| Qwen | Common nine | 9 | 0 | 0.02344 |
| Olmo | Visible six | 5 | 42 | 1.47e-07 |
| Olmo | Common nine | 11 | 0 | 0.00586 |
| Phi † | Visible six | 2 | 5 | 1.00000 |
| Phi † | Common nine | 1 | 0 | 1.00000 |
| Model | Audit | Condition | Success | Reference | Other 2 | Other length |
|---|---|---|---|---|---|---|
| Qwen | Nine | Control | 0 | 0 | 0 | 0 |
| Qwen | Nine | Separation | 9 | 0 | 9 | 0 |
| Qwen | Control | 0 | 0 | 0 | 0 | |
| Qwen | Separation | 11 | 0 | 9 | 2 | |
| Olmo | Nine | Control | 0 | 0 | 0 | 0 |
| Olmo | Nine | Separation | 11 | 0 | 10 | 1 |
| Model | Target | C | S | S C (pp) | Marginal 95% interval | ||
|---|---|---|---|---|---|---|---|
| Qwen | 1 | Visible six | 91 | 43 | 5 | -41.76 | [-51.65, -31.87] |
| Qwen | 1 | Common nine | 91 | 0 | 5 | +5.49 | [+1.10, +10.99] |
| Qwen | 1 | 91 | 0 | 7 | +7.69 | [+3.30, +13.19] | |
| Qwen | Visible six | 29 | 24 | 7 | -58.62 | [-75.86, -41.38] | |
| Qwen | Common nine | 29 | 0 | 4 | +13.79 | [+3.45, +27.59] | |
| Qwen | 29 | 0 | 4 | +13.79 | [+3.45, +27.59] |
| Model | Mean | Median | Range | Zero difference |
|---|---|---|---|---|
| Qwen | -0.0750 | 0.0 | [-3, 2] | 46/120 |
| Olmo | -0.0750 | 0.0 | [-3, 2] | 46/120 |
| Phi † | -0.0083 | 0.0 | [-3, 3] | 55/120 |
| Model | Token difference bin | Visible (pp) | Marginal interval | |
|---|---|---|---|---|
| Qwen | delta<=-2 | 5 | -80.00 | [-100.00, -40.00] |
| Qwen | delta=-1 | 37 | -35.14 | [-51.35, -21.62] |
| Qwen | delta=0 | 46 | -45.65 | [-60.87, -30.43] |
| Qwen | delta=1 | 24 | -54.17 | [-75.00, -33.33] |
| Qwen | delta>=2 | 8 | -50.00 | [-87.50, -12.50] |
| Olmo | delta<=-2 | 5 | -40.00 | [-80.00, +0.00] |
| Model | Stratum | C (%) | S (%) | Difference (pp) | Marginal interval |
|---|---|---|---|---|---|
| Qwen | Uniform | 48.10 | 11.98 | -36.12 | [-43.93, -28.36] |
| Qwen | Active | 0.60 | 2.76 | +2.16 | [-0.29, +5.34] |
| Olmo | Uniform | 34.30 | 12.58 | -21.72 | [-29.53, -13.70] |
| Olmo | Active | 0.42 | 2.01 | +1.59 | [-0.31, +4.22] |
| Phi † | Uniform | 6.46 | 3.23 | -3.23 | [-7.84, +1.22] |
| Phi † | Active | 0.60 | 0.00 | -0.60 | [-1.80, +0.00] |
| Input: Visible specification ; public language; CPU limit | |
| 1 | Start timer before candidate construction. |
|---|---|
| 2 | for one-rule candidate in the complete, fixed order: |
| 3 | Record elapsed-time/candidate checkpoints; stop if limit reached. |
| 4 | if , return . |
| 5 | end for |
| 6 | for first rule in the fixed restricted pool: |
| CPU limit (s) | Condition | Visible six | Common nine | Unshown |
|---|---|---|---|---|
| 0.1 | Control | 120/120 | 0/120 | 0/120 |
| 0.1 | Separation | 1/120 | 1/120 | 1/120 |
| 1 | Control | 120/120 | 0/120 | 0/120 |
| 1 | Separation | 32/120 | 28/120 | 29/120 |
| 10 | Control | 120/120 | 0/120 | 0/120 |
| 10 | Separation | 95/120 | 86/120 | 87/120 |
| Candidate limit | Condition | Visible six | Common nine | Unshown |
|---|---|---|---|---|
| 1,000 | Control | 40/120 | 0/120 | 0/120 |
| 1,000 | Separation | 0/120 | 0/120 | 0/120 |
| 10,000 | Control | 120/120 | 0/120 | 0/120 |
| 10,000 | Separation | 0/120 | 0/120 | 0/120 |
| 100,000 | Control | 120/120 | 0/120 | 0/120 |
| 100,000 | Separation | 10/120 | 10/120 | 10/120 |
| Model | Tokens | C parsed | C final | C cand. | S parsed | S final | S cand. |
|---|---|---|---|---|---|---|---|
| Qwen | 2,048 | 0 | 0 | 10 | 0 | 0 | 1 |
| Qwen | 4,096 | 34 | 31 | 43 | 3 | 2 | 7 |
| Qwen | 6,144 | 61 | 53 | 61 | 12 | 10 | 10 |
| Qwen | 8,192 | 75 | 67 | 67 | 19 | 12 | 13 |
| Olmo | 2,048 | 0 | 0 | 2 | 0 | 0 | 0 |
| Olmo | 4,096 | 9 | 6 | 24 | 1 | 1 | 4 |
| Common base | Displayed | One-to-two | One-to-one | Invalid | All families |
| 3 | 4 | 119 | 1 | 0 | 120 |
| 4 | 5 | 119 | 1 | 0 | 120 |
| 5 | 6 | 120 | 0 | 0 | 120 |
| 6 | 7 | 120 | 0 | 0 | 120 |
| Reference length | Tasks | Minimum 1 | Minimum 2 | Remaining bound |
|---|---|---|---|---|
| 2 | 246 | 20 | 226 | — |
| 3 | 253 | 3 | 0 | 250 tasks: |
| 4 | 253 | 0 | 0 | 253 tasks: |
| 5 | 256 | 0 | 0 | 256 tasks: |
| Input | Output |
|---|---|
| kybvd | kybbvid |
| uwah | uwah |
| gi | gi |
| ywh | ywh |
| vve | bvibvie |
| Base | Primary N | C/S | Displayed [CI] | Unshown pair [CI] | All-legal displayed [CI] |
|---|---|---|---|---|---|
| 3 | 119 | 59/15 | |||
| 4 | 119 | 61/15 | |||
| 5 | 120 | 67/12 | |||
| 6 | 120 | 68/19 |
| Base | Primary N | C/S | Displayed [CI] | Unshown pair [CI] | All-legal displayed [CI] |
|---|---|---|---|---|---|
| 3 | 119 | 53/14 | |||
| 4 | 119 | 47/19 | |||
| 5 | 120 | 52/15 | |||
| 6 | 120 | 54/13 |
| Model | New base count | [adjusted CI] |
|---|---|---|
| Qwen3-8B | 3 | |
| Qwen3-8B | 4 | |
| Qwen3-8B | 6 | |
| Olmo-3-7B-Think | 3 | |
| Olmo-3-7B-Think | 4 | |
| Olmo-3-7B-Think | 6 |
| Endpoint | Base3 | Base4 | Base5 | Base6 |
|---|---|---|---|---|
| Displayed specification | -37.0 [-46.2,-27.7] | -38.7 [-47.9,-28.6] | -45.8 [-55.0,-36.7] | -40.8 [-50.0,-31.7] |
| One-rule delivered | -26.9 [-35.3,-19.3] | -29.4 [-37.8,-21.8] | -37.5 [-46.7,-29.2] | -44.2 [-53.3,-35.0] |
| Common-nine | +10.1 [5.0,16.0] | +8.4 [4.2,13.4] | +7.5 [3.3,12.5] | +10.8 [5.8,16.7] |
| Unshown pair | +13.4 [7.6,20.2] | +10.9 [5.9,16.8] | +9.2 [4.2,15.0] | +12.5 [6.7,18.3] |
| Original three unshown | +12.6 [6.7,18.5] | +10.1 [5.0,16.0] | +8.3 [4.2,13.3] | +10.8 [5.8,16.7] |
| UNIFORM | -23.2 [-30.8,-15.5] | -27.3 [-34.6,-20.0] | -36.1 [-43.9,-28.3] | -31.0 [-38.9,-23.0] |
| Endpoint | Base3 | Base4 | Base5 | Base6 |
|---|---|---|---|---|
| Displayed specification | -32.8 [-42.9,-22.7] | -23.5 [-34.5,-12.6] | -30.8 [-40.8,-20.8] | -34.2 [-43.3,-25.0] |
| One-rule delivered | -21.0 [-28.6,-14.3] | -24.4 [-31.9,-16.8] | -27.5 [-35.8,-20.0] | -33.3 [-41.7,-25.0] |
| Common-nine | +6.7 [2.5,11.8] | +9.2 [4.2,14.3] | +9.2 [4.2,14.2] | +8.3 [3.3,13.3] |
| Unshown pair | +8.4 [3.4,13.4] | +11.8 [5.9,17.6] | +11.7 [6.7,17.5] | +9.2 [4.2,15.0] |
| Original three unshown | +8.4 [3.4,13.4] | +11.8 [5.9,17.6] | +10.0 [5.0,15.8] | +8.3 [3.3,13.3] |
| UNIFORM | -23.5 [-31.9,-15.0] | -18.5 [-27.3,-9.7] | -21.7 [-29.6,-13.8] | -27.9 [-35.5,-20.4] |
| Model | Base | Displayed C/S | Unshown pair C/S |
|---|---|---|---|
| Qwen3-8B | 3 | 1/1 | 0/1 |
| Qwen3-8B | 4 | 1/0 | 1/0 |
| Olmo-3-7B-Think | 3 | 1/0 | 1/1 |
| Olmo-3-7B-Think | 4 | 1/1 | 1/1 |
Program Synthesis
Program synthesis automatically constructs executable programs from examples, specifications, demonstrations, or natural-language descriptions.
See all 208 papers