Does visual reward training generalize better than code matching?
When trained on one chart dataset, do models rewarded for matching rendered images transfer better to unseen charts than models trained to match ground-truth code? This matters because it reveals what training signals teach models to learn.
Testing the RRVF-trained model's generalization, the paper reports a sharp contrast between RL training and supervised fine-tuning (SFT) on image-to-code generation. In a zero-shot evaluation on the unseen Plot2Code dataset, the SFT baseline's code execution rate "dramatically plummets from 69.00% on the Chartmimic to 49.24% on the Plot2Code." The RRVF-trained model's execution rate, trained on the same ChartMimic domain, "remains remarkably stable, decreasing only negligibly from 97.83% to 96.21%" on the same zero-shot transfer.
The authors read this gap as evidence of what the two training signals actually teach. SFT, trained to match specific code outputs, "learns brittle, non-transferable knowledge tied to the specific code patterns of the ChartMimic dataset." RRVF, trained instead on whether the rendered code reproduces the source image, is said to learn "the fundamental and transferable principles of translating visual elements into programmatic logic, rather than simply memorizing code templates" — the reward target, not training compute or data volume, is credited with the difference.
This generalization result is the evidence behind the reward design described in Can visual matching alone train image-to-code models without text?: rewarding the rendered-image match rather than exact code strings is what the paper credits with transfer, not just in-domain accuracy. It parallels the claim in Does verbose chain-of-thought actually help multimodal perception tasks? that the choice of what gets optimized, not just whether RL is used at all, determines whether multimodal training transfers to new settings.
The comparison covers only one transfer pair — ChartMimic to Plot2Code within the chart domain — so the excerpt does not establish whether the same SFT-versus-RRVF gap holds for the web-interface domain, or against other RL reward designs besides visual similarity. The claim that the reward target explains the gap is the authors' own interpretation; the excerpt does not report a controlled ablation isolating reward design from other training differences between the SFT and RRVF runs.
Inquiring lines that read this note 18
This note is a source for these research framings, grouped by the broader line of inquiry each explores. Scan the bold lines of inquiry; follow any specific question forward.
Can visual rendering-based rewards effectively improve code and layout quality?- Does the rendering reward generalize beyond chart editing to other code generation tasks?
- How does the rendering reward weight code executability against visual fidelity failures?
- How do format rewards and geometric rewards split the work of training CAD models?
- Can render-and-judge mechanisms generalize beyond chart-to-code to other executable outputs?
- Which reward component matters most: pixel reconstruction, semantic similarity, or code efficiency?
- How does visual-similarity reward resolve semantic equivalence problems in code?
- Can visual rendering rewards work for tasks beyond code reconstruction?
- What makes code-matching training brittle compared to image-matching training?
- How much does ChartSimRL improve performance over supervised training alone?
- Does visual matching as a reward target work outside the chart domain?
- Why does geometric reward alone drive most of the accuracy gain over supervised learning?
- How much of MSRL's improvement comes from visual rewards versus rule rewards?
Related concepts in this collection 2
This note in its neighbourhood — explore the map, then jump to a related concept in the list below.
Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph
-
Can visual matching alone train image-to-code models without text?
Explores whether multimodal LLMs can learn to generate executable code from images by rewarding visual similarity to the rendered output, rather than matching ground-truth code or text.
the training method that produces this generalization result
-
Does verbose chain-of-thought actually help multimodal perception tasks?
Extending RLHF to MLLMs through longer rationales follows the successful reasoning playbook, but may backfire on perception tasks. This explores when and why the standard CoT-and-RL recipe fails.
another case where the RL reward target, not scale, determines whether multimodal training transfers
Related papers in this collection 8
Papers most semantically related to this note, ranked by cosine similarity in the embedding space.
- ChartMaster: Advancing Chart-to-Code Generation with Real-World Charts and Chart Similarity Reinforcement Learning
- Learning Only with Images: Visual Reinforcement Learning with Reasoning, Rendering, and Visual Feedback
- ChartEditor: A Reinforcement Learning Framework for Robust Chart Editing
- Breaking the SFT Plateau: Multimodal Structured Reinforcement Learning for Chart-to-Code Generation
- Rendering-Aware Reinforcement Learning for Vector Graphics Generation
- Understanding Reward Hacking in Text-to-Image Reinforcement Learning
- Spurious Rewards: Rethinking Training Signals in RLVR
- Why Does RL Generalize Better Than SFT? A Data-Centric Perspective on VLM Post-Training
Original note title
RRVF-trained models hold their code-execution rate on an unseen chart benchmark while supervised fine-tuning collapses from 69% to 49%