Access Scam.AI Research Dataset
This dataset is released by Scam.AI for academic research and non-commercial use.
Please share a couple of details so we can understand how the community is using our work.
Access is granted automatically after submission.
Log in or Sign Up to review the conditions and access this dataset content.
AIForge-Doc v1.0.2: AI-Forged Document Images
AIForge-Doc is a benchmark of document images in which one field (a price, total, phone number, address, date or form answer) was rewritten by a diffusion-model inpainting tool and pasted back into the untouched page. Every forgery comes with its untouched source page and a mask of the edited region.
v1.0.2 (3 Dec 2026) corrects the bounding-box documentation and two boxes. Images, masks and splits are the same as in v1.0.1. The v1.0.1 documents said
x2/y2were exclusive; they are inclusive. See Changes in v1.0.2.If you used v1.0.0, read Changes in v1.0.1: it had train/test leakage through its
authentic/folders and a few mislabelled entries.
At a glance
| Forged images | 3,970 (train 3,189 · test 781) |
| Authentic images | 3,970, one per forgery, same file name, same split, pixel-identical outside the mask |
| Tools | Gemini 2.5 Flash Image (3,567) · Ideogram v2 Edit (403) |
| Sources | WildReceipt, CORD v2, SROIE, XFUND (7 languages) |
| Masks | 0 = outside the edit · 255 = edited region, always a filled rectangle (DocTamper-compatible) |
| Licence | CC BY-NC-SA 4.0 (non-commercial) |
Layout
TrainingSet/
images/ 000000001.png … forged page
masks/ 000000001.png … 0 = outside the edit, 255 = edited region
authentic/ 000000001.png … the same page before the edit
TestingSet/ (same structure)
metadata.jsonl one row per forgery (schema below)
source_mapping.csv spec_id -> files -> original page in the public source release
removed_in_v1.0.1.csv every v1.0.0 entry that was removed, with the reason
checksums.sha256 SHA-256 of every image, mask, authentic and metadata file
verify_release.py integrity checks; run it on your copy
dataset_info.json · DATASHEET.md · CITATION.cff · CHANGELOG.md · LICENSE
File names (new_id) are unchanged from v1.0.0; removed entries leave gaps. Results on
v1.0.0 can be compared on the shared IDs.
Verifying your copy. From the dataset root, run sha256sum -c checksums.sha256.
Every line should print OK. python3 verify_release.py . runs the full set of integrity checks
(checksums, split overlap, box and mask geometry, pair differences, licence).
Splits and pairing
Each forgery and its authentic page share a file name and a split, so no page appears on both
sides of the split, and each authentic image differs from its forgery only inside the
mask. For image-level detection, use images/ as positives and authentic/ as negatives
within a split. For localisation, use the masks.
| Source | Doc | Train | Test | Total |
|---|---|---|---|---|
| wildreceipt | receipt | 1,350 | 338 | 1,688 |
| cord | receipt | 796 | 200 | 996 |
| sroie | receipt | 711 | 159 | 870 |
| xfund | form | 332 | 84 | 416 |
metadata.jsonl
| Field | Description |
|---|---|
spec_id |
Forgery spec ID (unique). AIForge-Doc v2 uses the same ID for the same page and field, except 000002697, 000002699, 000002701 and 000002703, which v2 reassigned to SROIE pages. |
image_id |
Internal ID of the source page. To keep a page within one fold, group by page_sha256, which also catches identical pages with different IDs. |
source_dataset |
cord · wildreceipt · sroie · xfund |
source_release, source_split, source_file |
Where the page comes from in the public source release (see below) |
doc_type, language |
receipt/form; ISO 639-1 |
field_name |
Annotation key of the edited field |
original_value, forged_value |
Text before and after the edit |
bbox_xyxy |
[x1, y1, x2, y2] in pixels of the released image, origin top-left, x2/y2 inclusive. Equals the mask extent exactly. Crop with image[y1:y2+1, x1:x2+1]. Same convention as v2. |
assigned_tool |
gemini-nano (Gemini 2.5 Flash Image) or qwen-inpaint (Ideogram v2 Edit; the label is historical) |
split, new_id |
training/testing; file name stem |
image, mask, authentic |
Relative paths |
authentic_method |
original for every row in this release |
generated_at |
Generation date |
page_sha256 |
SHA-256 of the authentic file. Rows with the same value show the identical page (see Known properties). |
authentic_grayscale |
true if every pixel of the authentic page has R = G = B |
Source identifiers. CORD v2: HF naver-clova-ix/cord-v2, source_split + row index.
WildReceipt: path inside openmmlab wildreceipt.tar. SROIE: ICDAR 2019 SROIE folder + file
name. XFUND: file name in the official doc-analysis/XFUND v1.0 release. source_split is empty for
the 1,688 WildReceipt rows, because the path inside the archive does not state a split.
Pipeline
- Field selection: one annotated numeric or key field per page, with a plausible replacement value.
- Context crop: the field box is expanded by 50% on each side (minimum 100 px).
- Inpainting: the crop is inpainted with the replacement text.
- Paste-back: only the exact field box is pasted back into the page, so everything outside the box is untouched.
Known properties
These are measured properties of the data that can affect how results should be read. They were reported by Antonio Dugandzic (see Acknowledgements). We reproduced all of them except the count of visually similar pages, which is from the external audit.
- Colour can give away a forgery. 598 of the 3,970 authentic pages are pure greyscale (SROIE 540,
WildReceipt 39, XFUND 19), and none of their forged versions are: the inpainting tools returned
patches with slight colour. The rule "pure greyscale means authentic, anything else means forged"
scores 57.5 % balanced accuracy overall and 81.0 % on SROIE (chance is 50 %). A detector trained on this data may learn
that shortcut. Please report results on greyscale-converted images as well, or use
authentic_grayscaleto separate these pages. - Masks mark the edited region, not the changed pixels. Every mask is the rectangle that was
pasted back. A median of 94.4 % of its pixels differ from the original (range 33.6–99.4 %). For a
changed-pixel target, compute
(image != authentic).any(axis=2). - Identical authentic pages within a split. 21 groups (44 files: 19 SROIE groups, 2 CORD groups) are the
same page under different source IDs. No group crosses the train/test split. Group by
page_sha256when making your own folds. - Visually similar pages. Receipts from the same shop look alike. A perceptual-hash search (64-bit dHash, distance ≤ 4) in the external audit lists 2,607 similar pairs across the split. These are candidates that have not been reviewed, and are not confirmed duplicates.
- v1 and v2 share source pages. 479 of the 613 v2 test forgeries use a page from the v1 training split.
Do not train on v1 and report v2 test results as performance on unseen documents. Use
cross_generation_split.csvin the v2 repository, which follows the v1 split. - v1.0.0 and v1.0.1+ must not be mixed. 525 training files of the corrected release are identical to files in the v1.0.0 test folders.
- Sources differ. Edit size and difficulty vary by source, and 76 of the 91 entries removed since v1.0.0 are SROIE. Please report metrics per source.
Changes in v1.0.2
Images, masks, authentic pages, file names and splits are unchanged from v1.0.1.
- Box convention corrected. The v1.0.1 documents said
x2/y2were exclusive. The stored boxes are inclusive, as in v2. If you cropped withimage[y1:y2, x1:x2], you lost the last row and column. - Two boxes corrected: test
000000166(CORD) is now[643, 970, 863, 1032]and test000000597(WildReceipt) is now[31, 232, 117, 249]. All 3,970 boxes now equal their mask extent exactly. - New metadata fields
page_sha256andauthentic_grayscale. DATASHEET.mdcorrected: it still listed the v1.0.0 image counts and CC BY 4.0. The licence is CC BY-NC-SA 4.0.verify_release.pyadded, and the Known properties are documented.
Changes in v1.0.1
v1.0.0 was audited after an external report by Antonio Dugandzic (see
Acknowledgements).
All fixes were checked pixel by pixel. The details are in CHANGELOG.md.
- Paired, split-consistent authentic images. In v1.0.0,
authentic/held an unpaired pool of source pages that was not split by page. The same page appeared in both splits, and 527 training forgeries had their untouched original inTestingSet/authentic/, so a model could be trained on a forgery and then tested on its near-identical original with the opposite label. The test pool also had no SROIE pages, so "SROIE ⇒ forged" was a shortcut. v1.0.1 gives each forgery its own original in the same split. - Removed entries (91, 31 of them from the test split), listed in
removed_in_v1.0.1.csv:
| Reason | Entries |
|---|---|
| untouched original could not be recovered | 27 |
| original does not match outside the edited region | 22 |
| no-op forgery | 18 |
| duplicate file | 12 |
| same source receipt as a training page (duplicate scan under another file name in the source dataset) | 12 |
- Metadata: added
image_idand the source identifiers (documented but missing in v1.0.0). Eachspec_idis now unique. (The box convention documented in v1.0.1 was wrong; see v1.0.2.) - Checksums for every file, and the licence field is now consistent:
dataset_info.jsonsaid CC BY 4.0 in v1.0.0; the licence is CC BY-NC-SA 4.0.
Effect on published numbers. The baseline numbers in the v1 paper (for example TruFor AUC 0.751) were computed on the v1.0.0 test split with the unpaired authentic pool, so they are not directly comparable to evaluations on v1.0.1 or later.
Licence
The AIForge-Doc annotations, forged images and masks are released under CC BY-NC-SA 4.0: you may share and adapt them for non-commercial purposes, with attribution, under the same licence. Academic research, including university projects carried out with an industry partner, is non-commercial use. Using the data, or models trained on it, in a commercial product or service requires a separate licence from Scam.AI (contact via scam.ai/research).
The source pages remain under their own terms: CORD v2 (CC BY 4.0), WildReceipt (Apache 2.0), XFUND (CC BY 4.0), SROIE (ICDAR 2019, research use).
Citation
@article{wu2026aiforgedoc,
title = {AIForge-Doc: A Benchmark for Detecting AI-Forged Tampering in Financial and Form Documents},
author = {Wu, Jiaqi and Zhou, Yuchen and Xu, Muduo and Liang, Zisheng and Xue, Jiayu and Yang, Meige and Chen, Siying and Huan, Jingheng and Xia, Weidi and Ren, Simiao},
journal = {arXiv preprint arXiv:2602.20569},
year = {2026}
}
Acknowledgements
We thank Antonio Dugandzic (Technical University of Munich, Beyond Belief project), who found and reported the errors corrected in v1.0.1 and v1.0.2. The independent audits of v1.0.0, v1.0.1 and v2 identified the train/test overlap, conflicting labels, repeated spec IDs, box errors and licence conflict in v1.0.0, and the box-convention error, remaining duplicates and colour asymmetry in v1.0.1.
Contact and issues
Please report problems in this repository's Discussions tab, or through scam.ai/research.
Related research from Scam.AI
- AIForge-Doc v2 (GPT-Image-2 forgeries of the same specs and pages):
Scam-AI/AIForge-Doc-v2 - When the Forger Is the Judge: GPT-Image-2 Cannot Recognize Its Own Faked Documents (arXiv:2604.25213)
- DOCFORGE-BENCH (arXiv:2603.01433)
Full list: scam.ai/research.
- Downloads last month
- 4,887