Can visual similarity rewards break the chart-to-code learning plateau?
Chart-to-code generation hits diminishing returns with supervised learning alone. Can combining rule-based code checks with visual similarity judgments from a multimodal model unlock new performance gains?
Breaking the SFT Plateau proposes Multimodal Structured Reinforcement Learning (MSRL) for chart-to-code generation: converting an input chart image into the plotting code that reproduces it. The authors report that "simply increasing SFT data eventually leads to diminishing improvements," so MSRL instead "employs a multi-granularity reward system that integrates both textual and visual feedback." The textual layer uses "rule-based rewards [that] validate fine-grained code details," while the visual layer uses "a model-based reward [that] assesses the structural similarity between rendered code and ground-truth charts" — the generated code is executed, rendered as an image, and an MLLM judges how closely that rendering matches the original chart. On ChartMimic and ReachQA, MSRL "improves high-level metrics by 6.2% and 9.9%," reportedly surpassing open-source baselines and approaching closed-source models.
Training proceeds as "a two-stage curriculum": the model is first optimized against the rule-based textual reward, which the paper describes as checking "code correctness from five key perspectives," and only then is the visual reward added "for further enhancement." The textual reward targets syntactic and value-level correctness; the visual reward catches errors textual checks miss — overall chart structure and appearance — by comparing a rendering of the model's own code against the ground-truth chart image rather than against reference code text.
This sits alongside Why do outcome-based reward models fail at intermediate step evaluation?: MSRL's rule-based textual reward is a cheap, verifiable signal in the same family as outcome-based checks, while its MLLM-judged visual reward is the costlier model-based signal that paper associates with process-level feedback — MSRL pays for both rather than choosing one. It also extends the move toward Can step-wise expert rewards help small models learn hard reasoning?: both reward similarity to a ground-truth reference rather than an exact match, but MSRL's reference is a rendered image, not an expert reasoning trace, and the comparison itself is delegated to a second model rather than a similarity metric.
The excerpt does not specify which model performs the visual judging, give the five textual correctness criteria individually, or report an ablation isolating the visual reward's contribution from the textual reward's. It also does not address whether the render-and-judge mechanism generalizes past chart-to-code to other tasks with an executable, renderable output — the claim is established for this domain, not as a general recipe for structured-output RL.
Inquiring lines that read this note 36
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?- How does rendering and measuring beat vision-language models for slide assessment?
- Can bounding-box signals replace image encoders for visual output evaluation?
- Why do vision-based rewards for web generation incur substantial computational overhead?
- Can matching UI elements by text similarity and position handle visually equivalent but structurally different layouts?
- What performance gains does ALISA achieve over prior WebUI-to-Code training methods?
- 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?
- What layout and text metrics does ChartEditor use to measure visual fidelity?
- Can Chamfer Distance and code validity capture whether designs match an engineer's intent?
- Does format reward contribute independently to CAD-Coder's final performance?
- What signals matter more for UI evaluation: rendered visuals or symbolic descriptions?
- Do quality ceiling effects appear in other visual domains beyond game UI?
- Can render-and-judge mechanisms generalize beyond chart-to-code to other executable outputs?
- Can professional design workflows integrate vector generation from pretrained vision-language models?
- 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?
- What limits SlideCoder to single-slide generation from reference images?
- How does the Slide Complexity Metric measure difficulty across layout types?
- How much does ChartSimRL improve performance over supervised training alone?
- Does visual perception improve slide generation without text-based program output?
- Does visual matching as a reward target work outside the chart domain?
- How does render-and-compare training differ from expert-judged rewards in visual tasks?
- Do vision-language models learn design taste differently than structure recognition?
- Has the MLLM visual critic been validated against human judgments of front-end quality?
- How does color-gradient segmentation compare to learned visual decomposition for slides?
- Why do prior LLM reward systems fail to capture visual design quality?
- What gap exists between visual fidelity and semantic understanding?
Related concepts in this collection 4
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
-
Why do outcome-based reward models fail at intermediate step evaluation?
Outcome-based reward models (ORMs) evaluate only final results, creating a mismatch with the need to assess reasoning quality at intermediate steps. Understanding this failure mode matters for building better AI reasoning systems.
MSRL pairs a cheap rule-based reward with the costlier model-judged visual reward this note frames as the ORM/PRM trade-off
-
Can step-wise expert rewards help small models learn hard reasoning?
When small models fail on hard multi-step problems, can training them to match expert reasoning steps rather than final answers provide useful learning signals? This explores whether intermediate-step alignment might overcome the limitations of both supervised fine-tuning and outcome-based reinforcement learning.
both reward similarity to a ground-truth reference, but MSRL's reference is a rendered image judged by a second model
-
Can trajectory structure replace hand-annotated process rewards?
Recent methods extract step-level supervision directly from how agent trajectories are structured—trees, expert alignments, tool calls—rather than training separate reward models. Can this structural approach consistently avoid annotation costs?
MSRL's multi-granularity reward is another way of densifying a sparse outcome signal, via rendering rather than trajectory structure
-
Why do correct code trajectories teach models to tolerate errors?
Explores why standard outcome-based RL fails for code tool use: when models receive reward for correct final answers despite intermediate code errors, they learn that mistakes are acceptable, producing poor reasoning quality.
also RL over code generation, but filters rollout noise rather than adding a second, visual reward signal
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
- Breaking the SFT Plateau: Multimodal Structured Reinforcement Learning for Chart-to-Code Generation
- ChartEditor: A Reinforcement Learning Framework for Robust Chart Editing
- Learning Only with Images: Visual Reinforcement Learning with Reasoning, Rendering, and Visual Feedback
- ReLook: Vision-Grounded RL with a Multimodal LLM Critic for Agentic Web Coding
- Code Aesthetics with Agentic Reward Feedback
- Rendering-Aware Reinforcement Learning for Vector Graphics Generation
- SFT Memorizes, RL Generalizes: A Comparative Study of Foundation Model Post-training
Original note title
MSRL breaks the chart-to-code SFT plateau by rewarding rendered-code similarity to the ground-truth chart alongside rule-based text checks