Trustless Audits without Revealing Data or Models

Suppakit Waiwitlikhit, Ion Stoica, Yi Sun, Tatsunori Hashimoto, Daniel Kang · DOI

Introduction

As machine learning models become increasingly integrated into critical social infrastructure, a "transparency gap" has emerged. Stakeholders—ranging from copyright holders to medical professionals—demand to know if models are trained on unauthorized data, exhibit bias, or engage in censorship. However, model providers are incentivized to keep their training data and model weights secret to protect intellectual property. Traditional solutions like Multi-Party Computation (MPC) are prohibitively expensive, while Trusted Third Parties (TTPs) introduce significant security risks.

ZKAUDIT addresses this deadlock by enabling machine learning providers to prove specific properties of their models and training processes without revealing proprietary information. By utilizing optimized Zero-Knowledge Proofs (ZKPs), ZKAUDIT provides a path toward "trustless" audits that are both computationally feasible and economically viable.

The ZKAUDIT Protocol

The ZKAUDIT system is structured into two distinct phases to ensure end-to-end integrity:

  1. ZKAUDIT-T (Training): The provider commits to a specific dataset and initial weights using a cryptographic hash. They then generate a ZK-SNARK (Zero-Knowledge Succinct Non-interactive Argument of Knowledge) to prove that the final model weights were derived from running Stochastic Gradient Descent (SGD) on that committed dataset. This is the first protocol to efficiently prove the "backward pass" of training.
  2. ZKAUDIT-I (Inference/Audit): Once the model is committed, an auditor can query the model (e.g., checking for the presence of a specific image or testing for biased outputs). The provider executes the audit function and returns a ZKP certifying that the result is correct relative to the previously committed data and weights.

Technical Innovations for Feasibility

Standard ZKPs are often incompatible with the numerical requirements of deep learning. ZKAUDIT introduces several optimizations to bridge this gap:

  • Rounded Division in Finite Fields: Standard ZKPs utilize floor division, which significantly degrades training accuracy. ZKAUDIT implements a polynomial constraint for rounded division, improving model accuracy by up to 11%.
  • ZK-Friendly Softmax: A custom implementation of the Softmax function was designed to handle numerical stability issues like underflow and overflow within fixed-point arithmetic.
  • Variable Precision Fixed-Point: The system allows for a trade-off between proving speed and accuracy. Research shows that 15-bit fixed-point arithmetic can achieve accuracy within 0.7% of standard 32-bit floating-point training.

Experimental Results

The researchers evaluated ZKAUDIT across diverse tasks, including image classification (ImageNet, Stanford Cars, dermnet, flowers-102) and recommender systems (MovieLens).

The evaluation demonstrated significant improvements in both performance and cost:

  • Efficiency: ZKAUDIT is at least 95x faster than previous ZK arithmetic baselines and 196x cheaper than leading semi-honest MPC approaches for training tasks.
  • Cost-Effectiveness: Audit costs are remarkably low. A recommender system audit can cost as little as $10, while a complex image classification audit for the flowers-102 dataset costs approximately $108. As shown in the figures, increasing the computational budget allows the system to approach the accuracy of non-private baselines.
  • High Accuracy: On ImageNet-scale models like MobileNet v2, the system achieved 88.8% top-5 accuracy, proving that cryptographic guarantees do not necessitate a sacrifice in model performance.

Conclusion and Future Work

ZKAUDIT represents a significant step toward accountable AI. By shifting the bottleneck from bandwidth (MPC) to computation (ZKPs), it makes large-scale audits economically practical. While the current implementation reveals model architecture and does not inherently prevent data poisoning prior to commitment, it provides a robust framework for verifying the training process. Future research will focus on scaling these proofs to Large Language Models (LLMs) with billions of parameters and further obscuring architectural details.

Summary updated

BibTeX
@inproceedings{waiwitlikhit2024trustless,
  author = {Suppakit Waiwitlikhit and Ion Stoica and Yi Sun and Tatsunori Hashimoto and Daniel Kang},
  title = {{Trustless Audits without Revealing Data or Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=AtVtt9xsO1},
}
Figure