Abstract
The tremendous commercial potential of large language models (LLMs) has heightened concerns about their unauthorized use. Third parties can customize LLMs through fine-tuning and offer only black-box API access, effectively concealing unauthorized usage and complicating external auditing processes. This practice not only exacerbates unfair competition, but also violates licensing agreements. In response, identifying the origin of black-box LLMs is an intrinsic solution to this issue. In this paper, we first reveal the limitations of state-of-the-art passive and proactive identification methods with experiments on 30 LLMs and two real-world black-box APIs. Then, we propose the proactive technique, PlugAE, which optimizes adversarial token embeddings in a continuous space and proactively plugs them into the LLM for tracing and identification. The experiments show that PlugAE can achieve substantial improvement in identifying fine-tuned derivatives. We further advocate for legal frameworks and regulations to better address the challenges posed by the unauthorized use of LLMs.
Introduction
The commercial landscape of Large Language Models (LLMs) is currently a "Wild West" of licensing. While companies like Meta and Mistral release open-source weights, their licenses often prohibit rebranding or specific commercial uses. However, bad actors can easily take these models, fine-tune them on niche datasets, and host them as proprietary black-box APIs. Identifying these "model launderers" is incredibly difficult because fine-tuning often "washes away" the original behavioral quirks that passive identification methods rely on.
The Identification Crisis
Current identification methods generally fall into two categories:
- Passive Identification: Querying a suspect model with specific prompts to see if it behaves like the original. These struggle because fine-tuning alters the model's output distribution.
- Proactive Identification: Modifying the model before release (e.g., backdooring). These are often computationally expensive and can degrade model utility.
Methodology: The PlugAE Approach
To bridge the gap between efficiency and robustness, the researchers introduced PlugAE. The core innovation shifts optimization from discrete tokens (words) to continuous embeddings (mathematical vectors).
Instead of retraining the entire model to respond to a watermark, PlugAE adds a new "copyright token" to the model's vocabulary. The embedding for this token is optimized in a continuous space to trigger a specific target response. Because only the embedding layer and tokenizer are modified—leaving the billions of transformer weights untouched—the model’s original performance remains perfectly intact. When a model owner suspects an API is using their model, they query it using these secret copyright tokens. If the API returns the pre-defined target response, the origin is confirmed.
Experimental Results
The researchers conducted an extensive evaluation using base models like Llama-7b and Mistral-7B, alongside a suite of 32 derivative models. The primary metric used is the Target Response Rate (TRR)—the frequency with which a suspect model provides the "watermark" answer when prompted.
Key findings include:
- Superior Detection: On models fine-tuned on the CodeSearchNet (CSN) dataset, existing state-of-the-art methods saw detection rates drop to near zero. PlugAE maintained a TRR of 0.98 for Llama-based models.
- Zero Utility Loss: Benchmarks like HellaSwag and MMLU confirmed that PlugAE does not degrade the model's reasoning or knowledge capabilities.
- Efficiency: PlugAE only tunes approximately 4,000 parameters (the embeddings), making it feasible for model owners to deploy unique watermarks for different distributors without the heavy cost of full fine-tuning.
Conclusion and Future Work
PlugAE represents a significant step forward in protecting intellectual property in the generative AI space. It is significantly harder to dislodge than weight-based watermarks because it relies on the relationship between a specific embedding and the frozen logic of the model. However, the method has limits; if a derivative model undergoes substantial weight modification (approaching training from scratch), the watermark's effectiveness decreases. Future research will focus on making these "pluggable" watermarks resilient to even more extreme weight shifts and adversarial filtering.
Summary updated