An Empirical Study on the Capability of LLMs in Decomposing Bug Reports

Zhiyuan Chen, Vanessa Nava-Camal, Ahmad Daudu Suleiman, Yiming Tang, Daqing Hou, Weiyi ShangarXiv 2025 · DOI

Introduction

In modern software development, bug reports are indispensable yet increasingly complex. As software systems scale, reports often evolve into "monster" documents containing multiple interwoven issues, reproduction steps, and logs. This complexity can overwhelm developers, leading to delays in triage and resolution. While existing automated tools focus on categorization or assignment, they often ignore the inherent complexity of the report itself.

This study investigates the potential of Large Language Models (LLMs) to act as "triage assistants" by decomposing complex, multi-issue bug reports into smaller, "atomic" tasks. By breaking down these reports, the goal is to create more manageable units of work for development teams.

Methodology

The researchers conducted an empirical study comparing two prominent LLMs: GPT-4o and DeepSeek-V1. The experimental design was structured into three distinct phases to evaluate both the problem's baseline and the models' capabilities under different prompting strategies.

The research workflow encompassing baseline analysis (PQ1), zero-shot prompting (RQ1), and few-shot prompting (RQ2).
  1. Baseline Effort Analysis (PQ1): An analysis of historical resolution times to establish the human effort required for these bugs.
  2. Zero-Shot Prompting (RQ1): Evaluating the models' ability to decompose reports using simple, direct instructions without prior examples.
  3. Few-Shot Prompting (RQ2): Providing the models with specific demonstrations of successful decompositions, including complex "edge cases" like reports with code snippets.

To ensure accuracy, the first two authors performed a manual qualitative analysis, independently reviewing every decomposition to verify it was self-contained and aligned with the original report.

Dataset and Human Baseline

The study utilized a dataset of 127 resolved, privacy-related bug reports sourced from Apache Jira. Privacy bugs were selected due to their high impact and language-agnostic nature, which minimizes bias in LLM performance.

The analysis of these reports revealed a significant human effort requirement. On average, it takes developers approximately 175 days to resolve these privacy-related issues. The distribution of these bugs across different priority levels and their corresponding resolution times are detailed below.

Distribution of bug reports by priority and the associated human resolution effort.

Key Insights and Results

The study yielded several critical findings regarding the current state of LLMs in bug decomposition:

The Power of Prompt Engineering

LLMs demonstrated poor performance "out of the box." In the zero-shot scenario, ChatGPT correctly decomposed only 10 out of 127 reports, while DeepSeek managed 11. However, the introduction of "few-shot" prompting led to a dramatic improvement: success rates increased by 140% for ChatGPT and 163% for DeepSeek. In the final evaluation, DeepSeek slightly outperformed ChatGPT, achieving a 22.8% success rate compared to ChatGPT's 18.9%.

Common Failure Modes

  • Over-Decomposition: Models frequently split single bugs into multiple sub-problems that were essentially redundant descriptions of the same issue.
  • Technical Noise: When reports included stack traces or logs, LLMs often treated individual log lines as separate bugs rather than supporting evidence.
  • Complexity Correlation: There was a notable correlation between human difficulty and AI difficulty. Bugs that took humans longer to resolve were also significantly harder for LLMs to decompose correctly, suggesting that semantic complexity remains a shared hurdle.

Conclusion and Future Work

While LLMs show promise as triage assistants, their current baseline for complex bug decomposition is relatively low, peaking at roughly a 20% success rate with advanced prompting. The study highlights that while LLMs can assist, they are not yet ready to replace human oversight in complex triage tasks.

Future research will focus on expanding the dataset across more domains and exploring advanced techniques like Chain-of-Thought prompting. Additionally, the authors suggest that improving the "atomicity" of initial bug reports by human reporters could significantly enhance the effectiveness of automated triage tools.

Summary updated

BibTeX
@misc{chen2025empirical,
  author = {Zhiyuan Chen and Vanessa Nava-Camal and Ahmad Daudu Suleiman and Yiming Tang and Daqing Hou and Weiyi Shang},
  title = {{An Empirical Study on the Capability of LLMs in Decomposing Bug Reports}},
  year = {2025},
  eprint = {2504.20911},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.20911},
}
Figure