Saved in:
Bibliographic Details
Main Authors: Tan, Gou, He, Zilong, Li, Min, Chen, Pengfei, Shi, Jieke, Sun, Zhensu, Zhang, Ting, Chen, Danwen, Shar, Lwin Khin, Zhang, Chuanfu, Lo, David
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2601.05539
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911363003056128
author Tan, Gou
He, Zilong
Li, Min
Chen, Pengfei
Shi, Jieke
Sun, Zhensu
Zhang, Ting
Chen, Danwen
Shar, Lwin Khin
Zhang, Chuanfu
Lo, David
author_facet Tan, Gou
He, Zilong
Li, Min
Chen, Pengfei
Shi, Jieke
Sun, Zhensu
Zhang, Ting
Chen, Danwen
Shar, Lwin Khin
Zhang, Chuanfu
Lo, David
contents LLM-integrated software, which embeds or interacts with large language models (LLMs) as functional components, exhibits probabilistic and context-dependent behaviors that fundamentally differ from those of traditional software. This shift introduces a new category of integration defects that arise not only from code errors but also from misaligned interactions among LLM-specific artifacts, including prompts, API calls, configurations, and model outputs. However, existing defect localization techniques are ineffective at identifying these LLM-specific integration defects because they fail to capture cross-layer dependencies across heterogeneous artifacts, cannot exploit incomplete or misleading error traces, and lack semantic reasoning capabilities for identifying root causes. To address these challenges, we propose LIDL, a multi-agent framework for defect localization in LLM-integrated software. LIDL (1) constructs a code knowledge graph enriched with LLM-aware annotations that represent interaction boundaries across source code, prompts, and configuration files, (2) fuses three complementary sources of error evidence inferred by LLMs to surface candidate defect locations, and (3) applies context-aware validation that uses counterfactual reasoning to distinguish true root causes from propagated symptoms. We evaluate LIDL on 146 real-world defect instances collected from 105 GitHub repositories and 16 agent-based systems. The results show that LIDL significantly outperforms five state-of-the-art baselines across all metrics, achieving a Top-3 accuracy of 0.64 and a MAP of 0.48, which represents a 64.1% improvement over the best-performing baseline. Notably, LIDL achieves these gains while reducing cost by 92.5%, demonstrating both high accuracy and cost efficiency.
format Preprint
id arxiv_https___arxiv_org_abs_2601_05539
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle LIDL: LLM Integration Defect Localization via Knowledge Graph-Enhanced Multi-Agent Analysis
Tan, Gou
He, Zilong
Li, Min
Chen, Pengfei
Shi, Jieke
Sun, Zhensu
Zhang, Ting
Chen, Danwen
Shar, Lwin Khin
Zhang, Chuanfu
Lo, David
Software Engineering
LLM-integrated software, which embeds or interacts with large language models (LLMs) as functional components, exhibits probabilistic and context-dependent behaviors that fundamentally differ from those of traditional software. This shift introduces a new category of integration defects that arise not only from code errors but also from misaligned interactions among LLM-specific artifacts, including prompts, API calls, configurations, and model outputs. However, existing defect localization techniques are ineffective at identifying these LLM-specific integration defects because they fail to capture cross-layer dependencies across heterogeneous artifacts, cannot exploit incomplete or misleading error traces, and lack semantic reasoning capabilities for identifying root causes. To address these challenges, we propose LIDL, a multi-agent framework for defect localization in LLM-integrated software. LIDL (1) constructs a code knowledge graph enriched with LLM-aware annotations that represent interaction boundaries across source code, prompts, and configuration files, (2) fuses three complementary sources of error evidence inferred by LLMs to surface candidate defect locations, and (3) applies context-aware validation that uses counterfactual reasoning to distinguish true root causes from propagated symptoms. We evaluate LIDL on 146 real-world defect instances collected from 105 GitHub repositories and 16 agent-based systems. The results show that LIDL significantly outperforms five state-of-the-art baselines across all metrics, achieving a Top-3 accuracy of 0.64 and a MAP of 0.48, which represents a 64.1% improvement over the best-performing baseline. Notably, LIDL achieves these gains while reducing cost by 92.5%, demonstrating both high accuracy and cost efficiency.
title LIDL: LLM Integration Defect Localization via Knowledge Graph-Enhanced Multi-Agent Analysis
topic Software Engineering
url https://arxiv.org/abs/2601.05539