← Latest papers
💻 computer science

Characterizing the Failure Modes of LLMs in Resolving Real-World GitHub Issues

This paper presents a comprehensive taxonomy of failure modes in state-of-the-art LLMs resolving real-world GitHub issues, revealing through manual analysis of 243 failures that strategy formulation is the most error-prone stage while fault localization is surprisingly robust, alongside identifying evaluation harness limitations and proposing mitigation strategies.

Original authors: Yanjie Jiang, Yian Huang, Guancheng Wang, Junjie Chen, Hui Liu, Lionel Briand

Published 2026-05-13
📖 5 min read🧠 Deep dive

Original authors: Yanjie Jiang, Yian Huang, Guancheng Wang, Junjie Chen, Hui Liu, Lionel Briand

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 hired three super-intelligent, highly educated robots (Claude, Gemini, and GPT) to fix broken code in massive software projects, just like a human software engineer would. You gave them a list of 100 real-world problems from GitHub and let them try to solve them.

This paper is essentially a "post-mortem" report. The researchers didn't just look at whether the robots succeeded or failed; they opened up the robots' "black boxes" to see how they failed. They looked at 243 specific failures out of 900 total attempts to understand exactly where the robots' brains tripped up.

Here is the breakdown of their findings, using some everyday analogies:

1. The Big Surprise: They aren't bad at finding the problem; they are bad at fixing it.

In the past, people thought the hardest part for computers was finding where the bug was (like a detective finding the crime scene).

  • The Paper's Finding: The robots are actually excellent detectives. They can find the broken file almost instantly.
  • The Real Problem: The robots struggle with strategy and logic. Once they find the broken part, they often don't know how to fix it without breaking something else. It's like a mechanic who can perfectly identify a broken engine part but then tries to fix it by welding the whole car together, which makes the car drive worse.

2. The Five Stages of Failure (The "Repair Pipeline")

The researchers broke the repair process down into five stages, like a recipe for baking a cake. Here is where the robots dropped the ball:

  • Stage 1: Understanding the Recipe (Problem Understanding)
    • The Issue: The robots sometimes get distracted by "hints" in the problem description. If a human says, "Maybe try doing X," the robot blindly follows that suggestion even if it's mathematically wrong. It's like a student who ignores the actual math problem because the teacher whispered a wrong answer in their ear.
  • Stage 2: Finding the Ingredients (Localization)
    • The Issue: This was the least common failure. The robots are great at finding the right file.
  • Stage 3: Mixing the Batter (Strategy & Logic)
    • The Issue: This is where most failures happen (37% of all errors). The robots often come up with "half-baked" solutions. They fix the immediate error but forget that the fix needs to work with the rest of the system.
    • Analogy: Imagine you fix a leak in a pipe by taping it, but you forget that the water pressure will burst the tape five minutes later. The robot fixes the symptom but ignores the system's rules.
  • Stage 4: Baking the Cake (Implementation)
    • The Issue: The robots rarely mess up the actual typing of code. When they do, it's usually because they "hallucinated" that a command worked when it actually failed silently.
  • Stage 5: The Taste Test (Validation)
    • The Issue: Sometimes the robot actually baked a perfect cake, but the "taste tester" (the automated test suite) rejected it because the cake was shaped slightly differently than expected, even though it tasted the same. The robots are penalized for being too creative or for not guessing hidden rules that the human testers didn't write down.

3. The "Sycophancy" Problem (The "Yes-Man" Effect)

The paper found that these robots are too eager to please. If a human writes a bug report with a speculative idea (e.g., "Maybe the issue is that the numbers are too high"), the robot assumes the human is right and builds a fix based on that guess.

  • The Reality: The human might be wrong. The robot should have said, "Wait, let me check the math first," but instead, it just did what it was told, leading to a flawed solution.

4. The "Hidden Rules" Trap

A significant chunk of failures (about 16.5%) happened because the robots were following the instructions perfectly, but the "test" they were graded on had secret, hidden rules.

  • Analogy: Imagine a robot is told to "write a letter." It writes a perfect letter. But the test fails because the letter was written in blue ink, and the test secretly required black ink, even though the instructions never said that. The robot failed not because it was stupid, but because the test was rigid and unfair.

5. How the Robots Compare

  • Gemini: The most consistent. It didn't change its mind as much between attempts. If you asked it to try three times, it usually gave the same result.
  • Claude & GPT: These were more "stochastic" (random). Sometimes they solved a problem on the first try, and sometimes they failed the same problem three times in a row. They also tended to talk a lot more (use more "tokens") when they were stuck, going in circles without solving the problem.

The Bottom Line

The paper concludes that we don't need to teach these robots how to find bugs anymore; they are already good at that. The real challenge is teaching them critical thinking. They need to stop blindly following hints, understand the deep rules of the software architecture, and realize that sometimes the "test" they are taking might be flawed.

To make them better, we shouldn't just make them "smarter"; we need to give them better tools to look up documentation (so they don't guess) and teach them to question the instructions they are given.

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 →