Skip to content
ZKProof

Time-Space Trade-Offs for Sumcheck

Anubhav Baweja (University of Pennsylvania), Alessandro Chiesa (EPFL), Elisabetta Fedele (ETH Zurich), Giacomo Fenzi (EPFL), Pratyush Mishra (UPenn), Tushar Mopuri (University of Pennsylvania), Andrew Zitek-Estrada (EPFL)

Accepted paper presented at ZKProof 8 in Rome, May 9–10, 2026.

Speaker

  • Anubhav Baweja

    University of Pennsylvania

About this talk

Read the summary

This summary was generated with AI from the talk recording and edited by the ZKProof team. It was not written or reviewed by the speaker or the paper's authors, and may contain errors. For the authoritative account of this work, please refer to the paper.

At ZKProof 8 in Rome, Anubhav Baweja presented upper and lower bounds that tightly characterize how fast a sumcheck prover can run with a given amount of memory, plus an implementation that cuts memory by up to 120× for less than a 2× slowdown.

Why sumcheck's time and space matter

Sumcheck is a building block of streaming SNARKs, zkVMs, memory-checking arguments and many polynomial IOPs, so the time and space efficiency of SNARKs depends on that of sumcheck provers. In sumcheck, a prover convinces a verifier that a multivariate polynomial sums to a claimed value over the Boolean hypercube.

Two classic prover algorithms sit at opposite extremes:

  • the folding-based prover runs in optimal linear time but needs linear space;
  • the log-space prover stores almost nothing except the verifier's challenges, but takes an extra logarithmic factor in time and is concretely slow.

The questions: can a prover get something in between, are there matching lower bounds, and can changing the protocol model help? Time is measured in field operations and space in stored field elements.

Results

For a sum of N terms:

  • Single multilinear polynomial: with space N^(1/k), the prover runs in time O(kN), for any k. A matching lower bound shows that with space N^(1/k), time must be at least about kN, so this is tight.
  • Products of multilinear polynomials, which cover practically all SNARK applications: with space N^(1/k), the prover runs in time O(N(log log N + k)). For example, with k = 2: square-root space and N log log N time. The log log N term is inherent: conditioned on natural conjectures about multiplying multilinear polynomials, any natural prover using space below about √N needs time around N log log N. Without such conjectures, a much faster polynomial multiplication algorithm would remove the gap.
  • Polynomial IOP model: if the prover may also send polynomial oracles, space N^(1/k) and time O(N(log* N + k)) are achievable, beating the lower bound for plain interactive proofs. This wasn't covered in the talk.

These algorithms strictly improve on the log-space prover and interpolate smoothly between the two extremes.

In practice

The authors implemented the product prover over a 128-bit field with N = 2^28. The folding-based prover is fast but uses about 7 GB of memory; the log-space prover uses almost none but is very slow. With k = 2, the new algorithm is about 1.85× slower than folding but uses about 120× less memory. With k = 4, it uses nearly as little memory as the log-space prover while remaining much faster.

The upper bound, for a single multilinear polynomial

The prover receives the polynomial's evaluations as a stream it can read from start to finish. The folding-based prover reads the stream once and stores linear-size folded vectors. The log-space prover re-reads it every round and stores nothing. The new prover takes the middle path: for k = 2, it reads the stream only in round 1 and in the middle round, and stores √N values.

The key tool is a generalized round polynomial that keeps the first half of the variables free and sums over the rest. Expanding it with Lagrange interpolation separates an inner sum, which doesn't depend on future challenges, from an outer sum, which does. The prover computes and stores the inner sums (the sums over sub-cubes) in round 1, about √N values. Once the challenges arrive, it can produce every round polynomial for the first half without reading the input again. The second half works the same way, with the first-half challenges plugged in. Each pass costs linear time and stores √N values.

For products of polynomials, the generalized round polynomial involves multiplying polynomials, and no linear-time algorithm for that is known. Reading the stream only in rounds 1, 2, 4, 8 and so on keeps each pass linear even with naive multiplication, giving log log N passes. In the implementation the pass schedule is chosen to fit a memory budget. In the benchmarks, it happened to follow the Fibonacci sequence, which Baweja said is pure coincidence.

The lower bound

The lower bound is stated in a stronger model than the upper bound: the prover gets random access to the input, and the bound counts input accesses, not just field operations. So reordering the input can't help. It assumes the prover is non-adaptive, meaning its accesses don't depend on the challenges, which holds for all known sumcheck provers.

Equivalently, time times log-space must be at least N log N. The proof treats the prover in rounds spaced log S apart as separate parties that can only pass S field elements between them. For the later party to answer correctly for every possible binary challenge, it must compute many sums over disjoint sub-cubes. Its limited storage can cover at most S of them, so it must read about N/2 input values itself. This repeats every log S rounds, giving the bound.

From the Q&A

Asked about upper bounds in other models, such as multiple read heads or random access: since the lower bound already holds with random access, random access alone can't give a better algorithm. With a non-constant number of read heads, interesting new trade-offs might be possible.

Go further

More ZKProof 8 talks on this topic

Sumcheck, folding and recursion