File size: 6,477 Bytes
65e3a9c
 
 
74e0943
65e3a9c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
813dd4b
65e3a9c
b3783e8
813dd4b
edd6fe0
 
813dd4b
 
8583ad0
813dd4b
36371cf
813dd4b
 
 
 
 
 
 
 
4fae361
184aecb
4fae361
813dd4b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8583ad0
813dd4b
 
 
4fae361
813dd4b
 
 
 
 
 
 
4fae361
813dd4b
 
 
 
003f908
813dd4b
 
 
003f908
 
 
 
813dd4b
8583ad0
813dd4b
 
 
 
 
 
003f908
813dd4b
 
 
003f908
 
 
 
813dd4b
 
 
 
8dd3688
b3783e8
8583ad0
813dd4b
 
8dd3688
813dd4b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8dd3688
8583ad0
8dd3688
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
configs:
- config_name: docvqa
  default: true
  data_files:
  - split: train
    path: docvqa/train-*.parquet
  - split: test
    path: docvqa/test-*.parquet
- config_name: papervisa
  data_files:
  - split: train
    path: papervisa/train-*.parquet
  - split: test
    path: papervisa/test-*.parquet
- config_name: wikivisa
  data_files:
  - split: train
    path: wikivisa/train-*.parquet
  - split: test
    path: wikivisa/test-*.parquet
- config_name: finewebvisa
  data_files:
  - split: train
    path: finewebvisa/train-*.parquet
- config_name: visualmrc
  data_files:
  - split: train
    path: visualmrc/train-*.parquet
  - split: val
    path: visualmrc/val-*.parquet
  - split: test
    path: visualmrc/test-*.parquet
- config_name: visualwebbench
  data_files:
  - split: test
    path: visualwebbench/test-*.parquet
- config_name: longdocurl
  data_files:
  - split: test
    path: longdocurl/test-*.parquet
- config_name: mmlongbenchdoc
  data_files:
  - split: test
    path: mmlongbenchdoc/test-*.parquet
- config_name: doclingmatix
  data_files:
  - split: train
    path: doclingmatix/train-*.parquet
---

# DocAttriBench (DAB)

Welcome to the official Hugging Face page of the **DocAttriBench (DAB)** dataset, developed in the paper **“DocAttriBench: Benchmarking Answer Grounding in Document Visual Question Answering”**, accepted at **BMVC 2026** (British Machine Vision Conference).

🌐 **Project page:** [https://aimagelab.github.io/DocAttriBench/](https://aimagelab.github.io/DocAttriBench/)

This README provides an overview of the dataset and instructions on how to use it.

## 📊 Dataset Overview

DocAttriBench is a dataset for training and evaluating answer grounding in Document Visual Question Answering. The dataset is constructed from existing document VQA and document understanding datasets. From these source datasets, we use Docling to extract document layout elements and their semantic types, and **MAPPET** to obtain the bounding box of the evidence region supporting the answer. During dataset construction, we used Qwen2.5-VL-7B-Instruct for answer abstraction and applied MAPPET for source attribution using the perplexity scores produced by this model.

Each item is composed as follows:

| Field | Description |
|---|---|
| `image` | The document image, stored as a Hugging Face `Image` feature. |
| `image_path` | Original relative image path from the source dataset. |
| `query` | The question associated with the document image. |
| `answer` | The answer associated with the question, stored in list format. |
| `bbox` | The bounding box of the evidence region, stored in the original nested-list format. Each bounding box is represented as normalized coordinates `[x1, y1, x2, y2]`, where `(x1, y1)` is the top-left corner and `(x2, y2)` is the bottom-right corner. Values are in `[0, 1]` and are relative to the image width and height. |
| `type` | The semantic type of the evidence region, stored in list format. |
| `source_dataset` | Name of the source dataset/configuration. |

The evidence-region type can be one of the following:

- `paragraph/body`
- `caption`
- `heading/title`
- `subtitle/byline`
- `data`
- `sub-data`
- `image`
- `picture`
- `table`
- `list`
- `text`
- `other`

## ⚙️ Dataset Configurations

The dataset is organized using Hugging Face configurations, one for each source dataset. For example:

```python
from datasets import load_dataset

train_docvqa = load_dataset(
    "aimagelab/DocAttriBench",
    "docvqa",
    split="train",
)
```

Available configurations:

- `docvqa`
- `doclingmatix`
- `finewebvisa`
- `longdocurl`
- `mmlongbenchdoc`
- `papervisa`
- `visualmrc`
- `visualwebbench`
- `wikivisa`

## 📁 Dataset Splits

The table below reports the number of items available in each split for each configuration.

| Configuration | Train | Val | Test |
|---|---:|---:|---:|
| `docvqa` | 4,070 | - | 467 |
| `doclingmatix` | 139,632 | - | - |
| `finewebvisa` | 33,092 | - | - |
| `longdocurl` | - | - | 688 |
| `mmlongbenchdoc` | - | - | 276 |
| `papervisa` | 52,113 | - | 1,546 |
| `visualmrc` | 15,000 | 2,068 | 4,857 |
| `visualwebbench` | - | - | 233 |
| `wikivisa` | 31,000 | - | 1,233 |
| **Total** | **274,907** | **2,068** | **9,300** |

In the paper, the validation split is considered part of the training data. In this Hugging Face release, we keep `val` separate when it is available, so users can decide how to use it.

Please also note that SlideVQA is not included in this release due to licensing constraints. For this reason, the dataset counts in this Hugging Face version differ from the counts reported in the paper.

## 🧩 Evidence Region Types

The following table reports the number of type annotations for each evidence-region type, keeping `train`, `val`, and `test` separate.
Please note that these counts differ from those reported in the paper because SlideVQA is excluded from this Hugging Face release due to licensing constraints.

| Type | Train | Val | Test |
|---|---:|---:|---:|
| `paragraph/body` | 146,762 | 1,480 | 5,265 |
| `caption` | 15,772 | 19 | 347 |
| `heading/title` | 9,881 | 113 | 232 |
| `subtitle/byline` | 2,887 | 73 | 189 |
| `data` | 1,316 | 26 | 68 |
| `sub-data` | 35 | 10 | 15 |
| `image` | 810 | 25 | 183 |
| `picture` | 6,766 | 0 | 433 |
| `table` | 25,649 | 0 | 961 |
| `list` | 5,899 | 112 | 201 |
| `text` | 4,697 | 0 | 891 |
| `other` | 54,451 | 213 | 528 |
| **Total** | **274,925** | **2,071** | **9,313** |

## ⚖️ Dataset Licenses

DocAttriBench is derived from multiple existing datasets, each distributed under its own license. The licenses of the source datasets are:

- **DocVQA**: Apache License 2.0
- **DoclingMatix**: Community Data License Agreement – Permissive 2.0
- **LongDocURL**: Apache License 2.0
- **MMLongBench-Doc**: Apache License 2.0
- **VISA**:
  - **FineWeb-edu**: Open Data Commons Attribution License family
  - **NQ**: Apache License 2.0
  - **PubLayNet**: Community Data License Agreement – Permissive, Version 1.0
  - **Wikipedia**: Creative Commons Attribution-ShareAlike and GNU Free Documentation License family
- **VisualMRC**: Creative Commons
- **VisualWebBench**: Apache License 2.0

**SlideVQA is not distributed as part of this Hugging Face release**, because its license permits usage for testing and evaluation but does not allow redistribution.

Users of DocAttriBench should also comply with the licenses and terms of use of the corresponding source datasets.