基于代码的图像生成:基准测试、基线模型与改进的奖励机制
Code-based Image Generation: Benchmarking, Baselines, and Improved Rewards
Nicole Wang, Zhanhao Liang, Xingjian Leng, Liang Zheng
AI 速读 基于摘要
作者对基于代码的图像生成(CIG)进行基准测试,并通过两阶段后训练提升开源模型能力,发现同时向奖励模型展示图像和程序能带来更好的训练效果。
cs.CV
查看原文摘要
Recent improvements in the coding ability of language models have made code an emerging paradigm for image generation: the model writes a program, and a renderer turns it into an image. We benchmark frontier and open-weight LLMs on code-based image generation (CIG) and ask two further questions: 1) can open-source LLMs learn this capability from stronger models through post-training, and 2) does having a program enable a better reward for training? To answer them, we post-train open-source LLMs in two stages: distillation with supervised fine-tuning from a mixture of stronger teachers, then reinforcement learning with GRPO. We compare rewards that differ only by what the judge is shown: the image, the program, or both. We find that 1) after post-training, our model, Pictor-27B, matches or beats its teacher mix on GenEval2 and PRISM-Bench. 2) The program does enable a better reward: the model trained with the judge shown both image and program gains 18.0 GenEval2 GM points over its base model, against 15.5 for the program alone and 14.3 for the image alone. People also prefer its images to those of the image-only model. We analyse why. The image alone does not show what a shape is meant to be, and the program alone does not show whether it is visible in the render. Shown both, the judge can verify the intent of the program against the rendered image. Code, data and models are available at https://codeimagegen.github.io.