Datasets:
|
Download README.md from CoderBak/anagram-detection-benchmark: direct link, hf CLI and curl.
- Browser
- Download file 11.2 kB
-
https://huggingface.co/datasets/CoderBak/anagram-detection-benchmark/resolve/main/README.md
- Command line
-
hf download hf://datasets/CoderBak/anagram-detection-benchmark/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/datasets/CoderBak/anagram-detection-benchmark/resolve/main/README.md
11.2 kB
| pretty_name: Anagram English Authorship Benchmark | |
| language: | |
| - en | |
| task_categories: | |
| - text-classification | |
| tags: | |
| - authorship | |
| - ai-generated-text-detection | |
| - evaluation | |
| configs: | |
| - config_name: requests | |
| default: true | |
| data_files: | |
| - split: dev | |
| path: requests/dev.parquet | |
| - split: test | |
| path: requests/test.parquet | |
| - config_name: human | |
| data_files: | |
| - split: dev | |
| path: human/dev.parquet | |
| - split: test | |
| path: human/test.parquet | |
| # Anagram English Authorship Benchmark | |
| Anagram measures whether a detector flags ordinary English human writing and whether it can recognize generated or edited writing across ten assignments. Version 1.0.0 freezes the writer requests and human comparison passages. Every generator receives the same 1,000 development and 2,000 test requests. The human false-positive controls are shared across generators. | |
| | Panel | Development | Test | | |
| |---|---:|---:| | |
| | Human passages for false-positive rate | 25,000 | 50,000 | | |
| | Requests per generator | 1,000 | 2,000 | | |
| | Requests per task per generator | 100 | 200 | | |
| A request is an input to a generator. This release lets researchers collect responses from any specified model. A test with *n* generators therefore has 50,000 shared human controls and 2,000 × *n* assigned model responses, some of which may be unavailable. | |
| ## What writers receive | |
| | Task ID | Assignment | | |
| |---|---| | |
| | `mirror` | Write a new document from a brief derived from a human passage. | | |
| | `polish` | Copyedit a draft while preserving its wording where possible. | | |
| | `guided_edit` | Make a specified change to a draft. | | |
| | `rewrite` | Revise a passage substantially while preserving its meaning. | | |
| | `style` | Rewrite the target using the style of a supplied example. | | |
| | `notes` | Expand publisher-linked HippoCorpus story notes into prose. | | |
| | `thread` | Add a turn to an authentic Topical-Chat conversation. | | |
| | `continue` | Continue writing from the visible opening. | | |
| | `infill` | Supply one missing section between two retained human sections. | | |
| | `interleave` | Supply two separated insertions between retained human sections. | | |
| Counts are balanced by task. The domain and source mixtures reflect which publishers supply the required inputs. The two native-context tasks each draw from one source. The source catalogue gives the specific editions and publisher links. The statistics file gives the realized mix by split and human passage length. [Sources and rights](sources.csv) · [Statistics](statistics.json) | |
| ## Get the exact text | |
| You can inspect the frozen rosters on Hugging Face or load them by configuration. For example, `load_dataset("CoderBak/anagram-detection-benchmark", "requests", split="dev", revision="v1.0.0")` returns the 1,000 development assignments. Use the `human` configuration for false-positive controls. | |
| The public tables contain source identifiers, hashed record locators, character intervals, checksums and instructions for reconstructing each request. Some source collections have noncommercial or publisher-only redistribution terms. To read their texts, obtain access to the two Anagram source releases and restore reference-only text from the publishers. Source access, attribution and reuse terms apply to the reconstructed materials. [Anagram Corpus](https://huggingface.co/datasets/CoderBak/anagram-corpus) · [Noncommercial companion](https://huggingface.co/datasets/CoderBak/anagram-corpus-nc) | |
| If you already have the rebuilt DuckDB and its cleaned corpus directory, only the last two commands below are needed. For a fresh build on Linux, install the Hugging Face CLI and uv, then run the following commands in a working directory with sufficient space for the corpus. The raw rebuild is a large download. The command restores the five publisher-only sources used by this benchmark. The raw corpus card gives its storage requirements. | |
| ```sh | |
| hf auth login | |
| hf download CoderBak/anagram-corpus build.py release.json.gz cleaning.zip --repo-type dataset --local-dir source | |
| uv run source/build.py corpus.duckdb --restore amazon_reviews_2018 --restore amazon_reviews_2023 \ | |
| --restore google_local_2021 --restore food_com_reviews --restore scruples_anecdotes | |
| unzip -q source/cleaning.zip -d cleaning | |
| uv run cleaning/prepare.py corpus.duckdb --output cleaned | |
| hf download CoderBak/anagram-detection-benchmark --repo-type dataset --revision v1.0.0 --local-dir benchmark | |
| uv run benchmark/reconstruct.py --corpus corpus.duckdb --cleaned cleaned --output hydrated | |
| ``` | |
| The reconstructor verifies every passage and message against its SHA-256 digest. It writes `human-{dev,test}.parquet` with the exact human passages, `requests-{dev,test}.jsonl` with writer messages, and `requests-{dev,test}.parquet` with the corresponding donor texts and assembly instructions. Send only the JSONL `messages` array to the writer. Keep the request ID with the response. The donor is a human comparator and can include passages the writer never sees. [Reconstruction code](reconstruct.py) · [File digests and tested source revisions](manifest.json) | |
| ## Assemble one writer’s returns | |
| Keep the native visible response and its request ID. For each split, supply a JSONL receipt file with `request_id`, `status`, `finish_reason` and `output_text`. Use `returned` for a completed text response, and preserve terminal failures such as `refused`, `truncated` or `error`. Keep the provider/model IDs, settings, token usage and attempt history separately. The following command works offline after hydration. | |
| ```sh | |
| uv run benchmark/assemble.py --requests hydrated/requests-dev.parquet \ | |
| --responses writer-dev.jsonl --output assembled-dev.jsonl | |
| ``` | |
| This produces one local result per assigned request. Failed or missing returns keep their verified human comparison, a null `document` and empty `regions`. A completed return needs a normal `finish_reason` such as `stop` or `end_turn`. Interleave requires a bare JSON object with exactly two nonempty string fields, `gap1` and `gap2`. Other tasks use the entire visible response. The helper preserves the raw string and its UTF-8 hash and trims outer whitespace from each inserted part. Refusals, truncation, malformed JSON and substantive failures should be counted separately. A syntactically assembled response still needs execution review. | |
| The local result includes `document`, `human_comparison` and `regions`. Offsets are zero-based, half-open Python Unicode character indices. A retained region comes from the donor or a writer-visible human turn. A separator is layout whitespace. A generated region is an insertion or an independent draft returned by the writer. An edit region also identifies the exact writer-visible draft it revised. For example, a style edit can replace a single middle passage while preserving human text on either side. A notes commission can revise a short source summary and still have the original full account as its matched comparison. Use the assembled document and this comparison when scoring. | |
| For token-level analysis, align edits to their indicated reference, retain supported human wording and mask ambiguous attribution and separators. Record copied prompt/source text separately. An executed edit can yield no attributable AI tokens. If you report the stricter whole-document generated class, require an eligible independent writing task, successful execution and reuse review, at least 50 output words, and strictly more **visible output tokens than total provider input tokens**. Hidden reasoning tokens do not count. Keep cases with unavailable input/output accounting outside that ratio-qualified estimate and report their number. | |
| ## Score a detector | |
| Use development to select thresholds and any calibration parameters. Apply the resulting procedure once to test. Compute human FPR as flagged human controls divided by scored controls, stating the cutoff, coverage and denominator. Report the source breakdown as well as the pooled estimate. These passages are an intentionally stratified reference population. Its FPR depends on the source mix. | |
| Use the same generator settings, retry policy and roster within each comparison. Record each attempt, refusal and error. For a protocol allowing up to three attempts per request, keep a null outcome if all three fail. Report successful generation and scoreable coverage out of *all* assigned requests, alongside detector metrics on eligible outputs. Compute task-level estimates before averaging the ten equally weighted tasks. Any paired comparison restricted to common successes should report its own denominator. | |
| An output's provenance depends on the operation. A gap-filled document retains human text around the writer's insertions. A lightly edited draft can retain nearly all its original wording. The assembly helper reconstructs the evaluated document and its human comparator from an authentic response. Character intervals identify retained and supplied text. A benchmark using token-level authorship labels must additionally specify alignment, copy handling and eligibility. [Assembly helper](assemble.py) | |
| ## Checks and scope | |
| Every released request and every released human passage received an individual content review tied to the SHA-256 of the exact text. GPT-OSS-120B assessed each writer assignment for feasibility. A second pass read each writer-visible message individually for defects such as a missing list, an unavailable edit target or a passage spliced from unrelated items. GPT-OSS-20B and GPT-OSS-120B screened human passages for readable English, extraction problems, public suitability and explicit evidence of machine authorship. Source-specific checks also examined evidence of missing examples, lists, quotations and other content lost during cleaning. The final selection excludes unresolved review holds. These are model-assisted checks. Source provenance supplies the evidence of human authorship, with limitations that vary by source. Dev and test are separated by source work or conversation family. A contributor can appear in distinct works across the two splits. | |
| Independent editorial spot checks used random samples drawn before the readers saw the outcomes. The initial 75,000-passage proposal had 21 confirmed material defects in 160 sampled passages (13.1%). After source-specific repairs, two readers independently assessed each of 120 new randomly selected passages from the repaired proposal. They found 115 usable, four material defects (3.3%, Wilson 95% interval 1.3–8.3%) and one unresolved case. The released roster excludes all five challenged passages and includes replacements. These estimates describe the two proposals at the time they were sampled. The remaining released passages can still contain extraction or provenance errors. | |
| Some assignments were curated in earlier experiments with observed writer responses. The statistics file reports how many of those requests each split retains. Freeze membership before comparing new generators. The release includes no complete set of responses for a named target model. Protect both the underlying source material and its derivatives when training detectors on the raw corpus. [Training exclusions and usage](TRAINING.md) | |