Should an AI learn by matching exact reference code, or by scoring how close its visual result looks to the target?
Can dense reference-based rewards replace sparse exact-match rewards in visual design tasks?
This explores whether rewarding visual design models for how close their rendered output looks to a reference (a graded score) works better than rewarding them only when the code or answer exactly matches the target (pass or fail), and what you give up by making that switch.
This explores whether a graded score for "how close does the rendered result look to the target" can stand in for an all-or-nothing "did you produce the exact right code" check when training models on charts, layouts and images. The corpus answers: mostly yes, for tasks where you can render the output and compare it to something. The more interesting finding is why it works. Exact-match rewards don't only give sparse feedback. They also reward the wrong thing. Many different pieces of code draw the same chart, so penalizing every version that isn't the reference teaches the model to copy surface syntax instead of learning what makes a chart look right.
The clearest evidence is in image-to-code work. Can visual matching alone train image-to-code models without text? drops ground-truth code from the reward entirely. It renders whatever the model writes and scores how closely the picture matches the source image. This relies on a useful asymmetry: judging whether two images match is much easier than writing the code that produces one. The payoff appears when the model faces data it hasn't seen. In Does visual reward training generalize better than code matching?, visually rewarded models kept 96% of their code running on a new chart benchmark. Models trained by plain imitation of reference code (supervised fine-tuning) fell from 69% to 49%. Rewarding the look of the result appears to teach skills that transfer. Matching the reference code appears to teach memorization.
The corpus doesn't treat this as a full replacement, though. Can visual similarity rewards break the chart-to-code learning plateau? gets its 6–10% gains by layering the two signals: cheap rule-based checks on the code text come first, and costlier visual-similarity scores from a vision-language model are added in a second stage. Tool use shows the same pattern. Can reward decomposition beat supervised learning for tool use? splits the reward into a strict format check and a correctness score. Can rubrics and dense rewards work together without hacking? puts the general rule most sharply: pass/fail checks work best as gates that throw out invalid attempts, and graded rewards work best for improving attempts that already passed. Turning the gate itself into a graded score is how reward hacking gets in.
Reward hacking is the main risk, because a graded score is only as good as the judge producing it. Do text-to-image rewards all miss the same structural flaws? found that every image reward model it tested failed in its own way, and all of them missed warped geometry, duplicated objects and blended entities. Judges also don't carry over between visual domains. Why do image reward models fail at layout evaluation? shows that preference models trained on photos can't evaluate graphic layouts, because they never learned spacing or visual balance. Can human layout preferences train a better design judge? fixes this by training a layout-specific judge on about 10,000 human preference pairs. It improves on GPT-4o's judging by a wide margin, but generation quality rises only modestly, from a 14% to an 18% win rate.
The takeaway you might not have expected: a graded reward carries more than a pass/fail one, but a single score still compresses a lot. Can scalar rewards capture all the information in agent feedback? argues that feedback holds two kinds of information. One is how good the attempt was. The other is what specifically to change, such as "the legend is in the wrong corner." A visual-similarity score captures the first and throws away the second. So the likely next step for visual design isn't a better score. It's feedback that names what's wrong with the image.
Sources 9 notes
RRVF rewards MLLMs for how closely rendered code output matches the source image, not for matching ground-truth text or code. This leverages asymmetry-of-verification: checking if rendered output matches is easier than generating code, making visual similarity a tractable RL reward signal.
On an unseen chart benchmark, RRVF-trained models maintained 96% code execution accuracy (down only 2 points from training data), while supervised fine-tuning dropped from 69% to 49%. The difference suggests rewarding visual match rather than exact code teaches more transferable principles.
MSRL pairs cheap rule-based textual rewards with costly MLLM-judged visual rewards comparing rendered code to ground-truth charts, improving ChartMimic and ReachQA scores by 6–10% beyond supervised-learning baselines. A two-stage curriculum applies textual rewards first, then adds visual feedback.
ToolRL decomposes rewards into binary format checking and correctness evaluation, achieving 17% improvement over base models and 15% over SFT on tool-use benchmarks. GRPO training outperformed PPO with the same reward design and generalized to unseen multi-hop QA.
DRO shows that using rubrics to accept or reject rollout groups—rather than converting rubric scores into dense rewards—prevents reward hacking. This separation preserves the categorical strength of rubrics while letting token-level rewards optimize within valid answers.
Show all 9 sources
Every tested reward model—aesthetic, preference, and consistency-based—develops its own failure mode, but all consistently fail to penalize geometric distortions, object duplication, and entity blending. A lightweight adaptive reward model trained on human-judged artifact examples can fill this gap.
ImageReward, HPS, and PickScore models trained on photorealistic text-to-image data cannot capture human preferences for graphic layouts because they lack exposure to spatial relationships and compositional balance. This distributional mismatch shows that domain transfer for preference models cannot be assumed across visual domains.
DesignSense, trained on 10,235 human preference pairs, significantly outperforms existing judges (54.6% Macro F1 improvement over GPT-4o) and raises AesthetiQ's win rate from 14.27% to 17.97% when used as a reward model in reinforcement learning.
Natural feedback carries two orthogonal types of information: evaluative (how well an action performed) and directive (how it should change). Scalar rewards capture evaluation but discard directional specifics that token-level distillation can recover, making the two complementary rather than redundant.
Papers this line draws on 8
The research behind the notes this line reads — ranked by how closely each paper relates.
- Understanding Reward Hacking in Text-to-Image Reinforcement Learning
- Learning Only with Images: Visual Reinforcement Learning with Reasoning, Rendering, and Visual Feedback
- AeSlides: Incentivizing Aesthetic Layout in LLM-Based Slide Generation via Verifiable Rewards
- Rendering-Aware Reinforcement Learning for Vector Graphics Generation
- DesignSense: A Human Preference Dataset and Reward Modeling Framework for Graphic Layout Generation
- ChartMaster: Advancing Chart-to-Code Generation with Real-World Charts and Chart Similarity Reinforcement Learning
- Breaking the SFT Plateau: Multimodal Structured Reinforcement Learning for Chart-to-Code Generation
- Code Aesthetics with Agentic Reward Feedback