File size: 3,301 Bytes
0738826
8547c04
 
 
 
 
 
 
 
 
 
 
 
0738826
8547c04
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: mit
task_categories:
- text-generation
language:
- en
tags:
- writing
- stories
- creative-writing
- reddit
size_categories:
- 10K<n<100K
---

# WritingPrompts Filtered Dataset (LitBench Decontaminated)

## Dataset Description

This dataset contains filtered and decontaminated WritingPrompts from Reddit, specifically processed to remove any overlap with the LitBench test set. This ensures clean training data for language models without test set contamination.

## Processing Statistics

Generated: 2025-09-12

### Dataset Size
- **Original dataset**: 265174 entries
- **After decontamination**: 199,248 entries
- **Contamination removed**: 63159 entries
- **Retention rate**: 75.14%

### Contamination Analysis
- **Total contaminated entries**: 63159
- **Contaminated by post_title only**: 12123
- **Contaminated by post_text only**: 49671
- **Contaminated by both fields**: 1365

### Story Quality Filtering
- **Total comments processed**: 644817
- **Valid stories kept**: 524110
- **Non-stories filtered**: 120707

## Dataset Structure

Each entry contains:
- `post_text`: The original writing prompt text
- `post_title`: The title of the prompt (often contains [WP] tag)
- `comment_texts`: List of story responses to the prompt
- `num_stories`: Number of valid stories for this prompt

## Decontamination Method

This dataset was processed using multiple contamination detection methods:
1. **Exact matching**: Direct string comparison with LitBench prompts
2. **Substring matching**: Detecting if LitBench prompts appear within WritingPrompts
3. **Reverse containment**: Checking if WritingPrompts text contains LitBench prompts

## Source Datasets

- **Original source**: [euclaise/WritingPrompts_preferences](https://huggingface.co/datasets/euclaise/WritingPrompts_preferences)
- **Contamination reference**: [SAA-Lab/LitBench-Train](https://huggingface.co/datasets/SAA-Lab/LitBench-Train)

## Usage

```python
from datasets import load_dataset

# Load the dataset
dataset = load_dataset("RLAIF/WritingPrompts-Filtered")

# Access a prompt and its stories
example = dataset['train'][0]
prompt_title = example['post_title']
prompt_text = example['post_text']
stories = example['comment_texts']
```

## Intended Use

This dataset is intended for:
- Training creative writing models
- Fine-tuning language models for story generation
- Research on narrative structure and creative writing
- RLAIF (Reinforcement Learning from AI Feedback) experiments

## Limitations

- Stories are from Reddit and may contain informal language
- Quality varies as these are community-contributed stories
- Some stories may reference Reddit-specific culture or memes
- Decontamination focused on LitBench; other test sets not considered

## Processing Code

The code used to process this dataset is available at: [synthLabs](https://github.com/RLAIF/synthLabs)

## Citation

If you use this dataset, please cite:

```bibtex
@dataset{writingprompts_filtered_2024,
  title={WritingPrompts Filtered Dataset (LitBench Decontaminated)},
  author={RLAIF Team},
  year={2024},
  publisher={Hugging Face},
  url={https://huggingface.co/datasets/RLAIF/WritingPrompts-Filtered}
}
```

## License

This dataset is released under the MIT License. The original Reddit content follows Reddit's terms of service.