What does an AI actually 'look at' when it checks if its chart matches the real one — text, numbers, layout, or color?
What attributes does the extraction tool G() measure in chart comparison?
This explores what the attribute-extraction step G(·) in ChartMaster's ChartSimRL reward pulls out of a chart when it checks a model-generated chart against the original, and what that tells us about how chart-generation models get graded.
This explores what the attribute-extraction step G(·) in ChartMaster's ChartSimRL reward pulls out of a chart when it checks a model's chart against the original. The corpus gives a short answer. G(·) pulls four kinds of attributes from both the rendered chart and the reference: text, numerical values, layout and color. The reward is the Jaccard overlap between the two sets, meaning the share of attributes they have in common Can rendering-based rewards improve chart code generation?. The corpus says nothing about how G(·) itself is built or tested. It does not say whether G(·) is OCR, a vision-language model or a parser, so we can't judge how reliable this half of the reward is.
The list makes more sense once you see the problem it fixes. Supervised fine-tuning teaches a model to copy code token by token, so it never directly learns what the finished chart should look like. Models trained that way still get colors and element positions wrong. ChartSimRL runs each candidate's code, draws the chart and scores the picture. Code that fails to run scores zero. The attribute check covers what a chart says (labels, numbers). A second check uses an image network called ResNet-18 to compare the overall look Can rendering-based rewards improve chart code generation?. The same idea appears elsewhere: MSRL pairs cheap rule-based text checks with a visual comparison scored by a multimodal model, and the pairing gets past the point where fine-tuning stops improving Can visual similarity rewards break the chart-to-code learning plateau?.
The attribute list also links to a data question. ChartMaster's training set was built partly because an earlier dataset made synthetic charts from a fixed list of attributes like chart type, color and text, and those charts came out too alike. The fix was to use 240K real charts from arXiv papers Do real charts improve training diversity more than synthetic seeds?. So the same handful of attributes can be useful for grading a chart and too narrow as a recipe for producing training charts.
The broader point is that grading what the output looks like, rather than whether the code matches, seems to carry over to new data. Models trained with RRVF's visual reward still produced runnable code 96% of the time on an unseen chart benchmark, while fine-tuned models fell from 69% to 49% Does visual reward training generalize better than code matching?. CAD shows the same split: code can run 91% of the time and still be geometrically wrong, and only the shape-based reward closes much of that gap Can CAD code be syntactically correct yet geometrically wrong?. There is a warning too. Text-to-image reward models consistently miss distorted geometry and duplicated objects Do text-to-image rewards all miss the same structural flaws?. A four-attribute check could have blind spots of its own, and the corpus has not tested that.
Sources 6 notes
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.
ReChartPrompt extracted 240K chart-code pairs from real arXiv papers, addressing homogeneity in ChartCoder's attribute-guided synthetic approach. Real human-designed charts across research fields carry visual and semantic diversity that fixed attribute seeds cannot reproduce.
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.
Supervised fine-tuning alone produces 91% executable CAD code but only 50% geometric IoU. Chain-of-thought reasoning raises IoU to 61%, while RL post-training pushes it to 72%, showing the two capabilities decouple during early training.
Show all 6 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.
Papers this line draws on 8
The research behind the notes this line reads — ranked by how closely each paper relates.
- Learning Only with Images: Visual Reinforcement Learning with Reasoning, Rendering, and Visual Feedback
- 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
- ChartEditor: A Reinforcement Learning Framework for Robust Chart Editing
- Rendering-Aware Reinforcement Learning for Vector Graphics Generation
- Understanding Reward Hacking in Text-to-Image Reinforcement Learning
- WebGen-R1: Incentivizing Large Language Models to Generate Functional and Aesthetic Websites with Reinforcement Learning
- ReLook: Vision-Grounded RL with a Multimodal LLM Critic for Agentic Web Coding