# Stack Trace-Based Crash Deduplication with Transformer Adaptation

DevFeed: [Stack Trace-Based Crash Deduplication with Transformer Adaptation](<https://devfeed.tech/articles/stack-trace-based-crash-deduplication-with-transformer-adaptation-94595.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2508.19449>)

Author: Md Afif Al Mamun, Gias Uddin, Lan Xia, Longyu Zhang

Published: 2026-10-22T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>), [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [Transformer](<https://devfeed.tech/topics/transformer.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Embeddings](<https://devfeed.tech/topics/embeddings.md>), [Language Engineering](<https://devfeed.tech/topics/language-engineering.md>)

Tags: [crash](<https://devfeed.tech/tags/crash.md>), [crash-reporting](<https://devfeed.tech/tags/crash-reporting.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [deduplication](<https://devfeed.tech/tags/deduplication.md>), [deep-learning](<https://devfeed.tech/tags/deep-learning.md>), [fully-connected](<https://devfeed.tech/tags/fully-connected.md>), [information-retrieval](<https://devfeed.tech/tags/information-retrieval.md>), [issue-tracking](<https://devfeed.tech/tags/issue-tracking.md>), [language-model](<https://devfeed.tech/tags/language-model.md>), [natural-language-processing](<https://devfeed.tech/tags/natural-language-processing.md>), [nlp](<https://devfeed.tech/tags/nlp.md>), [rank](<https://devfeed.tech/tags/rank.md>), [ranking](<https://devfeed.tech/tags/ranking.md>), [software-engineering](<https://devfeed.tech/tags/software-engineering.md>), [stack](<https://devfeed.tech/tags/stack.md>), [string](<https://devfeed.tech/tags/string.md>), [trace](<https://devfeed.tech/tags/trace.md>), [traces](<https://devfeed.tech/tags/traces.md>), [transformer](<https://devfeed.tech/tags/transformer.md>), [triage](<https://devfeed.tech/tags/triage.md>), [unique](<https://devfeed.tech/tags/unique.md>)

## AI overview

dedupT adapts a pretrained language model to stack traces, then trains a fully connected network on its embeddings to rank duplicate crashes. The abstract reports that across four public datasets, it often improves Mean Reciprocal Rank by more than 15% over the best deep learning baseline and by up to 10% over traditional methods, while also achieving higher ROC-AUC for identifying unique crashes. The evidence is limited to the supplied abstract; it does not describe implementation details or dataset-specific results.

## Source excerpt

arXiv:2508.19449v3 Announce Type: replace Abstract: Automated crash reporting systems generate large volumes of duplicate reports, overwhelming issue-tracking systems and increasing developer workload. Traditional stack trace-based deduplication methods---relying on string similarity, rule-based heuristics, or deep learning (DL) models---often fail to capture the contextual and structural relationships within stack traces. We propose dedupT, a transformer-based approach that models stack traces holistically rather than as isolated frames. dedupT first adapts a pretrained language model (PLM) to stack traces, then uses its embeddings to train a fully-connected network (FCN) to rank duplicate crashes effectively. Extensive experiments on real-world datasets show that dedupT outperforms existing DL and traditional methods (e.g., sequence alignment and information retrieval techniques) in both duplicate ranking and unique crash detection, significantly reducing manual triage effort. On four public datasets, dedupT improves Mean Reciprocal Rank (MRR) often by over 15% compared to the best DL baseline and up to 10% over traditional methods while achieving higher Receiver Operating Characteristic Area Under the Curve (ROC-AUC) in detecting unique crash reports. Our work advances the integration of modern natural language processing (NLP) techniques into software engineering, providing an effective solution for stack trace-based crash deduplication.