Interlinking User Stories and GUI Prototyping: A Semi-Automatic LLM-Based Approach

Kristian Kolthoff, Felix Kretzer, Christian Bartelt, Alexander Maedche, Simone Paolo Ponzetto

Abstract

In agile software development, maintaining alignment between evolving user stories and Graphical User Interface (GUI) prototypes is a high-friction task prone to requirements drift. This paper presents a semi-automatic approach that leverages Large Language Models (LLMs) to bridge this gap. By abstracting GUI hierarchies into a simplified textual format, the proposed system enables automated requirements validation, component-level traceability, and generative recommendations for missing features. Our evaluation using GPT-4 demonstrates high accuracy in implementation detection and provides a foundation for integrating automated requirements engineering into professional design workflows.

Introduction

GUI prototyping is essential for eliciting and validating requirements, yet it remains a manual and often disconnected phase of the development lifecycle. As requirements change, designers and developers struggle to track which user stories are implemented within a prototype. This lack of automated traceability leads to "requirements drift," where the final design may fail to meet the original functional specifications.

While existing AI tools can generate static UI images from text, they often lack the structural depth required for professional design tools like Figma. This research addresses the challenge of automated requirements validation by creating a pipeline that allows LLMs to "understand" and interact with the structural data of a GUI prototype.

Methodology

The researchers developed a four-stage pipeline designed to facilitate the interlinking of natural language requirements and digital prototypes:

  1. GUI Prototype Abstraction: To make complex GUI data digestible for LLMs, the system transforms structural data (such as object models or DSLs) into a simplified textual representation. This abstraction focuses on semantic elements—component types (e.g., Button, Label), names, and text—organized into layout clusters like toolbars or cards.
  2. Implementation Detection: Using GPT-4, the system performs a binary classification to determine if a specific user story is present in the abstracted GUI. The study compared three prompting strategies: Zero-Shot (ZS), Few-Shot (FS), and Chain-of-Thought (CoT).
  3. Component Matching: For requirements identified as "implemented," the model identifies the specific UI component IDs that fulfill the story, creating a direct traceability link between the requirement and the design element.
  4. Implementation Recommendation: For unimplemented stories, the system generates HTML/CSS snippets that represent potential UI solutions, providing a starting point for designers to fill gaps in the prototype.

Experimental Setup

To evaluate the system, the authors utilized the Rico Dataset, a large-scale repository of mobile app GUIs. They sampled 60 GUIs across 10 diverse domains, including Shopping and Health. Since no existing dataset linked these GUIs to specific requirements, the authors recruited eight participants to write functional user stories for the interfaces. This process resulted in a "gold standard" dataset of 231 valid user story/GUI pairs used for testing.

Key Results and Insights

The study yielded several significant findings regarding the capability of LLMs in the design space:

  • Detection Accuracy: The Zero-Shot approach was remarkably effective, achieving an accuracy of 85.2% in determining whether a user story was implemented. Interestingly, Zero-Shot often outperformed more complex prompting strategies like Chain-of-Thought, suggesting that GPT-4 possesses a strong inherent mapping between software requirements and standard UI patterns.
  • Component Matching Precision: The system achieved a Micro-F1 score of 0.681 for identifying exact components tied to a requirement. While navigating complex hierarchies remains challenging, the results indicate that LLMs can provide meaningful traceability at the element level.
  • The Importance of Abstraction: The success of the model relied heavily on the textual representation of the GUI. By stripping away non-functional styling and focusing on semantic hierarchy, the researchers made the UI "readable" for the model.
  • Semantic Misinterpretation: Errors typically occurred when the LLM made "semantic leaps." For example, the model might incorrectly flag a "Store Address" button as fulfilling a requirement for "finding the nearest store," even if the underlying geolocation functionality was absent from the prototype.

Discussion and Future Work

While the results are promising, the study identified several areas for further development. The current reliance on the Rico dataset limits the findings to Android mobile interfaces; future research will explore web and desktop environments. Additionally, the current model is "image-blind," unable to interpret icons or images without text labels. Integrating multi-modal LLMs could resolve this by allowing the system to process visual and structural data simultaneously.

Furthermore, the authors acknowledge a "post-hoc" bias in their dataset, as user stories were written for existing GUIs. Future studies will focus on a "requirements-first" approach to better mirror real-world development cycles. The ultimate goal is the integration of this pipeline into professional design tools via plugins, enabling real-time requirements validation for designers as they work.

Conclusion

This research demonstrates that LLMs can effectively bridge the gap between natural language requirements and GUI prototypes. By providing a semi-automatic way to detect missing features and link requirements to specific UI components, this approach reduces the friction of agile prototyping and helps ensure that design remains aligned with functional goals.

Summary updated

BibTeX
@inproceedings{kolthoff2024interlinking,
  author = {Kristian Kolthoff and Felix Kretzer and Christian Bartelt and Alexander Maedche and Simone Paolo Ponzetto},
  title = {{Interlinking User Stories and GUI Prototyping: A Semi-Automatic LLM-Based Approach}},
  booktitle = {RE},
  year = {2024},
  doi = {10.1109/re59067.2024.00045},
}
Figure