Back to search

Nanyang Technological University

SPUR: schema-guided plan-driven UI renderer

Abstract

dc:description.abstract

When conversational AI systems carry out a transition from text-only interfaces toward rich, multimodal, and agent-driven interactions, the work of performing real-time dynamic generation for visual interfaces to accompany agent-generated responses turns into a critical but not fully explored challenge. In conversational systems that are oriented toward healthcare, where users can go to query nutritional information, request food image analysis, or seek personalized health recommendations, using charts, gauges, comparison tables, and structured cards to visually present the reasoned outputs plays a very central role for user understanding and involvement. However, the existing approaches for automated GUI generation have not been able to at the same time address three requirements that depend on each other: the first is a low-latency reactivity that is suitable for real-time messaging, the second is the guarantees of textual and visual safety which are essential inside healthcare contexts, and the third is the deterministic engineering robustness that is needed for production deployment. This dissertation conducts an introduction for a system named SPUR (Schema-guided Plan-driven UI Renderer), which is a structured backend pipeline designed for the purpose of UI rendering and is integrated inside an agent orchestration environment based on LangGraph. The SPUR system relies on an architecture made of three parts to go process these three challenges. First, an intermediate representation that is guided by a schema places a restriction on the role of the LLM, and it changes it from a full-stack code compiler to a structured data annotator. This process only needs a compact and validated JSON plan, after which a deterministic component builder will compile the plan into a complete HTML document with a consistent style, and the builder itself includes 21 visual component types as well as an embedded CSS design token system. Second, a dual-track visual safety architecture, with help from a template bypass mechanism based on a state-graph, makes a hard separation between adaptive generative rendering and safety-critical static rendering be realized. This mechanism is able to, without needing to make a call to the LLM, provide pre-validated and clinically reviewed static HTML for high-risk intents. Third, an optional lightweight visual self-check module makes use of CSS-only corrective overrides inside a bounded retry loop, in order to resolve rendering defects at the layout level, while at the same time preserving the semantics that are about content and colour. The evaluation of the framework is conducted by means of a systematic experimental study, which makes use of a 100-query test corpus that includes four health and nutrition intent categories. Performance benchmarking that was carried out for three SPUR generation modes and three comparative baselines (zero-shot, few-shot, and chain-of-thought HTML generation) indicates that the plan-based mode of SPUR allows for the achievement of an end-to-end latency (4,721 ms) that is competitive with direct generation baselines (a 4.2–5.4 s range), while it concurrently delivers interfaces of substantially higher visual quality than unconstrained LLM generation, as demonstrated through direct side-by-side comparison, while all SPUR modes achieved 100% render success rates across 300 rendering attempts.

Degree

thesis:*
College dc:contributor.school
School of Electrical and Electronic Engineering
Grantor dc:publisher
Nanyang Technological University
Year dc:date.issued
2026

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Song, Linhan
Advisor dc:contributor.supervisor
  • Andy Khong W H

Subjects

dc:subject × 1

Rights

Language dc:language.iso
en

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/10356/235050

Chain of custody

source
Harvested from
Nanyang Technological University
Base URL
dr.ntu.edu.sg/oai/request
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
citation

Song, Linhan. SPUR: schema-guided plan-driven UI renderer. Nanyang Technological University, 2026. https://hdl.handle.net/10356/235050