TL;DR
Researchers have developed katIA, a hybrid approach to Change Impact Analysis (CIA) that combines traditional static code analysis with the reasoning power of Large Language Models (LLMs). By using a multi-agent LLM setup to filter and refine static dependency sets, they achieved a significant performance boost over state-of-the-art methods, supported by a new, high-quality manual benchmark called CONSTANTINOPLE.
What Problem Does This Paper Address?
When a developer changes a piece of code (the "seed"), they need to know what else might break (the "impacted" entities). This is Change Impact Analysis (CIA).
Existing tools generally fall into two traps:
- Low Precision/Recall: Static analysis tools often flag every possible dependency (high recall, low precision), while purely LLM-based approaches might miss subtle structural links or hallucinate (low recall).
- Biased Benchmarks: Current datasets like ALEXANDRIA often rely on simplistic heuristics to guess which change was the "seed." They also frequently ignore non-method entities like fields and classes, or fail to handle Java-specific features like method overloading.
The authors aim to bridge the gap between structural dependencies and semantic intent while providing a more rigorous evaluation framework.
Methods
The authors propose katIA, a two-phase hybrid pipeline:
- Phase 1: Static Impact Set Construction: Using the Spoon library, katIA identifies all code entities (methods, fields, classes) directly connected to the seed changes via usage relationships (callers/callees, field reads/writes, class extensions).
- Phase 2: LLM-based Refinement: This initial "noisy" set is passed to an LLM along with the Jira bug report and the actual source code changes. The LLM acts as a filter to remove irrelevant dependencies and a searcher to find missing ones.
The authors tested two refinement variants:
- katIA-SP (Single Prompt): A single, carefully crafted prompt that asks the LLM to refine the set.
- katIA-MA (Multi-Agent): A more sophisticated pipeline using three specialized agents:
- Analysis Agent: Interprets the bug report and seed changes to find evidence for impact.
- Refinement Agent: Uses that evidence to add or remove entities from the static set.
- Reporting Agent: Ensures the final output follows the required format.
Datasets
The paper introduces CONSTANTINOPLE, a significantly improved version of the ALEXANDRIA dataset.
- Scope: 1,931 changed code entities from 263 commits across 22 open-source Java projects.
- Manual Labeling: Unlike previous datasets that used heuristics, three experts manually labeled every change as either a seed, impacted, or non-related.
- Granularity: Includes method signatures (handling overloading), fields, and classes—not just simple method names.
Key Insights and Ideas
- LLMs as Semantic Filters: The primary role of the LLM in this hybrid setup is "noise reduction." Static analysis provides the "map" of what could be affected; the LLM uses the bug report's context to decide what is likely affected.
- The Multi-Agent Advantage: Decomposing the task into specialized agents (katIA-MA) significantly improved recall. While a single prompt is faster, the multi-agent setup is better at identifying impacted entities that the static analysis might have missed or that required deeper reasoning.
- Consistency is King: The authors found that model performance isn't just about the highest score, but reproducibility. Gemini 2.5 Flash emerged as a standout for its high consistency (99.62% identical results across runs), whereas other models like Qwen3 Coder Plus were more "jittery" despite high peak performance.
- Dataset Bias is Real: By manually labeling "seeds," the authors showed that previous heuristics (like picking the most central method) can bias evaluation results, highlighting the need for human-in-the-loop benchmarks.
Key Results
The evaluation compared katIA against RIPPLE (the previous state-of-the-art). Performance was measured using F1-scores for both Fully Qualified Name (FQN) matching and Class-Entity (CE) matching.
- State-of-the-Art Comparison: katIA-MA (using Gemini 2.5 Flash) achieved a CE-matching F1-score of 33.3%, an 8.3 percentage point improvement over RIPPLE's 25.0%.
- Refinement Impact: For FQN-matching, katIA-MA improved the F1-score from 14.6% (static analysis only) to 29.1%.
- Cost vs. Performance: The multi-agent variant is significantly slower (median ~11s vs ~0.6s for single prompt) and uses ~5x more tokens. However, the authors argue the precision gain justifies the cost for critical software maintenance tasks.
Limitations and Future Work
- Language & Ecosystem: The study is limited to Java and the Apache ecosystem. Generalization to other languages (e.g., Python, C++) remains to be seen.
- Static Analysis Boundaries: katIA currently does not handle indirect dependencies, reflection-based access, or impacts within external libraries.
- "The 33% Ceiling": While 33.3% is a new high, it highlights that CIA is still an incredibly difficult problem. Two-thirds of the impact is still being missed or incorrectly identified.
- Future Directions: The authors plan to give the LLM agents access to the full source code repository and specialized tools (like a "Toolformer" approach) to further improve reasoning capabilities.
Summary updated