Nondeterminism-Aware Optimistic Verification for Floating-Point Neural Networks

Jianzhu Yao, Hongxu Su, Taobo Liao, Zerui Cheng, Huan Zhang, Xuechao Wang, Pramod Viswanath · DOI

Introduction

In the landscape of Machine Learning as a Service (MLaaS), verifying that a provider has correctly executed a specific model is a significant challenge. Traditional verification methods typically require bitwise equality, which is unattainable in real-world scenarios due to the non-associative nature of floating-point arithmetic (IEEE-754). Different hardware architectures, or even varying thread schedules on the same GPU, can produce slightly different numerical outputs for identical inputs. This "jitter" creates a loophole for malicious providers to silently downgrade models—for instance, by using smaller architectures or aggressive quantization—while claiming the discrepancies are merely hardware noise.

TAO uses tolerance-aware checks to distinguish between honest hardware noise and malicious perturbations.

The TAO Protocol

TAO (Tolerance-Aware Optimistic verification) addresses this by replacing strict bitwise equality with principled "acceptance regions." The framework operates on an optimistic basis: results are assumed correct unless challenged. To distinguish legitimate noise from malicious activity, TAO employs a dual error modeling approach:

  1. Theoretical IEEE-754 Bounds: Sound, worst-case element-wise rounding error bounds are derived for every operator. Any result exceeding these bounds is automatically rejected.
  2. Empirical Percentile Profiles: Since theoretical bounds can be loose, TAO calibrates tight error profiles offline across diverse hardware (e.g., NVIDIA A100, H100). These profiles capture the actual distribution of hardware-specific noise.

Workflow and Dispute Resolution

The protocol is structured into four distinct phases, ensuring high efficiency during normal operation while providing a robust mechanism for resolving conflicts.

The four phases of the TAO protocol: Setup, Optimistic Execution, Dispute Localization, and Adjudication.

When a result is disputed, TAO initiates a Merkle-anchored interactive dispute game. The challenger and proposer recursively partition the computation graph until they isolate the specific "offending" operator. This localized operator is then adjudicated via a lightweight theoretical check or an honest-majority committee vote against empirical thresholds. This localization strategy ensures that verification costs remain constant regardless of the model's depth.

Evaluation and Key Insights

TAO was evaluated across a variety of models, including ResNet-152, BERT-large, Qwen3-8B, and Stable Diffusion v1-5, using a heterogeneous GPU fleet.

  • Performance: The protocol introduces negligible overhead. For large-scale models like Qwen3-8B, the latency increase during optimistic execution is only 0.3%.
  • Security: Empirical thresholds proved to be $10^2–10^3\times$ tighter than theoretical bounds, leaving virtually no room for adversarial perturbations. In testing, gradient-based attacks (PGD) achieved a 0% success rate against these empirical bounds.
  • Scalability: Disputes are resolved efficiently in $O(\log_N |V|)$ rounds. A dispute for a BERT-large model can be settled in just 11 steps, making it practical for deployment on blockchain testnets like Ethereum.

Conclusion

TAO demonstrates that verifiable ML is achievable on untrusted, heterogeneous hardware without sacrificing performance. By embracing hardware nondeterminism as a modelable quantity rather than a hurdle to be eliminated, TAO provides a scalable path for decentralized ML markets. Future work includes adapting the protocol for proprietary "closed" models and maintaining empirical profiles as new hardware architectures emerge.

Summary updated

BibTeX
@inproceedings{yao2026nondeterminism,
  author = {Jianzhu Yao and Hongxu Su and Taobo Liao and Zerui Cheng and Huan Zhang and Xuechao Wang and Pramod Viswanath},
  title = {{Nondeterminism-Aware Optimistic Verification for Floating-Point Neural Networks}},
  booktitle = {EuroSys},
  year = {2026},
  doi = {10.1145/3767295.3803612},
}
Figure