Functional Subspace Watermarking for Large Language Models

Zikang Ding, Junhao Li, Suling Wu, Junchi Yao, Hongbo Liu, Lijie HuarXiv 2026

TL;DR

The authors introduce Functional Subspace Watermarking (FSW), a novel framework designed to protect the intellectual property of Large Language Models (LLMs). By embedding multi-bit ownership signatures into a low-dimensional, stable functional subspace of the model, FSW achieves unprecedented robustness against aggressive parameter-level modifications like fine-tuning, quantization, and knowledge distillation, all while preserving the model's original performance.

What Problem Does This Paper Address?

As open-weight LLMs become ubiquitous, model developers face growing threats from checkpoint leakage, unauthorized redistribution, and model extraction via knowledge distillation. To combat this, researchers use watermarking. Existing approaches generally fall into two camps: content watermarking (modifying generated text statistics) and model watermarking (embedding signals directly into weights or internal representations).

However, content watermarks can be easily stripped away if an adversary uses the model to distill a completely new student model. Meanwhile, standard model-side watermarks are highly fragile; they tend to get erased during routine post-processing modifications like supervised fine-tuning (SFT), quantization, or pruning. The core challenge is finding a way to inject a permanent ownership signal that survives these parameter-level perturbations without degrading the model's utility.

Figure 1. Conceptual comparison of watermark robustness under common model-side attacks. Top (Previous): Conventional in- ternal watermarks are vulnerable to post-hoc modifications like fine-tuning, quantization, pruning, and distillation, which often result in signal erasure. Bottom (FSW): Our proposed framework anchors ownership signals into a stable functional backbone, en- suring that the watermark remains detectable even after significant parameter-level perturbations.

Methods

FSW solves this problem by anchoring the watermark inside a "functional backbone"—a specific latent subspace that is both critical to the model's primary tasks and inherently stable under compression. The framework operates in a structured pipeline:

  1. Representation Extraction: The framework extracts hidden states from an intermediate layer of the LLM, treating this bottleneck layer as the watermark carrier.
  2. Geometry Analysis & GEVP: To find the ideal embedding directions, FSW balances two forces. It calculates a Fisher Information Matrix ($F$) to identify directions critical to task performance (functional sensitivity). Simultaneously, it simulates a family of compression operators (linear projection, quantization noise, structural dropout) to construct a transformation-invariant matrix ($C_{\mathcal{A}}$). It then solves a Generalized Eigenvalue Problem (GEVP): $$F u_i = \lambda_i C_{\mathcal{A}} u_i$$
  3. Spectral Truncation: Using the top eigenvalues blindly can destroy model utility, while using the bottom ones makes the watermark easy to remove. FSW introduces an adaptive spectral truncation strategy to isolate a "sweet spot" subspace ($U^{\star}$).
  4. Vector Consistency Constraint: During the watermark injection phase, a vector consistency loss ensures that the watermarked model's internal representations do not drift significantly from the original frozen model, preserving semantic integrity.
  5. Watermark Embedding & Verification: The watermark is injected using an orthogonal-key-based multi-bit scheme via a margin-based objective function. Verification uses a rigorous statistical hypothesis test to calculate a detection score ($S$).
Figure 2. Overall framework of FSW.

Datasets

The authors evaluated FSW using a multi-stage data strategy across several open-weight architectures (LLaMA-2-7B, LLaMA-3-8B, Qwen2.5-7B, Mistral-7B, and DeepSeek-7B-Chat):

  • WikiText-2: Used to estimate the Fisher Information Matrix ($F$) and the compression invariance matrix ($C_{\mathcal{A}}$), as well as to evaluate language modeling perplexity (PPL).
  • C4 (Colossal Clean Crawled Corpus): A sample of 3,000 sequences was used for the watermark embedding phase via LoRA fine-tuning to enhance distributional robustness.
  • HellaSwag & ARC-Easy: Standard downstream benchmarks used to ensure that the watermarking process did not degrade the model's common-sense reasoning and knowledge retention capabilities.

Key Insights and Ideas

  • Decoupling Sensitivity from Variance: The true "aha moment" of the paper is using the GEVP to explicitly decouple task-critical sensitivity from compression-induced variance. This mathematical formulation naturally uncovers latent directions that the model must retain to function properly, making it the perfect hiding place for a watermark.
  • Generalizing Distillation as Compression: Instead of overfitting the watermark to defend against a specific student model architecture, the authors model knowledge distillation as a generic information compression process. This abstraction allows the watermark to generalize across diverse, unseen adversarial extraction pipelines.
  • The 16-Bit Sweet Spot: Through ablation studies, the authors discovered a structural saturation point in the functional subspace. While a higher bit capacity provides more payload, scaling beyond 16 bits causes a sharp drop in model accuracy and a massive spike in perplexity, identifying 16 bits as the optimal capacity for reliable error-correcting codes.

Key Results

FSW demonstrates exceptional robustness and utility preservation across all tested architectures:

  • Minimal Utility Degradation: As shown in the evaluation metrics, the perplexity (PPL) increase was negligible for most models (e.g., a mere +0.37 for LLaMA-3-8B), and downstream task accuracies remained virtually identical to the unwatermarked baselines.
  • High Defensiveness: Under aggressive attacks—including LoRA fine-tuning, INT4 quantization, weight pruning, and backbone distillation—FSW consistently maintained near-perfect bit accuracy (often 100%) and high detection scores.
  • Statistical Reliability: For DeepSeek-7B, the watermark achieved a perfect 100% bit accuracy and a near-ideal AUC of 1.000 even after backbone distillation, successfully rejecting the null hypothesis at an extreme significance level of $\alpha = 10^{-8}$.
Figure 3. Functional Preservation and Ownership Detectability.

Limitations and Future Work

While FSW represents a major step forward, the authors note a few limitations:

  • White-Box Dependency: The verification protocol assumes the defender has white-box access to the suspect model's parameters or intermediate activations. It cannot be used in purely black-box (API-only) verification scenarios.
  • Constrained Distillation Assumption: The robustness guarantees apply to adversaries who preserve the model's internal functional backbone. It does not extend to fully unconstrained distillation where a student model completely reparameterizes its latent space from scratch.
  • Training Overhead: The embedding phase introduces additional computational overhead and requires roughly double the GPU memory compared to standard fine-tuning due to the dual-model consistency constraints.

Summary updated

BibTeX
@misc{ding2026functional,
  author = {Zikang Ding and Junhao Li and Suling Wu and Junchi Yao and Hongbo Liu and Lijie Hu},
  title = {{Functional Subspace Watermarking for Large Language Models}},
  year = {2026},
  eprint = {2603.18793},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.18793},
}
Figure