NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Network-Clustered Multi-Modal Bug Localization

Thong Hoang, Richard Jayadi Oentaryo, Tien-Duy B. Le, David Lo

Introduction

Identifying the exact code responsible for a software failure—bug localization—is a critical yet labor-intensive task in software maintenance. Traditional approaches typically fall into two categories: Information Retrieval (IR), which treats source code as a document library to be searched via bug reports, and Spectrum-Based Bug Localization (SBBL), which analyzes execution traces of passing and failing tests. However, these methods often operate in isolation. NetML (Network-clustered Multi-modal Bug Localization) bridges this gap by integrating both textual and execution data while leveraging the inherent similarities between different bugs and code methods.

The NetML Framework

NetML is designed around a multi-modal architecture that processes diverse data sources to rank suspicious code methods. The framework's workflow involves three primary stages: feature extraction, graph construction, and integration.

The NetML architecture integrates historical bug reports, program spectra, and method corpora through multi-modal feature extraction and graph-based regularization.

Multi-Modal Feature Extraction

NetML extracts three distinct feature sets for every bug-report/method pair:

  1. Textual Similarity: Utilizing TF-IDF to measure the lexical overlap between bug reports and source code.
  2. Execution Suspiciousness: Applying the Tarantula algorithm to program spectra to identify methods frequently executed in failing tests.
  3. Suspicious Word Features: Identifying specific terms within bug reports that historically correlate with failures in particular code segments.

Network Lasso Regularization

The core innovation of NetML is the use of Network Lasso regularization. Unlike previous models that treat each bug report as an independent event, NetML constructs similarity graphs for both bug reports and code methods. By incentivizing the parameters of "neighboring" nodes in these graphs to be similar, the model allows related bugs to "borrow strength" from one another. This clustering effect ensures that even poorly documented bug reports can benefit from the knowledge gained from well-documented, similar historical cases.

Key Insights: The Power of Neighbors

A central premise of NetML is that similar bugs often exhibit similar characteristics. For instance, two different bug reports might both mention "JUnit" and "output" issues, suggesting they might relate to similar underlying code structures.

Example of two different bug reports (Bug 30798 and Bug 43969) sharing common keywords like "JUnit" and "output," illustrating the potential for lexical clustering.

By modeling the relationships between methods as well as bugs, NetML learns adaptive "suspiciousness" thresholds. It recognizes that complex logic methods might require different evaluation criteria than simple getter/setter methods. Furthermore, the model's loss function is formulated to be strictly convex, providing a mathematical guarantee of convergence to a global optimum via an adaptive Newton optimization method.

Evaluation and Results

The researchers evaluated NetML using 355 real-world bugs from seven major open-source Java projects, including Apache Ant, AspectJ, and Lucene. Compared against state-of-the-art baselines like AML and Savant, NetML demonstrated significant performance gains:

  • Top-1 Accuracy: NetML correctly identified the faulty method on the first attempt for 116 bugs, representing a 31.8% improvement over the best baseline (AML).
  • Top-10 Accuracy: The system successfully localized the bug within the top 10 recommendations 71.8% of the time.
  • Mean Average Precision (MAP): NetML achieved an overall MAP of 0.347, outperforming the runner-up by 19.2%.
  • Generalization: The model maintained its superior performance even in cross-project scenarios, where it was trained on one codebase and tested on another.

Conclusion and Future Directions

NetML represents a significant advancement in bug localization by combining multi-modal data with network-based clustering. While highly effective, the current implementation relies on "bag-of-words" representations and manual feature engineering. Future work may involve incorporating deep learning to automatically extract structural features from code, such as function call graphs, and refining the granularity of localization from the method level down to specific lines of code.

Summary updated

BibTeX
@article{hoang2018network,
  author = {Thong Hoang and Richard Jayadi Oentaryo and Tien-Duy B. Le and David Lo},
  title = {{Network-Clustered Multi-Modal Bug Localization}},
  journal = {IEEE Trans. Software Eng.},
  year = {2018},
  doi = {10.1109/tse.2018.2810892},
}
Figure