Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using GKR in LogUps to Improve Proving Time #53

Open
hecmas opened this issue Sep 19, 2023 · 0 comments
Open

Using GKR in LogUps to Improve Proving Time #53

hecmas opened this issue Sep 19, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request zkevm-pil2

Comments

@hecmas
Copy link

hecmas commented Sep 19, 2023

The paper I refer to is the following 2023/1284.

My proposal for the GKR topic is as follows:

  1. If you compare the cost of GKR versus the normal LogUp, the normal LogUp is much more efficient because the transformation we need to make from univariate FRI to multivariate FRI incurs (at least) in two additional commitments sent from P to V. The "good" thing about this transformation is that the number of "extra" commitments remains constant, regardless of how many lookups, permutations, or connections you attempt to prove. Therefore, the idea would be to do what is explained in the next point.
  2. We can use the GKR approach to prove that the sum of ALL the permutations/lookups/connections we have done equals zero (i.e., they are correct). For each of these sums, we have roughly double the cost in field operations, but we avoid the extra commitments (i.e., those to the sums and to the intermediaries if we are interested in "reducing" the degree). In our case, the extra cost of field operations is more than covered by what it costs us to make such commitments plus the proof of commitment opening (Merkle proof + FRI).
  3. To see a related use case from ConsenSys, they explain it here. In summary, they achieve a 200x improvement in verifying a large number of hashes.
  4. The only thing that is not known in precision (at this moment) is from how many lookups/permutations/connections it becomes more efficient to use GKR than the normal approach. It seems that we will only know this accurately once we have an optimal implementation of what is needed: multivariate polynomial functionality, sumcheck, and GKR.

The only problem I see right now with this is that we don't have anything implemented for what is needed, and it would take weeks to have the initial numbers to know if it is indeed a significant improvement or not.

@hecmas hecmas added enhancement New feature or request zkevm-pil2 labels Sep 19, 2023
@hecmas hecmas self-assigned this Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request zkevm-pil2
Projects
None yet
Development

No branches or pull requests

1 participant