Skip to content
Back to skills

Simplestories Diversity Eval

ASecurity

Evaluates the lexical, semantic, and syntactic diversity of a synthetic story dataset compared to a baseline. It measures n-gram distribution, compression ratio, Self-BLEU, n-gram diversity scores, POS template rates, and model-judged semantic variation to assess how well the dataset avoids formulaic phrasing and redundancy. Use when the user wants to benchmark on SimpleStories, or asks about evaluating this task. Reports compression_ratio.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 11, 2026
researchpythongit

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill simplestories-diversity-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Simplestories Diversity Eval?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Simplestories Diversity Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-simplestories-diversity-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-simplestories-diversity-eval)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: simplestories-diversity-eval
description: Evaluates the lexical, semantic, and syntactic diversity of a synthetic story dataset compared to a baseline. It measures n-gram distribution, compression ratio, Self-BLEU, n-gram diversity scores, POS template rates, and model-judged semantic variation to assess how well the dataset avoids formulaic phrasing and redundancy. Use when the user wants to benchmark on SimpleStories, or asks about evaluating this task. Reports compression_ratio.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2504.09184
  bibtex_key: [REDACTED]
  confidence: high
---

# simplestories-diversity-eval

> Parameterized Synthetic Text Generation with SimpleStories — Finke et al. (2025) (arXiv:2504.09184, 2025)

## What this evaluates

Evaluates the lexical, semantic, and syntactic diversity of a synthetic story dataset compared to a baseline. It measures n-gram distribution, compression ratio, Self-BLEU, n-gram diversity scores, POS template rates, and model-judged semantic variation to assess how well the dataset avoids formulaic phrasing and redundancy.

## Datasets

- **SimpleStories** — total ?; splits: full (-1); repo https://github.com/lennart-finke/simple_stories_generate

## Metrics

- `compression_ratio` **(primary)** — range: other
  - Measures diversity via document compression relative to original size; higher compression ratios imply more redundancy.
- `self_bleu` — range: [0, 1]
  - Computes the mean BLEU similarity over every pair of stories in the dataset to capture aggregate text homogenization.
- `ngram_diversity_score` — range: [0, 1]
  - Ratio of unique n-gram counts to total n-gram counts in a document, capturing repeated sequences beyond single-token diversity.

## Input / output format

**Input**: Random subsamples of story texts from the dataset (e.g., 10% of total or fixed size 1000).

**Output**: Aggregated metric values (ratios, percentages, or scores) computed over the subsample.

## Scoring recipe

```python
def compute_ngram_diversity(stories, n):
    total_ngrams = 0
    unique_ngrams = set()
    for story in stories:
        ngrams = [story[i:i+n] for i in range(len(story)-n+1)]
        total_ngrams += len(ngrams)
        unique_ngrams.update(ngrams)
    return len(unique_ngrams) / total_ngrams if total_ngrams > 0 else 0.0
```

## Common pitfalls

- Parameter counts differ in definition: SimpleStories model sizes include embedding parameters, while TinyStories sizes exclude them, leading to potential unfair comparisons if not normalized.
- Diversity metrics are evaluated on random subsamples (10% or N=1000), which may not capture full dataset distribution or long-tail n-grams.
- Semantic diversity relies on GPT-4o-mini as a judge, introducing potential model-specific biases in simplicity and style scoring.

## Evidence (verbatim from paper)

> We also measure the compression ratio and Self-BLEU homogenization score, two diversity metrics with low mutual correlation (Shaib et al., [2025]), on a random subsample of size 1000 for each dataset via the diversity package. Computing the compression ratio allows us to measure diversity in terms of document compression relative to original size —higher compression ratios imply more redundancy. Self-homogenization scores capture aggregate similarity by computing the mean similarity over every pair of stories in the dataset.

## Citation

```bibtex
@misc{finke2025simplestories,
  title={Parameterized Synthetic Text Generation with SimpleStories},
  author={Finke et al. (2025)},
  year={2025},
  note={arXiv:2504.09184}
}
```

- arXiv: 2504.09184

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.