Toward Frontier-Quality Declarative UI Generation at Small-Model Cost
Yingxiang Yang, Weihang Xiao, Ben Bullough, Tushar Deshpande, Niresh Agarwal
Abstract
Declarative UI protocols such as A2UI let applications generate interactive UIs by selecting pre-built components from a catalog and binding their props to application data, rather than emitting frontend code from scratch. This contract is attractive for production systems because of safety and consistency. An open question is: can low-latency and low-cost small models achieve the required quality for A2UI-based UI generation? To answer this, we systematically study three controllable design choices for catalog-conditioned A2UI generation: supervised fine-tuning (SFT) data construction method, model size, and component-catalog size. Across two React/TypeScript domains and four base checkpoints spanning two model families (Qwen 3.5 0.8B/2B/4B; SmolLM 3B), we find: (i) a 4B fine-tuned student recovers ~98% of teacher semantic quality and ~97% of teacher visual quality at more than an order of magnitude lower cost than frontier API calls; (ii) both augmented strategies (Perturbed-catalog and Constrained-GT) Pareto-dominate the unaugmented Full-catalog baseline, while specializing on different axes; (iii) even small models can handle and benefit from relatively large component catalog size. We distill these results into practitioner-facing trade-offs and deployment recommendations across the three design choices.
Create a lesson
Related papers
Grounding GUI Design in Computational Psychology
Xianni Wang, Javier Romero Davila, Saku Sourulahti et al.
From Misconceptions to Evidence: What Science Teachers Make Visible When Co-Designing Agentic Learning Apps
Nizam Kadir, Wei Ting Liow, Sumbul Khan et al.
GazeFS: Target-Centered Gaze-Trajectory Forecasting and Stabilization from Gaze-Head History
Yaozheng Xia, Zaiping Zhu, Bo Pang et al.
Auditing Contextual Bias in Human Ball-Strike Calls Using KBO's Automated Umpiring Transition
Kichang Lee, JeongGil Ko
Exploratory Unstructured Data Analysis: A Formative Study and Implications for Human-AI Collaboration
Johannes Eschner, Dominik Eitler, Max Irendorfer et al.
PlanePivoting: Exploration and Optimization of Gaze-Mouse Cursor Alignment for Spatial Object Translation
Jinwook Kim, Sangmin Park, Jihyeon Lee et al.