SEAL: Entangled White-box Watermarks on Low-Rank Adaptation

Giyeong Oh, Saejin Kim, Woohyun Cho, Sangkyu Lee, Jiwan Chung, Dokyung Song, Youngjae Yu

Abstract

Recently, LoRA and its variants have become the de facto strategy for training and sharing task-specific versions of large pretrained models, thanks to their efficiency and simplicity. However, the issue of copyright protection for LoRA weights, especially through watermark-based techniques, remains underexplored. To address this gap, we propose SEAL (SEcure wAtermarking on LoRA weights), the universal whitebox watermarking for LoRA. SEAL embeds a secret, non-trainable matrix between trainable LoRA weights, serving as a passport to claim ownership. SEAL then entangles the passport with the LoRA weights through training, without extra loss for entanglement, and distributes the finetuned weights after hiding the passport. When applying SEAL, we observed no performance degradation across commonsense reasoning, textual/visual instruction tuning, and text-to-image synthesis tasks. We demonstrate that SEAL is robust against a variety of known attacks: removal, obfuscation, and ambiguity attacks.

Introduction

As Large Language Models (LLMs) and Diffusion Models become more powerful, Low-Rank Adaptation (LoRA) has emerged as the standard for efficient fine-tuning. However, this has created a massive "gray market" of shared weights on platforms like Hugging Face and CivitAI. Training high-quality LoRA adapters requires significant investment in data curation and compute, yet these weights are incredibly easy to steal or redistribute. Existing deep neural network (DNN) watermarking techniques often fail because they target specific architectures or require additional loss terms that degrade performance. SEAL addresses these challenges by providing a robust, stealthy, and performance-preserving watermarking framework.

The SEAL Framework

The core innovation of SEAL is a transition from the standard LoRA equation ($\Delta W = BA$) to a three-matrix "sandwich" structure: $\Delta W = BCA$.

  1. Entanglement: During training, a constant, non-trainable matrix $C$ (the "passport") is inserted between the trainable matrices $B$ and $A$. The model must learn to produce correct outputs through this fixed matrix, forcing the weights of $B$ and $A$ to become mathematically entangled with $C$.
  2. Hiding for Distribution: Post-training, the owner factorizes $C$ into $C_1 C_2$ using Singular Value Decomposition (SVD). These are merged into the trainable weights: $B' = BC_1$ and $A' = C_2 A$.
  3. Structural Stealth: The final distributed weights are just $B'$ and $A'$. To any external observer, this looks exactly like a standard LoRA adapter, with no visible extra layers.
The SEAL workflow: (1) Preparation of LoRA weights and passport matrix C; (2) Training with entangled parameters; (3) Decomposition and distribution of watermarked weights.

Key Insights: Gradient Reorientation

SEAL's effectiveness stems from how it alters the training dynamics. By inserting the passport $C$, gradients during backpropagation are reoriented, forcing the model to spread learned information across a broader "singular value spectrum." While standard LoRA often relies on a few directions, SEAL forces the model to utilize a more diverse subspace. This inherent entanglement makes the watermark nearly impossible to remove without destroying the model's utility.

Experimental Results

SEAL was validated across a wide range of tasks, including commonsense reasoning (Llama-2, Mistral, Gemma), instruction tuning (Alpaca), and image generation (Stable Diffusion).

  • High Fidelity: SEAL maintained or slightly improved performance across all tasks. For Llama-2-7B, SEAL achieved an average score of 83.78% on reasoning benchmarks, compared to 81.67% for standard LoRA.
  • Extreme Robustness: The watermark remained detectable even after 99.9% of the model weights were pruned. As shown in the figures below, while the model's fidelity score collapses at extreme zeroing ratios, the statistical significance of the watermark (measured by -log(p-value)) remains high.
Robustness of SEAL against weight pruning across Gemma-2B, Mistral-7B, and LLaMA-2-7B. The watermark remains statistically detectable even as model performance (Fidelity Score) drops.

Conclusion

SEAL provides a zero-cost protection mechanism for LoRA weights that is robust against removal and obfuscation attacks. By mathematically entangling ownership signatures with model performance, it ensures that any attempt to "wash" the watermark results in a significant loss of model utility. Future work includes extending this entanglement concept to other Parameter-Efficient Fine-Tuning (PEFT) methods and exploring black-box verification techniques.

Summary updated

BibTeX
@misc{oh2025seal,
  author = {Giyeong Oh and Saejin Kim and Woohyun Cho and Sangkyu Lee and Jiwan Chung and Dokyung Song and Youngjae Yu},
  title = {{SEAL: Entangled White-box Watermarks on Low-Rank Adaptation}},
  year = {2025},
  eprint = {2501.09284},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.09284},
}
Figure