Designing with Language: Wireframing UI Design Intent with Generative Large Language Models

Sidong Feng, Mingyue Yuan, Jieshan Chen, Zhenchang Xing, Chunyang ChenarXiv 2023 · DOI

Abstract

The early stages of user interface (UI) design often involve a trade-off between the speed of low-fidelity sketches and the communicative power of high-fidelity prototypes. This paper presents WireGen, a system that leverages fine-tuned Large Language Models (LLMs) to automate the creation of mid-fidelity wireframes from simple natural language descriptions. By representing UI layouts as structured code rather than pixels, WireGen ensures hierarchical coherence and semantic relevance. Our evaluation demonstrates that WireGen significantly outperforms existing layout and image generation baselines, providing a practical tool for designers to rapidly explore and validate design intents.

Introduction

The UI design process typically begins with wireframing. While low-fidelity (lo-fi) wireframes—consisting of simple boxes and lines—are quick to produce, they often lack the context required for meaningful user feedback. Mid-fidelity (mid-fi) wireframes bridge this gap by incorporating actual content and semantic icons, yet their manual creation remains labor-intensive.

Existing AI approaches to this problem generally fall into two categories: abstract layout generators that lack content semantics, and text-to-image models (like DALL-E) that produce visually impressive but structurally "gibberish" designs. WireGen addresses these limitations by treating UI design as a code-generation task, enabling the creation of functional, readable, and developer-ready wireframes.

Overview of the WireGen system transforming design intent into mid-fidelity wireframes.

The WireGen Framework

WireGen utilizes a three-phase pipeline to transform textual design intent into structured UI wireframes.

1. Data Preparation

To enable LLMs to process UI designs, the researchers converted Android UI view hierarchies from the Rico dataset into a domain-specific HTML/CSS syntax. This approach leverages the LLM's inherent understanding of web structures while maintaining the specific constraints of mobile interfaces.

2. Model Fine-tuning

The system fine-tunes GPT-3.5 Turbo on a curated dataset of 1,000 UI-description pairs. By selecting diverse samples across various app categories (e.g., finance, social media, shopping), the model learns to generalize design patterns and component relationships.

3. Output Beautification

Raw LLM outputs often require refinement to meet professional standards. WireGen applies a post-processing layer that maps semantic icons, optimizes typography to ensure text fits within designated blocks, and applies UI heuristics to correct common AI errors such as overlapping elements.

The three-phase WireGen pipeline: Data Preparation, Model Fine-tuning, and Output Beautification.

Key Insights: Design as Code

A central finding of this research is that LLMs are significantly more effective at UI design when the task is framed as writing structured code (HTML/CSS) rather than generating pixels. This "Design as Code" paradigm preserves the hierarchical relationships between UI elements, ensuring that the resulting wireframes are not just images, but structured data that can be easily integrated into development workflows.

Furthermore, the study identifies "mid-fidelity" as the ideal target for AI-human collaboration. It provides enough detail to inspire and validate ideas without the premature aesthetic constraints of high-fidelity design.

Results and Evaluation

In human evaluation trials, wireframes produced by WireGen were rated 77.5% better than those from zero-shot and few-shot baselines. Professional designers involved in the study noted that WireGen was particularly effective for "breaking the blank canvas" and exploring feature variations. While smaller models struggled with layout relevance, the fine-tuned Turbo model demonstrated a sophisticated grasp of mobile UI conventions.

Conclusion and Future Work

WireGen represents a significant step toward AI-assisted UI design. While currently focused on static layouts, future iterations aim to generate interactive prototypes and integrate multimodal feedback. By bridging the gap between language and layout, WireGen empowers designers to focus on high-level intent while the AI handles the structural heavy lifting.

Summary updated

BibTeX
@misc{feng2023designing,
  author = {Sidong Feng and Mingyue Yuan and Jieshan Chen and Zhenchang Xing and Chunyang Chen},
  title = {{Designing with Language: Wireframing UI Design Intent with Generative Large Language Models}},
  year = {2023},
  eprint = {2312.07755},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.07755},
}
Figure