TabularMark: Watermarking Tabular Datasets for Machine Learning

Yihao Zheng, Haocheng Xia, Junyuan Pang, Jinfei Liu, Kui Ren, Lingyang Chu, Yang Cao, Li Xiong · DOI

Abstract

TabularMark is a novel watermarking scheme designed specifically for tabular datasets used in machine learning. By using statistical hypothesis testing and "noise partitioning," it allows data owners to prove ownership with high confidence while maintaining the dataset's utility for training high-performing AI models—even when attackers try to "scrub" the watermark.

Introduction

In the age of AI, data is the new oil, but tabular data—the kind found in spreadsheets and SQL databases—is incredibly easy to steal and replicate. While robust watermarking exists for images and audio, tabular data presents a unique challenge. Unlike an image where subtle pixel changes go unnoticed, altering values in a dataset can fundamentally disrupt the statistical relationships essential for machine learning (ML) models. Existing watermarking methods for tables often suffer from two major drawbacks: they either degrade the performance of downstream ML models or are too fragile to survive common data manipulation attacks like row shuffling, deletion, or value alteration.

The TabularMark Framework

TabularMark addresses these issues by providing a system that is detectable, non-intrusive, and robust. The core of the framework is a clever application of probabilistic noise partitioning and hypothesis testing.

Workflow of the TabularMark watermarking embedding and detection process.

Watermark Embedding

Instead of hiding a specific bit-string, the owner selects a small number of "key cells." For each cell, a secret key is used to divide a tiny perturbation range into "green" and "red" domains. The owner then subtly nudges the value of the cell so that its deviation from the original falls into a "green" domain. This "noise partitioning" allows for much smaller perturbations than traditional methods, preserving the data's utility for downstream ML tasks.

An example of domain partition into red and green zones used for watermark embedding.

Watermark Detection

To check for a watermark, the owner counts how many key cells in a suspicious dataset fall into their secret "green" domains. In a clean or stolen-but-altered dataset, one would expect approximately 50% of cells to fall in the green zone by pure chance. If significantly more than 50% are in the green zone, a one-proportion z-test provides statistical proof of ownership. To handle attackers who shuffle or delete rows, TabularMark employs a matching algorithm that uses the Most Significant Bits (MSBs) of multiple attributes as a "soft primary key" to locate the original key cells.

Experimental Evaluation

The researchers evaluated TabularMark across various tasks using synthetic data and real-world benchmarks like the Forest Cover Type, HOG Features, and Boston Housing Prices datasets.

Key Results

  • High Detectability: In all test cases, watermarked datasets yielded z-scores (around 12–18) far exceeding the standard 1.96 threshold for 95% confidence. The ROC curve for detection achieved an area under the curve (AUC) of 0.94.
  • Near-Zero Utility Loss: On the Forest Cover dataset, the $F_1$-score of an XGBoost model trained on watermarked data was virtually identical to the original (e.g., 0.887 vs 0.888).
  • Robustness: The watermark remained detectable even after 100% row insertion or 100% row deletion attacks. It also survived alteration attacks where up to 60% of the data was tampered with.

Discussion

A key insight of TabularMark is shifting the distribution of noise rather than embedding a fixed message. This creates an "Attacker's Dilemma": for an attacker to successfully remove the watermark, they must add so much noise that the dataset becomes useless for training ML models. In one experiment, an attacker had to drop the model's $F_1$-score by 0.245 to remove the mark, while the original watermark only cost the owner 0.001 in $F_1$-score.

Conclusion

TabularMark offers a robust solution for protecting tabular data ownership without sacrificing the utility of the data for machine learning. By leveraging statistical distributions and soft primary keys, it overcomes the limitations of traditional database watermarking, making it a powerful tool for data owners in the AI era.

Summary updated

BibTeX
@inproceedings{zheng2024tabularmark,
  author = {Yihao Zheng and Haocheng Xia and Junyuan Pang and Jinfei Liu and Kui Ren and Lingyang Chu and Yang Cao and Li Xiong},
  title = {{TabularMark: Watermarking Tabular Datasets for Machine Learning}},
  booktitle = {CCS},
  year = {2024},
  doi = {10.1145/3658644.3690373},
}
Figure