Who Drew That Pixel? Fine-Grained Visual Attribution for Image-to-Code Generation and Editing

Abstract

Render attribution connects individual elements in rendered images to the code tokens that produce them. For reinforcement learning, it matches elements between reference and generated images and assigns localized rewards to the responsible tokens, including shared definitions. Evaluations across five benchmarks covering SVG, TikZ, and HTML show improvements over GRPO in all 28 benchmark-metric comparisons, with at most 1.3% extra training-step time. Code-aware rewards further improve structural preservation and editability. Used as an editing tool, render attribution also helps agents make more accurate revisions with fewer interaction turns and tokens.

Publication
arXiv preprint
Jaemin Cho
Jaemin Cho
Assistant Professor @ JHU

Asst. Prof. @ JHU working on Multimodal AI