Watermarking Vision-Language Pre-trained Models for Multi-modal Embedding as a Service

Yuanmin Tang, Jing Yu, Keke Gai, Xiangyan Qu, Yue Hu, Gang Xiong, Qi WuarXiv 2023

Abstract: Recent advances in vision-language pre-trained models (VLPs) have significantly increased visual understanding and cross-modal analysis capabilities. Companies have emerged to provide multi-modal Embedding as a Service (EaaS) based on VLPs (e.g., CLIP-based VLPs), which cost a large amount of training data and resources for high-performance service. However, existing studies indicate that EaaS is vulnerable to model extraction attacks that induce great loss for the owners of VLPs. Protecting the intellectual property and commercial ownership of VLPs is increasingly crucial yet challenging. A major solution of watermarking model for EaaS implants a backdoor in the model by inserting verifiable trigger embeddings into texts, but it is only applicable for large language models and is unrealistic due to data and model privacy. In this paper, we propose a safe and robust backdoor-based embedding watermarking method for VLPs called VLPMarker. VLPMarker utilizes embedding orthogonal transformation to effectively inject triggers into the VLPs without interfering with the model parameters, which achieves high-quality copyright verification and minimal impact on model performance. To enhance the watermark robustness, we further propose a collaborative copyright verification strategy based on both backdoor trigger and embedding distribution, enhancing resilience against various attacks. We increase the watermark practicality via an out-of-distribution trigger selection approach, removing access to the model training data and thus making it possible for many real-world scenarios. Our extensive experiments on various datasets indicate that the proposed watermarking approach is effective and safe for verifying the copyright of VLPs for multi-modal EaaS and robust against model extraction attacks.

1. Introduction

The development of high-performance Vision-Language Models (VLPs) like CLIP requires massive datasets and immense computational power. To monetize these assets, providers offer Embedding as a Service (EaaS), allowing users to obtain vector representations of images and text via API. However, these services are highly vulnerable to model extraction attacks, where an adversary queries the API to collect embeddings and trains a surrogate "copycat" model at a fraction of the original cost. Traditional watermarking techniques often fail in this context because they can degrade the delicate semantic alignment between modalities, ruining the model's utility for downstream tasks like search or classification.

2. Methodology: VLPMarker

The proposed framework, VLPMarker, introduces a robust, backdoor-based watermarking method that operates without modifying the underlying VLP parameters or requiring access to original training data.

2.1 Out-of-Distribution (OoD) Trigger Selection

To minimize interference with standard queries, VLPMarker utilizes OoD triggers. These are image-text pairs featuring rare object combinations (e.g., specific intricate scenes) identified via frequency analysis. Because these pairs are rare, they do not impact the model's normal behavior on standard user queries.

2.2 Watermark Injection via Orthogonal Transformation

The core innovation is the use of a near-orthogonal transformation matrix ($W$). Instead of fine-tuning the massive VLP, the provider learns $W$ and applies it to embeddings before they are delivered to the user. Because orthogonal transformations preserve vector distances and angles (similarities), the semantic structure of the embedding space remains intact, ensuring zero utility loss for the end-user.

Verification is a two-fold process:

  1. Trigger-based Verification: Checking if a suspicious model produces aligned embeddings for the secret OoD image-text triggers.
  2. Distribution-based Verification: Comparing the overall "shape" of the suspicious model's embedding space against the provider's transformed space using an inverse orthogonal transform.
Detailed overview of the VLPMarker framework, illustrating (a) the watermark injection process using a near-orthogonal transform and (b) the collaborative copyright verification strategy.

3. Experimental Results

VLPMarker was evaluated across multiple benchmarks, including MS-COCO and Flickr30k for retrieval, and ImageNet-1k for classification.

3.1 Utility Preservation

Unlike previous methods such as EmbMarker, which can cause performance drops of up to 40%, VLPMarker demonstrated zero utility loss. Accuracy on ImageNet classification and recall on retrieval tasks remained identical to the un-watermarked baseline because the orthogonal transformation preserves the relative relationships between embeddings.

3.2 Detection Reliability and Robustness

The framework achieved near-zero false positive rates, with statistical p-values as low as $1 \times 10^{-186}$. It proved robust against common evasion tactics like "dimension shifting" and successfully identified stolen models even when the attacker used a different architecture (e.g., OpenCLIP) for the extraction process.

4. Conclusion

VLPMarker offers a practical and effective solution for intellectual property protection in multi-modal EaaS. By leveraging orthogonal transformations and OoD triggers, it maintains full model performance while providing high-confidence copyright verification. Future research will focus on exploring more complex transformations and ensuring resilience against increasingly sophisticated adaptive attackers.

Summary updated

BibTeX
@misc{tang2023watermarking,
  author = {Yuanmin Tang and Jing Yu and Keke Gai and Xiangyan Qu and Yue Hu and Gang Xiong and Qi Wu},
  title = {{Watermarking Vision-Language Pre-trained Models for Multi-modal Embedding as a Service}},
  year = {2023},
  eprint = {2311.05863},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.05863},
}
Figure