← Latest papers
🤖 AI

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

This paper addresses the critical issue of hallucinations in LLM-generated bug report summaries by introducing a section-aware detection framework and a synthetic benchmark derived from the BugsRepo dataset, achieving strong performance in identifying, locating, and classifying hallucinated content to improve the reliability of automated software maintenance tools.

Original authors: Hinduja Nirujan, Shreyas Patil, Abdallah Ayoub, Ahmad Abdel Latif, Gouri Ginde

Published 2026-05-26
📖 4 min read☕ Coffee break read

Original authors: Hinduja Nirujan, Shreyas Patil, Abdallah Ayoub, Ahmad Abdel Latif, Gouri Ginde

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a very smart, but occasionally daydreaming, assistant named "LLM" (Large Language Model). Your job is to have this assistant read messy, technical bug reports from software developers and rewrite them into neat, three-part summaries: How to make the bug happen, What actually goes wrong, and What should happen instead.

The problem is that this assistant sometimes "hallucinates." It doesn't just forget a detail; it confidently invents facts that weren't in the original report, like a storyteller who makes up a character's backstory that never happened. If a developer trusts this made-up story, they might waste hours looking for a problem that doesn't exist.

This paper is like a quality control inspection for that assistant. Here is what the researchers did, explained simply:

1. The "Daydream" Discovery

First, the researchers played a game of "spot the lie." They took 80 bug reports, asked the AI to summarize them, and then had humans check the results.

  • The Result: They found that nearly half of the summaries were missing key information, and about 12% contained completely made-up details.
  • The Analogy: It's like asking a tour guide to describe a museum, and they confidently tell you about a dinosaur exhibit that doesn't exist, while skipping the famous painting you actually wanted to see.

2. Why Does the AI Get Lost? (The "Spotlight" Test)

The researchers wanted to know why the AI makes these mistakes. They looked at how the AI's "brain" (a transformer model) pays attention to different parts of the text.

  • The Finding: The AI puts a bright "spotlight" on the Expected Behavior (what should happen) and a dimmer light on the Steps to Reproduce (how to make the bug happen).
  • The Analogy: Imagine a student taking notes in class. They are very focused on the teacher's conclusion (the "Expected Behavior") but are zoning out during the step-by-step instructions. Because they aren't paying attention to the steps, they are more likely to make up the steps later. The researchers found that the sections the AI ignores the most are the ones where it lies the most.

3. Building a "Fake News" Training Camp

Since there wasn't a big list of "AI lies" to study, the researchers had to build their own.

  • The Process: They took real bug reports and used a computer program to deliberately inject lies into them. They created three types of lies:
    1. Addition: Inventing a step that wasn't there.
    2. Removal: Deleting a crucial step.
    3. Reordering: Mixing up the sequence of events.
  • The Filter: Before using these "fake" reports to train a detector, they had to make sure the AI didn't accidentally mess up the real ones while converting them. They used a special scoring system (called PARENT) to act like a strict editor, throwing out any summaries that didn't stick closely enough to the original facts.

4. The "Super-Detective" Model

Instead of just asking the AI, "Is this summary true or false?" (a simple Yes/No question), the researchers built a smarter "Super-Detective."

  • How it Works: This detective is trained to do three things at once:
    1. Alert: "Hey, this summary has a lie!"
    2. Locate: "The lie is in the 'Steps to Reproduce' section."
    3. Identify: "The lie is an 'invention' (addition) or a 'missing piece' (removal)."
  • The Result: They tested this detective on several different AI models. The best one (a mid-sized model called Ministral-3B) was incredibly good at its job. It could spot the lies, find exactly where they were, and classify the type of lie with about 89% accuracy.

5. Where the Detective Still Struggles

Even the best detective has blind spots. The researchers found that the hardest lies to catch were Removals (when the AI deletes information).

  • The Analogy: It's easy to catch someone adding a fake ingredient to a recipe. It's much harder to catch them leaving out a crucial ingredient because the dish still looks like a dish, just a slightly different one. The AI often missed when the original report's details were simply gone.

The Bottom Line

This paper proves that we can't just trust AI summaries blindly. However, by teaching AI to pay attention to the structure of the document (knowing that "Steps" are different from "Results") and training it to spot specific types of lies, we can build much more reliable tools. The study provides a blueprint for a "lie detector" that doesn't just say "this is wrong," but tells you exactly where and how it went wrong, making software development safer and more efficient.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →