From Essence to Defense: Adaptive Semantic-aware Watermarking for Embedding-as-a-Service Copyright Protection
Preprint
Abstract
Benefiting from the superior capabilities of large language models in natural language understanding and generation, Embeddings-as-a-Service (EaaS) has emerged as a successful commercial paradigm on the web platform. However, prior studies have revealed that EaaS is vulnerable to imitation attacks. Existing methods protect the intellectual property of EaaS through watermarking techniques, but they all ignore the most important properties of embedding: semantics, resulting in limited harmlessness and stealthiness. To this end, we propose SemMark, a novel semantic-based watermarking paradigm for EaaS copyright protection. SemMark employs locality-sensitive hashing to partition the semantic space and inject semantic-aware watermarks into specific regions, ensuring that the watermark signals remain imperceptible and diverse. In addition, we introduce the adaptive watermark weight mechanism based on the local outlier factor to preserve the original embedding distribution. Furthermore, we propose Detect-Sampling and Dimensionality-Reduction attacks and construct four scenarios to evaluate the watermarking method. Extensive experiments are conducted on four popular NLP datasets, and SemMark achieves superior verifiability, diversity, stealthiness, and harmlessness.Keywords
All Related Versions
This publication has 19 references indexed in Scilit:
- A Survey on Model Extraction Attacks and Defenses for Large Language Models2025
- Medical Multimodal Model Stealing Attacks via Adversarial Domain AlignmentProceedings of the AAAI Conference on Artificial Intelligence, 2025
- In-Context Retrieval-Augmented Language ModelsTransactions of the Association for Computational Linguistics, 2023
- Evaluating Embedding APIs for Information Retrieval2023
- Embedding-based Retrieval in Facebook Search2020
- Imitation Attacks and Defenses for Black-box Machine Translation Systems2020
- MIND: A Large-scale Dataset for News Recommendation2020
- Similarity estimation techniques from rounding algorithms2002
- LOF2000
- Approximate nearest neighbors1998