Saved in:
Bibliographic Details
Main Authors: Shibaev, Egor, Sushentsev, Denis, Golubev, Yaroslav, Khvorov, Aleksandr
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2412.14802
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916532749074432
author Shibaev, Egor
Sushentsev, Denis
Golubev, Yaroslav
Khvorov, Aleksandr
author_facet Shibaev, Egor
Sushentsev, Denis
Golubev, Yaroslav
Khvorov, Aleksandr
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2412_14802
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Stack Trace Deduplication: Faster, More Accurately, and in More Realistic Scenarios
Shibaev, Egor
Sushentsev, Denis
Golubev, Yaroslav
Khvorov, Aleksandr
Software Engineering
Artificial Intelligence
Machine Learning
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.
title Stack Trace Deduplication: Faster, More Accurately, and in More Realistic Scenarios
topic Software Engineering
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2412.14802