arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.09867cs.SEcs.AI
收藏

EGFE:基于多模态学习的UI设计中碎片化元素的端到端分组

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

Zhejiang University(浙江大学);Alibaba Group(阿里巴巴集团)

Liuqing Chen, Yunnong Chen, Shuhong Xiao, Yaxuan Song, Lingyun Sun, Yankun Zhen, Tingting Zhou, Yanfang Chang

AI总结:

本文提出EGFE方法,通过Transformer编码器和多模态表示学习对UI设计原型中的碎片化元素进行端到端分组,在4606个UI原型上显著优于现有基线,并提升了生成前端代码的质量。

摘要:

在工业界将UI设计原型转换为代码时,从设计原型自动生成代码可以加速应用程序开发和GUI迭代。然而,在没有严格设计规范的设计原型中,UI组件可能由碎片化元素组成。对这些碎片化元素进行分组可以极大提高生成代码的可读性和可维护性。当前方法采用两阶段策略,引入手工规则来分组碎片化元素。不幸的是,由于视觉上重叠和微小的UI元素,这些方法的性能并不令人满意。在本研究中,我们提出了EGFE,一种通过UI序列预测自动进行端到端碎片化元素分组的新方法。为了促进UI理解,我们创新性地构建了一个Transformer编码器,通过多模态表示学习来建模UI元素之间的关系。在从专业UI设计师收集的4606个UI原型数据集上的评估表明,在编辑距离阈值为4时,我们的方法在精确率(提高29.75%)、召回率(提高31.07%)和F1分数(提高30.39%)上均优于最先进的基线方法。此外,我们进行了一项实证研究,以评估生成的前端代码的改进情况。结果证明了我们的方法在真实软件工程应用中的有效性。我们的端到端碎片化元素分组方法为改进UI相关的软件工程任务创造了机会。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑