yuchen-zhu-zyc commited on
Commit
7f8bcfd
·
verified ·
1 Parent(s): 81a91ad

Update DocCount dataset card

Browse files
README.md CHANGED
@@ -0,0 +1,178 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: DocCount
3
+ license: cc-by-nc-nd-4.0
4
+ language:
5
+ - en
6
+ task_categories:
7
+ - visual-question-answering
8
+ - image-to-text
9
+ size_categories:
10
+ - n<1K
11
+ tags:
12
+ - document-ai
13
+ - visual-counting
14
+ - semantic-counting
15
+ - benchmark
16
+ configs:
17
+ - config_name: default
18
+ data_files:
19
+ - split: test
20
+ path: data/test-*
21
+ ---
22
+
23
+ <div align="center">
24
+ <img src="assets/doccount-headline.png" width="100%" alt="DocCount: Counting Semantically Defined Entities in Documents">
25
+ <p>
26
+ <a href="https://sichenzhu.github.io/thinking-with-anchors/">Project</a> |
27
+ <a href="https://github.com/SichenZhu/ADOPD2026">Code</a> |
28
+ <a href="https://huggingface.co/datasets/adopd/adopd2026">ADOPD2026</a>
29
+ </p>
30
+ </div>
31
+
32
+ DocCount is a manually curated document visual-counting benchmark with 442
33
+ original high-resolution images. Every row asks for the number of entities that
34
+ match one explicit semantic definition, with an integer ground-truth answer.
35
+
36
+ The first release contains only benchmark inputs and answers. Model responses,
37
+ reasoning traces, evaluation logs, masks, and semantic tagging artifacts are
38
+ not part of the dataset.
39
+
40
+ ## Benchmark Summary
41
+
42
+ | Questions | Unique images | Target classes | Answer sum | Parquet shards |
43
+ | ---: | ---: | ---: | ---: | ---: |
44
+ | 442 | 442 | 4 | 2,555 | 2 |
45
+
46
+ ![DocCount class distribution](assets/class-distribution.svg)
47
+
48
+ The four categories are deliberately defined semantically rather than by a
49
+ single visual template:
50
+
51
+ | Class | Questions | What is counted |
52
+ | --- | ---: | --- |
53
+ | `photograph` | 180 | photographic image regions meeting the row's class definition |
54
+ | `brand_logo` | 163 | visible brand or organization logo instances |
55
+ | `table` | 75 | distinct tabular structures |
56
+ | `chart_graph` | 24 | distinct charts, plots, or graphs |
57
+
58
+ ## Loading
59
+
60
+ ```python
61
+ from datasets import load_dataset
62
+
63
+ dataset = load_dataset("adopd/DocCount", split="test")
64
+ sample = dataset[0]
65
+
66
+ image = sample["image"]
67
+ prompt = sample["prompt"]
68
+ answer = sample["answer"]
69
+ ```
70
+
71
+ Streaming is useful for evaluation runners that do not need a local copy:
72
+
73
+ ```python
74
+ dataset = load_dataset("adopd/DocCount", split="test", streaming=True)
75
+ for sample in dataset:
76
+ response = model(sample["image"], sample["prompt"])
77
+ ```
78
+
79
+ ## Evaluation Protocol
80
+
81
+ Send the original image and the row's `prompt` to a vision-language model.
82
+ Parse exactly one final integer and compare it with `answer`:
83
+
84
+ ```python
85
+ correct = int(predicted_count) == sample["answer"]
86
+ ```
87
+
88
+ The primary metric is exact-count accuracy over all 442 rows:
89
+
90
+ ```text
91
+ accuracy = number of exactly correct integer answers / 442
92
+ ```
93
+
94
+ Request failures and unparseable responses count as incorrect in the primary
95
+ metric and should also be reported separately. Do not replace the denominator
96
+ with only successfully parsed rows. Keep raw responses so parsing and model
97
+ errors remain distinguishable.
98
+
99
+ The prompt asks the model to reason carefully and permits a rationale, but the
100
+ final line must contain one integer in the machine-readable answer tag defined
101
+ by the row. Models should receive the row prompt verbatim.
102
+
103
+ ## Selected Results
104
+
105
+ ![DocCount selected model accuracy](assets/model-accuracy.svg)
106
+
107
+ | Model | Backend | Selected setting | Correct | Exact accuracy |
108
+ | --- | --- | --- | ---: | ---: |
109
+ | Kimi K2.5 | API | reasoning on | 322 / 442 | 72.85% |
110
+ | Qwen3.6 35B A3B | self-hosted | reasoning off | 319 / 442 | 72.17% |
111
+ | Qwen3.5 397B A17B | API | reasoning on | 313 / 442 | 70.81% |
112
+ | GPT-5.5 | API | best complete run | 304 / 442 | 68.78% |
113
+ | Claude Sonnet 4.5 | API | best complete run | 301 / 442 | 68.10% |
114
+ | GPT-5.2 | API | reasoning on | 293 / 442 | 66.29% |
115
+ | GLM-4.6V | self-hosted | reasoning on | 285 / 442 | 64.48% |
116
+ | Gemma 4 31B IT | self-hosted | reasoning on | 269 / 442 | 60.86% |
117
+
118
+ These are exact integer accuracies on the same 442-row test set. The chart uses
119
+ the best complete result available for each displayed model; reasoning settings
120
+ are therefore not uniform across rows. Use the released prompt and report model
121
+ version, inference backend, reasoning mode, sampling parameters, parse failures,
122
+ and request errors when adding comparisons.
123
+
124
+ ## Row Schema
125
+
126
+ | Field | Type | Description |
127
+ | --- | --- | --- |
128
+ | `sample_id` | `string` | Stable identifier for the benchmark row |
129
+ | `image` | `Image` | Original high-resolution JPEG bytes |
130
+ | `image_width` | `int32` | Original width in pixels |
131
+ | `image_height` | `int32` | Original height in pixels |
132
+ | `image_sha256` | `string` | SHA-256 of the exact embedded image bytes |
133
+ | `target_class` | `string` | Human-readable semantic class name |
134
+ | `target_class_slug` | `string` | Stable machine-readable class key |
135
+ | `class_definition` | `string` | Inclusion/exclusion definition used to determine what counts |
136
+ | `question` | `string` | Natural-language counting question |
137
+ | `prompt` | `string` | Complete evaluation prompt to send to the model |
138
+ | `answer` | `int64` | Manually curated exact count |
139
+
140
+ `sample_id` and `image_sha256` are unique across all 442 rows. There is one
141
+ question per image in this release.
142
+
143
+ ## Data Integrity
144
+
145
+ - The release contains exactly 442 rows and 442 unique images.
146
+ - All answers are integers and sum to 2,555.
147
+ - The two Parquet shards contain 229 and 213 rows.
148
+ - Embedded images retain their original JPEG bytes.
149
+ - Evaluation outputs and model-specific metadata are excluded from the release.
150
+
151
+ ## Intended Uses And Limitations
152
+
153
+ DocCount is intended for evaluating semantic visual counting in document
154
+ images, including repeated logos, photographs, tables, and charts. It is not a
155
+ general object-counting training corpus. The category distribution is
156
+ intentionally non-uniform, and aggregate accuracy should be accompanied by
157
+ per-class results.
158
+
159
+ The benchmark is small enough for detailed error analysis but not large enough
160
+ to characterize every document domain, language, or layout. Models may exploit
161
+ OCR, visual repetition, and layout cues differently; raw response inspection is
162
+ recommended.
163
+
164
+ ## License
165
+
166
+ DocCount uses ADOPD source images and is released under
167
+ [CC BY-NC-ND 4.0](https://creativecommons.org/licenses/by-nc-nd/4.0/).
168
+ It is intended for non-commercial research use.
169
+
170
+ ## Citation
171
+
172
+ ```bibtex
173
+ @misc{zhu2026thinkingwithanchors,
174
+ title={Thinking with Anchors: Grounded and Efficient Document Reasoning},
175
+ author={Sichen Zhu and Yuchen Zhu and Wenzhuo Xu and Jason Kuen and Wanrong Zhu and Jing Shi and Xuan Shen and Quanyi Wang and Yiwei Wang and Yujun Cai and Bing Shuai and Qin Zhang and Yongxin Chen and Shilong Liu and Molei Tao and Jiuxiang Gu},
176
+ year={2026}
177
+ }
178
+ ```
assets/class-distribution.svg ADDED
assets/doccount-headline.png ADDED

Git LFS Details

  • SHA256: 78ef661bebf0cbf79b68b5903118d6c484de4b9b72660f436e3084747fe2dff8
  • Pointer size: 131 Bytes
  • Size of remote file: 128 kB
assets/doccount-logo.png ADDED

Git LFS Details

  • SHA256: 0c11fea352821858cb8589e2b5c9acca2b581dc24126b841d1ef107751abc1cc
  • Pointer size: 132 Bytes
  • Size of remote file: 1.42 MB
assets/model-accuracy.svg ADDED