Program 1
<g
>
<rect y="
10
" … />
<rect y="
50
" … />
<rect y="
90
" … />
</g>
<path … />
arrow
<rect y="44" … />
renders the reference
1 change
Program 2
<rect y="
10
" … />
<rect y="
50
" … />
<rect y="
90
" … />
<path … />
arrow
<rect y="44" … />
renders the reference
3 changes
Edit: move the three boxes down
Reference group
Sample 1: exactly the group
<g>
<g
>
<rect y="
10
" … />
<rect y="
50
" … />
<rect y="
90
" … />
</g>
<path … />
arrow
<rect y="44" … />
score
q
= 3/3
Sample 2: the wrong elements
<g>
<rect y="
10
" … />
<g
>
<rect y="
50
" … />
<path … />
arrow
<rect y="44" … />
</g>
<rect y="
90
" … />
score
q
= 1/5
Sample 3: no group
<rect y="
10
" … />
<rect y="
50
" … />
<rect y="
90
" … />
<path … />
arrow
<rect y="44" … />
score
q
= 0/3
in the group and the <g>
left out of the <g>
extra in the <g>
GRPO
RA-GRPO with structure credit
Reference groups kept
40
%
53
%
Containment kept
56
%
80
%
Edit instructions an agent completes
55
%
70
%
VFIG-Bench, both trained with the same code-aware reward