arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2312.15068cs.SEcs.CLcs.LG
收藏

利用 Siamese 结构精炼 GPT-3 Embeddings 以进行技术帖子重复检测

Refining GPT-3 Embeddings with a Siamese Structure for Technical Post Duplicate Detection

Polytechnique Montréal(蒙特利尔理工学院);Waseda University(早稻田大学)

Xingfang Wu, Heng Li, Nobukazu Yoshioka, Hironori Washizaki, Foutse Khomh

AI总结:

本文提出用 Siamese 网络精炼 GPT-3 embeddings,以自动检测技术论坛重复帖子,并在基准与 Stack Overflow 数据集上验证其优于基线且能发现未标注重复。

摘要:

技术在线社区的目标之一是帮助开发者在一个地方找到正确答案。同一个问题可能以不同方式、不同措辞提出,从而导致技术论坛中存在重复帖子。如何发现并关联重复帖子的问题已经引起开发者社区和研究人员的关注。例如,Stack Overflow 采用基于投票的机制来标记并关闭重复帖子。然而,及时处理这些不断出现的重复帖子仍然具有挑战性。因此,已有多种方法被提出,用于自动检测技术论坛帖子中的重复内容。现有方法存在局限:它们要么依赖手工构造的相似性度量,无法充分捕捉帖子语义;要么缺乏用于提升性能的监督信号。此外,这些方法依赖成对特征生成,导致效率受限,在面对大量数据时可能不切实际。在本研究中,我们尝试将 GPT-3 embeddings 用于并加以精炼,以服务于重复检测任务。我们假设 GPT-3 embeddings 能够准确表示帖子的语义。此外,通过在 GPT-3 embeddings 的基础上训练一个基于 Siamese 的网络,我们获得了一种潜在嵌入,能够准确捕捉技术论坛帖子中的重复关系。我们在一个基准数据集上的实验证实了该方法的有效性,并表明其性能优于基线方法。当将该方法应用于我们使用近期 Stack Overflow 数据转储构建的数据集时,其 Top-1、Top-5 和 Top-30 准确率分别达到 23.1%、43.9% 和 68.9%。通过一项人工研究,我们证实了该方法在发现技术论坛上未标注重复帖子方面的潜力。

英文摘要:

One goal of technical online communities is to help developers find the right answer in one place. A single question can be asked in different ways with different wordings, leading to the existence of duplicate posts on technical forums. The question of how to discover and link duplicate posts has garnered the attention of both developer communities and researchers. For example, Stack Overflow adopts a voting-based mechanism to mark and close duplicate posts. However, addressing these constantly emerging duplicate posts in a timely manner continues to pose challenges. Therefore, various approaches have been proposed to detect duplicate posts on technical forum posts automatically. The existing methods suffer from limitations either due to their reliance on handcrafted similarity metrics which can not sufficiently capture the semantics of posts, or their lack of supervision to improve the performance. Additionally, the efficiency of these methods is hindered by their dependence on pair-wise feature generation, which can be impractical for large amount of data. In this work, we attempt to employ and refine the GPT-3 embeddings for the duplicate detection task. We assume that the GPT-3 embeddings can accurately represent the semantics of the posts. In addition, by training a Siamese-based network based on the GPT-3 embeddings, we obtain a latent embedding that accurately captures the duplicate relation in technical forum posts. Our experiment on a benchmark dataset confirms the effectiveness of our approach and demonstrates superior performance compared to baseline methods. When applied to the dataset we constructed with a recent Stack Overflow dump, our approach attains a Top-1, Top-5, and Top-30 accuracy of 23.1%, 43.9%, and 68.9%, respectively. With a manual study, we confirm our approach's potential of finding unlabelled duplicates on technical forums.

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

↑