TRANSMISSION // 2609.34587v2
Teaching image-to-code AI from its unfinished drawings
Source published
IR4RL rewards image-to-code models for visual progress in intermediate renders, not just the finished image. Tests on SVG and TikZ report gains, with limits to the evidence.

When an AI writes code to recreate an image, a score for the final picture may not reveal which parts of its program helped or hurt. IR4RL uses renderable code prefixes to provide feedback as the picture takes shape. Its reported tests find improvements on two image-to-code tasks, but the approach depends on being able to render and score partial programs.
Turning a picture into code is more than copying its pixels. The program must describe shapes, lines, colors or diagram elements in a form that can be executed and edited. Researchers train vision-language models for this task using reference examples, then may use reinforcement learning: generate code, render the result and reward visual similarity to the target.
The challenge is that a score at the end arrives too late to identify which decisions mattered. A program may draw some elements accurately and then introduce errors elsewhere. If every token receives feedback based only on the finished image, the model gets little help distinguishing useful steps from harmful ones.
In an arXiv preprint, Omri Kaduri, Kate Feingold, Phillip Isola and Tali Dekel propose IR4RL—Intermediate Renders for Reinforcement Learning—to make that feedback more local. The paper studies image-to-SVG generation, which produces vector graphics, and image-to-TikZ generation, which produces code for diagrams and scientific figures. Kaduri and Feingold are identified as equal contributors; the paper says their author order was determined at random.
Rewarding progress along the way
The researchers’ key observation is that many partial programs can already be made executable and rendered. At chosen boundaries in a program—such as the end of a drawing command—they close any unfinished syntax, render the prefix, and compare it with the reference image using the task’s visual similarity measure.
The score change between one render and the next becomes a progress reward. A newly added segment that improves the match receives positive feedback; one that makes the match worse receives negative feedback. The method propagates these rewards backward to earlier tokens, with a setting that controls how far they reach. It then combines this process feedback with the usual reward for the completed image.
This does not mean the model is simply told whether each line of code is “right.” The signal measures changes in visual similarity, according to the scoring functions used in the experiments. The authors report that combining process and final-outcome rewards worked best in their tests. The effect of render frequency, however, differed by task: for SVG, performance declined as renders became less frequent; for TikZ, reconstruction quality remained largely stable as rendering was reduced from every command to once every 16 commands.
What the experiments found
For SVG, the researchers fine-tuned OmniSVG-4B, comparing IR4RL with its supervised model and with post-training approaches including reinforcement learning based on the final render alone. They evaluated reconstructions on MMSVGBench, using multiple image-similarity and quality measures. They also report a human preference study and an evaluation by a vision-language model; both favored IR4RL over the tested baselines in their comparisons.
For TikZ, they fine-tuned DeTikZify-v2 and evaluated on the DaTikZ-v3 test set. The paper reports better results than supervised fine-tuning and outcome-only reinforcement learning on the visual reconstruction metrics it used. In both tasks, the IR4RL models also produced shorter programs than the compared post-training baselines.
These are results on specific models, datasets and evaluation setups, not evidence that the approach will improve every kind of code generation. The paper’s own analysis says intermediate renders must be meaningful and evaluable. The method therefore fits representations built incrementally from renderable commands; it may not transfer directly to programs whose partial states cannot be sensibly executed or compared with a target.
There is also a computational trade-off: calculating process rewards takes additional training time, accounting for roughly half of a training step in the reported analysis. The authors say their method still outperformed outcome-only training in time-matched comparisons, but that finding applies to the experiments described, not all possible training budgets or systems. Visual similarity scores are another constraint: reward quality depends on whether the chosen metric captures the details that matter for a task.
The source is an arXiv preprint. The reported comparisons and analyses are useful evidence, but the source provided here does not establish a peer-review or journal-publication status. Independent replication and broader testing would help establish how robust the gains are. The paper presents intermediate rendering as a way to improve credit assignment in image-to-code training—not as a general solution for AI programming.
- image-to-code
- reinforcement learning
- SVG generation
- TikZ
- vision-language models
- AI training
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
Teaching AI websites to work, not just look right
Supporting evidence: Both preprints report gains in their evaluated image-to-code settings when training uses information richer than a single final score: IR4RL assigns render-progress rewards to tokens based on changes between partial SVG or TikZ renders, whereas WebVibe’s Interactive-SDPO conditions a self-teacher on browser replay traces and a state-transition montage. This supports only the bounded observation that these distinct forms of intermediate information accompanied improvements on their respective tasks; it does not establish a shared mechanism or general effect across tasks. The findings are author-reported in preprints and the excerpts are selected.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2609.34587v2 — Original paper
Excerpt reference:
static/papers/2609.34587v2.md:102-162
Basis: Paper text
Source file SHA-256:9f2a33a049bd40cea08d5a93f228a7ca036a4de2ad3e1f30daec9ed52d6744ca2611.34292v1 — Original paper
Excerpt reference:
static/papers/2611.34292v1.md:141-188
Basis: Paper text
Source file SHA-256:76ff4a129e08dcb06dfe33cbc20935b6671e80cd123eaaf8dd38258ddbec21ec
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
How AI training can trim repetitive reasoning loops
Source published
Shared keywords: ai training, vision language models
When AI agents learn a skill, they may cite a guide they can no longer see
Source published
Shared keywords: ai training, vision language models
Can Tiny Changes to Images and Text Discourage AI Training?
Source published
Shared keywords: vision language models
Can an image generator learn from its own critiques?
Source published
Shared keywords: ai training, vision language models
Can AI Training Be Read Like a Game Transcript?
Source published
Shared keywords: ai training, reinforcement learning