xhb120633 commited on
Commit
b7d8465
·
verified ·
1 Parent(s): 791c7ce

docs: expand source-safe public dataset documentation

Browse files
Files changed (1) hide show
  1. dataset_card.md +185 -85
dataset_card.md CHANGED
@@ -1,85 +1,185 @@
1
- # MindRL Challenge Public Dataset
2
-
3
- This repository contains the public training split for a human reward-learning
4
- benchmark. Participants repeatedly chose among four actions and received scalar
5
- reward feedback. Rewards were generated by latent, slowly changing payoff
6
- schedules, so good performance requires learning from recent outcomes while
7
- remaining responsive to change.
8
-
9
- The public release is designed for developing MindRL agents that predict human
10
- choices from trial history. It intentionally describes the task structure without
11
- identifying the original study or raw data source.
12
-
13
- ## Task
14
-
15
- - Task family: 4-arm drifting bandit / restless reward-learning.
16
- - Action space: integers `0`, `1`, `2`, `3`.
17
- - Observation history: previous choices, received rewards, response times, and
18
- anonymized episode metadata.
19
- - Prediction target: the human participant's next action.
20
- - Episode unit: each trajectory is one anonymized participant episode. The
21
- anonymized `metadata.block_id` can be used to identify that two released
22
- trajectory segments came from the same underlying episode, but it is not the
23
- original block number.
24
-
25
- ## Splits
26
-
27
- - `public_train.jsonl`: agent-facing public training trajectories. For each
28
- released episode, the first portion of valid trials is released.
29
- - `public_train_reward_schedules.jsonl`: full option payoff schedules for the
30
- released public episodes. This sidecar supports organizer-side generative
31
- simulations and task reconstruction; it is not needed for standard
32
- one-step-ahead choice prediction.
33
-
34
- Hidden evaluation splits are stored separately in the private MindRL Challenge
35
- dataset repository and are not part of this public release.
36
-
37
- ## JSONL Format
38
-
39
- Each line is one trajectory:
40
-
41
- ```json
42
- {
43
- "context": {
44
- "task_id": "public_4arm_restless_bandit",
45
- "task_family": "restless_bandit",
46
- "subject_id": "sub_000001",
47
- "trajectory_id": "traj_000001",
48
- "num_options": 4,
49
- "available_actions": [0, 1, 2, 3],
50
- "option_features": null,
51
- "task_description": "4-arm drifting bandit task",
52
- "metadata": {"block_id": "block_000001"}
53
- },
54
- "trials": [
55
- {"trial_index": 0, "action": 1, "reward": 72.0, "info": {"rt": 531.0}}
56
- ]
57
- }
58
- ```
59
-
60
- Field notes:
61
-
62
- - `subject_id`, `trajectory_id`, and `metadata.block_id` are anonymized labels.
63
- - `trial_index` is the within-trajectory index after preprocessing.
64
- - `action` is the observed human choice.
65
- - `reward` is the feedback received after that choice.
66
- - `info.rt` is response time when available.
67
-
68
- ## Safety / leakage
69
-
70
- - Original participant identifiers, original block numbers, original trial ids,
71
- and raw study/source identifiers are not included.
72
- - Demographic variables are not included.
73
- - Counterfactual option payoffs are not included in the agent-facing trajectory
74
- history. For public episodes, they are kept only in the separate
75
- reward-schedule sidecar for generative simulation.
76
- - The dataset card intentionally omits the original article and raw-data source
77
- so that challenge participants cannot trivially recover hidden evaluation
78
- splits from external copies of the raw dataset.
79
-
80
- ## Intended Use
81
-
82
- Use this public split to develop, debug, and calibrate MindRL submissions. The
83
- official challenge evaluation uses additional private splits to test
84
- generalization across held-out trials, participants, episodes, and a separate
85
- held-out task.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: MindRL Challenge Public Dataset
3
+ task_categories:
4
+ - reinforcement-learning
5
+ tags:
6
+ - behavioral-modeling
7
+ - reward-learning
8
+ - bandit-task
9
+ - human-choice-prediction
10
+ language:
11
+ - en
12
+ ---
13
+
14
+ # MindRL Challenge Public Dataset
15
+
16
+ This repository contains the public training split for the MindRL Challenge, a human reward-learning modeling benchmark. The release is intentionally source-safe: it describes the task, data format, and intended use without identifying the original study, raw data source, article, repository, lab, institution, or participant pool.
17
+
18
+ ## Intended use
19
+
20
+ Use this public split to develop, debug, and calibrate MindRL agents that predict human choices from trial history. Official challenge scoring uses additional private evaluation splits that are not part of this public release.
21
+
22
+ The modeling target is one-step-ahead behavioral prediction:
23
+
24
+ ```text
25
+ P(action_t | context, history_1:t-1)
26
+ ```
27
+
28
+ At prediction time, models should use only the trajectory context and previous trials. They should not use the current trial's action or reward, later trials from the same trajectory, hidden splits, or any external reconstruction of the raw data source.
29
+
30
+ ## Task
31
+
32
+ - Task family: 4-arm drifting bandit / restless reward-learning.
33
+ - Action space: integers `0`, `1`, `2`, `3`.
34
+ - Observation history: previous choices, received rewards, response times when available, and anonymized episode metadata.
35
+ - Prediction target: the human participant's next action.
36
+ - Episode unit: each JSONL row is one anonymized trajectory.
37
+ - The reward associated with each action changes gradually over the episode, so useful models need to learn from recent outcomes while remaining responsive to change.
38
+
39
+ ## Files
40
+
41
+ | File | Purpose |
42
+ | --- | --- |
43
+ | `public_train.jsonl` | Agent-facing public training trajectories. |
44
+ | `public_train_reward_schedules.jsonl` | Full option payoff schedules for released public episodes; useful for public-task analysis or generative simulation, but not part of the standard one-step-ahead observation history. |
45
+ | `schema.json` | JSON Schema for public trajectories. |
46
+ | `task_description.md` | Compact task description. |
47
+ | `README.md` / `dataset_card.md` | This dataset description. |
48
+
49
+ If a model uses the reward-schedule sidecar, that use should be disclosed in the method description or interpretation card. The official prediction API still evaluates one-step-ahead predictions from context and past observed trials.
50
+
51
+ ## Public split statistics
52
+
53
+ These statistics describe `public_train.jsonl` only.
54
+
55
+ | Quantity | Value |
56
+ | --- | ---: |
57
+ | Trajectories | 2,678 |
58
+ | Anonymized subjects | 689 |
59
+ | Anonymized blocks / episodes | 2,678 |
60
+ | Total trials | 320,080 |
61
+ | Trajectory length, min / median / max | 108 / 120 / 120 |
62
+ | Reward range | 1.0 to 100.0 |
63
+ | Mean reward | 64.889 |
64
+ | Trials with response time | 308,803 |
65
+
66
+ Observed action counts:
67
+
68
+ | Action | Count |
69
+ | --- | ---: |
70
+ | `0` | 81,656 |
71
+ | `1` | 81,698 |
72
+ | `2` | 77,045 |
73
+ | `3` | 79,681 |
74
+
75
+ These counts should not be interpreted as the full challenge distribution.
76
+
77
+ ## JSONL format
78
+
79
+ Each line in `public_train.jsonl` is one trajectory:
80
+
81
+ ```json
82
+ {
83
+ "context": {
84
+ "task_id": "public_4arm_restless_bandit",
85
+ "task_family": "restless_bandit",
86
+ "subject_id": "sub_000001",
87
+ "trajectory_id": "traj_000001",
88
+ "num_options": 4,
89
+ "available_actions": [0, 1, 2, 3],
90
+ "option_features": null,
91
+ "task_description": "4-arm drifting bandit task",
92
+ "metadata": {"block_id": "block_000001"}
93
+ },
94
+ "trials": [
95
+ {"trial_index": 0, "action": 1, "reward": 72.0, "info": {"rt": 531.0}}
96
+ ]
97
+ }
98
+ ```
99
+
100
+ ### Context fields
101
+
102
+ | Field | Meaning |
103
+ | --- | --- |
104
+ | `task_id` | Public task identifier: `public_4arm_restless_bandit`. |
105
+ | `task_family` | Coarse task family: `restless_bandit`. |
106
+ | `subject_id` | Anonymized subject label such as `sub_000001`; not an original participant id. |
107
+ | `trajectory_id` | Anonymized trajectory label such as `traj_000001`. |
108
+ | `num_options` | Number of available actions. |
109
+ | `available_actions` | Valid actions, encoded as integers `[0, 1, 2, 3]`. |
110
+ | `option_features` | Optional action-feature field; `null` in this release. |
111
+ | `task_description` | Short task description string. |
112
+ | `metadata.block_id` | Anonymized episode/block label; not the original block number. |
113
+
114
+ ### Trial fields
115
+
116
+ | Field | Meaning |
117
+ | --- | --- |
118
+ | `trial_index` | Within-trajectory trial index after preprocessing. |
119
+ | `action` | Observed human action, encoded as `0`, `1`, `2`, or `3`. |
120
+ | `reward` | Scalar reward feedback received after the action. |
121
+ | `info.rt` | Response time when available. Some trials may have missing response time. |
122
+
123
+ ## Loading examples
124
+
125
+ Download the public trajectory file:
126
+
127
+ ```bash
128
+ huggingface-cli download mindrl-hub/mindrl-challenge-public public_train.jsonl --local-dir ./hf_cache/public
129
+ ```
130
+
131
+ Load with Python JSONL:
132
+
133
+ ```python
134
+ import json
135
+ from pathlib import Path
136
+
137
+ path = Path("hf_cache/public/public_train.jsonl")
138
+ with path.open("r", encoding="utf-8") as f:
139
+ first = json.loads(next(f))
140
+
141
+ print(first["context"]["available_actions"], len(first["trials"]))
142
+ ```
143
+
144
+ Load with `datasets`:
145
+
146
+ ```python
147
+ from datasets import load_dataset
148
+
149
+ ds = load_dataset(
150
+ "json",
151
+ data_files="https://huggingface.co/datasets/mindrl-hub/mindrl-challenge-public/resolve/main/public_train.jsonl",
152
+ split="train",
153
+ )
154
+ print(ds[0])
155
+ ```
156
+
157
+ ## Evaluation interface
158
+
159
+ The official evaluator calls an `Agent` sequentially:
160
+
161
+ 1. `reset(context)` once at the start of a trajectory.
162
+ 2. For each trial, call `predict(history)` using only previous trials.
163
+ 3. Score the predicted action distribution against the observed human action.
164
+ 4. Call `update(action, reward, info)` after the true trial outcome is revealed.
165
+ 5. Append the trial to history and continue.
166
+
167
+ A valid prediction returns probabilities over the available actions, for example:
168
+
169
+ ```python
170
+ {"action_probs": {0: 0.25, 1: 0.25, 2: 0.25, 3: 0.25}}
171
+ ```
172
+
173
+ ## Safety and leakage policy
174
+
175
+ - Original participant identifiers, original block numbers, original trial ids, raw filenames, and raw study/source identifiers are not included.
176
+ - Demographic variables are not included.
177
+ - `subject_id`, `trajectory_id`, and `metadata.block_id` are anonymized labels.
178
+ - Counterfactual option payoffs are not included in the agent-facing trajectory history. For public episodes, they are kept only in the separate reward-schedule sidecar.
179
+ - The dataset card intentionally omits the original article and raw-data source so that challenge participants cannot trivially recover hidden evaluation splits from external copies of the raw dataset.
180
+
181
+ Do not use this release to identify the original study, raw dataset, collection site, institution, lab, article, or participant pool. Do not add source-identifying details to public repositories, participant documentation, or submissions.
182
+
183
+ ## Relationship to hidden evaluation
184
+
185
+ The public split supports development. Official challenge evaluation uses hidden splits prepared by the organizers to test generalization across unreleased trials, unreleased participants, unreleased episodes, and a separate held-out task. Hidden evaluation files and source mappings are not part of this public release.