mlsanityData to 14 Oct 2026

Empirical Analysis and Detection of Hallucinations in LLM-Generated Bug Report Summaries

arXiv 2605.24137 ↗First posted 22 May 2026cs.SE cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) are increasingly used to generate summaries of software bug reports, including sections such as Steps-to-Reproduce (S2R), Actual Behavior (AB), and Expected Behavior (EB). However, these models frequently produce hallucinations that can be convincing but unsupported by the source report. This can mislead developers and reduce trust in automated maintenance tools. Existing hallucination detection approaches typically evaluate outputs at the full-response level and do not consider the structure of technical documents. An initial exploratory study on 80 structured bug report summaries found that approximately 47.9% contained missing information, while 12.3% included fabricated content, highlighting the need for systematic hallucination analysis in bug report summarization. In this work, we empirically investigate hallucinations in LLM-generated bug report summaries from a section-aware perspective. Using the BugsRepo dataset, derived from Mozilla OSS projects, we introduce controlled synthetic hallucination injection to construct a benchmark for training and evaluation. We propose a section-aware hallucination detection approach that jointly predicts whether a summary contains hallucinated content, identifies affected sections, and classifies hallucination types. Experimental results across multiple pretrained language models show that the proposed approach achieves strong performance across all tasks, with the best model obtaining 0.89 report-level Macro-F1, 0.83 section-level Macro-F1, and 0.84 hallucination-type Macro-F1. We further analyze common hallucination patterns and model failure modes to better understand limitations of current LLM-generated bug report summaries. The findings highlight the importance of section-aware hallucination analysis for improving the reliability of LLM-assisted bug report summarization in software maintenance workflows.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 20 of its 39 references that are in the map. First posted on arXiv 22 May 2026.

Builds on

20 of 39 references.

References · 20

  1. 2017Attention Is All You Needcited by 60,361
  2. 2022Survey of Hallucination in Natural Language Generationcited by 2,075
  3. 2024A Survey on LLM-as-a-Judgecited by 1,423
  4. 2020On Faithfulness and Factuality in Abstractive Summarizationcited by 900
  5. 2023Large Language Models for Software Engineering: Survey and Open Problemscited by 181
  6. 2019Handling Divergent Reference Texts when Evaluating Table-to-Text Generationcited by 119
  7. 2024Beyond Functional Correctness: Exploring Hallucinations in LLM-Generated Codecited by 107
  8. 2024LLM Hallucinations in Practical Code Generation: Phenomena, Mechanism, and Mitigationcited by 93
  9. 2025Importing Phantoms: Measuring LLM Package Hallucination Vulnerabilitiescited by 15
  10. 2025HalluciNot: Hallucination Detection Through Context and Common Knowledge Verificationcited by 13
  11. 2025A Systematic Literature Review of Code Hallucinations in LLMs: Characterization, Mitigation Methods, Challenges, and Future Directions for Reliable AIcited by 6
  12. 2024ETF: An Entity Tracing Framework for Hallucination Detection in Code Summariescited by 5
8 more
  1. 2026HalluJudge: A Reference-Free Hallucination Detection for Context Misalignment in Code Review Automationcited by 5
  2. 2024MALTO at SemEval-2024 Task 6: Leveraging Synthetic Data for LLM Hallucination Detectioncited by 4
  3. 2025SelfCheck-Eval: A Multi-Module Framework for Zero-Resource Hallucination Detection in Large Language Modelscited by 4
  4. 2025Hallucinations in Code Change to Natural Language Generation: Prevalence and Evaluation of Detection Metricscited by 4
  5. 2025Can We Enhance Bug Report Quality Using LLMs?: An Empirical Study of LLM-Based Bug Report Generationcited by 3
  6. 2025BugsRepo: A Comprehensive Curated Dataset of Bug Reports, Comments and Contributors Information from Bugzillacited by 3
  7. 2025Lie to Me: Knowledge Graphs for Robust Hallucination Self-Detection in LLMscited by 3
  8. 2026Hallucination Inspector: A Fact-Checking Judge for API Migrationcited by 1

Built on by

Not cited yet.