EGFE: End-to-end Grouping of Fragmented Elements in UI Designs with Multimodal Learning

Abstract

When translating UI design prototypes to code in industry, automatically generating code from design prototypes can expedite the development of applications and GUI iterations. However, in design prototypes without strict design specifications, UI components may be composed of fragmented elements. Grouping these fragmented elements can greatly improve the readability and maintainability of the generated code. Current methods employ a two-stage strategy that introduces hand-crafted rules to group fragmented elements. Unfortunately, the performance of these methods is not satisfying due to visually overlapped and tiny UI elements. In this study, we propose EGFE, a novel method for automatically End-to-end Grouping Fragmented Elements via UI sequence prediction. To facilitate the UI understanding, we innovatively construct a Transformer encoder to model the relationship between the UI elements with multi-modal representation learning. The evaluation on a dataset of 4606 UI prototypes collected from professional UI designers shows that our method outperforms the state-of-the-art baselines in the precision (by 29.75%), recall (by 31.07%), and F1-score (by 30.39%) at edit distance threshold of 4. In addition, we conduct an empirical study to assess the improvement of the generated front-end code. The results demonstrate the effectiveness of our method on a real software engineering application. Our end-to-end fragmented elements grouping method creates opportunities for improving UI-related software engineering tasks.

Publication
In Proceedings of the 46th IEEE/ACM International Conference on Software Engineering
陈柳青
陈柳青
博士生导师

主要研究方向:智能设计,智能交互,设计大数据,创意设计,AR/VR,用户体验,Web前端/UI。

陈云农
陈云农
2021级博士生
肖树鸿
肖树鸿
2022级博士生
宋亚轩
宋亚轩
2023级博士生