Skip to main content
QUICK REVIEW

[Paper Review] CUPID: Leveraging ChatGPT for More Accurate Duplicate Bug Report Detection

Ting Zhang, Ivana Clairine Irsan|arXiv (Cornell University)|Aug 19, 2023
Software Engineering ResearchComputer Science5 citations
TL;DR

Cupid proposes a hybrid approach that leverages OpenAI's ChatGPT in a zero-shot setting to extract key semantic information from bug reports, which is then fed into the state-of-the-art traditional DBRD method REP. This combination achieves new state-of-the-art performance, with Recall Rate@10 scores ranging from 0.59 to 0.67, outperforming prior deep learning and traditional methods by up to 79.2%.

ABSTRACT

Duplicate bug report detection (DBRD) is a long-standing challenge in both academia and industry. Over the past decades, researchers have proposed various approaches to detect duplicate bug reports more accurately. With the recent advancement of deep learning, researchers have also proposed several deep learning-based approaches to address the DBRD task. In the bug repositories with many bug reports, deep learning-based approaches have shown promising performance. However, in the bug repositories with a smaller number of bug reports, i.e., around 10k, the existing deep learning approaches show worse performance than the traditional approaches. Traditional approaches have limitations, too, e.g., they are usually based on the bag-of-words model, which cannot capture the semantics of bug reports. To address these aforementioned challenges, we seek to leverage a state-of-the-art large language model (LLM) to improve the performance of the traditional DBRD approach. In this paper, we propose an approach called CUPID, which combines the bestperforming traditional DBRD approach (i.e., REP) with the state-of-the-art LLM (i.e., ChatGPT). We conducted an evaluation by comparing CUPID with three existing approaches on three datasets. The experimental results show that CUPID achieves state-of-theart results, reaching Recall Rate@10 scores ranging from 0.602 to 0.654 across all the datasets analyzed. In particular, CUPID improves over the prior state-ofthe-art approach by 5% - 8% in terms of Recall Rate@10 in the datasets. CUPID also surpassed the state-of-the-art deep learning-based DBRD approach by up to 82%.

Motivation & Objective

  • To address the poor performance of deep learning-based duplicate bug report detection (DBRD) in typical repositories with ~10k issues, where datasets are too small for effective model training.
  • To overcome the limitations of traditional DBRD approaches, which rely on bag-of-words models and fail to capture semantic meaning.
  • To explore whether large language models (LLMs) like ChatGPT can improve DBRD accuracy in low-data regimes by extracting meaningful semantic features.
  • To evaluate the impact of prompt engineering and LLM choice on the performance of the hybrid DBRD system.

Proposed method

  • Utilize ChatGPT in a zero-shot setting to analyze each bug report and extract essential semantic keywords and phrases.
  • Feed the extracted key information as input to the REP algorithm, a high-performing traditional DBRD method based on semantic similarity and feature engineering.
  • Design and evaluate multiple prompt templates and selection rules to optimize the quality of information extracted by ChatGPT.
  • Compare Cupid’s performance against three baselines: the prior state-of-the-art deep learning model SABD, the traditional REP method, and a strong baseline using Llama 2-13B.
  • Conduct experiments on three real-world datasets with typical repository sizes (~10k issues) to ensure generalizability to common project scales.
  • Evaluate using Recall Rate@10 as the primary metric to measure effectiveness in retrieving duplicate reports within the top 10 results.

Experimental results

Research questions

  • RQ1RQ1: Can integrating a large language model like ChatGPT significantly improve the performance of traditional DBRD methods in repositories with a typical number of issues (~10k)?
  • RQ2RQ2: How do different prompt templates and selection rules affect the performance of the LLM-based information extraction step in Cupid?
  • RQ3RQ3: How does Cupid compare to state-of-the-art deep learning-based and traditional DBRD approaches in terms of Recall Rate@10?
  • RQ4RQ4: Can open-source LLMs like WizardLM-13B, Vicuna-13B, and Llama 2-13B-Chat achieve comparable performance to ChatGPT in this DBRD setting?

Key findings

  • Cupid achieves Recall Rate@10 scores between 0.59 and 0.67 across all three evaluated datasets, representing a new state of the art for DBRD in typical repositories.
  • Cupid improves over the prior state-of-the-art deep learning approach (SABD) by up to 79.2% in Recall Rate@10, demonstrating a substantial performance gain.
  • Cupid improves over the best-performing traditional method (REP) by 6.7% to 8.7% in Recall Rate@10, showing that LLM-augmented traditional methods can outperform pure deep learning models in low-data regimes.
  • Prompt engineering significantly impacts performance, with optimized templates and selection rules leading to measurable improvements in the quality of extracted features.
  • WizardLM-13B achieves performance comparable to ChatGPT with only a 2% drop in Recall Rate@10, indicating strong potential for open-source LLMs in this task.
  • The study shows that ChatGPT’s performance is not due to data memorization, as it does not exhibit unrealistically high scores across different prompt structures, reducing concerns about data leakage.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.