- Rating
- 4
- Clarity
- 3
- Confidence
- 4
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
This paper proposes MESCoder, a tree-structured self-corrective generation framework. MESCoder operates by decomposing screenshot-to-project construction for React, Vue, and Angular into localized subtree expansions and assembly decisions based on an extracted structural scaffold. It integrates a unified Project Agent, driven by a lightweight neural controller policy, that operates within an execution sandbox. The sandbox returns runtime compiler feedback to help the agent decide when to continue construction, perform local repairs, or escalate to cluster-level repairs. The policy is trained using a two-stage process: an offline behavioral cloning phase on an automated error-corrupted project dataset, followed by online reinforcement learning via PPO to optimize long-horizon executability and visual quality.
Strengths and weaknesses
Pros:
-
Transitioning the vision-to-code domain from simplistic, monolithic, single-file HTML generation to modular, compilable components within React, Vue, and Angular fills a critical, realistic gap in automated software engineering.
-
The framework’s empirical claims are backed by solid experimentation across six highly distinct, state-of-the-art multimodal foundation models, including GPT-4O, Claude 3.7 Sonnet, and Gemini 2.0 Flash, used as frozen code executors. The resulting evaluation details consistent, uniform boosts in both structural CSR and CLIP metrics, indicating an architecture-agnostic advantage.
-
The comprehensive ablation study presented in Table 2 isolates nearly every critical component of the architecture, workflow, and reward function. It cleanly quantifies the specific performance impacts of different architecture components, training settings, and rewards.
Cons:
-
The methodology suffers from several under-explained notation assumptions and ambiguous terminology in its core text. (1) In Equation 1, the policy module parameter symbol is thrown into the state-action transition system without any explicit prose defining it or explaining its parameters in the following paragraph, which skips standard formal context. (2) At Line 147, the text references executing a CONTINUE action "when the partial project is sufficiently healthy," yet fails to deliver an explicit quantitative or structural metric specifying what exact threshold constitutes a "sufficiently healthy" state.
-
The detailed implementations of the offline behavioral cloning and online PPO exploration stages are not transparent in terms of hyperparameter selection, state-action representation vector spaces, and exact optimization duration. Furthermore, when describing the baseline architectures in Section 4.1, the authors state that "Rule Repair" "Augments a scaffold-based generation pipeline with hard-coded, heuristic fix templates...". However, it is never clearly explained where this underlying "scaffold-based generation pipeline" originates, nor whether it shares identical layout processing models with MESCoder.
-
The systematic approach to achieving code robustness imposes a substantial operational overhead. As highlighted in Table 8, MESCoder averages 14.7 active sandbox validations and 10.2 distinct LLM inference invocations per single web page generation, driving the average wall time up to a significant 134.6 seconds. This footprint severely constrains the deployment of this architecture within latency-sensitive or interactive production environments.
-
The entire downstream execution engine relies fundamentally on an immutable, rule-configured scaffold preprocessor. If the visual extraction logic makes an early mistake, the control policy possesses no corresponding actions to step back, re-evaluate, or restructure the core layout tree root, making it highly brittle to primary detection errors.
Questions
-
Can you explain the theoretical or empirical process used to establish the exact action set: {CONTINUE, PATCHLOCAL, PATCHCLUSTER, ASSEMBLE, FINISH}? Why are these specific five actions necessary and sufficient to minimize compilation errors across highly distinct framework engines?
-
In reference to text descriptions indicating that a CONTINUE choice triggers when a partial project is "sufficiently healthy", please clarify the exact criteria used to calculate this. Is it tied directly to a zero-count or stable threshold of sandbox error clusters () within the active scope, or is it a qualitative layout heuristic check?
-
What is the specific architectural layout and component makeup of the pipeline underlying the "Rule Repair" baseline? Does it map onto the identical layout extraction tree used by MESCoder, or is it built on a separate, simplified single-pass component decomposition mechanism?
Limitations
Yes. The authors honestly outline their limitations in Appendix H.
Paper formatting concerns
None
Final justification
The rebuttal substantively addresses all four weaknesses and all three questions, with new experiments (compute-matched cost comparison, scaffold noise robustness) that meaningfully strengthen the paper's claims. Based on the initial version of the paper, I will maintain the score.
Meta-review
The paper proposes MESCoder, which first extracts a hierarchical scaffold from the screenshot and then incrementally constructs and repairs the project using a lightweight learned controller. The controller chooses among five high-level actions - continue construction, assemble components, perform a local repair, perform a cluster-level repair, or finish -- while a frozen LLM executor produces the corresponding code edits. Runtime sandbox feedback is incorporated throughout generation. The controller is initialized through offline behavioral cloning on clean and synthetically corrupted projects, then refined using PPO.
The claims of the paper are that: (1) hierarchical decomposition makes multi-file project construction and error localization more tractable (2) explicitly distinguishing local from cross-file repair is important for framework-level consistency; and (3) offline initialization followed by online RL enables the controller to learn context-sensitive repair-scope escalation. The empirical results support these claims across six frozen LLM executors and three frameworks. Compilation success improves consistently, with particularly large gains on Angular, where cross-file module and dependency constraints are more severe. Visual similarity scores also improve rather than degrading as executability increases.
The reviewers generally agree on the paper's central characterization. They view the task as important and realistic, and identify the scaffold, the distinction between local and cluster-level repair, the two-stage learning strategy, the consistent gains across six heterogeneous executors, and the thorough ablation study as the main strengths. The primary disagreement concerns whether the evaluation is sufficiently broad and whether the results generalize beyond the current benchmark, leading to one negative recommendation.
Main strengths The first major strength is the problem formulation. Executable multi-framework generation is meaningfully harder and more realistic than isolated HTML generation because correctness depends on project-wide imports, component interfaces, bindings, assembly, and framework-specific configuration. The paper identifies a clear gap between visual fidelity and actual software executability and proposes a method aligned with the structure of that gap.
Second, the system design is sensible and interpretable. Separating high-level repair control from code realization yields a relatively small action space in which online RL can focus on decisions such as whether a failure is local or requires broader intervention. The distinction between PATCHLOCAL and PATCHCLUSTER is especially well motivated for multi-file projects. The scope-escalation experiments indicate that always repairing locally cannot escape cross-file inconsistencies, whereas always making broad edits can damage healthy files; the learned policy performs selective escalation and obtains the best outcome.
Third, the empirical gains are consistent across all six model executors and across React, Vue, and Angular. The largest improvements occur in the settings most closely tied to the paper's motivation -- Angular, harder pages, and cross-file error categories -- strengthening the connection between the proposed mechanism and the observed results.
Fourth, the ablation study is strong. Removing the scaffold, the error-reduction reward, the learned policy, online RL, offline initialization, or the cluster-level repair action all produces substantial degradation. This provides useful evidence that the result is not attributable to a single incidental component and that offline and online learning play complementary roles.
Finally, the paper is generally clearly organized, and the reviewers found no meaningful ethical concerns. Two reviewers rate it on the accepting side, including one clear accept and one borderline accept.
Main weaknesses and missing evidence The most important weakness is the lack of a convincing compute-matched comparison. Because MESCoder relies on repeated LLM invocations and sandbox executions, comparisons primarily against one-shot generation do not establish whether the gains come from the learned controller or simply from greater test-time computation. The method averages roughly 10.2 LLM calls, 14.7 sandbox validations, and 134.6 seconds per page. Stronger evidence would come from comparisons with iterative retry, best-of-N, generic execution-guided repair, and rule-based repair under matched budgets for model calls, sandbox usage, generated tokens, or wall-clock time.
A second weakness is the limited scale and diversity of the evaluation. The test set includes 200 pages, only 45 of which are classified as hard, leaving uncertainty about whether the reported gains would hold across a broader range of projects, visual designs, dependency structures, and framework configurations. Since all results are reported on a single benchmark, it is also possible that the scaffold extractor, corruption process, and sandbox checks are particularly well matched to DesignBench.
Third, the offline training distribution is constructed using synthetic corruption operators. Although the operators are plausible and cover several error families, the submission does not clearly demonstrate that their frequencies and structures match errors naturally produced by the six executors during end-to-end generation. A comparison between synthetic corruptions and real executor error logs would substantially strengthen the claim that offline initialization teaches transferable repair priors rather than benchmark-specific heuristics.
Fourth, the method relies heavily on a fixed scaffold preprocessor and framework-specific sandbox. Because the controller cannot revise the scaffold, early structural errors may propagate through generation and repair, while incomplete sandbox checks may miss important failures. The paper acknowledges these dependencies but provides limited quantitative analysis of them.
Several implementation details also remain unclear, including the controller’s state representation, PPO configuration, the definition of a sufficiently healthy partial project, and whether rule repair and RLEF use the same scaffold, prompts, budgets, and verification setup. These omissions make the results harder to reproduce and compare fairly.
Comments about AST structural contrast appear unrelated to the submitted method and should not materially affect the decision. Concerns about data disjointness and compute matching, however, are relevant.
Issues that could change the recommendation after rebuttal
The most important additions would be:
Strong evidence on compute matching and baseline fairness could move the paper clearly toward acceptance. If the gains disappear under matched budgets or depend on weaker baseline infrastructure, the recommendation would move toward rejection.
Recommendation Overall, the paper is technically solid and well motivated, with a meaningful problem, coherent hierarchical repair design, strong ablations, and consistent results across frameworks and executors. The main concerns are the substantial inference cost, limited single-benchmark evaluation, and reliance on synthetic training errors and fixed infrastructure.
My current recommendation is accept. Confidence would increase substantially with budget-controlled comparisons and clearer evidence that the gains come from the learned repair policy rather than additional test-time computation or benchmark-specific engineering.