arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1810.11536cs.LGcs.GRstat.ML
收藏

使用基于注意力的分层解码器的图形程序自动生成

Automatic Graphics Program Generation using Attention-Based Hierarchical Decoder

Xi’an Jiaotong University(西安交通大学)

Zhihao Zhu, Zhan Xue, Zejian Yuan

摘要:

深度学习的最新进展使得通过使用编码器-解码器框架将图形用户界面(GUI)的屏幕截图自动转换为代码成为可能。而通常采用的图像编码器(例如,CNN网络)可能能够将图像特征提取到期望的水平,将这些抽象图像特征解释为数百个代码令牌对基于RNN的代码生成器的解码能力提出了特定的挑战。考虑到用于描述GUI的代码通常是层次结构的,我们提出了一种新的基于注意力的层次代码生成模型,该模型可以在更精细的细节层次上描述GUI图像,同时也能够生成与GUI中图形元素的层次布局相一致的层次结构代码。我们的模型遵循编码器-解码器框架,其所有组件都可以以端到端的方式联合训练。实验结果表明,我们的方法优于其他当前国家的最先进的方法上公开可用的GUI代码数据集,以及由我们自己建立的数据集。

英文摘要:

Recent progress on deep learning has made it possible to automatically transform the screenshot of Graphic User Interface (GUI) into code by using the encoder-decoder framework. While the commonly adopted image encoder (e.g., CNN network), might be capable of extracting image features to the desired level, interpreting these abstract image features into hundreds of tokens of code puts a particular challenge on the decoding power of the RNN-based code generator. Considering the code used for describing GUI is usually hierarchically structured, we propose a new attention-based hierarchical code generation model, which can describe GUI images in a finer level of details, while also being able to generate hierarchically structured code in consistency with the hierarchical layout of the graphic elements in the GUI. Our model follows the encoder-decoder framework, all the components of which can be trained jointly in an end-to-end manner. The experimental results show that our method outperforms other current state-of-the-art methods on both a publicly available GUI-code dataset as well as a dataset established by our own.

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

↑