Optimizing Library Migration: A Multi-Metric Ranking Approach for Improved Recommendations
Third-party library migration is a critical activity in software modernization, enabling systems to adopt updated dependencies, address security vulnerabilities, and align with evolving architectural requirements. Existing approaches to library migration recommendation typically mine dependency changes from software repositories and apply frequency-based filtering, but suffer from low precision or low recall due to the limitations of global thresholds. We reformulate library migration recommendation as a ranking problem and introduce a multi-metric framework that combines four evidence sources: Rule Support (frequency), Message Support (developer intent from commit messages), Distance Support (temporal proximity of changes), and API Support (code-level replacement evidence). Rather than filtering candidates using fixed thresholds, we rank them by multiplicative aggregation of these metrics. We evaluate our approach on 21,358 Java projects with 1,384 manually verified migration rules, achieving a Mean Reciprocal Rank (MRR) of 0.8566, Precision@1 of 0.7947, and Recall@20 of 0.8939, substantially outperforming existing frequency-based methods. We also confirm 661 previously undocumented migration rules across 480 popular libraries. Our work demonstrates that ranking-based aggregation of multiple evidence sources provides robust, data-driven decision support for library migration in software modernization projects. The framework is positioned as a software-analytics recommendation method.
Authors
- Dinesh Vadada
Institutions
- The University of Texas at Dallas (US)
Publication Details
- Journal
- International Journal of Intelligent Systems and Data Science
- Published
- 2026-11-30
- DOI
- https://doi.org/10.67231/ejrr7n23
- Primary Topic
- Software Engineering Research
- Type
- article
- Field-Weighted Citation Impact
- 0.00