VSA:Visual-Structural Alignment for UI-to-Code
Xian Wu, Ming Zhang, Zhiyu Fang, Fei Li, Bin Wang, Yong Jiang, Hao Zhou

TL;DR
VSA introduces a multi-stage approach combining visual-structural alignment, pattern matching, and schema-driven synthesis to generate organized, component-based UI code from visual inputs, improving modularity and maintainability.
Contribution
The paper presents a novel multi-stage framework that transforms visual UI designs into structured, component-oriented code, addressing limitations of prior unstructured code generation methods.
Findings
Significantly improves code modularity and architecture consistency.
Outperforms existing methods on benchmark datasets.
Produces type-safe, reusable UI components suitable for production.
Abstract
The automation of user interface development has the potential to accelerate software delivery by mitigating intensive manual implementation. Despite the advancements in Large Multimodal Models for design-to-code translation, existing methodologies predominantly yield unstructured, flat codebases that lack compatibility with component-oriented libraries such as React or Angular. Such outputs typically exhibit low cohesion and high coupling, complicating long-term maintenance. In this paper, we propose \textbf{VSA (VSA)}, a multi-stage paradigm designed to synthesize organized frontend assets through visual-structural alignment. Our approach first employs a spatial-aware transformer to reconstruct the visual input into a hierarchical tree representation. Moving beyond basic layout extraction, we integrate an algorithmic pattern-matching layer to identify recurring UI motifs and…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Model-Driven Software Engineering Techniques · Advanced Software Engineering Methodologies
