Privacy-Preserving Model and Preprocessing Verification for Machine Learning

Wenbiao Li, Anisa Halimi, Xiaoqian Jiang, Jaideep Vaidya, Erman AydayarXiv 2025 · DOI

Introduction

In the machine learning lifecycle, preprocessing—handling missing values, normalizing scales, and balancing classes—is often the "silent partner" of model performance. While researchers might claim their model was trained using rigorous data cleaning protocols, there is currently no easy way for an external auditor or user to verify these claims, especially when the training data is sensitive (e.g., medical records or financial history).

Traditional performance metrics like accuracy are often insufficient for verification; a model trained on unscaled data might still achieve high accuracy on a specific test set but fail or exhibit bias in production. Sharing the raw data for auditing is a non-starter due to privacy regulations. This paper tackles the "verification gap": how do we prove a model was built correctly without leaking the private data it was built on?

Comparison of explanation-based verification versus traditional performance metrics across various criteria.

Proposed Framework

The authors introduce a novel framework that allows third-party verifiers to confirm if a machine learning model was trained using the correct preprocessing steps without seeing the raw training data. The framework involves two main actors: the Researcher (who trains the model) and the Verifier (who audits it).

The proposed privacy-preserving verification workflow involving a Researcher and a Verifier.

The process follows four key stages:

  1. Privacy-Preserving Data Sharing: The Researcher applies Local Differential Privacy (LDP) to their original dataset ($D$), adding Laplacian noise to create a "noisy" version ($D_\epsilon$) that is safe to share with the Verifier.
  2. Explanation Signatures: Instead of looking at raw weights, the framework uses tools like LIME and SHAP to generate explanations for model predictions. These tools highlight which features the model prioritizes, creating a "signature" of the model's logic.
  3. Verification Simulation: The Verifier takes the noisy dataset ($D_\epsilon$) and trains two types of local models: a "Proper" model ($M_\epsilon$) using the correct preprocessing steps, and several "Improper" models ($M'_\epsilon$) where specific steps (like outlier removal or scaling) are intentionally skipped.
  4. Classification: The Verifier compares the Researcher’s model explanations ($O_R$) against their own simulations ($O_\epsilon, O'_\epsilon$). They use two approaches: an ML-based classifier ($V_{ML}$) and a threshold-based classifier ($V_T$) using cosine distance.

Experimental Evaluation

The framework was evaluated on three real-world datasets representing sensitive domains: the CDC Diabetes Health Indicators (253,680 instances), the Adult Dataset (48,842 instances), and a Student Record Dataset (4,424 instances).

Key Results

  • High Binary Accuracy: In determining if any error occurred (Proper vs. Improper), the ML-based verifier achieved over 80% accuracy across most datasets as the privacy budget ($\epsilon$) increased.
  • ML vs. Threshold: The ML-based classifier consistently outperformed the threshold-based method, suggesting that the relationship between preprocessing and model logic is complex and non-linear.
  • Privacy Trade-off: Membership inference attack analysis showed that at low $\epsilon$ values (high noise), the risk of identifying individuals was minimal (20-30%), while still allowing for reasonable verification accuracy.

Discussion and Insights

The core finding is that preprocessing errors leave a distinct mark on a model’s decision-making logic—an "explanation fingerprint." For example, failing to scale numerical data causes the model to over-rely on features with large magnitudes, a shift detectable by LIME and SHAP even when accuracy remains stable.

The authors confirmed the "Closeness Hypothesis": a model trained on a noisy (LDP) but properly preprocessed dataset is "closer" in its explanation logic to the original model than a model trained with the wrong preprocessing steps. However, detectability varies; skipping resampling for class imbalance is easy to catch, while skipping duplicate removal is much harder as it affects fewer data points.

Limitations and Future Work

Current limitations include the sensitivity of metrics; simple distance measures like Euclidean distance did not correlate well with performance. Future work should develop metrics reflecting structural and semantic changes. Additionally, the framework currently assumes static pipelines, whereas real-world pipelines are often adaptive. Future research could also explore "adaptive" LDP that adjusts noise levels based on feature sensitivity.

Summary updated

Abstract

This paper presents a framework for privacy-preserving verification of machine learning models, focusing on models trained on sensitive data. Integrating Local Differential Privacy (LDP) with model explanations from LIME and SHAP, our framework enables robust verification without compromising individual privacy. It addresses two key tasks: binary classification, to verify if a target model was trained correctly by applying the appropriate preprocessing steps, and multi-class classification, to identify specific preprocessing errors. Evaluations on three real-world datasets-Diabetes, Adult, and Student Record-demonstrate that while the ML-based approach is particularly effective in binary tasks, the threshold-based method performs comparably in multi-class tasks. Results indicate that although verification accuracy varies across datasets and noise levels, the framework provides effective detection of preprocessing errors, strong privacy guarantees, and practical applicability for safeguarding sensitive data.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Adult · 15-label multi-class preprocessing verification, Adult dML-based verifier using LIME and Logistic RegressionVerification accuracy0.5split: test · labels=15
Source quote
L342: Multi-class Classification (Fig.~\ref{fig:multi_ML_lime_logres}) shows the verifier’s performance in handling 15 labels, one for no improperness and 14 for various improper steps. As expected, accuracy is low under a high amount of noise (\epsilon=0.1), below 0.2 across all datasets. However, as the amount of noise added decreases (i.e., \epsilon increases), the verifier's performance improves steadily. At higher values of \epsilon, accuracy reaches up to 0.6 for the Diabetes dataset and 0.5 for the Adult dataset, though performance is lower for the Student Record dataset, reflecting the challenge of multi-class classification with added noise.
BibTeX
@misc{li2025privacy,
  author = {Wenbiao Li and Anisa Halimi and Xiaoqian Jiang and Jaideep Vaidya and Erman Ayday},
  title = {{Privacy-Preserving Model and Preprocessing Verification for Machine Learning}},
  year = {2025},
  eprint = {2501.08236},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.08236},
}
Figure