arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2301.01224cs.SEcs.AIcs.CVcs.LG
收藏

图像描述在自动化软件文档编制中的应用研究

An Empirical Investigation into the Use of Image Captioning for Automated Software Documentation

George Mason University(乔治梅森大学);William & Mary(威廉与玛丽学院);Microsoft(微软)

Kevin Moran, Ali Yachnes, George Purnell, Junayed Mahmud, Michele Tufano, Carlos Bernal-Cárdenas, Denys Poshyvanyk, Zach H'Doubler

摘要:

现有的软件文档自动化技术通常试图在两个主要的信息源之间进行推理:代码和自然语言。然而,这种推理过程往往是复杂的词汇之间的差距更抽象的自然语言和更结构化的程序设计语言。图形用户界面(GUI)是弥补这一差距的一个潜在桥梁,因为GUI固有地将关于底层程序功能的显著信息编码为丰富的基于像素的数据表示。本文提供了第一个全面的经验调查GUI和功能之间的连接,自然语言的软件描述。首先,我们收集、分析并开源了一个功能GUI描述的大型数据集,其中包括来自流行Android应用程序的10,204个屏幕截图的45,998个描述。这些描述是从人类标签获得的,并经历了几个质量控制机制。为了深入了解GUI的代表性潜力,我们研究了四种神经图像描述模型在提供屏幕截图作为输入时预测不同粒度的自然语言描述的能力。我们使用常见的机器翻译指标对这些模型进行定量评估,并通过大规模用户研究进行定性评估。最后,我们提供了经验教训和讨论的潜力所示的多式联运模型,以提高未来的技术自动化软件文档。

英文摘要:

Existing automated techniques for software documentation typically attempt to reason between two main sources of information: code and natural language. However, this reasoning process is often complicated by the lexical gap between more abstract natural language and more structured programming languages. One potential bridge for this gap is the Graphical User Interface (GUI), as GUIs inherently encode salient information about underlying program functionality into rich, pixel-based data representations. This paper offers one of the first comprehensive empirical investigations into the connection between GUIs and functional, natural language descriptions of software. First, we collect, analyze, and open source a large dataset of functional GUI descriptions consisting of 45,998 descriptions for 10,204 screenshots from popular Android applications. The descriptions were obtained from human labelers and underwent several quality control mechanisms. To gain insight into the representational potential of GUIs, we investigate the ability of four Neural Image Captioning models to predict natural language descriptions of varying granularity when provided a screenshot as input. We evaluate these models quantitatively, using common machine translation metrics, and qualitatively through a large-scale user study. Finally, we offer learned lessons and a discussion of the potential shown by multimodal models to enhance future techniques for automated software documentation.

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

↑