acceptodds
Published as a conference paper at NeurIPS 2026

Render Structure Uncertainty for HTML Repair in MLLM-based UI-to-Code Generation

Haoran Ma, Jiechao Gao, Shisong Tang, bing han, Jifeng Hu, Hechang Chen

Abstract

Existing MLLM-based UI-to-Code generation methods can generate complete HTML/CSS codes through end-to-end or multi-stage pipelines, yet the generated codes often contain structural errors such as incorrect repeated layouts, wrong component boundaries, or missing interaction slots. Subsequent generations may continue along the erroneous structure, causing the error to propagate and amplify. This paper studies post-generation repair: how can we locate and repair unreliable local DOM structures? We observe that this repair process is ambiguous in two ways: a mismatch between the target screenshot and the output may correspond to multiple plausible DOM subtrees, and a single DOM subtree may admit multiple repairs with different rendered behaviors. We propose Render Structure Uncertainty (RSU)for partial DOM repair, a browser grounded uncertainty layer that can be attached to any base HTML generator. RSU parses the target screenshot into a visual structure graph and converts the browser execution trace of the generated code into a DOM-anchored render structure graph. By matching these graphs, RSU yields structural mismatches and a small set of candidate DOM holes, preserving error attribution uncertainty. For each hole, RSU generates multiple local candidates, renders them in the full page context, and clusters them using render-structure signatures that encode layout relations, repeated patterns, content slots, semantic roles, and invalid states, thereby modeling repair uncertainty. The retained representative candidates form a compact Partial DOM candidate set, over which we perform global reranking to produce the final HTML code. In this way, RSU reframes HTML repair into uncertainty-guided search in render-structure space, avoiding premature commitment to either a single error location or a single local repair. Experiments show that RSU improves the generation quality of base models, producing higher-quality HTML with better layout consistency and fewer local structural errors.

Keywords:
Sydney, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 49%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.33 over 3 reviews, above 49% of the others.
Reviewer_yZQvOpenReview ↗
Rating
4
Clarity
2
Confidence
4
Originality
3
Quality
3
Significance
3
Read review
Summary

The paper proposes RSU as a post generation repair layer for UI to code systems. The core pipeline parses the target screenshot into a visual structure graph and converts the rendered HTML output into a DOM anchored render graph. It then proposes candidate DOM holes, generates multiple local repairs, clusters them by rendered behavior, and reranks composed partial DOM candidates in the full page context.

Strengths and weaknesses

Strengths

  1. The paper identifies a real UI repair problem because the same visual mismatch can come from the section wrapper, an intermediate container, or individual repeated items.
  2. The browser based DOM trace is a good design choice because it connects visual regions back to actual editable subtrees rather than guessing from pixels alone.
  3. The budget matched table is useful because RSU beats full page sampling, full page repair, random hole repair, and three saliency style hole heuristics with the same 52 browser renders.

Weaknesses

  1. The target structure parser is important to the whole pipeline but the paper does not show enough direct error analysis for section boundaries repeated groups slots and relation edges.
  2. The hole selection stage is sensible but still heuristic because it uses LayoutLCA nearest layout parents wrapper children area limits and CSS coupling rules.
  3. The final reranking score mixes several structure and visual terms and would be stronger if its correlation with human preference were reported more directly.
  4. The current evaluation mainly measures static screenshot fidelity and does not say much about responsive behavior scrolling hover states forms or JavaScript driven UI states.
Questions

What is the standalone accuracy of the screenshot structure parser for detecting sections repeated groups buttons text slots and relation edges?

Limitations

the authors adequately addressed the limitations in appendix

Paper formatting concerns

N.A.

Final justification

I keep my score, and vote for accept.

Reviewer_TbuLOpenReview ↗
Rating
4
Clarity
3
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary

RSU is a post-generation repair framework for UI-to-HTML that handles uncertainty in both error localization and repair. It aligns visual and render-structure graphs to find mismatched DOM holes, generates multiple candidates per hole, clusters them by structural signatures, and reranks globally. This avoids error propagation and improves layout consistency over base models.

Strengths and weaknesses

Strengths

  1. The paper is clear, well-structured, and easy to follow.
  2. The motivation for focusing on post-generation HTML repair and addressing the ambiguity in the repair process is well justified.
  3. The proposed framework of utilizing Render Structure Uncertainty (RSU) and DOM-anchored graph matching is conceptually sound and clearly presented.
  4. Both the quantitative and qualitative experiments are comprehensive, convincingly demonstrating the effectiveness of the proposed approach.

Weaknesses

  1. The rationale for designing a complex clustering mechanism using hand-crafted render-structure signatures appears incremental.
  2. The latency and computational overhead introduced by the multi-stage browser rendering, graph matching, and candidate clustering processes appear significantly high. A clear trade-off analysis between the performance gain and the extra inference time cost is missing.
  3. The paper lacks an ablation study on the specific features used in the render-structure signatures (e.g., layout relations, semantic roles, and invalid states), which would be necessary to demonstrate their individual contributions and effectiveness.
  4. There is no analysis on handling dynamic interactions and JavaScript logic, which leaves the limitations of the proposed method in terms of real-world dynamic webpage repair insufficiently explored.
Questions

See the above weaknesses.

Limitations

yes

Paper formatting concerns

None

Reviewer_Gpb5OpenReview ↗
Rating
5
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
3
Read review
Summary

This paper studies post-generation repair for MLLM-based UI-to-code. Given a target screenshot and an initial HTML/CSS page produced by a base generator, the task is to identify and correct local structural errors at test time. The authors formulate repair as an uncertainty-guided search problem and distinguish two sources of ambiguity: attribution uncertainty (where error comes from) and repair uncertainty (how error can be fixed). RSU executes the generated code in a browser. Then, it converts the screenshot and the rendered page into comparable structure graphs, compares them to find mismatches, and traces these mismatches back to a small set of candidate ``DOM holes'' using greedy set cover. For each hole, RSU generates several local repair candidates, renders each candidate in the full-page context, and clusters the results by render-structure signatures. It keeps representative candidates from these clusters together with a no-op option. A structure-oriented scoring function then reranks the resulting Partial DOM candidates and selects the final page. Experiments on Design2Code and ScreenBench with four backbone MLLMs (GPT-4o, Claude-3.5-Sonnet, Gemini-2.5-Pro, and Qwen2.5-VL) show that RSU improves over direct generation and structured pipelines (Direct, DCGen, UICopilot, and ScreenCoder). Budget-matched comparisons and component ablations further suggest that the gains come mainly from structural localization rather than from additional computation.

Strengths and weaknesses

Strengths:

Quality:

a. The paper studies a real limitation of current UI to code systems: once the initial HTML structure is wrong, later generation or refinement often preserves the same structural error.

b. The proposed RSU pipeline is technically sound and well motivated. Matching target visual structures with DOM anchored render structures is a reasonable way to localize repair targets.

c. The experiments are solid. The paper evaluates on two benchmarks and four MLLM backbones, and includes ablations for hole proposal, repair uncertainty modeling, hyperparameters, and budget matched comparisons.

Clarity:

a. The paper is clearly written and easy to follow.

b. The distinction between attribution uncertainty and repair uncertainty is intuitive and helps explain the method.

c. The figures and case studies are useful for understanding why local structural repair is needed.

Significance:

a. Post generation repair is an important problem for UI to code generation, but is less studied than direct generation.

b. RSU is useful because it can be attached to different base generators without retraining them.

c. The improvements on Position and Block metrics are meaningful, since these metrics are closely related to layout structure errors.

Originality:

a. Modeling HTML repair through render structure uncertainty is an interesting idea.

b. The combination of browser grounded structure matching, DOM hole proposal, render behavior clustering, and global reranking is novel and well suited to this task.

Weaknesses:

Quality:

a. The method depends on the quality of the visual structure parser and DOM anchoring. More analysis of parser errors would make the method more convincing.

b. The cost analysis is still somewhat limited.

Clarity:

a. Some implementation details could be clearer, especially the training of the structure parser, the candidate generation prompts, and the exact scoring function Q.

b. The main result table is dense. Reporting variance or confidence intervals would make the improvements easier to judge.

Significance:

a. The current setting mainly focuses on static single viewport HTML/CSS pages. It is less clear how well RSU handles responsive layouts, interaction states, multi page websites, or globally coupled CSS failures.

b. The paper does not fully discuss code maintainability, accessibility, or semantic HTML quality, which are important for real frontend development.

Originality:

a. Some components, such as candidate generation and reranking, are based on familiar ideas. The novelty mainly comes from how these components are combined for render structure guided repair.

b. The paper would be stronger with more direct comparison to other test time repair or self refinement methods under the same budget.

Overall:

I recommend acceptance. The paper identifies a meaningful problem.

Questions

please see weakness

Limitations

YES

Paper formatting concerns

NA

Comments on the paper

1 comment
Meta-review

This paper introduces RSU, a post generation repair framework for MLLM based UI to code generation. It uses browser grounded structure matching to locate unreliable DOM regions, generates multiple local repairs, and reranks them in the full page context. The paper studies a real problem, the method is technically sound, and the experiments across two benchmarks and four MLLM backbones are reasonably comprehensive. The budget matched comparisons also suggest that the gains come from structural localization rather than simply using more computation.

Strengths

  1. The paper addresses a practical yet underexplored limitation of UI-to-code systems: structural errors in the initially generated HTML/CSS often persist or become amplified during subsequent refinement.

  2. RSU combines browser-grounded graph matching, multi-level DOM hole proposal, render-behavior clustering, and global reranking to preserve both error-attribution and repair uncertainty. It can also be attached to different base generators without retraining them.

  3. The experiments cover two benchmarks and four MLLM backbones, with component ablations and budget-matched comparisons. The results indicate that the improvements come from structure-aware localization and repair rather than merely from additional computation.

Weaknesses

  1. Errors in detecting repeated groups, interaction slots, or structural relations can directly affect mismatch localization and reduce downstream repair effectiveness.

  2. The multi-stage pipeline requires repeated MLLM calls and browser rendering, resulting in substantial inference latency. In addition, the render-structure signatures, hole-selection rules, and reranking function contain several manually designed heuristics.

  3. The current experiments mainly consider static, single-viewport HTML/CSS pages. The method has not been validated for responsive layouts, scrolling, interaction states, JavaScript-driven interfaces, accessibility, maintainability, or semantic HTML quality.

In the rebuttal, the authors should clarify the points:

  1. method depends heavily on the screenshot structure parser, but direct analysis of parser errors is limited.
  2. The latency and computational cost of repeated browser rendering are not fully characterized.
  3. The render structure signatures and final scoring function contain several hand designed components, with limited component level analysis.
  4. The current evaluation mainly covers static pages. Responsive layouts, interactions, and JavaScript driven states remain outside the demonstrated scope.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.