PTM4Tag:使用预训练模型锐化堆栈溢出帖子的标签推荐
PTM4Tag: Sharpening Tag Recommendation of Stack Overflow Posts with Pre-trained Models
摘要:
Stack Overflow通常被认为是最有影响力的软件问答(SQA)网站,拥有数百万与编程相关的问题和答案。标签在有效地构建Stack Overflow中的内容方面发挥着关键作用,并且对于支持一系列网站操作至关重要,例如,查询相关内容。选择不当的标签通常会引入额外的噪声和冗余,从而导致标签同义词和标签爆炸问题。因此,期望能够准确地推荐高质量标签的自动标签推荐技术来缓解上述问题。受最近预训练语言模型(PTM)在自然语言处理(NLP)中的成功启发,我们提出了PTM 4 Tag,这是一个用于堆栈溢出帖子的标签推荐框架,该框架利用具有三元组架构的PTM,该架构对帖子的组件进行建模,即,标题、描述和代码,具有独立的语言模型。据我们所知,这是第一个在SQA站点的标签推荐任务中利用PTM的工作。我们基于五种流行的预训练模型:BERT,RoBERTa,ALBERT,CodeBERT和BERTOverflow比较评估了PTM 4 Tag的性能。我们的研究结果表明,在PTM 4 Tag中利用软件工程(SE)领域特定的PTM CodeBERT在五种考虑的PTM中实现了最佳性能,并且在平均$Precision@k$、$Recall@k$和$F1$ - $score@k$方面远远优于最先进的深度学习(基于卷积神经网络)方法。我们进行了一项消融研究,以量化帖子的组成部分(标题、描述和代码段)对PTM 4 Tag性能的贡献。我们的研究结果表明,标题是最重要的预测最相关的标签,并利用所有的组件实现最佳性能。
英文摘要:
Stack Overflow is often viewed as the most influential Software Question Answer (SQA) website with millions of programming-related questions and answers. Tags play a critical role in efficiently structuring the contents in Stack Overflow and are vital to support a range of site operations, e.g., querying relevant contents. Poorly selected tags often introduce extra noise and redundancy, which leads to tag synonym and tag explosion problems. Thus, an automated tag recommendation technique that can accurately recommend high-quality tags is desired to alleviate the problems mentioned above. Inspired by the recent success of pre-trained language models (PTMs) in natural language processing (NLP), we present PTM4Tag, a tag recommendation framework for Stack Overflow posts that utilize PTMs with a triplet architecture, which models the components of a post, i.e., Title, Description, and Code with independent language models. To the best of our knowledge, this is the first work that leverages PTMs in the tag recommendation task of SQA sites. We comparatively evaluate the performance of PTM4Tag based on five popular pre-trained models: BERT, RoBERTa, ALBERT, CodeBERT, and BERTOverflow. Our results show that leveraging the software engineering (SE) domain-specific PTM CodeBERT in PTM4Tag achieves the best performance among the five considered PTMs and outperforms the state-of-the-art deep learning (Convolutional Neural Network-based) approach by a large margin in terms of average $Precision@k$, $Recall@k$, and $F1$-$score@k$. We conduct an ablation study to quantify the contribution of a post's constituent components (Title, Description, and Code Snippets) to the performance of PTM4Tag. Our results show that Title is the most important in predicting the most relevant tags, and utilizing all the components achieves the best performance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。