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3 |
+
## Dataset Description
|
| 4 |
+
FinDoc-Robust is a multimodal, benchmark-grade dataset designed for **Document Layout Analysis (DLA)**, **Visual Information Extraction (VIE)**, and evaluating model robustness against real-world degradation.
|
| 5 |
+
|
| 6 |
+
The dataset contains financial reports across **5 distinct document categories** (e.g., cash flow statements, balance sheets, trial balances, shareholders' equity, corporate income statements). For every document, it provides perfect digital vectors, tabular ground truths, pixel-level bounding boxes, and **5 structurally degraded ("dirty") variants** simulating camera captures, scans, and physical artifacts.
|
| 7 |
+
|
| 8 |
+
### Key Applications
|
| 9 |
+
* **Robust Document AI:** Training models to resist geometric distortions, noise, and blur.
|
| 10 |
+
* **Table Reconstruction:** Benchmarking end-to-end Image-to-Excel/HTML/Markdown pipelines.
|
| 11 |
+
* **Multimodal Alignment:** Fine-tuning models like LayoutLMv3, Donut, or proprietary Vision-LLMs on complex financial structures.
|
| 12 |
+
|
| 13 |
---
|
| 14 |
+
|
| 15 |
+
## Dataset Structure
|
| 16 |
+
|
| 17 |
+
The repository is organized hierarchically by document type and numerical index. Each sample folder contains a complete sub-set of modalities:
|
| 18 |
+
|
| 19 |
+
```text
|
| 20 |
+
dataset_root/
|
| 21 |
+
├── new_type_cash_flow_statement/
|
| 22 |
+
├── new_type_shareholders_equity/
|
| 23 |
+
├── new_type_trial_balance/
|
| 24 |
+
├── pro_doc_corporate_income_statement/
|
| 25 |
+
└── pro_doc_full_balance_sheet/
|
| 26 |
+
├── 001/
|
| 27 |
+
│ ├── 001.pdf # Original clean vector PDF
|
| 28 |
+
│ ├── 001.png # Rendered high-res image (clean)
|
| 29 |
+
│ ├── 001.xlsx # Target ground-truth table structure
|
| 30 |
+
│ ├── 001.json # Word/Phrase Bounding Boxes (Pixel space)
|
| 31 |
+
│ ├── 001_pdf.json # Word/Phrase Bounding Boxes (DTP Point space)
|
| 32 |
+
│ ├── 001_dirty_1.png # Degraded scan/photo simulation variant 1
|
| 33 |
+
│ ├── 001_dirty_1.json # Adjusted Bounding Boxes for variant 1
|
| 34 |
+
│ ...
|
| 35 |
+
│ ├── 001_dirty_5.png # Degraded variant 5
|
| 36 |
+
│ └── 001_dirty_5.json # Adjusted Bounding Boxes for variant 5
|
| 37 |
+
└── 1001/ # Scale-tested deep indices (up to 4 digits)
|
| 38 |
+
...
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
```markdown
|
| 42 |
+
# Financial Document Extraction & Robustness Dataset (FinDoc-Robust)
|
| 43 |
+
|
| 44 |
+
## Dataset Description
|
| 45 |
+
FinDoc-Robust is a multimodal, benchmark-grade dataset designed for **Document Layout Analysis (DLA)**, **Visual Information Extraction (VIE)**, and evaluating model robustness against real-world degradation.
|
| 46 |
+
|
| 47 |
+
The dataset contains financial reports across **5 distinct document categories** (e.g., cash flow statements, balance sheets, trial balances, shareholders' equity, corporate income statements). For every document, it provides perfect digital vectors, tabular ground truths, pixel-level bounding boxes, and **5 structurally degraded ("dirty") variants** simulating camera captures, scans, and physical artifacts.
|
| 48 |
+
|
| 49 |
+
### Key Applications
|
| 50 |
+
* **Robust Document AI:** Training models to resist geometric distortions, noise, and blur.
|
| 51 |
+
* **Table Reconstruction:** Benchmarking end-to-end Image-to-Excel/HTML/Markdown pipelines.
|
| 52 |
+
* **Multimodal Alignment:** Fine-tuning models like LayoutLMv3, Donut, or proprietary Vision-LLMs on complex financial structures.
|
| 53 |
+
|
| 54 |
---
|
| 55 |
+
|
| 56 |
+
## Dataset Structure
|
| 57 |
+
|
| 58 |
+
The repository is organized hierarchically by document type and numerical index. Each sample folder contains a complete sub-set of modalities:
|
| 59 |
+
|
| 60 |
+
```text
|
| 61 |
+
dataset_root/
|
| 62 |
+
├── new_type_cash_flow_statement/
|
| 63 |
+
├── new_type_shareholders_equity/
|
| 64 |
+
├── new_type_trial_balance/
|
| 65 |
+
├── pro_doc_corporate_income_statement/
|
| 66 |
+
└── pro_doc_full_balance_sheet/
|
| 67 |
+
├── 001/
|
| 68 |
+
│ ├── 001.pdf # Original clean vector PDF
|
| 69 |
+
│ ├── 001.png # Rendered high-res image (clean)
|
| 70 |
+
│ ├── 001.xlsx # Target ground-truth table structure
|
| 71 |
+
│ ├── 001.json # Word/Phrase Bounding Boxes (Pixel space)
|
| 72 |
+
│ ├── 001_pdf.json # Word/Phrase Bounding Boxes (DTP Point space)
|
| 73 |
+
│ ├── 001_dirty_1.png # Degraded scan/photo simulation variant 1
|
| 74 |
+
│ ├── 001_dirty_1.json # Adjusted Bounding Boxes for variant 1
|
| 75 |
+
│ ...
|
| 76 |
+
│ ├── 001_dirty_5.png # Degraded variant 5
|
| 77 |
+
│ └── 001_dirty_5.json # Adjusted Bounding Boxes for variant 5
|
| 78 |
+
└── 1001/ # Scale-tested deep indices (up to 4 digits)
|
| 79 |
+
...
|
| 80 |
+
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
---
|
| 84 |
+
|
| 85 |
+
## Modality Specifications
|
| 86 |
+
|
| 87 |
+
### 1. Ground Truth Structures
|
| 88 |
+
|
| 89 |
+
* **`.pdf`**: Original vector file preserving strict semantic layout.
|
| 90 |
+
* **`.xlsx`**: The ideal downstream target layout. Contains finalized cell alignments, structures, and text groups.
|
| 91 |
+
|
| 92 |
+
### 2. Multi-Coordinate Bounding Boxes (`.json`)
|
| 93 |
+
|
| 94 |
+
The dataset includes two coordinate topologies to match different ingestion pipelines:
|
| 95 |
+
|
| 96 |
+
* **`001_pdf.json` (Vector Scale):** Stored in DTP Points ($1 \text{ inch} = 72 \text{ points}$), native to engines like PyMuPDF or `pdfplumber`. Origin is typically evaluated from Top-Left or Bottom-Left depending on the parser.
|
| 97 |
+
* **`001.json` (Raster Scale):** Mapped directly to high-resolution pixel coordinates matching the native `001.png` dimensions (e.g., A4 at 200 DPI: $1654 \times 2339 \text{ px}$).
|
| 98 |
+
|
| 99 |
+
### 3. Robustness & Degradation Layers (`_dirty_X`)
|
| 100 |
+
|
| 101 |
+
Each baseline sheet is supplemented with 5 alternative states mimicking typical pipeline damage:
|
| 102 |
+
|
| 103 |
+
* Sensor noise, blur, and lighting gradients.
|
| 104 |
+
* Rotation, skewing, and affine perspective warps.
|
| 105 |
+
* Contrast loss and compression artifacts.
|
| 106 |
+
|
| 107 |
+
Every dirty image has a corresponding `.json` containing transformed bounding box parameters adjusted to the physical distortion.
|
| 108 |
+
|
| 109 |
+
---
|
| 110 |
+
|
| 111 |
+
## JSON Schema Example
|
| 112 |
+
|
| 113 |
+
```json
|
| 114 |
+
{
|
| 115 |
+
"img_file": "001.png",
|
| 116 |
+
"img_width": 1654,
|
| 117 |
+
"img_height": 2339,
|
| 118 |
+
"labels": [
|
| 119 |
+
{
|
| 120 |
+
"text": "CASH FLOWS FROM CORE OPERATIONS",
|
| 121 |
+
"bbox_px": [173.1, 415.24, 781.99, 446.65]
|
| 122 |
+
}
|
| 123 |
+
]
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
```
|
| 127 |
+
|
| 128 |
+
*Note: `bbox_px` format is `[xmin, ymin, xmax, ymax]`.*
|
| 129 |
+
|
| 130 |
+
---
|
| 131 |
+
|
| 132 |
+
## Usage & Evaluation
|
| 133 |
+
|
| 134 |
+
```python
|
| 135 |
+
from datasets import load_dataset
|
| 136 |
+
|
| 137 |
+
# Configuration for loading the structured layout hierarchy
|
| 138 |
+
# Dataset script coming soon
|
| 139 |
+
dataset = load_dataset("arcolab-dev/FinDoc-Robust")
|
| 140 |
+
|
| 141 |
+
```
|
| 142 |
+
|
| 143 |
+
### Recommended Evaluation Metrics
|
| 144 |
+
|
| 145 |
+
* **Tree-edit distance / TEDS:** For structural table matching via the `.xlsx` layout.
|
| 146 |
+
* **ANLS (Average Normalized Levenshtein Similarity):** For text extraction robustness under dirty variants.
|
| 147 |
+
* **mAP (mean Average Precision):** For word/cell layout extraction bounding boxes.
|
| 148 |
+
|
| 149 |
+
```
|
| 150 |
+
|
| 151 |
+
```
|