Range-Arithmetic: Verifiable Deep Learning Inference on an Untrusted Party

Ali Rahimi, Babak H. Khalaj, Mohammad Ali Maddah-AliarXiv 2025 · DOI

Introduction

In the era of decentralized computing and blockchain ecosystems, resource-intensive tasks like Deep Neural Network (DNN) inference are increasingly offloaded to external, untrusted "provers." To maintain system integrity, it is critical to employ Verifiable Computing (VC) protocols that allow a "verifier" to confirm the correctness of a result without re-executing the entire computation.

However, standard VC protocols based on interactive proofs typically operate over finite fields (integers modulo a prime), which creates a fundamental mismatch with standard machine learning operations. Specifically, fixed-point arithmetic requires frequent rounding to prevent numerical overflow, and activation functions like ReLU are non-linear and non-arithmetic. Existing solutions often rely on complex Boolean circuit encodings or massive lookup tables, leading to significant computational and communication bottlenecks. Range-Arithmetic addresses these challenges by transforming non-arithmetic operations into arithmetic steps verifiable through range proofs and sum-check protocols.

The Range-Arithmetic Framework

The core innovation of Range-Arithmetic is treating rounding and activations as "range constraints" rather than bitwise operations. This approach avoids the overhead of bit-decomposition and allows the framework to operate efficiently within finite-field settings.

Verifiable Matrix Multiplication

The framework utilizes the standard sum-check protocol to verify matrix multiplications. This reduces the verification of a large matrix product to the evaluation of a single polynomial at a random point, significantly lowering the verifier's workload.

Verifiable Rounding and ReLU

Instead of simulating bit-shifts, Range-Arithmetic represents rounding as a relationship: $a \approx e + 2^s \cdot a'$. By using aggregated range proofs (based on the Bulletproofs protocol), the prover demonstrates that the discarded remainder ($e$) and the rounded result ($a'$) fall within valid intervals.

For ReLU, the framework uses the identity $\text{ReLU}(x) = \frac{x + |x|}{2}$. To verify this, the prover demonstrates that a committed value $y$ equals $|x|$ by proving two conditions: $y$ is non-negative (via a range proof) and $y^2 = x^2$ (via a sum-check protocol).

Interactive Verification Protocol

The framework is modular, allowing each layer (Matrix Multiplication $\rightarrow$ Rounding $\rightarrow$ ReLU) to be verified independently. The output commitment of one layer serves as the input for the next, ensuring a secure chain of computation.

A schematic of the interactive verification process between a verifier and an untrusted prover.

As shown in the protocol schematic, the verifier sends random challenges to the prover, who responds with proofs for specific operations. This interactive process continues until the final result is either accepted or rejected.

Experimental Evaluation

The authors evaluated Range-Arithmetic against state-of-the-art (SOTA) methods using synthetic linear networks and a case study on the MNIST dataset.

Comparison of prover/verifier runtimes and communication costs vs. number of layers.

Key Results

  • Prover and Verifier Efficiency: Range-Arithmetic demonstrates superior scaling as network depth increases. For a 5-layer network, the prover is approximately 4x faster than the SOTA, while the verifier's runtime is reduced by roughly half.
  • Communication Overhead: Communication costs grow logarithmically with matrix size. While range proofs introduce some overhead for shallow networks, Range-Arithmetic becomes more efficient than SOTA as the number of layers increases.
  • Real-World Feasibility: On a 4-layer MNIST network (~10,000 parameters), the prover generated a proof in ~230ms, and the verifier checked it in ~154ms, proving the framework's viability for practical, medium-scale models.

Conclusion

Range-Arithmetic provides a significant performance leap for verifiable DNN inference by prioritizing range constraints over bit-level simulations. While current evaluations focus on linear layers and ReLU, the modular nature of the framework suggests potential for expansion to more complex architectures like CNNs or Transformers. Future work will likely explore the integration of Zero-Knowledge (ZK) features to provide data and model privacy alongside computational integrity.

Summary updated

BibTeX
@misc{rahimi2025range,
  author = {Ali Rahimi and Babak H. Khalaj and Mohammad Ali Maddah-Ali},
  title = {{Range-Arithmetic: Verifiable Deep Learning Inference on an Untrusted Party}},
  year = {2025},
  eprint = {2505.17623},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.17623},
}
Figure