PaintBench
收藏资源简介:
PaintBench是一个精确的、确定性的视觉编辑基准数据集,旨在评估原生像素空间图像生成模型执行MS-Paint风格编辑的能力,包括几何变换、颜色变化、结构操作和符号推理编辑。数据集通过程序生成每个问题,确保答案具有像素级精确性,且答案分布已知。它包含两个配置:PaintBench(主基准)和TinyGrafixBench(图表编辑微基准)。PaintBench配置包含2,016个测试问题和280个开发问题,涵盖4个任务类别(几何变换、结构操作、颜色变化、符号推理)下的20个任务,每个任务在8种视觉条件下生成。TinyGrafixBench配置包含600个测试问题,专注于5种图表类型的编辑任务。每个数据样本包含类别、任务、模式、视觉条件、问题ID、自然语言指令、输入图像、答案图像和元数据等字段。数据集适用于图像到图像、图像文本到图像等任务,特别用于评估扩散模型在像素空间生成和视觉编辑方面的性能。
PaintBench is a precise, deterministic visual editing benchmark dataset developed to evaluate the capability of native pixel-space image generation models to perform MS-Paint-style editing tasks, including geometric transformations, color adjustments, structural manipulations, and symbolic reasoning-based edits. Each problem in the dataset is procedurally generated, ensuring pixel-perfect accuracy of the reference answers and a known answer distribution. The dataset comprises two configurations: the main benchmark PaintBench, and TinyGrafixBench, a micro-benchmark for graphic editing. The PaintBench configuration contains 2,016 test questions and 280 development questions, covering 20 tasks across four task categories—geometric transformations, structural manipulations, color variations, and symbolic reasoning—with each task generated under 8 distinct visual conditions. The TinyGrafixBench configuration includes 600 test questions, focusing on editing tasks for five common chart types. Each data sample includes fields such as category, task, modality, visual condition, question ID, natural language instruction, input image, answer image, and metadata. The dataset supports tasks including image-to-image translation and image-text-to-image generation, and is specifically designed to assess the performance of diffusion models in pixel-space generation and visual editing.
数据集概述:PaintBench
PaintBench 是一个用于评估像素级图像生成模型执行“MS-Paint风格”视觉编辑能力的基准数据集。其核心特点是所有问题均由程序化生成,确保答案的像素级精确性和已知的答案分布。
主要配置与规模
数据集包含两个配置,共享相同的模式与评估流程:
| 配置名称 | 数据分片 | 问题数量 | 覆盖范围 |
|---|---|---|---|
PaintBench |
test, dev |
2,016 + 280 | 主基准:20个任务 × 8种视觉条件 × 每个单元格12个问题 |
TinyGrafixBench |
test |
600 | 图表编辑微基准:5种图表类型 × 4个子任务 × 30个问题 |
PaintBench配置:test分片包含2,016个问题,dev分片包含280个问题(用于快速迭代,是test分片的严格子集)。TinyGrafixBench配置:仅包含test分片,共600个问题。
数据集结构
两个配置共享以下数据模式:
| 列名 | 类型 | 描述 |
|---|---|---|
category |
string | 顶层分组。在 PaintBench 中为4个任务类别之一;在 TinyGrafixBench 中为5种图表类型之一。 |
task |
string | 标准任务名称(如 translation, bar_chart_add_bar)。 |
mode |
string | 任务内的子任务/变体,若无则为 "default"。 |
visual_condition |
string | PaintBench 的8种扰动轴之一;TinyGrafixBench 中为空字符串。 |
problem_id |
int32 | 在 (category, task, mode) 单元格内的索引。 |
instruction |
string | 自然语言编辑指令。 |
input_image |
image | 待编辑的源图像。 |
answer_image |
image | 像素级精确的预期输出图像。 |
metadata |
string | 包含种子、场景形状/颜色、条件参数等每问题上下文的 JSON 数据。 |
PaintBench 任务类别
任务分为四大类,共20个评分任务:
| 类别 | 任务 |
|---|---|
geometric_transformation(几何变换) |
translation, rotation, reflection, scaling, shearing |
structural_manipulation(结构操作) |
construction, removal, copying, border, cropping |
color_change(颜色改变) |
recolor, flood_fill, blending, gradient, point_operations |
symbolic_reasoning(符号推理) |
comparison, ordering, pattern, counting, legend |
此外,还有一个 preservation 任务(96个问题),用作诊断,其预期输出即为输入图像,不计入汇总评分。
视觉条件
每个 PaintBench 问题在8种条件之一渲染,每种条件精确变化一个轴:
视觉条件 (visual_condition) |
变化内容 | 细节 |
|---|---|---|
baseline |
无 | 1024 × 1024 画布,默认调色板,默认密度 |
horizontal |
画布宽高比 | 1024 × 576 |
vertical |
画布宽高比 | 576 × 1024 |
nonstandard |
调色板 | 非标准颜色调色板 |
striped |
背景 | 条纹(而非纯色)背景 |
n_med |
场景密度 | 中等密度场景 |
n_high |
场景密度 | 高密度场景 |
n_xhigh |
场景密度 | 极高密度场景 |
每个 (visual_condition, task, mode) 单元格包含的问题数量为 12 / num_modes。所有20个评分任务共产生1,920个问题(每个视觉条件240个)。dev 分片从每个单元格中选择 slot=0 的问题,构成280个问题的分层子样本。
TinyGrafixBench 子任务
| 图表类型 | 子任务 |
|---|---|
bar_chart |
add_bar, sort_bars, remove_bar, recolor_bar |
heatmap |
add_cell, shift_heatmap, mask_cells, change_colormap |
line_chart |
draw_segments, normalize_series, filter_series, shade_interval |
network |
add_node, swap_nodes, remove_node, recolor_node |
scatter_plot |
draw_best_fit_line, swap_axes, remove_outlier, recolor_class |
评估方法
每个问题的评分基于像素比较:计算模型输出图像与预期 answer_image 之间每个像素的 CIE76 ΔE 值,在多个 ΔE 阈值(0, 1, ..., 10)下计算 IoU 以及编辑/保留准确率。汇总评分采用宏平均,在任务/类别/视觉条件/基准级别进行计算,并使用任务自助法(task-bootstrap)获取95%置信区间。
许可证
该数据集采用 Creative Commons Attribution 4.0 (CC BY 4.0) 许可证发布。所有问题和图像均为程序化生成,不包含第三方内容。





