Toward Explainable and Automated Software License Checking via RAG and Knowledge Graphs

View at publisher Summarise with VIRAT
Authors: Ilyes Ben Khalifa, Montassar Ben Messaoud, Mohamed Wiem Mkaouer
Cited by: 0
References: 6

Summary

No summary yet. VIRAT can read this paper and write a plain-language summary of its aim, methods, key findings and limitations.

Summarise with VIRAT Free to try with your Science Catalogs account.

Abstract

Software development increasingly depends on large ecosystems of libraries, frameworks, and platforms, enabling faster delivery yet at the same time intensifying the challenge of license incompatibility. Such conflicts often remain undetected until late in the development lifecycle, where they are more costly and disruptive to resolve. Addressing such issues early is therefore essential for ensuring software robustness and long-term sustainability. To this end, we present LARK, a system that integrates Knowledge Graphs (KGs) with Large Language Models (LLMs) through Retrieval-Augmented Generation (RAG) to automate the detection of license incompatibilities while offering context-rich, citation-backed explanations. In an evaluation spanning 4,000 open-source and 100 proprietary Python projects, LARK achieves 98.1% license detection accuracy, a 96.2% compatibility F1 score, and improves explainability compared to existing methods. We anticipate that LARK will serve as a practical and scalable solution to mitigate legal risks and strengthen compliance in software development.

Fields of Study & Subjects

Software Engineering Research Open Source Software Innovations Artificial Intelligence in Law

Publication details

Journal / source
IEEE Software
Volume
43
Issue
6
Pages
32–40
Publication date
27 March 2026
Language
EN