Datasets:
Languages:
English
Size:
1K<n<10K
ArXiv:
Tags:
document-understanding
invoice
ocr
noise-augmentation
confidence-calibration
information-extraction
License:
File size: 10,371 Bytes
a8fc1c6 b5176dd a8fc1c6 b5176dd 289e91b b5176dd a8fc1c6 b5176dd 26824e4 b5176dd 26824e4 b5176dd 26824e4 b5176dd 26824e4 b5176dd 26824e4 b5176dd 289e91b b5176dd | 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 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 | ---
language:
- en
license: cc-by-nc-4.0
task_categories:
- document-question-answering
- image-to-text
pretty_name: FCC Invoices Verified Augmented
size_categories:
- 1K<n<10K
annotations_creators:
- expert-generated
source_datasets:
- https://indicodatasolutions.github.io/RealKIE/
- https://huggingface.co/datasets/amazon-agi/RealKIE-FCC-Verified
tags:
- document-understanding
- invoice
- ocr
- noise-augmentation
- confidence-calibration
- information-extraction
- kie
dataset_info:
features:
- name: doc_id
dtype: string
- name: pipeline_name
dtype: string
- name: original_pdf
dtype: string
- name: noisy_pdf
dtype: string
- name: ground_truth
dtype:
struct:
- name: document_class
dtype:
struct:
- name: type
dtype: string
- name: inference_result
dtype:
struct:
- name: Agency
dtype: string
- name: Advertiser
dtype: string
- name: GrossTotal
dtype: float64
- name: PaymentTerms
dtype: string
- name: AgencyCommission
dtype: float64
- name: NetAmountDue
dtype: float64
- name: LineItems
sequence:
struct:
- name: LineItemDescription
dtype: string
- name: LineItemStartDate
dtype: string
- name: LineItemEndDate
dtype: string
- name: LineItemDays
dtype: string
- name: LineItemRate
dtype: float64
splits:
- name: test
num_examples: 1346
---
# FCC Invoices Verified Augmented
## Dataset Description
**FCC Invoices Verified Augmented** is a document understanding benchmark dataset consisting of 75 real-world Federal Communications Commission (FCC) invoice documents, each augmented with up to 18 distinct document degradation pipelines. The dataset is designed to support confidence calibration research, OCR robustness evaluation, and key information extraction (KIE) under realistic noise conditions.
Each document has:
- A clean original PDF
- Up to 18 noisy versions generated by distinct Augraphy-based degradation pipelines
- Verified ground-truth entity annotations
**Total samples**: 1,346 (75 documents × up to 18 noise pipelines)
## Quick Start
```python
from huggingface_hub import snapshot_download
# Download the full dataset locally
local_dir = snapshot_download(repo_id="amazon/ConfBench", repo_type="dataset")
```
Or clone with git:
```bash
git clone https://huggingface.co/datasets/amazon/ConfBench
```
Or use the provided loader (see `load_dataset.py` in this release):
```python
from load_dataset import FCCInvoicesDataset
ds = FCCInvoicesDataset(local_dir="/path/to/ConfBench")
for sample in ds:
print(sample["doc_id"], sample["pipeline_name"])
print(sample["ground_truth"]["inference_result"]["Agency"])
```
### Dataset Summary
| Property | Value |
|---|---|
| Domain | Legal / Broadcast Advertising |
| Document Type | FCC Invoice (multi-page PDF) |
| # Base Documents | 75 |
| # Noise Pipelines | up to 18 per document |
| # Total Samples | 1,346 |
| Avg Pages per Doc | ~2 |
| License | CC BY-NC 4.0 |
---
## Dataset Structure
### Repository Layout
```
amazon/ConfBench/
└── assets/
└── {doc_id}/
├── original.pdf # Original clean PDF
├── gt.json # Ground truth annotations
├── metadata.json # Pipeline manifest
├── default/
│ └── default_noisy.pdf
├── archetype3/
│ └── archetype3_noisy.pdf
└── ... (16 more pipelines)
```
### Ground Truth Schema (`gt.json`)
```json
{
"document_class": {
"type": "Invoice"
},
"split_document": {
"page_indices": [0, 1]
},
"inference_result": {
"Agency": "American Media & Advocacy Group",
"Advertiser": "National Rifle Association",
"GrossTotal": 15185.0,
"PaymentTerms": "30 Days",
"AgencyCommission": 2277.75,
"NetAmountDue": 12907.25,
"LineItems": [
{
"LineItemDescription": "M-F 1135p-1205a",
"LineItemStartDate": "10/09/12",
"LineItemEndDate": "10/09/12",
"LineItemDays": "-T-----",
"LineItemRate": 600.0
}
]
}
}
```
### Metadata Schema (`metadata.json`)
```json
{
"doc_hash": "033f718b16cb597c065930410752c294",
"original_pdf": "original.pdf",
"ground_truth": "gt.json",
"pipelines": [
{"pipeline_name": "default", "noisy_pdf": "default/default_noisy.pdf"},
{"pipeline_name": "archetype3", "noisy_pdf": "archetype3/archetype3_noisy.pdf"}
]
}
```
---
## Noise Pipelines
18 distinct Augraphy-based degradation pipelines covering a wide range of real-world scan/print artifacts:
### Augraphy Archetypes (pre-built pipelines)
| Pipeline | Description |
|---|---|
| `default` | Balanced general-purpose degradation |
| `archetype3` | Heavy post-processing effects |
| `archetype4` | Minimal geometric distortions |
| `archetype7` | Color and lighting variations |
| `archetype9` | Texture-based degradations |
| `archetype10` | Scanner artifact simulation |
| `archetype11` | Complex multi-phase pipeline |
### Custom Pipelines (research-designed)
| Pipeline | Key Augmentations | Simulates |
|---|---|---|
| `custom12` | DirtyDrum + DirtyRollers | Scanner roller artifacts |
| `custom13` | Stains + Folding | Physical document damage |
| `custom14` | BleedThrough + InkMottling | Ink bleed and mottling |
| `custom15` | Moire + ColorPaper | Scanning/aging effects |
| `custom16` | ShadowCast + LightingGradient | Uneven lighting |
| `custom17` | Jpeg + SubtleNoise | Compression artifacts |
| `custom18` | Geometric + PageBorder | Alignment issues |
| `custom19` | BindingsAndFasteners + Letterpress | Binding shadows |
| `custom20` | Brightness + BadPhotoCopy | Photocopy quality |
| `custom21` | WaterMark + NoisyLines | Overlaid artifacts |
| `custom22` | Dithering + DotMatrix | Dot-matrix printing |
---
## Entity Fields
| Field | Type | Description |
|---|---|---|
| `Agency` | string | Advertising agency name |
| `Advertiser` | string | Client/advertiser name |
| `GrossTotal` | float | Total invoice amount (USD) |
| `PaymentTerms` | string | Payment terms (e.g., "30 Days") |
| `AgencyCommission` | float | Agency commission amount (USD) |
| `NetAmountDue` | float | Net amount after commission (USD) |
| `LineItems` | list | Individual line items |
| `LineItemDescription` | string | Program/slot description |
| `LineItemStartDate` | string | Airing start date (MM/DD/YY) |
| `LineItemEndDate` | string | Airing end date (MM/DD/YY) |
| `LineItemDays` | string | Days of week pattern (e.g., "-T-----") |
| `LineItemRate` | float | Cost per line item (USD) |
---
## Usage
### Loading with huggingface_hub
```python
from huggingface_hub import snapshot_download
import json
from pathlib import Path
local_dir = Path(snapshot_download(repo_id="amazon/ConfBench", repo_type="dataset"))
assets_dir = local_dir / "assets"
doc_ids = [p.name for p in assets_dir.iterdir() if p.is_dir()]
# Load ground truth for a single document
def load_gt(doc_id):
return json.loads((assets_dir / doc_id / "gt.json").read_text())
# List noisy PDFs for a document
def list_pipelines(doc_id):
meta = json.loads((assets_dir / doc_id / "metadata.json").read_text())
return meta["pipelines"]
```
### Using the Provided Loading Script
```python
# See load_dataset.py in this release
from load_dataset import FCCInvoicesDataset
ds = FCCInvoicesDataset(local_dir="/path/to/ConfBench")
# Iterate over all (doc, pipeline) pairs
for sample in ds:
print(sample["doc_id"], sample["pipeline_name"])
print(sample["ground_truth"]["inference_result"]["Agency"])
```
---
## Intended Use
This dataset is intended for:
1. **Confidence calibration research** — Measuring model confidence under varying degrees of document degradation.
2. **OCR robustness evaluation** — Benchmarking OCR and KIE systems on realistic noisy documents.
3. **Document understanding** — Evaluating models on structured information extraction from invoices (evaluation/benchmark use only; no training split is provided).
4. **Noise impact analysis** — Studying how specific noise types affect extraction accuracy per field.
---
## Source Data
The 75 clean FCC invoices used in this dataset are taken from [**RealKIE-FCC-Verified**](https://huggingface.co/datasets/amazon-agi/RealKIE-FCC-Verified), which re-annotated the FCC Invoices subset of the original [**RealKIE**](https://indicodatasolutions.github.io/RealKIE/) benchmark ([Townsend et al., 2024](https://arxiv.org/abs/2403.20101)) to fix two issues in the original annotations:
1. **Line Item Grouping** — fields previously treated as independent entries are grouped within each individual line item, aligning annotations with real-world invoice structure.
2. **Annotation Corrections** — erroneous values in the original annotations were corrected.
Starting from these 75 verified documents and their corrected `gt.json` ground truth, this dataset adds noise augmentation using the [Augraphy](https://github.com/sparkfish/augraphy) library with OCR-safe parameter settings, producing up to 18 degraded variants per document for confidence calibration and OCR robustness research.
---
## How to Cite This Dataset
If you use this dataset, please cite:
```bibtex
@misc{islam2026confidencecalibration,
title = {FCC Invoices Verified Augmented: A Benchmark for Confidence Calibration in Document Understanding under Noise},
author = {Md Mofijul Islam and Mohammad Rostami and others},
year = {2026},
note = {Dataset available at Hugging Face},
url = {https://huggingface.co/datasets/amazon/ConfBench}
}
```
---
## License
This dataset is released under [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/). The original FCC invoice documents are public records.
|