Xingzhongfan commited on
Commit
d4fc574
·
1 Parent(s): d567a5d

Add Astro2Method benchmark data and dataset card

Browse files
Files changed (2) hide show
  1. README.md +193 -0
  2. benchmark.json +0 -0
README.md CHANGED
@@ -1,3 +1,196 @@
1
  ---
2
  license: cc-by-4.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: cc-by-4.0
3
+ language:
4
+ - en
5
+ task_categories:
6
+ - question-answering
7
+ tags:
8
+ - astronomy
9
+ - astrophysics
10
+ - machine-learning
11
+ - method-selection
12
+ - benchmark
13
+ size_categories:
14
+ - n<1K
15
+ configs:
16
+ - config_name: default
17
+ data_files:
18
+ - split: test
19
+ path: benchmark.json
20
  ---
21
+
22
+ # Astro2Method
23
+
24
+ **A benchmark for machine learning method selection in astronomy.**
25
+
26
+ Astro2Method contains 500 expert-reviewed binary-choice questions from 346 astronomy papers. Each question describes an astronomical problem and presents two candidate machine learning methods, architectures, variants, or pipelines. The task is to select the method supported by the comparison in the source paper.
27
+
28
+ > **Evaluation notice:** In this release, every record has `correct_option: "A"`. This is the original storage order, not an evaluation-ready answer distribution. **Randomize the option order and update the answer labels before evaluation.** Always predicting A on the unmodified file scores 100% and does not measure method-selection ability. A reproducible randomization example is provided below.
29
+
30
+ ## Dataset at a glance
31
+
32
+ | Property | Value |
33
+ | --- | --- |
34
+ | Questions | 500 |
35
+ | Unique source papers | 346 |
36
+ | Easy questions | 376 |
37
+ | Hard questions | 124 |
38
+ | Source-paper publication years | 2024–2026 |
39
+ | Language | English |
40
+ | Format | UTF-8 JSON array |
41
+ | Evaluation split | `test` (all 500 questions) |
42
+ | License | CC BY 4.0 |
43
+
44
+ The file is a single evaluation collection; no separate training or validation set is provided. The Hugging Face dataset configuration exposes it as `test`.
45
+
46
+ ## Files
47
+
48
+ - `benchmark.json`: the original 500 questions, two options, answer labels, difficulty labels, and source-paper identifiers.
49
+ - `README.md`: this dataset card and usage instructions.
50
+
51
+ This release contains the benchmark data. Source-paper PDFs, manuscript archives, historical retrieval corpora, masked pipeline descriptions, model predictions, and experiment code are not included.
52
+
53
+ ## Task and construction
54
+
55
+ The accompanying manuscript is titled *Astro2Method: Benchmarking LLMs on Machine Learning Method Selection in Astronomy*.
56
+
57
+ The construction process screened 1,028 astronomy papers retrieved through NASA's Astrophysics Data System (ADS), focusing on neural-network-related studies in major astronomy journals. Comparisons were extracted with LLM assistance and reviewed by human experts. A source paper can contribute more than one question.
58
+
59
+ Candidate comparisons were selected for clear performance differences and supporting explanations in the source papers. Expert review covered the scientific setup, comparison evidence, question wording, answer, and difficulty label.
60
+
61
+ - **Easy:** the source paper provides a direct and complete explanation of the performance difference.
62
+ - **Hard:** the source paper provides a partial explanation of the performance difference.
63
+
64
+ Comparisons without sufficient explanatory support were excluded. Difficulty describes the completeness of the source authors' explanation; it is not assigned from model accuracy. The correct answer is specific to the source study's setting and does not establish that one method is universally superior.
65
+
66
+ ## Schema
67
+
68
+ Each record has seven string fields:
69
+
70
+ | Field | Description |
71
+ | --- | --- |
72
+ | `question_id` | Unique question identifier, such as `Q0001`. |
73
+ | `paper_id` | NASA ADS bibliographic code identifying the source paper. |
74
+ | `question` | Astronomical problem or method-selection question. |
75
+ | `option_a` | First candidate method or pipeline. |
76
+ | `option_b` | Second candidate method or pipeline. |
77
+ | `correct_option` | Correct option label. All values are `A` in the original file; update after shuffling. |
78
+ | `difficulty` | `easy` or `hard`. |
79
+
80
+ Example, copied from the release:
81
+
82
+ ```json
83
+ {
84
+ "question_id": "Q0001",
85
+ "paper_id": "2024MNRAS.535.1844L",
86
+ "question": "How can one obtain accurate photometric redshift estimates for high-redshift galaxies using only flux measurements from different observational filters as input?",
87
+ "option_a": "LSTM",
88
+ "option_b": "MLP",
89
+ "correct_option": "A",
90
+ "difficulty": "hard"
91
+ }
92
+ ```
93
+
94
+ ## Load the data
95
+
96
+ With Python's standard library, from the repository root:
97
+
98
+ ```python
99
+ import json
100
+ from pathlib import Path
101
+
102
+ records = json.loads(Path("benchmark.json").read_text(encoding="utf-8"))
103
+ print(len(records)) # 500
104
+ ```
105
+
106
+ With Hugging Face Datasets (`pip install datasets`):
107
+
108
+ ```python
109
+ from datasets import load_dataset
110
+
111
+ dataset = load_dataset("Xingzhongfan/Astro2Method", split="test")
112
+ print(dataset[0])
113
+ ```
114
+
115
+ If the repository is private, authenticate with a Hugging Face account that has access before downloading.
116
+
117
+ ## Prepare randomized evaluation inputs
118
+
119
+ The following example independently swaps the two options with probability 0.5, updates each answer label, and leaves the original data unchanged. Reuse the generated order across all models being compared. The seed below is an example, not the original manuscript's evaluation permutation; independent swaps need not yield an exactly balanced A/B distribution.
120
+
121
+ ```python
122
+ import json
123
+ import random
124
+ from pathlib import Path
125
+
126
+ records = json.loads(Path("benchmark.json").read_text(encoding="utf-8"))
127
+ rng = random.Random(42)
128
+ evaluation_records = []
129
+
130
+ for original in records:
131
+ item = original.copy()
132
+ if rng.random() < 0.5:
133
+ item["option_a"], item["option_b"] = item["option_b"], item["option_a"]
134
+ item["correct_option"] = {"A": "B", "B": "A"}[item["correct_option"]]
135
+ evaluation_records.append(item)
136
+
137
+ # Keep labels and provenance separate from model inputs.
138
+ prompts = {
139
+ item["question_id"]: (
140
+ "Choose the better machine learning method for the astronomical "
141
+ "problem. Return A or B, with a brief justification.\n\n"
142
+ f"Question: {item['question']}\n"
143
+ f"A. {item['option_a']}\n"
144
+ f"B. {item['option_b']}"
145
+ )
146
+ for item in evaluation_records
147
+ }
148
+ answer_key = {
149
+ item["question_id"]: item["correct_option"]
150
+ for item in evaluation_records
151
+ }
152
+ ```
153
+
154
+ Do not include `correct_option` in model inputs. For direct prompting, provide only the question and randomized options; keep `paper_id` and `difficulty` as evaluation metadata.
155
+
156
+ ## Evaluation
157
+
158
+ Report **Overall**, **Easy**, and **Hard** accuracy as the number of correct predictions divided by the number of questions in the corresponding set. Uniform random guessing has expected accuracy 50%. Predefine an answer-parsing rule; count missing or invalid answers as incorrect rather than dropping them.
159
+
160
+ Given `evaluation_records` from the previous example and a mapping `predictions` from question IDs to parsed labels (`"A"` or `"B"`):
161
+
162
+ ```python
163
+ def accuracy(rows, predictions):
164
+ correct = sum(
165
+ predictions.get(row["question_id"]) == row["correct_option"]
166
+ for row in rows
167
+ )
168
+ return correct / len(rows)
169
+
170
+ for name in ("overall", "easy", "hard"):
171
+ subset = [
172
+ row for row in evaluation_records
173
+ if name == "overall" or row["difficulty"] == name
174
+ ]
175
+ print(f"{name}: {accuracy(subset, predictions):.2%} (n={len(subset)})")
176
+ ```
177
+
178
+ Record the dataset revision, random seed and option mapping, model version, prompt, decoding parameters, answer-parsing rule, and any retrieval or tool access. These usage examples illustrate evaluation; they are not the manuscript's complete experimental harness.
179
+
180
+ ## Intended use and limitations
181
+
182
+ - Intended for evaluating language models on astronomy-specific ML method selection. Do not train on these questions when reporting held-out benchmark performance.
183
+ - Coverage is limited by the source-paper search and the requirement for explicit method comparisons and explanations. The dataset is not representative of every astronomy problem or ML approach.
184
+ - Source papers are publicly available, so prior exposure in model training cannot be ruled out. Web search or retrieval may directly reveal the source comparison; report such access separately from closed-book evaluation.
185
+ - Multiple questions can come from the same paper. If creating new splits, group by `paper_id` to avoid placing questions from the same source in different splits.
186
+ - This compact release does not contain evidence passages, answer rationales, or full experimental context. Consult the source papers when interpreting individual comparisons.
187
+
188
+ ## License and attribution
189
+
190
+ The benchmark is distributed under [Creative Commons Attribution 4.0 International (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/), as specified in this repository's dataset metadata. Attribute Astro2Method, link to this repository, and indicate any changes when redistributing the data. Source publications retain their respective rights.
191
+
192
+ When using the dataset, reference [Xingzhongfan/Astro2Method](https://huggingface.co/datasets/Xingzhongfan/Astro2Method) and record the dataset revision used. Formal paper citation details are not included in this release.
193
+
194
+ ## Feedback
195
+
196
+ Report suspected errors through the repository's [Community discussions](https://huggingface.co/datasets/Xingzhongfan/Astro2Method/discussions), including the `question_id`, `paper_id`, and supporting evidence.
benchmark.json ADDED
The diff for this file is too large to render. See raw diff