arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.06853cs.SE
收藏

Stack Overflow 帖子的表示学习:我们走了多远?

Representation Learning for Stack Overflow Posts: How Far are We?

Junda He, Zhou Xin, Bowen Xu, Ting Zhang, Kisub Kim, Zhou Yang, Ferdian Thung, Ivana Irsan, David Lo

AI总结:

本文在统一设置下比较 Post2Vec、BERTOverflow 及多种 BERT 类模型在标签、相关性和 API 推荐任务上的表现,并提出经 Stack Overflow 语料继续预训练的 SOBERT。

摘要:

Stack Overflow 的巨大成功积累了大量软件工程知识语料,从而促使研究人员提出各种解决方案来分析其内容。此类解决方案的性能在很大程度上取决于 Stack Overflow 帖子表示模型的选择。随着关于 Stack Overflow 的文献数量持续快速增长,这凸显了对强大的 Stack Overflow 帖子表示模型的需求,并激发了研究人员开发专用表示模型的兴趣,这些模型能够熟练捕捉 Stack Overflow 帖子的复杂之处。最先进(SOTA)的 Stack Overflow 帖子表示模型是 Post2Vec 和 BERTOverflow,它们构建于卷积神经网络(CNN)和 Transformer 架构(例如 BERT)等流行神经网络之上。尽管这些表示方法取得了可观的结果,但它们尚未在相同的实验设置下接受评估。为填补这一研究空白,我们首先在广泛的相关任务(即标签推荐、相关性预测和 API 推荐)中,通过实验比较专门为 Stack Overflow 帖子设计的表示模型(Post2Vec 和 BERTOverflow)的性能。为了找到更适合帖子的表示模型,我们进一步探索了一组多样化的基于 BERT 的模型,包括(1)通用领域语言模型(RoBERTa 和 Longformer)以及(2)使用软件工程相关文本制品构建的语言模型(CodeBERT、GraphCodeBERT 和 seBERT)。然而,结果也说明了“没有银弹”的概念,因为没有任何模型能够始终如一地战胜所有其他模型。受这些发现启发,我们提出了 SOBERT,它采用一种简单而有效的策略,通过使用来自 Stack Overflow 的文本制品继续预训练阶段来改进性能最佳的模型。

英文摘要:

The tremendous success of Stack Overflow has accumulated an extensive corpus of software engineering knowledge, thus motivating researchers to propose various solutions for analyzing its content.The performance of such solutions hinges significantly on the selection of representation model for Stack Overflow posts. As the volume of literature on Stack Overflow continues to burgeon, it highlights the need for a powerful Stack Overflow post representation model and drives researchers' interest in developing specialized representation models that can adeptly capture the intricacies of Stack Overflow posts. The state-of-the-art (SOTA) Stack Overflow post representation models are Post2Vec and BERTOverflow, which are built upon trendy neural networks such as convolutional neural network (CNN) and Transformer architecture (e.g., BERT). Despite their promising results, these representation methods have not been evaluated in the same experimental setting. To fill the research gap, we first empirically compare the performance of the representation models designed specifically for Stack Overflow posts (Post2Vec and BERTOverflow) in a wide range of related tasks, i.e., tag recommendation, relatedness prediction, and API recommendation. To find more suitable representation models for the posts, we further explore a diverse set of BERT-based models, including (1) general domain language models (RoBERTa and Longformer) and (2) language models built with software engineering-related textual artifacts (CodeBERT, GraphCodeBERT, and seBERT). However, it also illustrates the ``No Silver Bullet'' concept, as none of the models consistently wins against all the others. Inspired by the findings, we propose SOBERT, which employs a simple-yet-effective strategy to improve the best-performing model by continuing the pre-training phase with the textual artifact from Stack Overflow.

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

↑