1
Image-to-code
reference
x
VLM
code
y
render
render
x̂
of the code, with
2 errors
2
Who drew that pixel?
render
x̂
pixel
p
is wrong
id render
p
→ line 3
1
<rect … fill="#E4DEF2"/>
2
<text …>Encoder</text>
3
<rect … y="58" …/>
4
<text …>Decoder</text>
5
<path d="M83 60 H115" …/>
3
Training: fine-grained credit
line 1
line 2
line 3
line 4
line 5
GRPO
+0.66
Ours
−0.18
+1.64
−0.96
+1.62
+0.97
GRPO: one score per sample; ours: one per element
LPIPS ↓, VFIG-Bench
GRPO
20.6
Ours
15.9
LPIPS 23% lower
4
Editing: targeted fixes
who_draws(p)
→
line 3
fit(line=3)
→
y 58 → 40
findings
→
2 edits, verified
the tools report; a VLM agent edits
LPIPS ↓, Sonnet 5.5
Claude Code
4.1
+ ours
3.4
LPIPS 17% lower
open 27B: 22% lower
code
Who Drew That Pixel?