Federated Learning (FL) enables multiple participants to jointly train a machine learning model without ever sharing their raw, localized data. However, because each participant invests significant data and computational resources into the process, establishing the provenance—or origin—of the resulting model is critical. If a jointly trained model is leaked or stolen, the rightful owners need a mechanism to prove their intellectual property.
While model watermarking (embedding a hidden signal into the model's weights) is a standard solution for provenance, applying it to the decentralized FL setting introduces unique challenges. This paper introduces $(t, K)$-threshold watermarking, a highly scalable protocol that allows FL participants to collaboratively embed a shared ownership signal that can only be verified by a designated "quorum" of clients.
The Problem: Dilution and the Trust Gap
Existing model watermarking techniques struggle in federated environments due to two primary roadblocks:
- The Dilution Problem: If every client attempts to embed their own unique watermark during training, the individual signals inevitably "wash out" as the number of clients ($K$) grows. In practice, individual watermarks often drop below the noise floor when scaling to just 16 or 32 clients.
- The Trust Gap: Alternatively, clients could share a single master key to embed one strong, unified watermark. However, this creates a severe security vulnerability: any individual rogue client could use that master key to identify and surgically remove the watermark, undermining the entire system.
The Solution: $(t, K)$-Threshold Watermarking
To overcome these hurdles, the authors propose a collaborative, scalable, and secure watermarking protocol that requires a threshold of participants to verify the model. The protocol operates in three main stages:
1. Setup via Secret Sharing
Using Shamir’s Secret Sharing, a global watermark key $\tau$ is split into distinct shares. Each of the $K$ clients receives a share $s_k$. This cryptographic foundation ensures that no group smaller than the threshold $t$ can reconstruct the full key.
2. Additive Embedding and Adaptive Scaling
During the training phase, clients use their Shamir shares alongside public Lagrange coefficients to derive "additive shares" ($w_k$). When these shares are summed up during the standard FL aggregation process, they perfectly reconstruct the global watermark direction within the model's weights.
To ensure the watermark does not degrade the model's primary performance, the protocol employs an Exponential Moving Average (EMA) of local update magnitudes. This adaptive scaling allows the watermark strength to dynamically adjust to the training process—remaining strong enough to be detected, yet subtle enough to preserve utility.
3. Reconstruction-Free Verification
If a model is suspected of being stolen, a coalition of at least $t$ clients can verify the watermark by computing a $z$-score based on the cosine similarity between the model weights and their combined shares. Crucially, this is done via secure aggregation without ever materializing the secret key $\tau$ in the clear. This allows for repeated verifications without leaking the underlying secret to the participants or the server.
Experimental Results and Robustness
The authors evaluated the protocol across several standard benchmarks, including image classification (CIFAR-10, CIFAR-100, and Tiny ImageNet on ResNet-18) and language modeling (GPT-2 Small fine-tuned on WikiText-2). They tested both IID and non-IID data partitions to simulate real-world label skew.
Key findings include:
- Superior Scalability: While baseline per-client watermarking failed beyond $K=16$, the proposed collaborative method remained highly detectable (yielding a $z$-score $\ge 4$) even at $K=128$ clients. By aligning all clients toward a single shared direction, the signal-to-noise ratio stabilizes or improves as more clients join.
- Minimal Fidelity Loss: At the recommended watermark strength, the drop in test accuracy was negligible, typically ranging between just 0.12 and 0.25 percentage points.
- Resilience to Attacks: Because the watermark is embedded directly into the weights (a white-box approach), it is inherently difficult to remove. The watermark survived aggressive post-training modifications, including 90% weight pruning, 4-bit quantization, and adaptive fine-tuning using up to 20% of the original training data.
- Non-IID Stability: Watermark detectability remained robust regardless of data heterogeneity among clients.
Limitations and Future Directions
While $(t, K)$-threshold watermarking represents a significant step forward for FL provenance, the authors note a few areas for future exploration. Currently, the verification process requires white-box access to the model's internal parameters; developing a black-box equivalent (verifying via API queries) that retains these threshold properties remains an open challenge.
Additionally, the protocol assumes "honest-but-curious" participants and does not yet account for Byzantine clients who might actively attempt to poison the watermark during training. Finally, while the method proved successful on GPT-2 Small, comprehensive evaluations on massive Large Language Models (LLMs) and the establishment of formal theoretical bounds against adaptive attackers are necessary next steps.
Summary updated