Generative UI: LLMs are Effective UI Generators

Yaniv Leviathan, Dani Valevski, Matan Kalman, Danny Lumen, Eyal Segalis, Eyal Molad, Shlomi Pasternak, Vishnu Natchu, Valerie Nygaard, Srinivasan, Venkatachary, James Manyika, Yossi MatiasarXiv 2026

TL;DR

This paper introduces a robust framework for Generative UI, where a modern Large Language Model (LLM) dynamically generates a complete, interactive user interface (HTML/CSS/JS) tailored to a user's specific prompt instead of returning a standard markdown "wall of text." By combining advanced system prompting, live tool access (search and image generation), and lightweight post-processing, the system produces custom mini-apps that human raters overwhelmingly prefer over standard text or markdown outputs, matching human-expert quality in half of the evaluated cases.

What Problem Does This Paper Address?

Current interactions with LLMs are heavily constrained by static, predefined user interfaces—typically a chat box returning a markdown-formatted response. While markdown handles basic tables and code blocks well, it fails to provide rich, interactive, or highly contextual experiences (like dynamic maps, simulations, or custom calculators) tailored to unique user queries.

Building these rich experiences traditionally requires an entire product team (product managers, UX designers, and engineers) working over extended periods. The authors address the challenge of automating this entire pipeline, effectively spinning up an "instant AI team" to generate a bespoke, fully functional web application on the fly for any arbitrary prompt.

Methods

The proposed Generative UI system bypasses static templates by generating a single, complete web page containing HTML, Tailwind CSS, and JavaScript, along with dynamically generated assets.

Figure 2: A high level system overview.

As shown in the system architecture above, the framework relies on three core pillars:

  1. Tool Integration: A server exposes endpoints for live web search and image generation, allowing the model to fetch real-time facts and embed custom visual assets directly into the page via specialized src URLs.
  2. Structured System Instructions: A massive (~3,000 words) system prompt guides the model through a mandatory internal thought process (interpreting the query, planning the concept, identifying data needs, and filtering features) before writing code. It strictly forbids placeholders and enforces an "interactive-first" philosophy.
  3. Post-Processors: A suite of lightweight backend scripts cleans up common LLM code-generation bugs, such as injecting actual API keys (e.g., for Google Maps), fixing syntax or parsing errors in JavaScript/CSS, and handling asset hallucinations.

Additionally, the authors demonstrate that the visual style can be consistently controlled (e.g., "Classic" vs. "Wizard Green" themes) simply by modifying the styling guidelines within the system prompt.

Figure 3: Screenshots of Generative UI results with "Classic" styling.
Figure 4: Screenshots of Generative UI results with "Wizard Green" styling.

Datasets

To evaluate the system, the authors introduce PAGEN, a novel, publicly available evaluation dataset. PAGEN consists of high-quality, single-page web applications crafted by professional freelance web developers contracted via Upwork. The developers were given the same prompts as the AI system and spent 3–5 hours per page, creating a gold-standard baseline of human-expert UI design.

The prompts for PAGEN and the overall evaluation were drawn from two sources:

  • A random sample of 100 prompts from the LMArena dataset.
  • A custom set of 100 Information-Seeking prompts designed to test data synthesis and presentation layout.

Key Insights and Ideas

  • An Emergent Capability: Robust Generative UI is a newly emergent capability tied to the latest generation of frontier models. Testing older or lighter models (like Gemini 2.0 Flash-Lite) resulted in high output error rates (up to 60%), whereas the latest models (Gemini 3) achieved 0% output errors, proving that code generation and architectural planning scale sharply with model capability.
  • Holistic Style Adaptation: When instructed to follow a specific design theme, the model doesn't just change CSS variables; it holistically adapts all generated elements, including the artistic style of generated images and icons, to match the requested aesthetic.
  • The Power of Prompt Philosophy: Prompt ablation studies revealed that explicitly instructing the model on a "core philosophy" (e.g., "build interactive apps first," "no walls of text") significantly boosts human preference scores compared to minimal prompts that only provide technical tool specifications.

Key Results

  • In blind pairwise human preference tests on LMArena prompts, Generative UI achieved an ELO score of 1736.2, vastly outperforming standard Markdown UI (1437.7) and raw text (1173.7).
  • Generative UI was overwhelmingly preferred over standard Markdown 82.8% of the time on LMArena prompts and 90.5% of the time on Information-Seeking prompts.
  • While human-expert designs (PAGEN) still held the top spot (ELO 1800.3), the AI-generated UIs were rated as at least comparable to human experts in 50% of cases.

Limitations and Future Work

  • Generation Speed: The primary bottleneck is latency; generating a full interactive page currently takes 1 to 2 minutes. The authors note that streaming the page generation allows users to interact with a partially rendered UI, cutting perceived wait times in half. Future work will explore optimization techniques like speculative decoding.
  • Occasional Code Errors: Despite post-processing, intermittent runtime errors (JavaScript bugs, broken CSS layout, or HTML malformations) still occur.
  • Infinite Catalog Paradigm: The authors frame this as a first step toward a new paradigm where users no longer navigate a finite library of pre-built apps, but instead access an infinite, ephemeral catalog of interfaces generated on demand.

Summary updated

BibTeX
@misc{leviathan2026generative,
  author = {Yaniv Leviathan and Dani Valevski and Matan Kalman and Danny Lumen and Eyal Segalis and Eyal Molad and Shlomi Pasternak and Vishnu Natchu and Valerie Nygaard and Srinivasan and Venkatachary and James Manyika and Yossi Matias},
  title = {{Generative UI: LLMs are Effective UI Generators}},
  year = {2026},
  eprint = {2604.09577},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.09577},
}
Figure