JinNian0072 commited on
Commit
a2c5bb6
·
verified ·
1 Parent(s): 5a43590

Synchronize main evaluation program pairs

Browse files
README.md CHANGED
@@ -27,58 +27,46 @@ size_categories:
27
 
28
  # Program Pair Data
29
 
30
- This revision contains exactly 900 C++, 900 Python and 900 Java pairs, with no
31
- training/validation splits and no pre-expanded prompt datasets. Superseded
32
- training files, evaluation prompts and earlier base snapshots are not active
33
- files in this revision. Use an explicit language configuration; each has one
34
- `test` split. The previous mixed-schema `benchmark` configuration is retired.
35
 
36
- `slow_code` and `fast_code` are the exact model-facing, formatted,
37
- comment-cleaned implementations. They include actual program text, not hashes
38
- or an index alone. `pair_id` and `problem_id` identify the comparison and task.
39
- Python/Java additionally retain `measured_slow_code` and `measured_fast_code`
40
- so that presentation changes do not overwrite the original measured program.
41
- Variable/method identifiers are not globally renamed. A small audited set of
42
- source-revealing Java class names was neutralized in the display view.
43
 
44
- ## Label and workload scope
 
45
 
46
- - C++ inherits the published PIE aggregate performance supervision. Four
47
- quarantined comparisons were replaced with verified candidates from the
48
- existing PIE pool. The inherited aggregate is not claimed to be a newly
49
- computed equal-case geometric mean. The workload describes the available
50
- published input pool; its exact historical timing subset is not recovered.
51
- - Python uses CPU instruction counts; Java uses warmed execution elapsed
52
- time. For these languages `speedup` is the equal-weight geometric mean of
53
- the per-input slow/fast representative measurement ratios over the frozen
54
- common input set, not a ratio of arithmetic means over heterogeneous inputs.
55
- - Java includes both sides' whole-workload, across-JVM RSD in percent; both
56
- are below 5% in this release. This is a stability filter, not a confidence
57
- interval or a guarantee about every individual input.
58
- - Each language contains 300 comparisons in each speedup range [2,4), [4,8),
59
- and [8,infinity). Python/Java have at most five pairs per task; inherited
60
- C++ has a maximum of six. These policies are not retroactively equated.
61
- - `workload.description` and `workload.input_format` contain input context,
62
- not runtime labels. Python/Java text uses the completed semantic review of
63
- actual frozen common inputs. Workload metadata did not construct labels.
64
 
65
- The `reproduction` entries in Python/Java preserve relative identifiers for
66
- the separate input and per-run measurement archive maintained with the
67
- release. Those large archive contents are **not embedded in these three
68
- JSONL files or uploaded by this base-dataset update**. A path/hash is not an
69
- actual measurement or recovered stdin. `performance_label_scope` distinguishes
70
- measurements of original programs from display-equivalence validation.
 
 
 
 
 
 
 
 
 
71
 
72
  ## Loading
73
 
74
  ```python
75
  from datasets import load_dataset
 
76
  data = load_dataset("JinNian0072/program-pair-data", "python", split="test")
77
  assert len(data) == 900
78
  print(data[0]["slow_code"], data[0]["fast_code"])
79
  ```
80
 
81
- Use `cpp` or `java` for the other languages. See `RELEASE.json` for file hashes
82
- and the exact base revision. No model answers, API keys or private machine
83
- paths are part of this dataset. Upstream data retain their respective terms;
84
- this card does not grant a new license to upstream contest code or data.
 
27
 
28
  # Program Pair Data
29
 
30
+ This dataset contains 2,700 main-evaluation program pairs. Each language has
31
+ one `test` split with 900 pairs.
 
 
 
32
 
33
+ | Configuration | Pairs | Problems | Maximum pairs per problem |
34
+ | --- | ---: | ---: | ---: |
35
+ | `cpp` | 900 | 900 | 1 |
36
+ | `python` | 900 | 221 | 5 |
37
+ | `java` | 900 | 320 | 5 |
 
 
38
 
39
+ Each language contains 300 pairs in each slow-to-fast execution-cost ratio
40
+ range: [2, 4), [4, 8), and [8, infinity).
41
 
42
+ ## Fields
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
 
44
+ - `language`, `problem_id`, `pair_id`: language, task and comparison identifiers.
45
+ - `slow_code`, `fast_code`: exact model-facing program text, ordered by the saved efficiency labels.
46
+ - `slow_code_id`, `fast_code_id`: SHA-256 hashes of the displayed source text.
47
+ - `measured_slow_code_id`, `measured_fast_code_id`: SHA-256 identifiers of the measured source programs, which can differ from the displayed source.
48
+ - `slow_id`, `fast_id`: measured implementation identifiers.
49
+ - `speedup`: the saved slow-to-fast execution-cost ratio.
50
+ - `measurement_metric`: PIE released gem5 runtime for C++, CPU instruction count for Python, or elapsed execution time for Java.
51
+ - `stratum`, `sampling_key`: ratio stratum and deterministic sampling key.
52
+ - `slow_time`, `fast_time`: released aggregate costs, present for C++.
53
+
54
+ The Python and Java ratios aggregate per-input measurement ratios; they are
55
+ not reconstructed as ratios of aggregate times. Test inputs, expected
56
+ outputs, per-run measurements and original measured-source text are not
57
+ included. This dataset provides the program pairs and saved efficiency
58
+ labels used in the main evaluation.
59
 
60
  ## Loading
61
 
62
  ```python
63
  from datasets import load_dataset
64
+
65
  data = load_dataset("JinNian0072/program-pair-data", "python", split="test")
66
  assert len(data) == 900
67
  print(data[0]["slow_code"], data[0]["fast_code"])
68
  ```
69
 
70
+ Use `cpp` or `java` for the other languages. The JSONL files are uncompressed.
71
+ `RELEASE.json` contains record counts and file checksums. Upstream code and
72
+ data retain their respective terms.
 
RELEASE.json CHANGED
@@ -1 +1,26 @@
1
- {"files": {"final_benchmark_uniform/cpp_seed42_sanitized.jsonl": {"bytes": 7198529, "rows": 900, "sha256": "8958196202a359271d0b64a2d57da72a4d4c294c8c526dca1b00d0c86aadcf98", "source_sha256": "710478a6212e62fefe0b9523b4949f47addccdc48311f165be7a1858986b0863", "strata": {"2-4": 300, "4-8": 300, "8+": 300}}, "final_benchmark_uniform/java_seed42_sanitized_process.jsonl": {"bytes": 16501806, "rows": 900, "sha256": "8153cd50cb8b160dadf47c95d7ad935b53a3765c6b9886a0dbb982b670fa137a", "source_sha256": "649a9a91ba5812b50c97b9d4379caa5e4bd8278ae40ee62cf1f1a38f2a0e568c", "strata": {"2-4": 300, "4-8": 300, "8+": 300}}, "final_benchmark_uniform/python_seed42_sanitized.jsonl": {"bytes": 6022941, "rows": 900, "sha256": "076f4608822e53876663d697d0cad15cfefa9673502433487e7761cde6092e2b", "source_sha256": "a4e852d2a7b54f846bf27ca4256e8f7dd3a04dd7f06d06f1d1466fef9d030755", "strata": {"2-4": 300, "4-8": 300, "8+": 300}}}, "model_answers_included": false, "pairs_per_language": 900, "release_id": "measured-core-20261022-cpp4-java-rsd5", "total_pairs": 2700, "training_and_validation_included": false, "workload_review_sha256": "30d6d0e0a8503397010ccba5de40dffd43755567ba1cd077d11d85238071aa4d"}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "total_pairs": 2700,
3
+ "pairs_per_language": 900,
4
+ "problems_per_language": {
5
+ "cpp": 900,
6
+ "python": 221,
7
+ "java": 320
8
+ },
9
+ "files": {
10
+ "final_benchmark_uniform/cpp_seed42_sanitized.jsonl": {
11
+ "bytes": 4071844,
12
+ "rows": 900,
13
+ "sha256": "fc7a12fda6a8901695344cbfab7adf1b42047d9a85eeebc08a98a65931d11247"
14
+ },
15
+ "final_benchmark_uniform/python_seed42_sanitized.jsonl": {
16
+ "bytes": 1669655,
17
+ "rows": 900,
18
+ "sha256": "7db637509b7b3ac9a443e71fb31964710b4077109afadee61934d4e3db5d5900"
19
+ },
20
+ "final_benchmark_uniform/java_seed42_sanitized_process.jsonl": {
21
+ "bytes": 6622661,
22
+ "rows": 900,
23
+ "sha256": "2729c673fd3ab39a39a35f8e6e1459a8db40f62ffb3b4f9c70a55ffa5ce0cb94"
24
+ }
25
+ }
26
+ }
final_benchmark_uniform/cpp_seed42_sanitized.jsonl CHANGED
The diff for this file is too large to render. See raw diff
 
final_benchmark_uniform/java_seed42_sanitized_process.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8153cd50cb8b160dadf47c95d7ad935b53a3765c6b9886a0dbb982b670fa137a
3
- size 16501806
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2729c673fd3ab39a39a35f8e6e1459a8db40f62ffb3b4f9c70a55ffa5ce0cb94
3
+ size 6622661
final_benchmark_uniform/python_seed42_sanitized.jsonl CHANGED
The diff for this file is too large to render. See raw diff