File size: 12,812 Bytes
c3447bd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
---
annotations_creators:
- derived
language_creators:
- crowdsourced
language:
- en
size_categories:
- 10K<n<100K
source_datasets:
- SAA-Lab/LitBench-Train
task_categories:
- text-generation
pretty_name: LitBench Reference Splits (unofficial adaptation)
tags:
- litbench
- creative-writing
- preference-data
- rlhf
- reference-based-evaluation
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*.parquet
  - split: test
    path: data/test-*.parquet
dataset_info:
  features:
  - name: dataset
    dtype: string
  - name: prompt_id
    dtype: string
  - name: pair_id
    dtype: string
  - name: prompt
    dtype: string
  - name: preferred
    dtype: string
  - name: rejected
    dtype: string
  - name: reference
    dtype: string
  - name: reference_id
    dtype: string
  - name: preferred_id
    dtype: string
  - name: rejected_id
    dtype: string
  - name: metadata
    struct:
    - name: source_row
      dtype: int64
    - name: preferred_upvotes
      dtype: int64
    - name: rejected_upvotes
      dtype: int64
    - name: reference_upvotes
      dtype: int64
    - name: stories_for_prompt
      dtype: int64
    - name: reference_rule
      dtype: string
    - name: reference_observed_upvotes
      list: int64
    - name: split
      dtype: string
  splits:
  - name: train
    num_examples: 9935
    num_bytes: 36785948
  - name: test
    num_examples: 7774
    num_bytes: 76980970
  dataset_size: 113766918
  download_size: 67764968
---

# LitBench Reference Splits — an adaptation of LitBench

This is an **unofficial adaptation of
[SAA-Lab/LitBench-Train](https://huggingface.co/datasets/SAA-Lab/LitBench-Train)**
for reinforcement learning with reference-dependent rewards and offline reward
evaluation. It is maintained by Jakob Johannes Bauer as part of
[non-verifiable-rewards](https://github.com/JakobJBauer/non-verifiable-rewards).
It is not affiliated with or endorsed by the LitBench authors, and its `test`
split is **not the official LitBench-Test benchmark**.

**LitBench already supplies chosen/rejected preferences inferred from Reddit
upvotes. We preserve those labels.** Our contributions are a reproducible
partition by prompt, a training view with one reference story per prompt, and a
separate third-story reference for each eligible evaluation pair. We collected
no new human annotations, inferred no new preference labels, and generated no
stories using language models.

Please cite **Fein et al. (2025), LitBench**, when using this adaptation; see
[Citation and attribution](#citation-and-attribution) below.

## Sources and version

- Source: [LitBench-Train](https://huggingface.co/datasets/SAA-Lab/LitBench-Train),
  revision `079a36dd2d56185f76cf466a08a05dda146795dd`, native `train` split.
- Paper: [LitBench: A Benchmark and Dataset for Reliable Evaluation of Creative
  Writing](https://arxiv.org/abs/2507.00769).
- Authors' code: [drfein/LitBench](https://github.com/drfein/LitBench).
- Earlier source: [euclaise/WritingPrompts_preferences](https://huggingface.co/datasets/euclaise/WritingPrompts_preferences),
  stories written by Reddit users on r/WritingPrompts.
- Adaptation code commit: `3e44d5b1b600402e711673290ab19d31fcab06ef`. The exact committed source and
  dependency lock are bundled in [source.tar.gz](source.tar.gz).
- [provenance.json](provenance.json) records source revision, filtering counts,
  split policy, package versions, and SHA-256 checksums of the release files.

## Splits

| Split | Rows | Distinct prompts | Contents |
| --- | ---: | ---: | --- |
| `train` | 9,935 | 9,935 | One prompt and reference story for policy training |
| `test` | 7,774 | 1,304 | Preferred/rejected stories and a distinct third-story reference |

The upstream corpus has 43,827 pairs over 12,419 prompts. We reserve **2,484
prompts** for test before reference construction. Of these, 1,304 have enough
distinct stories for our evaluation schema. The remaining 1,180 stay reserved
and are **not moved back into training**. There is no separate validation split;
reserve development prompts from `train` if needed. The public rows are the
complete eligible cohorts, not the project's smaller sampled benchmarks.

Train and test share a Parquet schema for compatibility with `datasets` and the
Hub viewer. Training candidate fields (`preferred`, `rejected`, `pair_id`,
`preferred_id`, `rejected_id`) and pair-only metadata are **null**, not empty
strings or fabricated labels. Training references come from a preference corpus;
this is not an independently collected unlabelled story corpus.

## Construction

1. Load the pinned upstream training release. Strip outer whitespace from
   prompts and story texts; discard empty prompts. Group all rows with the same
   stripped prompt together, including whitespace aliases.
2. Sort the prompt groups, shuffle with Python `random.Random(1729)`, and reserve
   the first `ceil(0.2 * 12,419) = 2,484` groups for test. The other 9,935 groups
   form training. Assignment is independent of the input row order. All stories
   and reference candidates for a prompt remain in its assigned partition.
3. **Train:** gather distinct nonempty stories from both sides of every pair for
   each training prompt. Choose the story with the highest maximum observed
   upvote count. Break ties by a stable SHA-256 content hash. Emit one
   prompt/reference row, preserving the selected source-row index. A prompt with
   only two stories is still usable for training.
4. **Test:** require at least three distinct nonempty stories for the prompt and
   a strict upstream preference (`chosen_upvotes > rejected_upvotes`). Keep the
   source orientation: `chosen_story` becomes `preferred`. Among stories outside
   that pair, choose the highest maximum-observed-upvote story as the reference,
   with the same hash tie-break. Never use either candidate as its own reference.
5. Reject blank texts, identical candidates, reference/candidate equality, and
   duplicate oriented pairs. Retain vote counts and original source-row indices
   in metadata. Both candidates in a pair use the same reference.

The 2,484 test prompt groups contain 8,954 upstream rows. Requiring a third story
excludes 1,180 rows in this release, leaving 7,774 eligible pairs. Partitioning
happens **before** reference construction, so reference selection does not pool
training and test stories.

Hashing uses the project's `_hashing.digest`: SHA-256 of UTF-8
`json.dumps(value, sort_keys=True, ensure_ascii=False)`. Prompt IDs hash
`["litbench", stripped_prompt]` and keep the first 24 hexadecimal characters;
reference IDs similarly hash `[prompt_id, stripped_reference]`. The full code
is included so these details need not be reimplemented from prose.

## Loading and use

```python
from datasets import load_dataset

data = load_dataset("JJBauer/LitBench-Reference-Splits")
train = data["train"]
test = data["test"]

# Policy input: the prompt only. Keep the reference on the reward side.
prompt = train[0]["prompt"]
reference = train[0]["reference"]

# Offline reward comparison: score both candidates against the same reference.
pair = test[0]
preferred, rejected, reference = (
    pair["preferred"], pair["rejected"], pair["reference"]
)
```

Pass `revision=` to `load_dataset` to pin this adaptation to a Hub commit.
For policy generation, wrap the writing prompt in the model's normal chat or
instruction template. **Do not show the reference or preference labels to the
generating policy.** The original project loader omits training candidate fields;
the published schema fills those fields with nulls to support a single Hub config.

| Field | Meaning |
| --- | --- |
| `dataset` | `litbench`, preserving the project task identifier |
| `prompt_id`, `prompt` | Stable prompt-group ID and writing prompt |
| `reference_id`, `reference` | Reference ID and human-written proxy story |
| `pair_id` | Stable oriented pair ID; null for train |
| `preferred`, `rejected` | Upstream higher/lower-upvote story; null for train |
| `preferred_id`, `rejected_id` | Candidate content IDs; null for train |
| `metadata.source_row` | Zero-based row in the pinned original training release |
| `metadata.split` | This adaptation's `train` or `test`, not the upstream split |
| `metadata.reference_rule` | Reference selection rule |
| `metadata.preferred_upvotes`, `metadata.rejected_upvotes` | Votes recorded on the source pair; null for train |
| `metadata.reference_upvotes` | Maximum observed votes for the reference story; null for train |
| `metadata.reference_observed_upvotes` | Observed reference vote counts; null for train |
| `metadata.stories_for_prompt` | Number of distinct nonempty stories; null for train |

## Limitations

- Reddit upvotes are an **implicit preference proxy**, not controlled head-to-head
  annotations or independent judgments collected for this adaptation. They can
  reflect exposure, timing, community taste, and demographic biases.
- A third story is not a canonical gold answer. It can be less popular than both
  candidates, and resemblance to it does not establish creative-writing quality.
  A reference may appear as a candidate in another test pair. Different pairs
  for the same prompt can use different references.
- Exact prompt groups do not cross train/test. This does not detect paraphrased
  prompts, stories copied under different prompts, or model pretraining exposure.
  Repeated test prompts/pairs are not independent observations; group uncertainty
  estimates by prompt. The eligibility filter and different train/test reference
  rules change the cohorts relative to the original LitBench benchmark.
- The official [LitBench-Test](https://huggingface.co/datasets/SAA-Lab/LitBench-Test)
  release provides Reddit comment IDs and requires rehydration. We did not load
  or rehydrate it. Results here must be reported as results on this adaptation.
- The source contains user-generated creative writing and may include offensive,
  sensitive, or adult content. We apply no additional content moderation.
- These splits support future RL training, but earlier exploratory reward analyses
  in the source project sampled from the full LitBench-Train corpus. They are not
  a previously unseen blind benchmark for that project. Evaluate generated model
  outputs with quality measures independent of the optimized reward.

## Licensing and removal requests

The pinned LitBench-Train card does not declare a dataset license. Appendix B of
the [LitBench paper](https://arxiv.org/html/2507.00769v1#A2) says its training
content comes from `euclaise/WritingPrompts_preferences`, whose card declares
**MIT**. We preserve that provenance rather than assign a new license to the
stories or imply that the entire LitBench release has an explicit license grant.
The original Reddit authors retain rights in their writing; we claim no ownership
of their stories. Consult the upstream sources for their terms.

The upstream card asks authors to contact its maintainers for removal. Authors
can also request removal from this adaptation through its Hugging Face Community
tab, identifying the affected row/story. An upstream deletion is not automatically
propagated into this pinned snapshot; this copy must be updated separately.

## Reproduction

Download and unpack `source.tar.gz`, install the project with `uv sync`, then run:

```bash
uv run python scripts/publish_litbench.py export \
  --output outputs/litbench-reference-splits \
  --repo-id JJBauer/LitBench-Reference-Splits
```

The exporter loads the pinned source revision and calls the same loader used by
the project. It checks expected cohort sizes, prompt separation, independent
references, and a local Parquet round trip. File checksums and logical row hashes
are recorded; binary Parquet bytes can vary with library versions. Publishing is
a separate command and uses the normal Hugging Face login, without embedding
credentials in any release file.

## Citation and attribution

**Please cite the original LitBench paper and link to its dataset when using this
adaptation.** Credit the Reddit story authors and the earlier WritingPrompts
Preferences dataset. Also identify this adaptation by its URL and Hub revision
so readers can reproduce the partition and reference construction. This adaptation
is not a replacement citation for LitBench.

```bibtex
@misc{fein2025litbenchbenchmarkdatasetreliable,
  title={LitBench: A Benchmark and Dataset for Reliable Evaluation of Creative Writing},
  author={Daniel Fein and Sebastian Russo and Violet Xiang and Kabir Jolly and Rafael Rafailov and Nick Haber},
  year={2025},
  eprint={2507.00769},
  archivePrefix={arXiv},
  primaryClass={cs.CL},
  url={https://arxiv.org/abs/2507.00769}
}
```

The citation is also available as [CITATION.bib](CITATION.bib).