mlsanityData to 7 Oct 2026

Improved Bug Localization with AI Agents Leveraging Hypothesis and Dynamic Cognition

arXiv 2601.12522 ↗First posted 18 Jan 2026cs.SE cs.AI cs.IRcited by 0

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

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 debugging practices (a.k.a., dynamic cognitive debugging) and conducts hypothesis testing to support bug localization. We evaluate CogniGent on a curated dataset of 591 bug reports using three widely adopted performance metrics and compare it against six established baselines from the literature. Experimental results show that our technique consistently outperformed existing traditional and LLM-based techniques, achieving MAP improvements of 23.33-38.57% at the document and method levels. Similar gains were observed in MRR, with increases of 25.14-53.74% at both granularity levels. Statistical significance tests also confirm the superiority of our technique. By addressing the reasoning, dependency, and context limitations, CogniGent advances the state of bug localization, bridging human-like cognition with agentic automation for improved performance.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 22 of its 88 references that are in the map. First posted on arXiv 18 Jan 2026.

Builds on

22 of 88 references.

Closest ancestors · 2

Same direction, newest first

  1. 2025LocAgent: Graph-Guided LLM Agents for Code Localization12 Mar
  2. 2024Agentless: Demystifying LLM-based Software Engineering Agents1 Jul

Other references · 20

  1. 2024The Llama 3 Herd of Modelscited by 14,192
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  3. 2020ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERTcited by 1,160
  4. 2024AutoCodeRover: Autonomous Program Improvementcited by 272
  5. 2020IntelliCode Compose: Code Generation Using Transformercited by 225
  6. 2024The Effect of Sampling Temperature on Problem Solving in Large Language Modelscited by 168
  7. 2024The Good, The Bad, and The Greedy: Evaluation of LLMs Should Not Ignore Non-Determinismcited by 113
  8. 2024CodexGraph: Bridging Large Language Models and Code Repositories via Code Graph Databasescited by 62
  9. 2022NeuPSL: Neural Probabilistic Soft Logiccited by 34
  10. 2024SemCoder: Training Code Language Models with Comprehensive Semantics Reasoningcited by 27
  11. 2023Prompting Large Language Models with Chain-of-Thought for Few-Shot Knowledge Base Question Generationcited by 21
  12. 2021Fast Changeset-based Bug Localization with BERTcited by 13
8 more
  1. 2018RACK: Automatic API Recommendation using Crowdsourced Knowledgecited by 12
  2. 2025LLMs can be easily Confused by Instructional Distractionscited by 12
  3. 2018Improving IR-Based Bug Localization with Context-Aware Query Reformulationcited by 11
  4. 2024BLAZE: Cross-Language and Cross-Project Bug Localization via Dynamic Chunking and Hard Example Learningcited by 7
  5. 2021The Forgotten Role of Search Queries in IR-based Bug Localization: An Empirical Studycited by 5
  6. 2025Improved IR-based Bug Localization with Intelligent Relevance Feedbackcited by 5
  7. 2021A Systematic Review of Automated Query Reformulations in Source Code Searchcited by 2
  8. 2025Improving IR-based Bug Localization with Semantics-Driven Query Reductioncited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Multi-task LLMs for Bug Classification: Efficient Inference with Auxiliary Decoding Heads
  2. 2026BLAgent: Agentic RAG for File-Level Bug Localization
  3. 2026Agentic Fuzzing: Opportunities and Challenges
  4. 2024MarsCode Agent: AI-native Automated Bug Fixing
  5. 2026Retrieval-Oriented Code Representations in Agentic Bug Localization
  6. 2026The Limits of Long-Context Reasoning in Automated Bug Fixing
  7. 2025Meta-RAG on Large Codebases Using Code Summarization
  8. 2026CMind: An AI Agent for Localizing C Memory Bugs