SOTitle:一种基于transformer的栈溢出文章标题生成方法
SOTitle: A Transformer-based Post Title Generation Approach for Stack Overflow
摘要:
在Stack Overflow上,开发人员不仅可以浏览问题帖子来解决他们的编程问题,还可以从问题帖子中获得专业知识,以帮助提高他们的编程技能。因此,提高Stack Overflow的问题帖质量,引起了研究者的广泛关注。一个简洁、准确的标题可以帮助开发者理解问题帖子的关键信息,从而提高帖子的质量。但是,由于缺乏与他们的问题相关的专业知识或开发人员的表达能力差,生成的标题质量不高。之前的一项研究旨在通过分析问题帖子中的代码片段来自动生成标题。然而,本研究忽略了相应问题描述中的有用信息。因此,我们提出了一种通过利用问题帖子中的代码片段和问题描述(即,多模式输入)。SOTitle遵循Transformer结构,通过多头注意力机制,可以有效捕捉长期依赖。为了验证SOTitle的有效性,我们从Stack Overflow中构建了一个大规模的高质量语料库,其中包括1,168,257个针对四种流行程序设计语言的高质量问题帖子。实验结果表明,SOTitle可以显着优于六个国家的最先进的基线在自动评价和人类评价。为了鼓励后续研究,我们公开了我们的语料库和方法
英文摘要:
On Stack Overflow, developers can not only browse question posts to solve their programming problems but also gain expertise from the question posts to help improve their programming skills. Therefore, improving the quality of question posts in Stack Overflow has attracted the wide attention of researchers. A concise and precise title can play an important role in helping developers understand the key information of the question post, which can improve the post quality. However, the quality of the generated title is not high due to the lack of professional knowledge related to their questions or the poor presentation ability of developers. A previous study aimed to automatically generate the title by analyzing the code snippets in the question post. However, this study ignored the useful information in the corresponding problem description. Therefore, we propose an approach SOTitle for automatic post title generation by leveraging the code snippets and the problem description in the question post (i.e., the multi-modal input). SOTitle follows the Transformer structure, which can effectively capture long-term dependencies through a multi-head attention mechanism. To verify the effectiveness of SOTitle, we construct a large-scale high-quality corpus from Stack Overflow, which includes 1,168,257 high-quality question posts for four popular programming languages. Experimental results show that SOTitle can significantly outperform six state-of-the-art baselines in both automatic evaluation and human evaluation. To encourage follow-up studies, we make our corpus and approach publicly available
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。