Multimodal LLM Frontend Design Test: Model Selection by Scenario and Closed-Loop Repair
This article reports a hands-on evaluation of three anonymized multimodal models on frontend design-to-code tasks. The test combined design references, browser-based desktop and mobile rendering, console error checks, layout anomaly detection, and one repair round. It compares the models across an interactive data visualization scenario and an audio/video state-management scenario, covering visual style, first-pass stability, closed-loop repair, and cost/time caveats. The article also provides a selection checklist, infrastructure requirements for closed-loop repair, and risk notes. The main conclusion is that model selection should start from the business scenario and be validated with screenshots, logs, and automated testing, rather than relying on visual recognition accuracy alone.
Conclusion Up Front
Model selection cannot rely only on visual recognition accuracy. All three anonymized models passed this test’s acceptance, but they differed in first-pass code quality, repair capability, and generation cost. Teams should first define the business scenario, then make decisions using screenshots, logs, and an automated testing pipeline.
1. Visual Understanding Is Not Engineering Delivery
Being able to recognize an image or describe a scene still stays at the “seeing” level. To deliver a page, a model needs to understand information hierarchy and spatial relationships, translate visual judgment into runnable frontend code, and use desktop and mobile screenshots to detect element overflow, text truncation, and interaction logic errors on its own. These problems usually surface only in a real rendering environment, so evaluation must include rendering and checking.
2. Experiment Design and Information Gaps
This test standardized the basic tools, assets, and browser automation checking tool. Each task allowed one repair round: the model first generated first-pass code from the design, the system rendered desktop and mobile screenshots in the browser, detected console errors and layout anomalies, and then fed the screenshots and error logs back to the model.
The original experiment did not fully disclose the following information: specific model versions, prompts, sampling parameters such as temperature, tool and browser versions, screenshot resolution, number of repetitions per task, acceptance criteria, and the basis for cost calculation. With this information missing, the efficiency and cost rankings in the article apply only to the conditions of this test and cannot be directly generalized to other versions or environments. Readers who want to reproduce the test should first record the parameters above.
3. Scenario 1: Interactive Visualization of Large Data
The task required the model to build a scroll-driven “Ocean Memory” page based on annual data points from hundreds of climate institutions, world map vector data, and space imagery. Scrolling changes the year and draws the temperature curve accordingly; clicking a sea area switches the map view and coral risk prompt synchronously.
- Model A: Strong first-screen visual impact. It used z-index and blend-mode to overlay a large English heading on a satellite background and bound annual data through SVG or Canvas, with relatively rigorous logic.
- Model B: Restrained design style, using a deep blue starry background with centered explanatory text. Information was clear and code structure was standard, but visual tension was weaker.
- Model C: Performance fell between the other two. It merged the title with the background image and added a right-side depth gauge component, showing good command of Flexbox layout.
4. Scenario 2: Audio/Video Interaction and Multi-Device State Management
The second task referenced desktop and mobile designs and required map point selection, audio playback, track switching, favorites list synchronization, and state restoration after refresh. The task demanded high fidelity to the reference images and also depended on correct implementation of state persistence such as localStorage.
- Model A: The page was divided into three blocks: title, filter, and map, with the map taking up a large proportion. On mobile, the first screen separated the map and sound card; after pulling down, the waveform, playback console, and next-track queue were visible. The first-pass code passed this test’s test cases, with zero repair rounds.
- Model B: Highest information density, but the first-pass styles had defects: an abnormal map container size caused layout disruption. After receiving browser-check feedback, it located the width/height calculation error and fixed it. The final product had high space utilization in title compression, waveform display, and playback queue layout.
- Model C: Correctly parsed the audio format and bound event listeners. The first pass had chaotic data flow in cross-component state synchronization; after one prompt-based repair, it met the acceptance criteria.
5. Comparison of the Three Models
| Dimension | Model A | Model B | Model C |
|---|---|---|---|
| Visual style | Strong impact | Restrained | Between the two |
| First-pass stability | Strong in this test case | More first-pass style defects | State synchronization issues in first pass |
| Closed-loop repair | No repair needed in this test | Strong repair capability | Met acceptance after one prompt-based repair |
| Cost and time | No comparable data provided | No comparable data provided | Relatively lower; pricing basis not disclosed |
6. Model Selection Checklist
It is recommended to use the same batch of tasks and the same acceptance criteria to evaluate each candidate model item by item:
- Visual fidelity: whether layout, fonts, and spacing match the design.
- First-pass quality: whether style crashes, failed event binding, or state errors occur.
- Closed-loop repair: after screenshots and logs are provided, whether the model can converge within a limited number of rounds.
- Cost and latency: record token usage, time, and call cost per task, and note the pricing standard.
- Stability: whether result fluctuation is acceptable when the same task is run repeatedly.
- Data and compliance: whether test assets contain sensitive information and whether usage complies with the terms of service.
7. Infrastructure Required for Closed-Loop Repair
Closed-loop repair depends on three types of services. Object storage saves screenshots from each round, a log service collects console errors, and monitoring alerts notify human intervention after consecutive failures. Without these components, results can only rely on single-pass generation, and the first-pass quality differences among the three models in this test were already noticeable.
8. Risk Notes
- AI-generated code requires security review, focusing on input validation, XSS risks, and hardcoded secrets.
- Dependency libraries should be scanned for vulnerabilities, and license compatibility should be confirmed.
- Screenshots and data sent to the model should be redacted first if they contain user information or internal materials.
- Test conclusions apply only to the model versions used at test time. After model updates, re-evaluation is required.
Conclusion
Model selection should start with the business scenario. Low-cost rapid validation, first-pass stability for production pages, and high-density presentation under complex state management impose different requirements on models. Combining the team’s existing container platform and automated testing tools before deciding is more reliable than relying on a single test ranking.
