LLM-CompDroid:利用预训练大语言模型修复Android应用中的配置兼容性缺陷
LLM-CompDroid: Repairing Configuration Compatibility Bugs in Android Apps with Pre-trained Large Language Models
AI总结:
本文提出LLM-CompDroid框架,结合大语言模型与传统工具修复Android XML配置兼容性缺陷,实验表明其性能显著优于现有工具ConfFix。
摘要:
XML配置是Android开发框架中不可或缺的组成部分,尤其是在UI显示领域。然而,这些配置可能引入兼容性问题(缺陷),导致在不同Android API版本(级别)上出现视觉显示差异和系统崩溃。在本研究中,我们系统地研究了基于LLM的检测和修复配置兼容性缺陷的方法。我们的发现揭示了LLM在有效识别和解决这些缺陷方面存在一定的局限性,同时也展现了它们在处理传统工具难以修复的复杂问题上的潜力。基于这些见解,我们提出了LLM-CompDroid框架,该框架结合了LLM和传统工具的优势来进行缺陷修复。我们的实验结果表明,LLM-CompDroid显著提升了缺陷修复性能,其中LLM-CompDroid-GPT-3.5和LLM-CompDroid-GPT-4在Correct和Correct@k指标上分别比最先进的工具ConfFix至少高出9.8%和10.4%。这一创新方法有望提升Android应用的可靠性和健壮性,为软件开发领域做出有价值的贡献。
英文摘要:
XML configurations are integral to the Android development framework, particularly in the realm of UI display. However, these configurations can introduce compatibility issues (bugs), resulting in divergent visual outcomes and system crashes across various Android API versions (levels). In this study, we systematically investigate LLM-based approaches for detecting and repairing configuration compatibility bugs. Our findings highlight certain limitations of LLMs in effectively identifying and resolving these bugs, while also revealing their potential in addressing complex, hard-to-repair issues that traditional tools struggle with. Leveraging these insights, we introduce the LLM-CompDroid framework, which combines the strengths of LLMs and traditional tools for bug resolution. Our experimental results demonstrate a significant enhancement in bug resolution performance by LLM-CompDroid, with LLM-CompDroid-GPT-3.5 and LLM-CompDroid-GPT-4 surpassing the state-of-the-art tool, ConfFix, by at least 9.8% and 10.4% in both Correct and Correct@k metrics, respectively. This innovative approach holds promise for advancing the reliability and robustness of Android applications, making a valuable contribution to the field of software development.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。