Ill-Ness commited on
Commit
cc0905a
·
verified ·
1 Parent(s): e1ad01b

docs: Add dataset card and benchmark tags metadata

Browse files
Files changed (1) hide show
  1. README.md +102 -1
README.md CHANGED
@@ -1,3 +1,104 @@
1
  ---
2
- license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ dataset_info:
3
+ features:
4
+ - name: pdf_filename
5
+ dtype: string
6
+ - name: page_number
7
+ dtype: int64
8
+ - name: test_type
9
+ dtype: string
10
+ - name: text
11
+ dtype: string
12
+ - name: case_sensitive
13
+ dtype: bool
14
+ - name: formula
15
+ dtype: string
16
+ - name: first_text
17
+ dtype: string
18
+ - name: second_text
19
+ dtype: string
20
+ splits:
21
+ - name: arxiv_math
22
+ num_examples: 850
23
+ - name: headers_footers
24
+ num_examples: 830
25
+ - name: table_tests
26
+ num_examples: 830
27
+ - name: multi_column
28
+ num_examples: 830
29
+ - name: old_scans
30
+ num_examples: 830
31
+ - name: long_tiny_text
32
+ num_examples: 830
33
+ configs:
34
+ - config_name: default
35
+ data_files:
36
+ - split: arxiv_math
37
+ path: bench_data/arxiv_math.jsonl
38
+ - split: headers_footers
39
+ path: bench_data/headers_footers.jsonl
40
+ - split: table_tests
41
+ path: bench_data/table_tests.jsonl
42
+ - split: multi_column
43
+ path: bench_data/multi_column.jsonl
44
+ - split: old_scans
45
+ path: bench_data/old_scans.jsonl
46
+ - split: long_tiny_text
47
+ path: bench_data/long_tiny_text.jsonl
48
+ tags:
49
+ - ocr
50
+ - document-understanding
51
+ - benchmark
52
+ - pdf
53
+ - vlm
54
+ - multimodal
55
+ license: odc-by
56
+ pretty_name: ArenaOCR
57
  ---
58
+
59
+ # ArenaOCR Benchmark
60
+
61
+ **ArenaOCR** is a highly rigorous, unit-test-driven Optical Character Recognition (OCR) and Document Understanding benchmark designed to assess the performance of Vision-Language Models (VLMs) and advanced OCR systems on extremely challenging real-world layouts.
62
+
63
+ Replicating the design paradigm and schema structure of `allenai/olmOCR-bench`, ArenaOCR shifts away from traditional "fuzzy" metrics (like character error rate, edit distance, or BLEU/ROUGE) and instead evaluates document transcripts using **machine-verifiable, deterministic unit tests** (e.g. math formula accuracy, column order preservation, header/footer suppression, and noise-tolerant transcription).
64
+
65
+ ---
66
+
67
+ ## Dataset Splits & Tasks
68
+
69
+ ArenaOCR contains **5,000 unique, procedurally generated PDF documents** and their corresponding JSONL unit tests split across 6 key difficulty divisions:
70
+
71
+ 1. **`arxiv_math` (850 samples):** Evaluation of complex, multi-level academic LaTeX mathematical equations, featuring nested fractions, integrals, sums, Greek characters, and matrices.
72
+ 2. **`headers_footers` (830 samples):** Assesses whether OCR systems can successfully isolate the document's central body text while discarding page-margin metadata like running headers, page counts, and publication tags.
73
+ 3. **`table_tests` (830 samples):** Complex multi-column/multi-row layouts featuring cell merges (`SPAN`), missing cell boundaries, alternating shading, and dense finance/science alphanumeric matrices.
74
+ 4. **`multi_column` (830 samples):** 2-column or 3-column academic article structures. Evaluates reading order preservation, verifying that the OCR reads columns vertically rather than leaking text horizontally across separators.
75
+ 5. **`old_scans` (830 samples):** Simulates degraded photocopy text sheets from vintage manuscripts, featuring random speckle noise, page skew, faded inks, and streaking lines.
76
+ 6. **`long_tiny_text` (830 samples):** Exceedingly dense legal terms and conditions (TOS/NDA agreements) utilizing minuscule (4.5pt - 5.5pt) font sizes to test transcription precision.
77
+
78
+ ---
79
+
80
+ ## Dataset Schema
81
+
82
+ Each JSONL unit test entry contains:
83
+ - `pdf_filename` (string): Relative path to the PDF file (e.g., `bench_data/pdfs/arxiv_math/arxiv_math_0001.pdf`).
84
+ - `page_number` (int): Page number within the document (always `1` for single-page benchmark pages).
85
+ - `test_type` (string): The verification logic applied:
86
+ - `math_formula`: LaTeX comparison of mathematical expressions.
87
+ - `text_absence`: Verifies that margins or header information were excluded.
88
+ - `text_presence`: Substring search validating target text extraction.
89
+ - `reading_order`: Checks if `first_text` occurs in the transcript before `second_text`.
90
+ - `text` (string, optional): String parameter for presence/absence checks.
91
+ - `case_sensitive` (bool, optional): Determines case matching constraints for presence/absence.
92
+ - `formula` (string, optional): Exact LaTeX ground-truth target.
93
+ - `first_text` (string, optional): Anchoring phrase that must appear earlier.
94
+ - `second_text` (string, optional): Anchoring phrase that must appear later.
95
+
96
+ ---
97
+
98
+ ## Local Evaluation
99
+
100
+ A local evaluation script `eval_bench.py` is included in the repository. Running the following command will evaluate model transcripts saved in a `./predictions` directory against our benchmark unit tests:
101
+
102
+ ```bash
103
+ python eval_bench.py --predictions ./predictions
104
+ ```