What exactly does an AI check to judge if its edited chart actually looks right?
What layout and text metrics does ChartEditor use to measure visual fidelity?
This explores how ChartEditor decides whether an edited chart came out right: what it checks about the layout and the text once the generated code is run and drawn. It also looks at how that compares with other ways the corpus has of scoring rendered visual output.
This explores how ChartEditor scores an edited chart for visual fidelity, meaning how closely the drawn result matches what the edit asked for. The corpus gives a clear but partial answer. ChartEditor uses two fine-grained metrics. The layout metric checks the position, size and color of the chart's graphical parts, such as bars, lines and markers. The text metric checks the words on the chart and their font styling Can rendering rewards help small models beat larger chart editors?. Both checks run on the rendered chart, not on the code. The generated code has to run first, and only then is its drawn output compared with the target. During training, this render-and-compare check becomes the reward itself. That reward lets a 3B model beat chart-editing models of 26B and 34B parameters. The source gives no numbers for those wins, and it doesn't say how the layout and text scores are combined or how a failed run is weighted against a near miss.
Splitting fidelity into 'where and how big are things' and 'what does the text say and how is it styled' turns out to be a pattern across the corpus. ALISA does nearly the same thing for web pages. It renders the generated page and the reference page, pairs elements up by matching their text, and then scores spatial alignment, grouping and style consistency Can rendering-based metrics better reward WebUI code generation?. AeSlides applies rule-based layout checks to rendered slides and raises aspect-ratio compliance from 36% to 85% Can rule-based rewards fix LLM slide layout quality?. The shared idea is to measure the rendered picture with checks a program can verify, rather than asking another AI whether the result looks right.
Not every chart system makes that choice. ChartSimRL combines attribute overlap (do the colors, labels and other properties match?) with an image-similarity score from a small vision network Can rendering-based rewards improve chart code generation?. MSRL starts with cheap text-based rule checks and then adds a costlier multimodal model that judges the rendered charts Can visual similarity rewards break the chart-to-code learning plateau?. ReLook goes all the way to an AI critic that scores screenshots, and gives zero reward to anything that fails to render Can multimodal LLMs judge front-end code quality better than tests?. Seen against these, ChartEditor sits at the rule-based end of the range.
Why might rule-based checks be the safer choice? General image reward models trained on photographs don't transfer well to judging layouts Why do image reward models fail at layout evaluation?. Image rewards also tend to share blind spots for structural flaws Do text-to-image rewards all miss the same structural flaws?. The point carries over to visual checks in general. WebGen-R1 found that a website can look perfect and still be broken underneath Can vision-language models alone detect broken website functionality?. Requiring the code to execute and then comparing concrete properties guards against that kind of failure. It works only because a chart edit is narrow enough to spell out exactly what 'correct' means.
Sources 9 notes
ChartEditor-3B, trained with a rendering reward that enforces both code executability and visual fidelity, achieves state-of-the-art performance on chart editing benchmarks and consistently beats larger specialized models with 26B and 34B parameters.
ALISA computes RL rewards by rendering generated and ground-truth pages, then matching elements by text similarity and measuring spatial alignment, grouping, and style consistency. This avoids vision-model overhead and DOM-structure brittleness caused by code asymmetry in crawled training data.
AeSlides uses GRPO with render-time metrics to train slide generation, raising aspect-ratio compliance from 36% to 85% and outperforming reflection methods and Claude-Sonnet-4.5. The key: scoring rendered HTML directly rather than judging markup.
ChartSimRL applies a two-part reward—Jaccard attribute overlap plus ResNet-18 visual similarity—to rendered chart images, addressing color and positioning errors that supervised fine-tuning alone cannot fix. This marks the first multimodal reward system for chart-to-code generation.
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.
Show all 9 sources
ReLook trains a reward model on visual screenshots rather than unit tests, using a strict zero-reward rule for invalid renders to prevent reward hacking. It outperformed baselines across three benchmarks by embedding pixel-level visual judgment into the policy training loop.
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.
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.
WebGen-R1 found that VLM aesthetic scoring misses broken event handlers and logic chains hiding beneath visually perfect interfaces. The solution is to gate VLM scoring behind deterministic structural checks and actual build-render-execute pipelines first.
Papers this line draws on 8
The research behind the notes this line reads — ranked by how closely each paper relates.
- Code Aesthetics with Agentic Reward Feedback
- ReLook: Vision-Grounded RL with a Multimodal LLM Critic for Agentic Web Coding
- WebGen-R1: Incentivizing Large Language Models to Generate Functional and Aesthetic Websites with Reinforcement Learning
- GameUIAgent: An LLM-Powered Framework for Automated Game UI Design with Structured Intermediate Representation
- 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
- ChartMaster: Advancing Chart-to-Code Generation with Real-World Charts and Chart Similarity Reinforcement Learning