An Empirical Study on the Capability of LLMs inDecomposing Bug Reports

Zhiyuan Chen, Vanessa Nava-Camal, Ahmad Suleiman, Yiming Tang, Daqing Hou, Weiyi ShangSSRN 2026

TL;DR

This paper investigates how well Large Language Models (LLMs) like ChatGPT and DeepSeek can automatically break down complex software bug reports into smaller, manageable units. While LLMs show promise, their current capabilities are limited, with performance heavily dependent on prompt quality. Prompt engineering, specifically few-shot learning, significantly improves decomposition accuracy, but over-decomposition remains a persistent challenge.

What Problem Does This Paper Address?

Software development lifecycles (SDLCs) heavily rely on bug reports to track and resolve issues. However, these reports can be incredibly complex, lengthy, and multifaceted, making them difficult and time-consuming for developers to analyze and address. This complexity can delay resolutions and impact software quality. While existing research has focused on aspects like bug report summarization or classification, there's a gap in understanding how to automatically decompose a single, complex bug report into multiple, self-contained units that are easier for developers to handle. This paper aims to fill that gap by empirically studying the capability of LLMs in this crucial task.

Methods

The researchers conducted an empirical study using two prominent LLMs: ChatGPT and DeepSeek. They employed a two-stage approach:

  1. Zero-Shot Prompting (RQ1): Initially, they tested the LLMs with basic, straightforward prompts that simply asked them to decompose bug reports. This served as a baseline to assess their inherent capabilities without any specific guidance beyond the request itself.
  2. Few-Shot Prompting (RQ2): To improve performance, they then utilized few-shot prompting. This involved providing the LLMs with a few examples of correctly decomposed bug reports within the prompt itself. These examples were carefully selected to cover different scenarios, including straightforward decompositions, those requiring special handling of code/logs, and those with complex solutions.

After the LLMs generated decompositions, a manual analysis was performed by two researchers to assess accuracy, completeness, and adherence to the original bug report. Disagreements were resolved by a third party. The study also analyzed the reasons for incorrect decompositions.

Datasets

The study used a dataset of 127 resolved privacy-related bug reports collected from Apache Jira. This repository was chosen for its size and the nature of the bugs, which were intended to be complex and not easily fixable, thus providing a good testbed for decomposition. The reports were filtered to include only those marked as "resolved" or "fixed" and to exclude those lacking a bug description.

Key Insights and Ideas

  • LLMs struggle with raw decomposition: Without guidance, LLMs are not yet adept at breaking down complex bug reports into meaningful, self-contained units.
  • Prompt engineering is crucial: The quality of the prompt dramatically impacts LLM performance. Few-shot learning, where examples are provided, significantly boosts accuracy.
  • Over-decomposition is a major pitfall: LLMs tend to split bug reports into too many small units, sometimes even splitting a single issue into multiple, redundant sub-issues. This can be more confusing than helpful.
  • Understanding context is key: LLMs sometimes over-analyze, misinterpret solutions, or omit critical information, indicating a need for deeper semantic understanding of bug report content.
  • Bug report quality matters: The complexity and structure of bug reports themselves influence LLM performance. Atomic, well-structured, and concise reports are easier for LLMs to process.

Key Results

  • Zero-Shot Performance: With plain prompts, ChatGPT correctly decomposed only 10 out of 127 bug reports, and DeepSeek decomposed 11.
  • Few-Shot Performance: After applying few-shot prompting, ChatGPT's true decomposition rate increased by 140% (to 24 correct decompositions), and DeepSeek's by 163.64% (to 29 correct decompositions).
  • Major Causes of Errors: The primary reasons for incorrect decompositions were:
  • Over-decomposition: The most frequent error for both LLMs.
  • Over-analysis
    • Incorrect interpretation of solutions
    • Lacking key information
  • LLM Comparison: ChatGPT and DeepSeek showed similar performance, with no significant differences. ChatGPT slightly outperformed DeepSeek in RQ1 (zero-shot), while DeepSeek slightly outperformed ChatGPT in RQ2 (few-shot).
  • Resolution Time: Bug reports that were correctly decomposed by LLMs tended to have shorter resolution times, suggesting LLMs are better at handling simpler or more straightforward issues.

Limitations and Future Work

Limitations:

  • Dataset Specificity: The study was limited to 127 privacy-related bug reports from Apache Jira. This might not represent the full diversity of bug reports across different domains or projects.
  • LLM Specificity: The findings are based on ChatGPT and DeepSeek, and may not generalize to all LLMs.
  • Manual Analysis Subjectivity: While efforts were made to mitigate subjectivity through multiple reviewers, some level of human interpretation is inherent.
  • LLM Variability: LLM performance can fluctuate due to prompt phrasing and model updates.

Future Work:

  • Expand the dataset to include a wider variety of bug reports from different domains and projects.
  • Explore other applications of prompt engineering for automated bug analysis.
  • Investigate ways to improve LLMs' adherence to instructions and their understanding of bug report context to reduce over-decomposition and over-analysis.
  • Develop strategies for bug reporters to create more "LLM-friendly" bug reports.

Summary updated

BibTeX
@misc{chen2026empirical,
  author = {Zhiyuan Chen and Vanessa Nava-Camal and Ahmad Suleiman and Yiming Tang and Daqing Hou and Weiyi Shang},
  title = {{An Empirical Study on the Capability of LLMs inDecomposing Bug Reports}},
  year = {2026},
  doi = {10.2139/ssrn.6283201},
  howpublished = {SSRN},
}
Figure