Add DaEdiTikZ dataset card
Browse files
README.md
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
pipeline_tag: image-text-to-text
|
| 4 |
+
task_categories:
|
| 5 |
+
- image-to-text
|
| 6 |
+
- text-generation
|
| 7 |
+
language:
|
| 8 |
+
- en
|
| 9 |
+
size_categories:
|
| 10 |
+
- 100K<n<1M
|
| 11 |
+
tags:
|
| 12 |
+
- tikz
|
| 13 |
+
- latex
|
| 14 |
+
- code-generation
|
| 15 |
+
- scientific-figures
|
| 16 |
+
- image-editing
|
| 17 |
+
- multimodal
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
# Dataset Card for DaEdiTikZ
|
| 21 |
+
|
| 22 |
+
DaEdiTikZ is a dataset of realistic scientific-figure editing trajectories for TikZ/LaTeX used to train **EdiTikZ-4B**, **EdiTikZ-4B-RL**, **EdiTikZ-9B**, and **EdiTikZ-9B-RL**.
|
| 23 |
+
|
| 24 |
+
Each record pairs two source TikZ programs/rendered figures mined from **ArXiv**, **GitHub**, and **TeXStackExchange** revision trajectories, and natural-language edit instructions generated by **Qwen3.6-27B** in both directions. It supports the task of generating an edited TikZ program from a source figure and an edit instruction.
|
| 25 |
+
|
| 26 |
+
The release contains 106,358 redistributable figure pairs. Each pair provides two directional training instances. Image `i` to image `j` with the forward instruction, and image `j` to image `i` with the backward instruction, resulting in 212,716 samples.
|
| 27 |
+
|
| 28 |
+
## Dataset fields
|
| 29 |
+
|
| 30 |
+
Each row contains one bidirectional figure pair:
|
| 31 |
+
|
| 32 |
+
- `group_id`: source-specific revision group identifier
|
| 33 |
+
- `source`: origin category (`arxiv`, `github`, or `tex`)
|
| 34 |
+
- `similarity_score`: cosine similarity of the paired rendered figures (between 0.95 and 0.9999)
|
| 35 |
+
- `file_id_i`, `tikz_code_i`, `image_i`: identifier, full source, and rendered PNG for the first figure
|
| 36 |
+
- `file_id_j`, `tikz_code_j`, `image_j`: identifier, full source, and rendered PNG for the second figure
|
| 37 |
+
- `edit_instruction_forward`: detailed changes describing `i → j`
|
| 38 |
+
- `edit_instruction_backward`: detailed changes describing `j → i`
|
| 39 |
+
|
| 40 |
+
## Installation
|
| 41 |
+
|
| 42 |
+
```bash
|
| 43 |
+
pip install datasets
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
## Usage
|
| 47 |
+
|
| 48 |
+
```python
|
| 49 |
+
from datasets import load_dataset
|
| 50 |
+
|
| 51 |
+
dataset_id = "nllg/DaEdiTikZ"
|
| 52 |
+
|
| 53 |
+
ds = load_dataset(dataset_id, split="train")
|
| 54 |
+
|
| 55 |
+
pair = ds[0]
|
| 56 |
+
|
| 57 |
+
print(pair["group_id"], pair["source"], pair["similarity_score"])
|
| 58 |
+
|
| 59 |
+
# Forward editing task: image_i + forward instruction -> tikz_code_j
|
| 60 |
+
source_image = pair["image_i"]
|
| 61 |
+
instruction = pair["edit_instruction_forward"]
|
| 62 |
+
target_tikz = pair["tikz_code_j"]
|
| 63 |
+
|
| 64 |
+
# Reverse direction: image_j + backward instruction -> tikz_code_i
|
| 65 |
+
reverse_image = pair["image_j"]
|
| 66 |
+
reverse_instruction = pair["edit_instruction_backward"]
|
| 67 |
+
reverse_target_tikz = pair["tikz_code_i"]
|
| 68 |
+
```
|