An AI learns to turn chart pictures into the code that redraws them — but which exact checks grade its code before any image even renders?
What are the five textual correctness criteria MSRL uses for code validation?
This explores what the MSRL chart-to-code training method checks when it scores generated plotting code on text alone, and specifically what its five correctness criteria are. The direct answer: the corpus does not list those five criteria.
This explores what MSRL's rule-based textual reward checks when it grades plotting code, before any picture of the chart is drawn. The corpus can't name the five criteria. None of the twelve retrieved notes is about MSRL. The library does have one MSRL note, titled 'MSRL breaks the chart-to-code SFT plateau by rewarding rendered-code similarity to the ground-truth chart alongside rule-based text checks', but it says plainly that its source excerpt does not list the five checks one by one. It only says the paper checks 'code correctness from five key perspectives', aimed at syntax and value-level details. For the actual list, go to the paper itself: arXiv 2508.13587, the method section on its reward design.
The note is still useful for what it does say. MSRL (Multimodal Structured Reinforcement Learning) trains a model to turn a chart image into the code that redraws it. It uses two stages. First, cheap rule-based checks on the code text. Then the code is run, the chart is drawn, and a second multimodal model judges how closely the drawing matches the original. Text checks catch wrong values and syntax, and the visual check catches layout and appearance errors that the text alone can't show.
That visual stage brings a risk the corpus does cover. When a model does the judging, it can be fooled by surface features. LLM judges reliably fall for fake authority signals and polished formatting Can LLM judges be fooled by fake credentials and formatting?. A system that rewards how a drawing looks inherits a version of that weakness, which is one reason to start with checks that can be verified by rule.
Rule-based feedback on code also has limits. In accessibility work, feeding a checker's violation reports back into code generation clearly beats plain prompting, but it still misses subtler requirements such as keyboard focus Can feeding accessibility violations back into code generation improve results?. LLM repairs improve 80% of files but fully fix fewer than 26% Can LLMs actually fix web accessibility problems?. A fixed set of correctness checks only rewards what it measures. And in RL over code with tools, even rollouts that count as correct can contain environment noise that teaches the model to tolerate errors, so they have to be filtered before training Why do correct code trajectories teach models to tolerate errors?. Together these explain why MSRL adds a visual check on top of its five text checks rather than trusting either one alone.
Sources 4 notes
Research identified four evaluation biases in LLM judges, with authority and beauty biases being semantics-agnostic and trivially exploitable through fake references and formatting—zero-shot attacks requiring no model access or optimization.
FeedA11y's ReAct-based feedback loop significantly outperforms zero-shot, few-shot, and self-criticism prompting by iteratively feeding evaluator results back into generation. However, it still struggles with nuanced ARIA constraints like keyboard navigation and focus management, suggesting evaluator feedback alone cannot substitute for domain expertise.
Testing Kimi K2.5 on real HTML pages shows LLM-generated repairs improve compliance in 80% of cases and reduce violations per file from 3.98 to 1.7, yet fully resolve fewer than 26% of files. Iterating repairs increases cost 52% with no improvement.
GRPO-RoC filters positive trajectories for quality while preserving diverse failures as negative signal, allowing a 14B model to reach frontier math performance in 510 RL steps, surpassing much larger models with cleaner reasoning.
Papers this line draws on 8
The research behind the notes this line reads — ranked by how closely each paper relates.
- LLM Based Web Accessibility Repair: An Empirical Study of Detection, Remediation, and Cost
- Human or LLM? A Comparative Study on Accessible Code Generation Capability
- Large Language Models Cannot Self-Correct Reasoning Yet
- Humans or LLMs as the Judge? A Study on Judgement Biases
- rStar2-Agent: Agentic Reasoning Technical Report
- Supervised Reinforcement Learning: From Expert Trajectories to Step-wise Reasoning
- Can You Trust LLM Judgments? Reliability of LLM-as-a-Judge
- References Improve LLM Alignment in Non-Verifiable Domains