Understanding on the Edge: LLM-generated Boundary Test Explanations
This exploratory study evaluates the effectiveness of LLM-generated boundary value analysis explanations through a survey and interviews with software professionals, revealing generally positive reception while identifying key design criteria to enhance the clarity, trustworthiness, and practical utility of such tools for debugging and documentation.
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 are baking a cake. You know that if you add one cup of sugar, it's sweet. If you add two cups, it's cloying. But the exact moment it stops being "just right" and starts being "too much" is the boundary. In software, these "edges" are where programs often break. Finding these edges is called Boundary Value Testing.
For a long time, finding these edges has been like trying to find a needle in a haystack without a map. You have to guess where the line is drawn.
This paper asks a simple question: Can Artificial Intelligence (specifically, Large Language Models or LLMs) not only find these "edges" but also explain why they are edges in plain English?
Think of the AI as a very smart, well-read assistant. The researchers wanted to see if this assistant could look at a software function (like a calculator for Body Mass Index or an email validator) and say, "Hey, if you type in 999, it works. If you type in 1000, it crashes. Here is the rule that makes 1000 the breaking point."
The Experiment: A Taste Test
The researchers set up a "taste test" with 27 software professionals (a mix of industry experts and researchers). They showed them 20 different "edge cases" generated by an AI (using a model called GPT-4.1).
For each case, the AI provided a short explanation. The humans then rated these explanations on four things:
- Clarity: Was it easy to read?
- Correctness: Was it factually true?
- Completeness: Did it miss anything important?
- Usefulness: Would this actually help me do my job?
The Results: Good, but with a few "Hallucinations"
The overall verdict was positive. About 63.5% of the ratings were high (4 or 5 out of 5). The professionals felt the AI was generally doing a good job of explaining the "why" behind the software's behavior.
However, there were some glitches, much like a GPS giving you a wrong turn:
- The "Magic" Mistake: In one instance involving dates, the AI confidently claimed that a year changing from 199 to 200 changed the number of digits from 3 to 4. In reality, both were 4 digits. The AI "hallucinated" (made up) a fact. When this happened, people stopped trusting the explanation.
- Too Much Jargon: Sometimes the AI used technical terms without explaining them, like a chef saying "add a pinch of mirepoix" without telling you what that is.
- Missing Context: The explanations sometimes felt too brief, lacking the "rulebook" (like specific internet standards) that justified why a boundary existed.
What Makes a Good Explanation? (The "Secret Sauce")
Through follow-up interviews, the researchers distilled what makes these AI explanations actually useful. They came up with a 7-point checklist for future tools:
- Adjust the Volume: Don't talk to a beginner like a PhD, and don't talk to a PhD like a beginner. The explanation should adapt to the user's expertise.
- Cite the Source: If you say a rule exists, link to the official rulebook (like an internet standard document). This builds trust.
- Follow a Recipe: Use a clear structure. First, say what works. Then, say what breaks. Then, show the numbers.
- Show the Neighbors: Don't just show the breaking point. Show the number before it breaks and the number after it breaks, so you can see the change clearly.
- Explain the "Why": If the AI is making an assumption (like "we assume years can't be negative"), say it out loud.
- Let Them Talk Back: Instead of just reading a static note, let the user ask the AI, "Wait, why is that invalid?" and get an answer.
- Fit into the Workflow: Don't make the user leave their coding screen to read the explanation. It should pop up right where they are working.
The Bottom Line
The paper concludes that AI is ready to be a helpful sidekick for software testers, but it's not a replacement for the human yet.
Think of it like a co-pilot. The AI can point out the edge of the cliff and say, "Here is where the ground ends," but the human pilot still needs to look out the window, check the map, and decide if it's safe to fly there. If the AI makes a factual error (like the date mistake), the human needs to catch it.
The researchers found that with a few tweaks to how we ask the AI (better "prompts") and by following their 7-point checklist, these AI explanations could become a powerful tool to make software safer and easier to understand. But for now, we need to keep a human in the loop to verify the AI isn't making things up.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.