# E8: SANEval split reproducibility

Status: registered before image-level fingerprint extraction  
Registration date: 2026-08-16  
Dataset revision: `saneval-ann/saneval-release@29ab817123501872263493604d1bc204a61abf63`

## Question

Does the GPT Image 1 Pixel Echo template estimated on one image cohort
replicate on prompt-disjoint validation and test cohorts, or can the apparent
template be explained by the particular images used to estimate it?

## Cohort and immutable split

The acquisition script selects 2,000 `GPT Image 1` images from the SANEval
`simple` split. Selection is balanced across `color`, `numeracy`, `shape`,
`spatial`, and `texture`, while minimizing remote Parquet row groups. Before
any pixel measurement, prompt hashes assign exactly:

- train: 1,000 images, 200 per category;
- validation: 500 images, 100 per category;
- test: 500 images, 100 per category.

The train cohort constructs the template. Validation may diagnose pipeline
errors and presentation, but it cannot change the registered measurement or
test criterion. Test is opened once by the evaluation script. The image, not a
patch or pixel, is the independent sampling unit.

## Frozen measurement

- Decode the original PNG bytes and convert RGB to luminance with
  `0.2126 R + 0.7152 G + 0.0722 B`.
- Apply the absolute four-neighbour Laplacian on the valid interior.
- Aggregate by `(y mod P, x mod P)` for `P in {2, 4, 8, 16}` with registered
  origin `(0, 0)` in the source raster.
- Normalize every image phase field by its own mean before cohort averaging.
- Report both centered raw fields (`M_P - 1`) and nested primitive components.
- Apply no resize, crop, re-encoding, or phase registration.

## Endpoints

The primary endpoint is the centered P16 train--test fingerprint comparison.
Secondary endpoints are P2/P4/P8, their primitive components, and the
concatenated 340-dimensional primitive fingerprint.

For every endpoint report:

1. centered Pearson correlation (shape);
2. relative L2 error (shape plus amplitude);
3. held-out/train norm ratio (amplitude).

No fixed correlation threshold is chosen. Instead, 100 seeded, category-
agnostic random partitions of the 1,000 training images define the ordinary
sampling envelope at each cumulative `N`. At `N=500`, the test fingerprint is
called **cohort-reproducible** only when its train comparison is no worse than
the corresponding 95% within-train split-half envelope for both Pearson
correlation and relative L2 error. Amplitude is reported separately and is not
rescued by correlation.

## Outputs

```text
artifacts/registered/e8-saneval-split-reproducibility/
  acquisition_manifest.json
  per_image_features.npz
  split_fingerprints.npz
  metrics.json
  interactive_p16.json
  split_reproducibility.{pdf,png}
  run_manifest.json
```

The paper and website may use only measured values in these artifacts. Until
the run completes, cross-split universality remains a registered hypothesis,
not an observed result.

## Reproduction commands

Run from the repository root after installing `.[hf-data,animation]`:

```bash
python scripts/download_saneval_subset.py \
  --output data/raw/saneval-gpt-image-1-2000/images \
  --manifest data/manifests/saneval-gpt-image-1-2000.json \
  --count 2000 --train-count 1000 --validation-count 500 --test-count 500

MPLBACKEND=Agg MPLCONFIGDIR=/tmp/gendetector-mpl PYTHONPATH=src \
python scripts/evaluate_split_reproducibility.py \
  --manifest data/manifests/saneval-gpt-image-1-2000.json \
  --images data/raw/saneval-gpt-image-1-2000/images \
  --output artifacts/registered/e8-saneval-split-reproducibility
```

## Limitations fixed in advance

- This establishes replication across disjoint SANEval prompts, not universal
  invariance to every semantic or media distribution.
- All images come from one dated public dataset release whose card names GPT
  Image 1 but does not expose the original API acquisition timestamp or every
  generation parameter.
- Native source rasters are evaluated first; robustness to JPEG, crop origin,
  resizing, screenshots, and platform transformations is a separate study.
- A passive fingerprint is not an intentional watermark or calibrated source
  probability.
