Verifiable Computing for Approximate Computation

Shuo Chen, Jung Hee Cheon, Dongwoo Kim, Daejun ParkIACR ePrint 2019

Abstract

Verifiable Computing (VC) ensures the integrity of outsourced computations, yet traditional protocols struggle with the approximate arithmetic required for Artificial Intelligence (AI). Standard VC frameworks operate over finite fields, where exactness is mandatory, leading to exponential complexity when handling rounding operations. This paper presents an extension of the GKR protocol to finite rings, enabling efficient rounding via low-degree polynomials. By employing Galois ring optimizations and a novel circuit structure for polynomial evaluation, the proposed method achieves a 100x speedup in proof generation for deep neural network-like computations, maintaining linear complexity where previous methods were exponential.

Introduction

In the era of cloud-based AI, outsourcing heavy computational tasks like training deep neural networks (DNNs) is common. However, ensuring that a third-party provider has performed these computations correctly remains a challenge. Verifiable Computing (VC) offers mathematical proofs of integrity, but a significant hurdle exists: AI relies on "approximate" math (rounding), whereas most VC protocols are designed for "exact" math over finite fields. Without efficient rounding, the number of digits in nested multiplications would explode, exceeding memory limits and making verification infeasible.

Methodology

To bridge the gap between exact proofs and approximate AI, the authors introduce several innovations to the GKR protocol, a state-of-the-art interactive proof system.

Transitioning from Fields to Rings

The protocol is generalized to work over finite rings ($\mathbb{Z}_{p^e}$). Unlike fields, rings allow for a natural representation of digits, which is essential for handling rounding operations. The authors demonstrate that the Sum-Check protocol, the core of GKR, remains sound over rings if the verifier samples from a specific set where differences between elements are not zero divisors.

Rounding via Polynomials

Rounding is expressed as a "lowest-digit-removal" (ldr) polynomial, adapted from the field of homomorphic encryption. This allows rounding—a traditionally non-linear operation—to be treated as a standard arithmetic circuit composed of additions and multiplications.

Optimal Circuit Construction

A key contribution is the design of a regular circuit structure for evaluating arbitrary polynomials. This construction organizes the evaluation into stages: generating powers of a variable (polygen), evaluating base components (eval), and hierarchically combining them (unify and extract).

A regular circuit structure for efficient polynomial evaluation, facilitating sublinear proof generation.

This structure ensures that proof generation time is linear relative to the polynomial's degree. In certain configurations, the prover can generate a proof faster than the computer can execute the rounding operation itself, achieving sublinear proof generation.

Galois Ring Optimization

To further reduce the complexity of the rounding circuit, the authors employ Galois rings. This technique allows the use of smaller prime numbers, shrinking the circuit size without compromising the soundness of the proof.

Evaluation and Results

The scheme was evaluated using synthetic matrix multiplications and 16-bit fixed-point arithmetic simulations, mimicking modern DNN environments.

  • Performance Gains: For a nested $128 \times 128$ matrix multiplication with a depth of 12, the proposed scheme generated a proof in 3 minutes, compared to 2.5 hours for the original GKR protocol—a 100x speedup.
  • Scalability: The system handled 4,096 rounding operations in just one second of proof generation, with verification taking less than a millisecond.
  • Complexity Reduction: While traditional GKR costs grow exponentially with computation depth in fixed-point contexts, this approach maintains linear cost, making deep AI models verifiable for the first time.

Conclusion

This work successfully integrates rounding into the GKR protocol, removing a major barrier to verifiable AI. While moving to rings introduces a slight trade-off in soundness error—mitigated by parallel proof execution—the efficiency gains are transformative. Future work includes extending these techniques to other non-linear AI functions such as ReLU and Softmax through comparison protocols and piecewise polynomial approximations.

Summary updated

BibTeX
@article{chen2019verifiable,
  author = {Shuo Chen and Jung Hee Cheon and Dongwoo Kim and Daejun Park},
  title = {{Verifiable Computing for Approximate Computation}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2019},
}
Figure