NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Phase-wise MLLM Tuning for Multi-framework WebUI Code Generation

Haoran Ma, Linxiao Li, Chenyue Wang, Haochen Sui, Jiechao Gao

NeurIPS page · OpenReview · Open on the map

Category: LLM Agents, Evals & Benchmarks › Multi-Framework UI Code Generation · Type: new method · Keywords: multimodal language models, frontend code generation, framework compatibility, adapter tuning, UI screenshot to code

Areas: Code & Coding Agents › Code Generation and Optimization › Code Generation

Summary

Phase-wise MLLM tuning improves multi-framework WebUI code generation by reducing cross-framework interference through a phased adapter approach.

Explained to a 5-year-old

A picture of a website is shown to a big language model that can understand both pictures and words. The model tries to write code for websites, but it gets confused when the code needs to follow different rules for different programs. The researchers noticed that the model mixes up the rules from different programs, which makes the code not work. They created a new way to teach the model by first learning the rules of one program, then another, and using small helpers to keep the learning separate. This helps the model make better code that actually works on many different website programs.

Explained to a 5-year-old, longer

A picture of a website is shown to a big language model that can understand both pictures and words. The model is asked to turn the picture into code that makes the website work. There are different kinds of code for different website programs, like React, Vue, and Angular. When the model writes code for one program, it sometimes uses the rules from another program by mistake. This mistake makes the code not work, and the website cannot be built. The researchers wanted to help the model avoid mixing up the rules. They first cleaned the picture so that only the important parts for each program were kept. Then they looked at how similar or different the programs were from each other. They grouped the programs into steps so the model could learn one group at a time. In each step, the model was given a small piece of learning material that only talked about that group. This step-by-step teaching helped the model remember the right rules for each program. As a result, the model could write code that works for many different website programs.

For a technical reader

The paper addresses the problem of generating frontend code from UI screenshots when the target framework is unknown or varies. Existing multimodal models tend to produce code that mixes syntax from different frameworks, causing compilation failures. The authors propose a preprocessing step that normalizes screenshots to retain framework-specific syntax while discarding irrelevant noise. They then compute compatibility scores between frameworks to order training groups, and finally apply adapter tuning in phases to reduce interference. This systematic approach leads to higher generation quality and better compilation success across multiple frameworks.

Problem

Generating code from UI screenshots for multiple frontend frameworks is challenging because models trained on one framework may produce syntax incompatible with others, causing compilation errors.

Method

The approach first normalizes UI screenshots to preserve framework-specific syntax while removing noise, then estimates cross-framework compatibility and heterogeneity to form training groups, and finally applies adapter tuning in phases to mitigate interference.

Results

The approach achieves higher generation quality and a higher compilation success rate than baseline methods.

Contributions

It introduces a normalization mapping for framework syntax, a method to estimate cross-framework compatibility, and a phased adapter tuning scheme to reduce interference across multiple frontend frameworks.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction