An Empirical Investigation into the Use of Image Captioning for Automated Software Documentation
arXiv:2301.01224 · doi:10.1109/SANER53432.2022.00069
Abstract
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.
arXiv commentPublished in the Proceedings of the 29th IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER'22), Honolulu, Hawaii, March 15-18, 2022, pp. 514-525
References in corpus (7)
- Very Deep Convolutional Networks for Large-Scale Image Recognition
- Show, Attend and Tell: Neural Image Caption Generation with Visual Attention
- Show and Tell: Lessons learned from the 2015 MSCOCO Image Captioning Challenge
- Semantically Enhanced Software Traceability Using Deep Learning Techniques
- Unblind Your Apps: Predicting Natural-Language Labels for Mobile GUI Components by Deep Learning
- Automated Reporting of GUI Design Violations for Mobile Apps
- Auto-completing Bug Reports for Android Applications