Introduction
The deployment of Large Language Models (LLMs) is increasingly shifting from centralized cloud environments to edge devices such as smartphones and IoT hardware. To accommodate the resource constraints of these devices, models undergo quantization—a compression process that reduces high-precision weights (e.g., FP16) to low-precision formats like INT8 or INT4. However, this transition introduces a significant security vulnerability: intellectual property (IP) theft. Unlike cloud-based models protected by APIs, edge-deployed models are "white-box," granting users full access to the model weights.
Existing watermarking techniques are often unsuitable for this context. Retraining massive LLMs to embed signatures is computationally prohibitive, and the sparse, discrete nature of quantized weight distributions makes them highly sensitive to the perturbations typically used in full-precision watermarking. EmMark addresses these challenges by providing a robust, post-training watermarking framework specifically designed for quantized LLMs.
Methodology
EmMark utilizes a post-training scheme that embeds digital signatures without requiring model retraining. The framework's effectiveness stems from a novel dual-criteria scoring function used to identify optimal weights for modification.
The selection process balances two key objectives:
- Quality Preservation ($S_q$): The algorithm targets weights with larger absolute values. In quantized space, these "heavy" weights are mathematically more resilient to the $\pm 1$ adjustments needed to encode signature bits, minimizing the impact on model output.
- Robustness ($S_r$): EmMark identifies "salient" weight channels—those most critical to model accuracy—by analyzing the activation distributions of the original full-precision model.
By combining these metrics ($S = \alpha S_q + \beta S_r$), EmMark embeds the watermark into the model's most vital "signal" rather than hiding it in the "noise." Verification requires a secret random seed and the original full-precision activations, creating an information asymmetry that prevents unauthorized users from locating or forging the watermark.
Experimental Setup
The researchers evaluated EmMark across the OPT and LLaMA-2 model families, with parameter counts ranging from 125M to 70B. Performance was measured using WikiText for perplexity (PPL) and a variety of zero-shot reasoning benchmarks, including LAMBADA, HellaSwag, PIQA, and WinoGrande. The framework was tested against both INT8 and INT4 quantization levels.
Key Results and Discussion
EmMark demonstrates exceptional performance across all evaluation metrics. It achieved a 100% Watermark Extraction Rate (WER) for all tested models while maintaining zero performance overhead. In some instances, the watermarked models exhibited slightly improved perplexity compared to non-watermarked baselines.
A defining feature of EmMark is its resilience to adversarial attacks. As shown in the results, the watermark remains nearly 100% extractable even when the model is subjected to significant weight perturbations (e.g., 300 bit flips per layer). Crucially, by the time an attacker successfully perturbs enough weights to threaten the watermark, the model's reasoning accuracy (Zero-shot Acc) has already collapsed, rendering the stolen IP useless.
Furthermore, the method is highly efficient; protecting a 30B parameter model takes less than 10 minutes on a standard CPU, a negligible cost compared to the original training or even fine-tuning.
Limitations and Future Work
While EmMark provides robust protection, it is currently a "white-box" solution requiring access to the suspect model's weights for verification. It also depends on the retention of the original full-precision model activations. Future research may explore adapting these principles for "black-box" verification through model outputs or extending the framework to support multi-user fingerprinting and structural pruning resilience.
Summary updated