GDB
收藏资源简介:
GDB(GraphicDesignBench)是一个用于评估视觉语言模型在平面设计任务上性能的多模态基准数据集。该数据集包含39个不同的基准测试,涵盖布局、排版、SVG、模板匹配和动画等多个设计领域,基于1,148个来自Lica数据集的真实设计布局构建。数据集适用于视觉问答、图像到文本和文本到图像等任务,支持理解和生成两种任务类型。数据集中每个样本包含样本ID、基准ID、领域、任务类型、提示、真实答案、图像(如适用)和元数据等字段。数据集规模介于1,000到10,000个样本之间,采用Apache 2.0许可协议发布。
GDB: GraphicDesignBench 数据集概述
基本信息
- 数据集名称: GDB (GraphicDesignBench)
- 许可证: Apache-2.0
- 语言: 英语
- 数据规模: 1,000 < n < 10,000
- 数据集页面: https://huggingface.co/datasets/lica-world/GDB
- 论文: https://arxiv.org/abs/2604.04192
- 代码仓库: https://github.com/lica-world/GDB
- 博客: https://lica.world/blog/gdb-real-world-benchmark-for-graphic-design
任务类型
该数据集支持以下任务:
- 视觉问答(visual-question-answering)
- 图像到文本(image-to-text)
- 文本到图像(text-to-image)
数据来源与构成
- 基于 1,148 个真实设计布局,来源于 Lica dataset
- 共包含 39 个基准测试,覆盖平面设计领域的多个子任务
领域与子任务
数据集涵盖以下 7 个领域:
| 领域 | 说明 |
|---|---|
| layout | 布局设计 |
| typography | 排版设计 |
| svg | SVG 图形设计 |
| template | 模板匹配 |
| temporal | 时序/动画设计 |
| category | 分类任务 |
| lottie | Lottie 动画设计 |
每个任务包含 理解(understanding) 或 生成(generation) 两种类型。
数据配置(Configs)
数据集共包含 38 个配置,每个配置对应一个独立的基准测试子集,所有配置均仅有 训练集(train):
Layout 领域(8 个配置)
- layout-1 至 layout-8
Typography 领域(8 个配置)
- typography-1 至 typography-8
SVG 领域(8 个配置)
- svg-1 至 svg-8
Template 领域(5 个配置)
- template-1 至 template-5
Temporal 领域(6 个配置)
- temporal-1 至 temporal-6
Category 领域(2 个配置)
- category-1、category-2
Lottie 领域(2 个配置)
- lottie-1、lottie-2
数据样例结构
每条数据包含以下字段:
| 字段 | 类型 | 说明 |
|---|---|---|
sample_id |
string | 样本唯一标识 |
benchmark_id |
string | 基准测试 ID,如 svg-1、typography-3 |
domain |
string | 所属领域 |
task_type |
string | 任务类型:understanding 或 generation |
prompt |
string | 评测提示文本 |
ground_truth |
string | 正确答案(复杂类型以 JSON 格式存储) |
image |
Image | 输入图像(如有) |
metadata |
string | 任务特定元数据(JSON 格式) |
使用方式
加载数据
python from datasets import load_dataset ds = load_dataset("lica-world/GDB", "svg-1")
评测方式
bash pip install git+https://github.com/lica-world/GDB.git
python from gdb.registry import BenchmarkRegistry registry = BenchmarkRegistry() registry.discover() bench = registry.get("svg-1") scores = bench.evaluate(predictions, ground_truth)
引用
bibtex @article{gdb2026, title={GDB: A Real-World Benchmark for Graphic Design}, author={Deganutti, Adrienne and Hirsch, Elad and Zhu, Haonan and Seol, Jaejung and Mehta, Purvanshi}, journal={arXiv preprint arXiv:2604.04192}, year={2026} }




