arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2412.14802cs.SEcs.AIcs.LG
收藏

栈迹去重:更快、更准确且适用于更多真实场景

Stack Trace Deduplication: Faster, More Accurately, and in More Realistic Scenarios

JetBrains(捷通软件);JetBrains Research(捷通研究院);Constructor University(康斯特大学)

Egor Shibaev, Denis Sushentsev, Yaroslav Golubev, Aleksandr Khvorov

AI总结:

提出结合字节对编码与近似最近邻搜索的嵌入模型及重排器进行栈迹去重,并发布工业数据集SlowOps,在准确率与速度上均优于现有模型。

摘要:

在大规模软件系统中,当错误发生时,通常没有包含人工编写描述的完整错误报告。在这种情况下,开发者依赖栈迹,即导致错误的系列函数调用。由于可能会有成千上万来自不同用户描述同一问题的栈迹,因此需要将它们自动去重并分类,以便进行处理。最近的研究提出了基于深度学习的强大方法,但它们的评估和比较脱离了现实工作流,尚不清楚它们在大规模情况下是否真的有效。为了弥补这一差距,本工作提出了三项主要贡献:一个新模型、一个基于工业界的数据集和一项多维度的评估。我们的模型由两部分组成——(1)一个采用字节对编码和近似最近邻搜索的嵌入模型,用于快速找到与传入栈迹最相关的栈迹;(2)一个重排器,考虑它们之间重复的帧,对最匹配的栈迹进行重新排序。为了补充从开源项目收集的现有数据集,我们向社区分享了 SlowOps——一个来自 JetBrains 开发的基于 IntelliJ 产品的栈迹数据集,其每个类别的栈迹数量多了一个数量级。最后,我们进行了一项力求真实的评估:不仅测量分类的准确性,还测量运行时间和创建新类别的能力。评估表明,我们的模型取得了良好的平衡——它在开源数据集和 SlowOps 上均优于其他模型,同时运行时间也比大多数模型更快。我们发布了所有的代码和数据,并希望我们的工作能为该领域进一步面向实践的研究铺平道路。

英文摘要:

In large-scale software systems, there are often no fully-fledged bug reports with human-written descriptions when an error occurs. In this case, developers rely on stack traces, i.e., series of function calls that led to the error. Since there can be tens and hundreds of thousands of them describing the same issue from different users, automatic deduplication into categories is necessary to allow for processing. Recent works have proposed powerful deep learning-based approaches for this, but they are evaluated and compared in isolation from real-life workflows, and it is not clear whether they will actually work well at scale. To overcome this gap, this work presents three main contributions: a novel model, an industry-based dataset, and a multi-faceted evaluation. Our model consists of two parts - (1) an embedding model with byte-pair encoding and approximate nearest neighbor search to quickly find the most relevant stack traces to the incoming one, and (2) a reranker that re-ranks the most fitting stack traces, taking into account the repeated frames between them. To complement the existing datasets collected from open-source projects, we share with the community SlowOps - a dataset of stack traces from IntelliJ-based products developed by JetBrains, which has an order of magnitude more stack traces per category. Finally, we carry out an evaluation that strives to be realistic: measuring not only the accuracy of categorization, but also the operation time and the ability to create new categories. The evaluation shows that our model strikes a good balance - it outperforms other models on both open-source datasets and SlowOps, while also being faster on time than most. We release all of our code and data, and hope that our work can pave the way to further practice-oriented research in the area.

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

↑