Hidden Licensing Risks in the LLMware Ecosystem

Bo Wang, Yueyang Chen, Jieke Shi, Minghui Li, Yunbo Lyu, Yinan Wu, Youfang Lin, Zhou YangarXiv 2026

TL;DR

As Large Language Models (LLMs) become deeply integrated into software (forming "LLMware"), they bring a tangled web of dependencies spanning source code, datasets, and foundation models. This paper uncovers a massive blind spot in this new ecosystem: 52% of LLMware supply chains contain license conflicts, often mixing permissive open-source code with restrictive, AI-specific licenses. To combat this, the authors introduce LiAgent, an LLM-powered multi-agent framework that detects these hidden legal risks with an impressive 87% to 89% F1 score.

What Problem Does This Paper Address?

Traditional software supply chains are well-understood: you combine open-source software (OSS) libraries, and automated tools check for license compatibility (e.g., ensuring you don't accidentally violate a copyleft requirement). However, modern AI applications—termed LLMware—introduce a multi-layered dependency structure. A single application might use a GitHub repository (licensed under MIT), which calls an LLM on Hugging Face (licensed under Apache-2.0), which was fine-tuned from a base model (licensed under LLaMA2), which was trained on a dataset (licensed under Creative Commons).

Fig. 1. The example supply chain of LLMware

This creates a heterogeneous licensing landscape where traditional OSS licenses, content licenses, and new AI-specific "responsible use" licenses (like OpenRAIL or LLaMA) collide. The legal and compliance risks of these intertwined dependencies have remained largely unstudied, leaving developers exposed to potential copyright infringement and usage violations.

Methods

The authors tackle this problem in three phases:

  1. Supply Chain Construction: They built a pipeline to map LLMware supply chains. Starting by scanning GitHub for projects using Hugging Face libraries (like transformers or diffusers), they used static code analysis to extract specific LLM identifiers from API calls, and then recursively traced those models back to their base models and training datasets using Hugging Face metadata.
  2. Conflict Detection Rules: They modeled the supply chain as a directed graph and defined compatibility rules based on legal "attitudes" (what a license can, cannot, or must do). A conflict is flagged if a downstream component claims to be more permissive than an upstream dependency allows.
  3. LiAgent Framework: Recognizing that traditional regex or semantic-similarity tools fail to grasp the nuanced legal language of AI licenses, they designed LiAgent. This LLM-based multi-agent framework uses an extraction agent to identify license terms and attitudes, and a repair agent to iteratively resolve any internal contradictions or ambiguities in the context.

Datasets

The paper introduces a newly curated dataset capturing the LLMware ecosystem:

  • 12,180 GitHub repositories
  • 3,988 Hugging Face LLMs
  • 708 datasets
Fig. 2. Number of projects accessing Hugging Face LLMs searched via Sourcegraph

For evaluation, they constructed a benchmark consisting of 124 traditional OSS licenses (from TLDRLegal) and 16 representative AI-specific licenses (manually annotated), along with mutated variants (620 OSS-Mut and 176 AI-Mut) generated by intentionally flipping license term attitudes to test model robustness.

Key Insights and Ideas

  • The "No License" Black Hole: A staggering 35.4% of all analyzed artifacts completely lack a declared license. This creates massive legal ambiguity for downstream developers who inherit these undocumented components.
Table 1. The overall license frequency
  • A Culture Clash of Licenses: GitHub is dominated by traditional permissive licenses (MIT, Apache-2.0), while Hugging Face features a highly fragmented mix of OSS, content (CC), and restrictive AI-specific licenses.
  • Widespread Incompatibility: More than half (52%) of the supply chains exhibit at least one license conflict. The most common issue is downstream projects adopting a permissive license (like MIT) while relying on upstream models with strict commercial or use-case restrictions (like LLaMA2).
  • Replacing Models is Hard: Unlike traditional software where you can easily swap out a buggy library, swapping an LLM or dataset in LLMware is often impractical because they are tightly coupled with training pipelines and specific application behaviors.

Key Results

  • LiAgent Performance: LiAgent significantly outperformed existing state-of-the-art methods. Powered by deep learning backbones like DeepSeek-V3 and GPT-4o, it achieved an 87-88% F1 score on traditional OSS licenses and an 87-89% F1 score on AI-specific licenses, beating the previous best tool (LiDetector) by up to 14 percentage points.
  • Robustness: On mutated licenses (where wording or attitudes were subtly perturbed), LiAgent maintained strong performance (86% on OSS-Mut, 88% on AI-Mut), proving its resilience to legal phrasing variations.
  • Real-World Impact: The authors submitted 60 newly detected license incompatibility issues to real-world projects. At the time of writing, 11 have been confirmed by developers and 8 have already been fixed. Strikingly, two of the conflicted models have over 107 million and 5 million downloads on Hugging Face, highlighting the massive scale of potential downstream legal risk.

Limitations and Future Work

  • Scope of Platforms: The study focuses exclusively on GitHub and Hugging Face. While these are the largest hubs, they do not capture the entire ecosystem (e.g., model marketplaces or corporate internal registries).
  • Granularity of Legal Terms: The framework characterizes licenses using 23 predefined legal terms, which might miss highly specific or nuanced clauses unique to bespoke corporate AI licenses.
  • Future Directions: The authors plan to extend LiAgent to provide automated license recommendations and conflict resolution capabilities, helping developers automatically fix compliance issues rather than just detecting them.

Summary updated

BibTeX
@misc{wang2026hidden,
  author = {Bo Wang and Yueyang Chen and Jieke Shi and Minghui Li and Yunbo Lyu and Yinan Wu and Youfang Lin and Zhou Yang},
  title = {{Hidden Licensing Risks in the LLMware Ecosystem}},
  year = {2026},
  eprint = {2602.10758},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.10758},
}
Figure