AI
Framework helps pinpoint bugs in AI-powered software systems
New multi-agent approach locates defects in software that integrates large language models by analyzing prompts, code, and configurations together.
Finding bugs in software that relies on large language models presents a unique challenge. Unlike traditional applications, LLM-integrated systems behave probabilistically and shift based on context, creating a new class of defects that emerge from how components interact—not just from code mistakes alone.
Researchers have developed LIDL, a multi-agent framework designed to hunt down these integration defects by examining how prompts, API calls, model settings, and source code work together.
The Problem with AI-Powered Software#
When software embeds or calls LLMs, misalignments between prompts and code, configuration errors, and unexpected model outputs can all trigger failures. Traditional debugging tools fall short because they treat LLM-integrated code like any other program—they miss the cross-layer dependencies linking prompts, configuration files, and API interactions. Error traces often prove incomplete or misleading, making root-cause analysis difficult.
How LIDL Works#
The framework addresses these gaps through three key capabilities:
- Knowledge graph construction: LIDL builds a code knowledge graph annotated with LLM-specific markers that capture interaction boundaries between source code, prompts, and config files.
- Evidence fusion: It combines multiple error signals to surface candidate defect locations rather than relying on a single diagnostic path.
- Context-aware validation: The system applies counterfactual reasoning to distinguish genuine root causes from symptoms that merely propagate from upstream failures.
Validation on Real-World Cases#
The team evaluated LIDL against 146 real defects from 105 GitHub repositories and 16 agent-based systems. The framework outperformed seven established baselines, achieving improvements of up to 21.69% in pinpointing defects at the function level and up to 19.15% at the file level (measured by Top-3 accuracy). It also improved downstream repair success by nearly 31% compared to the best alternatives—while keeping computational costs lower than most competing methods.

