Upload dataset card
Browse files
README.md
CHANGED
|
@@ -1,41 +1,139 @@
|
|
| 1 |
---
|
| 2 |
dataset_info:
|
| 3 |
features:
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
- name: annotations
|
| 19 |
-
list: string
|
| 20 |
splits:
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
-
|
| 34 |
-
|
| 35 |
-
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
path: data/val-*
|
| 39 |
-
- split: test
|
| 40 |
-
path: data/test-*
|
| 41 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
dataset_info:
|
| 3 |
features:
|
| 4 |
+
- name: image
|
| 5 |
+
dtype: image
|
| 6 |
+
- name: chart_type
|
| 7 |
+
dtype: string
|
| 8 |
+
- name: question_class
|
| 9 |
+
dtype: string
|
| 10 |
+
- name: gold
|
| 11 |
+
sequence: string
|
| 12 |
+
- name: correct_or_misleading
|
| 13 |
+
dtype: int64
|
| 14 |
+
- name: misleader
|
| 15 |
+
dtype: string
|
| 16 |
+
- name: annotations
|
| 17 |
+
sequence: string
|
|
|
|
|
|
|
| 18 |
splits:
|
| 19 |
+
- name: train
|
| 20 |
+
num_examples: 6059
|
| 21 |
+
- name: val
|
| 22 |
+
num_examples: 6146
|
| 23 |
+
- name: test
|
| 24 |
+
num_examples: 6042
|
| 25 |
+
tags:
|
| 26 |
+
- charts
|
| 27 |
+
- data-visualization
|
| 28 |
+
- visual-question-answering
|
| 29 |
+
- image-classification
|
| 30 |
+
- misleading-visualizations
|
| 31 |
+
- arxiv:2601.12983
|
| 32 |
+
task_categories:
|
| 33 |
+
- image-classification
|
| 34 |
+
- visual-question-answering
|
| 35 |
+
pretty_name: AttackViz
|
|
|
|
|
|
|
|
|
|
| 36 |
---
|
| 37 |
+
|
| 38 |
+
# AttackViz
|
| 39 |
+
|
| 40 |
+
AttackViz is a chart-image dataset for studying correct and misleading data visualizations. It was introduced in the paper [ChartAttack: Testing the Vulnerability of LLMs to Malicious Prompting in Chart Generation](https://arxiv.org/abs/2601.12983).
|
| 41 |
+
|
| 42 |
+
Each example contains a rendered chart image, metadata about the chart and question type, the expected gold answer, a binary label indicating whether the chart is correct or misleading, a misleading-visualization category, and serialized chart annotations.
|
| 43 |
+
|
| 44 |
+
## Dataset Structure
|
| 45 |
+
|
| 46 |
+
The dataset contains 18,247 examples across three splits:
|
| 47 |
+
|
| 48 |
+
| Split | Examples |
|
| 49 |
+
|---|---:|
|
| 50 |
+
| train | 6,059 |
|
| 51 |
+
| val | 6,146 |
|
| 52 |
+
| test | 6,042 |
|
| 53 |
+
|
| 54 |
+
## Fields
|
| 55 |
+
|
| 56 |
+
- `image`: chart image.
|
| 57 |
+
- `chart_type`: chart family. Values include `v_bar`, `h_bar`, and `line`.
|
| 58 |
+
- `question_class`: question category. Values include `compound`, `comparison`, `min_max`, `data_retrieval`, and `arithmetic`.
|
| 59 |
+
- `gold`: list of expected answer strings.
|
| 60 |
+
- `correct_or_misleading`: binary label where `0` means correct and `1` means misleading.
|
| 61 |
+
- `misleader`: misleading visualization type, or `none` for correct charts.
|
| 62 |
+
- `annotations`: list of serialized JSON strings containing the underlying chart specification and rendering metadata.
|
| 63 |
+
|
| 64 |
+
## Chart Types
|
| 65 |
+
|
| 66 |
+
| Type | Examples |
|
| 67 |
+
|---|---:|
|
| 68 |
+
| v_bar | 7,414 |
|
| 69 |
+
| h_bar | 7,348 |
|
| 70 |
+
| line | 3,485 |
|
| 71 |
+
|
| 72 |
+
## Question Classes
|
| 73 |
+
|
| 74 |
+
| Class | Examples |
|
| 75 |
+
|---|---:|
|
| 76 |
+
| compound | 4,581 |
|
| 77 |
+
| comparison | 4,258 |
|
| 78 |
+
| min_max | 4,172 |
|
| 79 |
+
| data_retrieval | 3,989 |
|
| 80 |
+
| arithmetic | 1,247 |
|
| 81 |
+
|
| 82 |
+
## Label Distribution
|
| 83 |
+
|
| 84 |
+
| Label | Meaning | Examples |
|
| 85 |
+
|---:|---|---:|
|
| 86 |
+
| 0 | correct | 6,373 |
|
| 87 |
+
| 1 | misleading | 11,874 |
|
| 88 |
+
|
| 89 |
+
## Misleading Types
|
| 90 |
+
|
| 91 |
+
| Type | Examples |
|
| 92 |
+
|---|---:|
|
| 93 |
+
| none | 6,373 |
|
| 94 |
+
| inappropriate_use_of_stacked | 2,689 |
|
| 95 |
+
| misrepresentation | 1,694 |
|
| 96 |
+
| inverted_axis | 1,674 |
|
| 97 |
+
| inappropriate_axis_range | 1,370 |
|
| 98 |
+
| 3d | 1,276 |
|
| 99 |
+
| inappropriate_use_of_log_scale | 942 |
|
| 100 |
+
| inappropriate_use_of_line | 548 |
|
| 101 |
+
| truncated_axis | 498 |
|
| 102 |
+
| ineffective_color_scheme | 498 |
|
| 103 |
+
| inappropriate_item_order | 460 |
|
| 104 |
+
| dual_axis | 225 |
|
| 105 |
+
|
| 106 |
+
## Loading
|
| 107 |
+
|
| 108 |
+
```python
|
| 109 |
+
from datasets import load_dataset
|
| 110 |
+
|
| 111 |
+
dataset = load_dataset("jgermanmx/AttackViz")
|
| 112 |
+
print(dataset)
|
| 113 |
+
print(dataset["train"][0])
|
| 114 |
+
```
|
| 115 |
+
|
| 116 |
+
## Intended Use
|
| 117 |
+
|
| 118 |
+
This dataset can be used to evaluate or train models for chart understanding, misleading visualization detection, visual question answering over charts, and analysis of how design choices affect interpretation.
|
| 119 |
+
|
| 120 |
+
## Citation
|
| 121 |
+
|
| 122 |
+
If you use AttackViz, please cite:
|
| 123 |
+
|
| 124 |
+
```bibtex
|
| 125 |
+
@misc{ortizbarajas2026chartattack,
|
| 126 |
+
title = {ChartAttack: Testing the Vulnerability of LLMs to Malicious Prompting in Chart Generation},
|
| 127 |
+
author = {Jesus-German Ortiz-Barajas and Jonathan Tonglet and Vivek Gupta and Iryna Gurevych},
|
| 128 |
+
year = {2026},
|
| 129 |
+
eprint = {2601.12983},
|
| 130 |
+
archivePrefix = {arXiv},
|
| 131 |
+
primaryClass = {cs.CL},
|
| 132 |
+
doi = {10.48550/arXiv.2601.12983},
|
| 133 |
+
url = {https://arxiv.org/abs/2601.12983}
|
| 134 |
+
}
|
| 135 |
+
```
|
| 136 |
+
|
| 137 |
+
## Notes
|
| 138 |
+
|
| 139 |
+
The `annotations` field stores JSON as strings. Parse individual entries with `json.loads` when structured access to chart specifications is needed.
|