NeurIPS 2026QuestionsPapersAreasAboutMarkdown

NINJA: A Navigator–Inspector Joint Architecture for Context-Efficient Issue Localization

Wenkai Fang, Shunyu Liu, Wei Luo, Zihao Wu, Yang Zhou, Tongya Zheng, Wotao Yin, Jialie Shen, Leszek Rutkowski, Mingli Song, Dacheng Tao

NeurIPS page · OpenReview · Open on the map

Category: LLM Agents, Evals & Benchmarks › Verified Code Synthesis and Testing · Type: new method · Keywords: issue localization, hierarchical agent architecture, context efficiency, software debugging

Areas: Code & Coding Agents › Code Verification › Software engineering agents; AI Agents › Agent Benchmarking › Repository agents

Summary

NINJA introduces a hierarchical Navigator-Inspector joint architecture that balances file-level breadth and function-level depth for context-efficient issue localization.

Explained to a 5-year-old

A robot helps find bugs in computer code. It first looks at big parts of the code (files) to decide where to look. Then it sends helpers to look at small parts (functions) inside those files. They talk back and forth until they think they found the bug. This way the robot can search a lot of code without getting confused.

Explained to a 5-year-old, longer

Imagine a computer program that sometimes has mistakes called bugs. Finding these bugs is important so the program works well. Usually, a single robot looks at the whole program, but it can get tired because it has to remember too much. The new idea uses two kinds of helpers: a main navigator and several inspectors. The navigator looks at the big picture, like which files might contain problems. It then sends the inspectors to smaller parts of the code, like specific functions. Each inspector works in its own little space, so they don't get mixed up. The inspectors search inside those functions and tell the navigator if they think they found something suspicious. The navigator listens to all the tips and decides whether to keep searching or stop. This back-and-forth continues until the team agrees on where the bug likely is. Because the inspectors work separately, they don’t lose track of what they already looked at. This makes it possible to search through a huge amount of code more efficiently and accurately.

For a technical reader

NINJA introduces a hierarchical agent architecture that separates global navigation from local inspection to improve context efficiency in issue localization. The navigator maintains a global search state, performs file-level exploration, and delegates entry files to independent inspectors that operate in isolated contexts. Multi-round feedback between inspectors and the navigator allows the system to refine its search and terminate when confidence is reached. A two-stage agentic fine-tuning strategy enhances coordination between the navigator and inspectors, enabling strong performance across multiple benchmarks. The design mitigates context accumulation and balances breadth at the file level with depth at the function level, making it suitable for large codebases.

Problem

Existing agent-based issue localization methods use a single agent with a growing context, which compresses reasoning space and struggle to balance file-level breadth with function-level depth.

Method

The approach decomposes repository exploration into global navigation and local inspection: a navigator performs file-level search and dispatches files, while independent inspectors conduct function-level exploration in separate contexts. Multi-round interactions allow inspectors to provide feedback, and the navigator updates its global state to decide continuation or termination. A two-stage agentic fine-tuning strategy further improves coordination and local exploration.

Results

The approach consistently outperforms competitive baselines across multiple benchmarks and LLM backbones, and after fine-tuning, Qwen3-Coder-30B-A3B-Instruct surpasses the closed-source Claude-Haiku-4.5 model.

Contributions

It introduces a hierarchical navigation-inspection decomposition that balances file-level breadth and function-level depth while preventing context accumulation, and proposes a two-stage agentic fine-tuning strategy to improve coordination.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction