Abstract
High-quality interaction data is the cornerstone of modern sequential recommender systems, yet it remains vulnerable to unauthorized scraping and redistribution. This paper presents DWRS (Data Watermarking for Recommender Systems), a framework designed to embed verifiable digital fingerprints into sequential data. By exploiting the receptive field of attention-based models, DWRS enables data owners to prove ownership with high confidence while maintaining the utility of the recommendation engine.
Introduction
As AI models increasingly rely on massive datasets as "fuel," the protection of data ownership has become a critical challenge. In the domain of recommender systems—powering platforms like Amazon and YouTube—user interaction sequences are high-value assets. However, these chronological logs are often stolen or repurposed without consent.
Existing watermarking techniques for images (like adding pixel noise) or text (like swapping synonyms) are inapplicable to the discrete, sequential nature of item IDs. DWRS addresses this by injecting "trigger" sequences that a model learns to recognize during training, allowing owners to identify if a model was trained on their proprietary data.
The DWRS Framework
The primary goal of DWRS is to ensure that if a model is trained on a watermarked dataset, it will exhibit a predictable behavior when queried with specific watermark sequences. This process involves three main stages: embedding the watermark into the training data, training the model, and evaluating the model's response to the watermark to verify ownership.
Technical Approach: Leveraging the Receptive Field
The core innovation of DWRS lies in its use of the Receptive Field (RF). By analyzing the attention mechanisms of state-of-the-art models like SASRec and Bert4Rec, the researchers observed that a model’s prediction for a target item is predominantly influenced by a localized window of preceding items.
DWRS-D (Dataset Level)
To protect an entire dataset, DWRS-D embeds a sequence of consecutive items (e.g., Book → Headphones → Apple). To ensure the model memorizes this specific pattern rather than random noise, the authors implement a uniqueness constraint. By ensuring that the "filler items" surrounding the watermark are unique across users, the model is forced to focus on the stable correlation of the watermark sequence itself.
DWRS-U (User Level)
Protecting an individual user's data is more difficult due to the lower signal-to-noise ratio. DWRS-U identifies the "most unpopular subsequence" in a user's history and inserts the watermark immediately preceding it. Since unpopular items have fewer existing correlations in the global dataset, the model has more "spare capacity" to overfit and memorize the injected pattern.
Experimental Evaluation
The framework was tested on industry-standard benchmarks: MovieLens 1M (ML-1M), Amazon Beauty, and Steam. These datasets represent a range of sequence lengths and densities, providing a rigorous test for how watermarking affects different recommendation environments.
Across five different architectures (SASRec, Bert4Rec, NARM, CL4SRec, and DuoRec), the results were consistent:
- High Detection Accuracy: Watermarked models achieved near-perfect Recall@10 and NDCG@10 (close to 1.0) when presented with the watermark, whereas "clean" models scored near zero.
- Minimal Utility Impact: The "cost" of watermarking is negligible. For instance, on the ML-1M dataset with SASRec, recommendation accuracy only shifted from 27.45% to 27.04%.
- Robustness: The watermarks survived adversarial "laundering" attempts, including model finetuning on clean data and knowledge distillation into smaller student models. The authors argue that removing the watermark would require so much finetuning that the model's original utility would be destroyed.
Conclusion
DWRS provides a robust and stealthy method for protecting sequential recommendation data. By turning local overfitting into a security feature, it allows data owners to reclaim control over their assets without compromising the user experience. Future work will focus on scaling these techniques to even larger foundation models and refining watermark selection to evade more advanced statistical detection.
Summary updated