- Rating
- 4
- Clarity
- 3
- Confidence
- 4
- Originality
- 3
- Quality
- 3
- Significance
- 2
Read review
Summary
The paper introduces a test-time scaling approach for the plot-to-code generation task. The goal is to create accurate code that can render a given plot. Most existing approaches either rely on one-pass generation or use multiple iterations with complex agentic pipelines, which can be inefficient and inaccurate. The paper introduces an approach in which a verifier is trained to diagnose errors in generated chart code.
The verifier takes the generated code, the rendered plot, and the original reference plot as input, and identifies the issues. The errors can be categorized into four types: compiler errors, data errors, local style errors, and global style errors. The verifier predicts the error type and inserts TODO comments into the code, indicating which parts should be changed to make the rendered plot closer to the reference plot. As a result, in the next step, the generator does not need to regenerate the entire code. Instead, it only modifies the regions identified by the verifier. This reduces the number of tokens generated by the generated overall.
The paper proposes an SFT and RL pipeline to train the verifier. The authors also create a diagnostic dataset for verifier training. Experiments are performed on two benchmarks and show that the proposed method performs better than Best-of-N sampling and multi-agent refinement while using fewer tokens. However, when used with a specialized plot-to-code model, the refinement method does not improve performance. The qualitative results show that performance improves as the number of refinement iterations increases, although the final graphs still remain noticeably different from the ground truth.
Strengths and weaknesses
The following are the strengths of the paper.
-
The paper focuses on a very practical and useful problem. Plot-to-code generation can be valuable in many real applications, especially when users want to recreate or edit charts from available research papers, where the plotting codes are not available.
-
The idea of using a verifier to identify the regions that need to be modified is interesting. It is similar to how humans debug code, where we first check the output, identify the problem, and then only modify the relevant part of the code. This also reduces some burden on the generator.
-
The experiments are quite comprehensive. The authors evaluate the method on two benchmarks and compare it with many baselines, including Best-of-N, self-debugging, and multi-agent. They also provide ablations and analysis experiments, which help in understanding which parts of the method are useful.
The following are the weaknesses of the paper.
-
The comparison with baselines may not be fully fair. The proposed verifier is trained on 12k diagnostic examples from Chart2Code-160K, while baselines like Best-of-N, self-debugging, and multi-agent refinement seem to be mostly zero-shot or prompt-based methods. Because of this, it is hard to know whether the gains come from the proposed diagnostic refinement idea, or simply from giving the method extra in-domain training.
-
The qualitative examples are not fully convincing. In Figure 4 and 10, the final outputs after refinement still look visually far from the ground truth. This is concerning as the automatic metrics may not fully capture fine-grained visual differences, or that the shown examples may not strongly support the reported quantitative gains.
-
The token-efficiency claim is useful, but the token accounting is not very clear. The verifier takes images and code as input, and the generator also receives code context and produces patches over multiple iterations. It is not clear whether the reported token numbers include verifier input and output tokens as well?
-
The diagnostic categories are quite coarse. The verifier predicts errors such as data, local style, and global style, but high-fidelity plot repair may need more detailed feedback. For example, the model may need to know the exact wrong color, marker, tick label, axis range, legend position, font size, or data value.
Questions
The following are suggestions/questions for the rebuttal.
-
About fairness, will it be possible to compare against baselines that are also trained or adapted using the same diagnostic data budget? Since the verifier receives additional in-domain training, it is not fully clear whether the improvement comes from the proposed visual-code diagnostic mechanism or from the extra training data. It would be good to include an ablation that separates the effect of the diagnostic design from the effect of in-domain SFT/RL training.
-
All qualitative examples look visually far from the ground truth even after refinement, but the quantitative numbers are high. A comment on whether the current metrics are sensitive enough to fine-grained plot errors such as wrong tick labels, colors, marker shapes, font sizes, legends, and exact data values will be helpful.
-
The paper reports that the proposed method uses fewer tokens than multi-agent refinement, but it is not fully clear what tokens are counted. Do the reported numbers include verifier input and output tokens as well? If not, including them would be helpful and fair.
Also, please refer to the weaknesses section above.
Limitations
Yes
Paper formatting concerns
No paper formatting concerns.
Final justification
The rebuttal addresses several of my concerns and strengthens my assessment of the paper, and I would like to retain my rating of Borderline Accept.
Meta-review
This paper focuses on plot-to-code generation via iterative test-time refinement. The authors train lightweight discriminators (2B visual-code diagnostic verifier) that classifies visual discrepancies into four error types, localizes suspicious code regions via TODO comments, and guides iterative patch-based refinement.
All reviewers agree the problem is practical and the approach is well-motivated. Reviewer RmuF finds the idea of using a verifier to identify regions "similar to how humans debug code"; Reviewer xL4t calls the motivation "clear and well-grounded"; Reviewer qdWh notes the method "targets a concrete weakness of current plot-to-code systems." The Table 5 ablation showing the trained 2B verifier outperforms untrained 32B models is highlighted by multiple reviewers as convincing evidence that gains come from training rather than scale.
However, the four reviewers raise the following concerns:
Generalization failure on specialized generators. All reviewers flag that the method degrades ChartMaster-7B performance. Reviewer xL4t raises the deeper question of whether "as generators become more capable...the diagnostic signal may become less reliable or even harmful." Reviewer qdWh asks whether the issue is "inaccurate diagnostics, bad patch merging, or insufficient code-editing ability." A failure analysis with error-type breakdown would clarify applicability boundaries and, if convincing, would shift assessment significantly.
Synthetic training vs. real errors. Reviewers qdWh and RmuF both note the verifier is trained entirely on clean single-type GPT-4o mutations. Reviewer qdWh observes the paper "does not show whether these synthetic errors match real generation errors well enough, especially when multiple error types occur together." An evaluation of diagnostic accuracy on actual model outputs would substantially strengthen the empirical case.
Fairness of comparisons. Reviewer RmuF notes that baselines are zero-shot while the proposed method benefits from 12K in-domain examples, making it "hard to know whether the gains come from the proposed diagnostic refinement idea, or simply from giving the method extra in-domain training." This asymmetry makes it difficult to attribute gains specifically to the diagnostic formulation rather than to in-domain supervision.
Incomplete experimental details. Reviewer qdWh asks for exact inference budgets for all methods. The token-efficiency claim also needs clarification as per Reviewer RmuF.
Overall, I find this submission to be a technically solid paper on a practical problem with clear efficiency gains on general-purpose generators. The rebuttal closes the main empirical gaps raised above through additional experiments and addressed the concerns. I recommend acceptance as this provides a useful direction for efficient test-time refinement in multimodal code generation.