paper-with-me

Papers

LiCoEval: Evaluating LLMs on License Compliance in Code Generation

2024-08-05 · Weiwei Xu, Kai Gao, Hao He, Minghui Zhou

Recent advances in Large Language Models (LLMs) have revolutionized code generation, leading to widespread adoption of AI coding tools by developers. However, LLMs can generate license-protected code without providing the necessary license information, leading to potential intellectual property violations during software production. This paper addresses the critical, yet underexplored, issue of license compliance in LLM-generated code by establishing a benchmark to evaluate the ability of LLMs to provide accurate license information for their generated code. To establish this benchmark, we conduct an empirical study to identify a reasonable standard for "striking similarity" that excludes the possibility of independent creation, indicating a copy relationship between the LLM output and certain open-source code. Based on this standard, we propose LiCoEval, to evaluate the license compliance capabilities of LLMs, i.e., the ability to provide accurate license or copyright information when they generate code with striking similarity to already existing copyrighted code. Using LiCoEval, we evaluate 14 popular LLMs, finding that even top-performing LLMs produce a non-negligible proportion (0.88% to 2.01%) of code strikingly similar to existing open-source implementations. Notably, most LLMs fail to provide accurate license information, particularly for code under copyleft licenses. These findings underscore the urgent need to enhance LLM compliance capabilities in code generation tasks. Our study provides a foundation for future research and development to improve license compliance in AI-assisted software development, contributing to both the protection of open-source software copyrights and the mitigation of legal risks for LLM users.

📄 PDF Abstract BibTeX arXiv:2408.02487

Code (2)

osslab-pku/licoeval 공식 구현
osslab-pku/llm_compliance 공식 구현

Tasks

Code Generation

Similar Papers 제목 키워드 기반

From Hugging Face to GitHub: Tracing License Drift in the Open-Source AI Ecosystem

2025-09-11 · James Jewitt, Hao Li, Bram Adams, Gopi Krishnan Rajbahadur 외 arxiv

Hidden license conflicts in the open-source AI ecosystem pose serious legal and ethical risks, exposing organizations to potential litigation and users to undisclosed risk. However, the field lacks a data-driven understa…

"They've Stolen My GPL-Licensed Model!": Toward Standardized and Transparent Model Licensing

2024-12-16 · Moming Duan, Rui Zhao, Linshan Jiang, Nigel Shadbolt 외

As model parameter sizes reach the billion-level range and their training consumes zettaFLOPs of computation, components reuse and collaborative development are become increasingly prevalent in the Machine Learning (ML) …

model

LicenseGPT: A Fine-tuned Foundation Model for Publicly Available Dataset License Compliance

2024-12-30 · Jingwen Tan, Gopi Krishnan Rajbahadur, Zi Li, Xiangfu Song 외

Dataset license compliance is a critical yet complex aspect of developing commercial AI products, particularly with the increasing use of publicly available datasets. Ambiguities in dataset licenses pose significant lega…

Can I use this publicly available dataset to build commercial AI software? -- A Case Study on Publicly Available Image Datasets

2021-11-03 · Gopi Krishnan Rajbahadur, Erika Tuck, Li Zi, Dayi Lin 외

Publicly available datasets are one of the key drivers for commercial AI software. The use of publicly available datasets is governed by dataset licenses. These dataset licenses outline the rights one is entitled to on a…

DevLicOps: A Framework for Mitigating Licensing Risks in AI-Generated Code

2025-08-23 · Pratyush Nidhi Sharma, Lauren Wright, Anne Herfurth, Munsif Sokiyna 외 arxiv

Generative AI coding assistants (ACAs) are widely adopted yet pose serious legal and compliance risks. ACAs can generate code governed by restrictive open-source licenses (e.g., GPL), potentially exposing companies to li…