Crossref DOIMemberCiteFactoropen accessissn
SJIF Impact Factor 8.659 | ISSN: 2582-3930
IJSREM Logo

International Journal of Scientific Research in Engineering and Management

(Gateway to Global Scholars - An International, Scholarly, Multi-Disciplinary, Open Access Journal)

Peer-Reviewed Journal Designed to Meet UGC's Quality Parameters

HomeCurrent IssuePast IssuesPay OnlineConferencesEditorial BoardAbout UsContact Us
IJSREM

Loading article...

Follow Us

  • Google Scholar
  • ResearchGate
  • Academia.edu
  • Mendeley
  • LinkedIn
  • Facebook
  • Instagram

Journal Policies

  • Peer Review Policy
  • Publication Ethics
  • Copyright Infringement
  • Refund & Cancellation Policy
  • Terms and Conditions
  • Privacy Policy

Journal Identifiers & Licenses

  • ISSN Verified: 2582-3930ISSN Verified: 2582-3930
  • Crossref DOI: 10.55041Crossref DOI: 10.55041
  • SJIF Ranking: 08.659SJIF Ranking: 08.659
  • Licensed under CC BY 4.0Licensed under CC BY 4.0
  • ISO Certification: 9001:2015ISO Certification: 9001:2015
  • Indexed & Cited In: Google ScholarIndexed & Cited In: Google Scholar

Contact Us

International Journal of Scientific Research in Engineering and Management (IJSREM)

#62/1, New No 7, 1st Cross, 2nd Main, Ganganagar, R T Nagar, Bangalore North, Bangalore, Karnataka, India – 560032
[email protected]+91 93911 67991
logos
logos
Working Hours

Mon – Sat: 9:00 AM – 6:00 PM

Sunday: 10:00 AM – 4:00 PM

+91 93911 67991

© 2026 IJSREM – International Journal of Scientific Research in Engineering and Management. This is an open-access journal. Articles are published under the Creative Commons Attribution (CC BY 4.0) License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

DisclaimerPrivacy PolicyTerms and Conditions
ArticlePeer ReviewedOpen AccessPlagiarism Passed
Paper ID:IJSREM67478

Benchmarking Hallucination Mitigation Techniques for Open-Source License Compatibility Reasoning A Comparative Study of Prompting, RAG, and Fine-Tuning

Stream/Area:

-

Subject:

-

Paper ID:

IJSREM67478

Volume:

10 |

9 |

Sep 2026

Pages:

1-6

Publication Frequency:

Monthly (12 issues per year)

DOI
Digital Object Identifier
Not assigned

License:International Journal of Scientific Research in Engineering and Management follows the Creative Commons Attribution 4.0 (CC BY 4.0) License, allowing free use and distribution with proper attribution.

Share this article:

Authors

Himanshi Yenugupalli

Himanshi Yenugupalli

Information Technology

D.G. Ruparel College

Download Author Certificate
Aarti Sanjay Gawai

Aarti Sanjay Gawai

Information Technology

D.G. Ruparel College

Download Co-Author Certificate

Author Services & Downloads

Full ArticlesAcceptance Certificate

Abstract

Large language models are being increasingly utilized for their capacity to reason across software development, but license compatibility reasoning can fail when a model treats a conditional permission as unconditional or provides a conclusion without sufficient evidence. This study evaluates three mitigation strategies: structuring prompting, retrieval augmented generation, and parameter efficient fine-tuning in the context of three-way open-source license compatibility classification. The experiments use a frozen 50-case Ground Truth V2 benchmark for the Gemini Flash 3.6 prompting and RAG conditions, while the Qwen2.5-1.5B Instruct fine-tuning experiment is evaluated on a held-out 10 case set after learning on 40 examples. Prompting was the strongest directly matched configuration at 88.0% accuracy and 0.909 Macro-F1, outperforming the tested RAG configuration at 82.0% accuracy and 0.862 Macro-F1. Both Gemini conditions were weakest on CONDITIONAL cases. LoRA boosted Qwen accuracy from 20.0% to 30.0%, but Macro-F1 was 0.167 and the model developed strong output bias. This study finds that analysis of error structures and evaluation controls is more informative than a simple accuracy metric as a basis for legal reliability.

KEYWORDS

open-source licenses license compatibility large language models retrieval-augmented generation hallucination mitigation LoRA

Cite This Article

Himanshi Yenugupalli, Aarti Sanjay Gawai, "Benchmarking Hallucination Mitigation Techniques for Open-Source License Compatibility Reasoning A Comparative Study of Prompting, RAG, and Fine-Tuning," International Journal of Scientific Research in Engineering and Management, vol. 10, no. 9, pp. 1-6, Sep 2026.

Full Article/Conclusion

This paper presented a comparative evaluation of prompting, retrieval-augmented generation, and LoRA fine-tuning for open-source license compatibility reasoning. On the matched 50-case Ground Truth V2 benchmark, Gemini Flash 3.6 with standardized prompting achieved 88.0% accuracy and 0.909 Macro-F1, while the evaluated RAG configuration achieved 82.0% accuracy and 0.862 Macro-F1. The principal error pattern in both Gemini conditions was CONDITIONAL → COMPATIBLE, showing that retrieval did not by itself resolve the distinction between a compatibility mechanism and the conditions required to use it.   The Qwen2.5-1.5B-Instruct feasibility experiment produced a smaller and different result: LoRA increased accuracy from 20.0% to 30.0% on 10 held-out cases, but Macro-F1 remained 0.167 and output behaviour became strongly conditional-biased, including two invalid COMPLIANT labels. These findings argue against evaluating mitigation methods solely by aggregate accuracy. The central contribution of the study is therefore diagnostic. Reliable license reasoning requires a model to reach the correct compatibility decision, interpret the governing clause correctly, and connect that clause to the actual scenario facts. Future work should evaluate these dimensions separately, preserve evidence provenance, and use larger controlled benchmarks. The present results support structured prompting as the strongest tested baseline while identifying conditionality resolution as the clearest target for improved retrieval and fine-tuning.

References

1. X. Cui, J. Wu, X. Ling, T. Luo, M. Yang, and W. Ou, “Exploring Large Language Models for Analyzing Open Source License Conflicts: How Far Are We?,” Proc. IEEE/ACM 47th International Conference on Software Engineering: Companion Proceedings, 2025, pp. 291–302, doi: 10.1109/ICSE-Companion66252.2025.00083. 2.  A. Kahol, A. C. Tummepalli, and P. R. Anish, “OSS-LCAF: Open-Source Software License Conflict Analysis Framework,” Proc. IEEE/ACM 47th International Conference on Software Engineering: Companion Proceedings, 2025, pp. 303–314, doi: 10.1109/ICSE-Companion66252.2025.00084. 3.  W. Xu, K. Gao, H. He, and M. Zhou, “LiCoEval: Evaluating LLMs on License Compliance in Code Generation,” Proc. IEEE/ACM  47th  International  Conference  on  Software Engineering,           2025,           pp.           1665–1677,           doi: 10.1109/ICSE55347.2025.00052.  4.  I. Ben Khalifa, M. Ben Messaoud, and M. Wiem Mkaouer, “Toward Explainable and Automated Software License Checking via RAG and Knowledge Graphs,” IEEE Software, 2026, doi: 10.1109/MS.2026.3677583. 5.    M. Liang et al., “THaMES: An End-to-End Tool for Hallucination Mitigation and Evaluation in Large Language Models,” Advances in Neural Information Processing Systems, 2024. 6.  Z. P. Lee, A. Lin, and C. Tan, “Finetune-RAG: Fine-Tuning Language Models to Resist Hallucination in Retrieval-Augmented Generation,” arXiv preprint arXiv:2505.10792, 2025.  7.  J. Song, X. Wang, J. Zhu, Y. Wu, X. Cheng, R. Zhong, and C. Niu, “RAG-HAT: A Hallucination-Aware Tuning Pipeline for LLM in Retrieval-Augmented Generation,” Proc. 2024 Conference on Empirical Methods in Natural Language Processing: Industry Track, 2024, pp. 1548–1558, doi: 10.18653/v1/2024.emnlp-industry.113. 8.  M. Hong et al., “RAL2M: Retrieval Augmented Learning-To-Match Against Hallucination in Compliance-Guaranteed Service Systems,” arXiv preprint arXiv:2601.02917, 2026.  9.  Software Package Data Exchange (SPDX), “SPDX License List,” SPDX Project, 2026.  10.   Open Source Initiative, “Open Source Licenses,” Open Source Initiative, 2026.

Editorial & Review Transparency

Publication Date

9/26/2026

Peer Review Type

Double-Blind Peer Review

Review Rounds: 2

Documents

Review Report (Confidential)
Copyright Form (Office)

Article Metrics & Impact

Article Views

0

Total views since publication

PDF Downloads

4

Total downloads since publication

Geographic Reach

5

Indexing, Archiving & Preservation

Google Scholar
Academia
ResearchGate
Crossref
SSRN
Semantic Scholar
Thomson Reuters
WorldCat
Mendeley
OpenAlex
EBSCO
Zenodo

Digital Preservation: This article is permanently archived on Zenodo and complies with all data preservation standards across major indexing platforms.

Ethics, Compliance & Transparency

Plagiarism Screening

This manuscript has been checked for plagiarism using TurnitinPlagiarismChecker software.

Conflict of Interest

The authors declare no conflict of interest related to this research work.

Funding Information

No funding information available for this research.

Similar & Recommended Articles

Similar Articles by Topic

Related research in the same subject area

Loading similar articles...