Reference
Encoder
Decoder
Render of the draft
Encoder
Decoder
Encoder
Decoder
id render: one color per code line
re-render: LPIPS −.015
re-render: LPIPS −.060
wrong color
too low
drawn wrong
The draft: program.svg
1
<rect x="16" … fill=
#E4DEF2
/>
2
<text …>Encoder</text>
3
<rect x="120" y="
58
" … />
4
<text …>Decoder</text>
5
<path d="M83 60 H115" … />
Error to the reference
LPIPS
.082
Tool calls
pixel_diff()
standard tool
2 regions differ
no code line
no value
who_draws(152, 94)
attribution tool
→ line 3 <rect>
fit(line 3)
attribution tool
→ y: 58 → 40
findings()
attribution tool
✓
line 1 fill → #D3EBE3
✓
line 3 y 58 → 40
verified fixes first · 2 of 4 findings shown
2
4
8
16
2
4
8
16
Qwen3.8-27B
draft
+10%
+20%
+30%
8k
16k
32k
64k
128k
256k
84% fewer tokens
22% better LPIPS
tokens per image (log scale)
2
4
8
16
2
4
8
16
Claude Sonnet 5.5
−20%
−10%
draft
+10%
+20%
+30%
8k
16k
32k
64k
128k
23% fewer tokens
17% better LPIPS
tokens per image (log scale)
Claude Code
+ attribution tools
K
turn budget
LPIPS gain over the draft, 100 VFIG-Bench images