Improved Bug Localization with AI Agents Leveraging Hypothesis and Dynamic Cognition
Asif Mohammed Samir, Mohammad Masudur Rahman

TL;DR
CogniGent introduces a novel AI agent-based bug localization method that employs causal reasoning and dynamic cognitive debugging, significantly outperforming existing techniques in accuracy and reliability.
Contribution
This paper presents CogniGent, a new agentic AI approach that integrates causal reasoning and hypothesis testing for more effective bug localization in software codebases.
Findings
Achieves 23.33-38.57% MAP improvement over baselines.
Increases MRR by 25.14-53.74% across metrics.
Statistically significant performance gains.
Abstract
Software bugs cost technology providers (e.g., AT&T) billions annually and cause developers to spend roughly 50% of their time on bug resolution. Traditional methods for bug localization often analyze the suspiciousness of code components (e.g., methods, documents) in isolation, overlooking their connections with other components in the codebase. Recent advances in Large Language Models (LLMs) and agentic AI techniques have shown strong potential for code understanding, but still lack causal reasoning during code exploration and struggle to manage growing context effectively, limiting their capability. In this paper, we present a novel agentic technique for bug localization -- CogniGent -- that overcomes the limitations above by leveraging multiple AI agents capable of causal reasoning, call-graph-based root cause analysis and context engineering. It emulates developers-inspired…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Software Testing and Debugging Techniques · Topic Modeling
