Graph4GUI: Graph Neural Networks for Representing Graphical User Interfaces

360° Video & Panoramic ContentComputational Methods in HCISoftware Engineers & DevelopersUI/UX DesignersHCI Researchers

Document Title

Graph4GUI: Graph Neural Networks for Representing Graphical User Interfaces

Document Information

  • Subject Area: Applications of deep learning in the representation and design of graphical user interfaces (GUIs)
  • Keywords: Graphical User Interface, User Interface Representation, Constraint-based Layout, Graph Neural Networks, GUI Autocompletion

Research Background and Problem Statement

  • Identified Problems or Challenges:
    • Existing methods for representing graphical user interfaces fail to comprehensively capture semantic, visual, and spatial relationships.
    • Traditional methods like CNNs face challenges in handling design constraints in GUIs, such as learning layout relationships from pixels.
    • Current machine learning techniques are ineffective at capturing constraint relationships between GUI elements.
  • Significance:
    • GUI design is a critical area in human-computer interaction, and optimizing design efficiency and quality can directly impact user experience.
    • Addressing the inadequacies in representing the semantic-visual-spatial structure of GUI elements in existing methods can advance computational design technologies.
  • Motivation and Related Work:
    • Previous approaches, such as Screen2Vec and GRIDS, are limited to textual content or local visual features and fail to fully capture semantic associations and layout constraints.
    • The authors propose Graph4GUI to enhance representational power using graph neural networks, enabling better performance in tasks like GUI autocompletion and theme classification.

Solution

  • Proposed Method or Solution:
    • Graph4GUI, a method that represents GUIs using a heterogeneous bipartite graph, integrating element attributes and layout constraints into the graph.
    • Utilizes graph neural networks (GNNs) to process graph-structured data and learn domain-specific representations.
    • Optimizes GUI layout problems by predicting the position, size, and constraint relationships of elements in incomplete GUIs.
  • Innovations:
    • For the first time, integrates the visual, textual, and type attributes of GUI elements with layout constraints into a unified graph representation.
    • Proposes a flexible and efficient framework applicable not only to autocompletion but also to GUI theme classification and retrieval tasks.
  • Implementation Steps:
    1. Graph Construction: Build a heterogeneous bipartite graph with nodes categorized as element nodes and constraint nodes, and edges representing associations between elements and constraints.
    2. Node Representation Learning: Embed attributes of element nodes, including position, size, visual appearance, textual content, and type.
    3. Layout Optimization: Use a GNN model to predict the size and position of unplaced elements, further optimizing based on constraint hierarchies.
    4. Applications in Autocompletion and Other Tasks:
      • Achieve GUI autocompletion through iterative predictions.
      • Leverage graph embeddings for GUI theme classification and retrieval.

Research Outcomes

  • Specific Results:
    • In the GUI autocompletion task:
      • Achieved over 50% reduction in position and size errors compared to the baseline method GRIDS, maintaining superior alignment and visual performance.
      • User preference experiments showed that 70.33% of users preferred Graph4GUI results, compared to only 13.54% for the baseline method.
    • In GUI theme classification:
      • Achieved a classification accuracy of 91.53% supported by graph embeddings, outperforming other baseline methods (e.g., ResNet50).
    • In GUI retrieval:
      • User experiments demonstrated superior performance in retrieving visually similar GUIs compared to Screen2Vec.
      • Provided more intuitive and controllable retrieval results.
  • Advantages:
    • Flexibility: Can be used as a plugin for Figma design tools, requiring no learning of new tools and integrating seamlessly into existing workflows.
    • Efficiency: Reduced average task completion time by 40%.
    • Comprehensive Representation: Considers not only element attributes but also complex constraint relationships, enhancing model interpretability.
  • Experiments or Evaluation Results:
    • Quantitative experiments validated the performance in autocompletion, classification, and retrieval tasks.
    • User studies and designer feedback highlighted high satisfaction with the tool.
  • Limitations and Future Directions:
    • Limitations:
      • Lower accuracy in suggesting unplaced elements that do not require alignment or grouping.
      • Currently supports only rectangular boundary representations of elements.
      • Excludes view hierarchy representation, unable to capture class hierarchy relationships.
    • Future Directions:
      • Enhance predictions for non-aligned elements and develop more complex constraint types.
      • Support descriptions and training for complex-shaped GUI elements.
      • Explore semantic relationships and constraint representations across GUI elements, such as associations between text and icons.

Conclusion

This paper presents a graph neural network-driven method for GUI representation, effectively addressing the shortcomings of existing methods and demonstrating remarkable performance in autocompletion, theme classification, and retrieval tasks. Future work should focus on optimizing performance in constrained scenarios, improving model robustness, and expanding its applications in diverse design tasks.

Quick Actions

Share

Share this page

ios_share

https://hci.top/en/papers/chi/146736/2024

AdRecommended

Learn AI Coding at CodeNow

open_in_newOpen DOI Link
DOI: https://doi.org/10.1145/3613904.3642822
At a Glance

Paper Snapshot

fact_check
dataset
Source
CHI
calendar_month
Year
2024
emoji_events
Award
No award tagged
group
Authors
4 authors
sell
Subtopics
360° Video & Panoramic Content, Computational Methods in HCI
work
Professions
Software Engineers & Developers, UI/UX Designers, HCI Researchers
article
Content Status
Full text indexed
hub
Related Papers
7 related papers