Generative Interfaces for Language Models

Jiaqi Chen, Yanzhe Zhang, Yutong Zhang, Yijia Shao, Diyi YangarXiv 2025 · DOI

Introduction

Recent advancements in Large Language Models (LLMs) have revolutionized natural language processing, yet the primary mode of interaction remains tethered to the traditional "chatbot" paradigm. Stanford researchers have introduced Generative Interfaces (GenUI), a significant shift where LLMs respond to user queries by constructing custom, interactive mini-applications instead of static text blocks. By utilizing structured representations and iterative self-critique, GenUI achieves up to a 72% improvement in human preference for complex, information-dense tasks.

The Bottleneck of Conversational UI

While Large Language Models are highly capable, the standard Conversational UI (ConvUI) is inherently linear and static. Whether a user requests a simple joke or a complex multi-step data analysis, the output is typically a long block of text. For exploratory or information-dense tasks—such as learning a musical instrument or navigating business strategies—text-only responses force the user to perform the heavy cognitive lifting of organizing and mentalizing the information. While existing "Artifact" features provide side-car workspaces, they often lack the deep, goal-driven interactivity required to adapt to specific user workflows.

Methodology: The GenUI Pipeline

The GenUI framework moves beyond simple code generation by introducing a structured "scaffold" for the user interface. The pipeline consists of three primary stages:

  1. Structured Interface-Specific Representation: The system models the UI at two distinct levels: Interaction Flows (high-level directed graphs mapping user subgoals) and Finite State Machines (FSMs) (low-level logic defining how components like buttons or sliders respond to user actions).
  2. Generation Pipeline: Natural language queries are translated into requirement specifications, then into the structured representation, and finally into executable HTML/CSS/JS code.
  3. Iterative UI Refinement: This "secret sauce" involves an Adaptive Reward Function. The LLM generates a query-specific evaluation rubric and critiques its own UI candidates over multiple iterations until a quality threshold is met.
Detailed view of a generated interactive neural network visualization illustrating FSM-based logic.

Empirical Evaluation and Results

The researchers evaluated GenUI using the UIX (User Interface eXperience) benchmark, consisting of 100 queries across 10 domains, and 380 organic real-user queries. The results demonstrate a clear dominance over traditional chat interfaces:

  • Human Preference: GenUI achieved an 84% win rate over standard conversational models (e.g., Claude 3.7) across functional, interactive, and emotional dimensions.
  • Task Efficiency: In the UIX benchmark, GenUI showed a 76.6% relative improvement in efficiency compared to standard interfaces.
  • Domain Success: Preference was highest in Data Analysis & Visualization (93.8%) and Business Strategy (87.5%), where visual organization is paramount.
Comparison of Generative vs. Conversational interfaces across diverse domains and the evaluation framework.

Key Insights

  • Cognitive Offloading: Users preferred GenUI because it acts as an "external cognitive aid," modularizing complex topics so the user does not have to break them down manually.
  • The Power of Self-Critique: Iterative refinement yielded a +14% improvement in win rates over one-shot generation, proving that LLMs build better UIs when forced to evaluate specific success criteria.
  • Professionalism and Trust: Users rated GenUI as more "authoritative" and "trustworthy" due to its modular layout and visual anchors, which made the AI's advice feel more structurally sound.

Limitations and Future Work

Despite its success, GenUI faces challenges regarding latency, as iterative refinement can take several minutes. Currently, the system is limited to frontend generation (HTML/JS) and lacks backend persistence. Future work aims to implement a "classifier" to determine when a simple text response is more appropriate and to integrate multimodal inputs, such as sketches or screenshots, as the basis for generative interfaces.

Summary updated

BibTeX
@misc{chen2025generative,
  author = {Jiaqi Chen and Yanzhe Zhang and Yutong Zhang and Yijia Shao and Diyi Yang},
  title = {{Generative Interfaces for Language Models}},
  year = {2025},
  eprint = {2508.19227},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.19227},
}
Figure