-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(slightly) Faster ML evaluations (#342)
* refactor: Refactor polynomial evaluation and proof verification in Spartan - Refactor the `evaluate` function in `MultilinearPolynomial` struct for better clarity and performance. - Adjust the `prove` function in `ppsnark.rs` to utilize `chis` method when evaluating a multilinear polynomial. - Modify the `RelaxedR1CSSNARK` struct's prove and verify methods. - Add more claims regarding the W and E polynomials to the verification process. - Implement batch evaluation for verifying the W and E polynomials. * fix: eval_table
- Loading branch information
1 parent
4b47563
commit afb9486
Showing
6 changed files
with
30 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
afb9486
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmarks
Table of Contents
Overview
This benchmark report shows the Arecibo GPU benchmarks.
NVIDIA L4
Intel(R) Xeon(R) CPU @ 2.20GHz
32 vCPUs
125 GB RAM
Workflow run: https://github.com/lurk-lab/arecibo/actions/runs/8037126932
Benchmark Results
RecursiveSNARK-NIVC-2
ref=4b47563
ref=afb9486
Prove-NumCons-6540
45.01 ms
(✅ 1.00x)45.11 ms
(✅ 1.00x slower)Verify-NumCons-6540
34.28 ms
(✅ 1.00x)34.51 ms
(✅ 1.01x slower)Prove-NumCons-1028888
319.34 ms
(✅ 1.00x)330.83 ms
(✅ 1.04x slower)Verify-NumCons-1028888
249.84 ms
(✅ 1.00x)251.28 ms
(✅ 1.01x slower)CompressedSNARK-NIVC-Commitments-2
ref=4b47563
ref=afb9486
Prove-NumCons-6540
10.48 s
(✅ 1.00x)10.46 s
(✅ 1.00x faster)Verify-NumCons-6540
51.93 ms
(✅ 1.00x)51.67 ms
(✅ 1.00x faster)Prove-NumCons-1028888
53.11 s
(✅ 1.00x)53.05 s
(✅ 1.00x faster)Verify-NumCons-1028888
52.13 ms
(✅ 1.00x)51.83 ms
(✅ 1.01x faster)Made with criterion-table