NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

$\text{P}^4$Bench: Contamination-Proof, Publicly Verifiable, and Privacy-Preserving LLM Evaluation via Zero-Knowledge Proofs

Enhan Zhao, Yuanrui Zhang, Wei Wu, Di HeAI4Math @ ICML 2026

TL;DR

$P^4$Bench is a new evaluation framework that uses Zero-Knowledge Proofs (ZKPs) to solve the "transparency vs. contamination" dilemma in LLM benchmarking. It allows benchmark organizers to publish problems openly while keeping answers secret, enabling anyone to verify a model's score cryptographically without ever seeing the solutions.

What Problem Does This Paper Address?

As Large Language Models (LLMs) become more capable, our ability to measure them is breaking down due to data contamination. When benchmark questions and answers are published openly (like GSM8K or MATH), they inevitably get scraped into the training data of future models. This leads to "memorization" rather than true reasoning, inflating scores and making benchmarks useless.

To fight this, some organizers have moved to private benchmarks, where the test set is hidden behind an API. However, this creates a "black box" problem: the community must blindly trust the organizer to grade fairly, verify the problems correctly, and report scores honestly. There is currently no standard way to have a benchmark that is simultaneously public (for transparency), private (to prevent contamination), and independently verifiable.

Methods

The authors propose $P^4$Bench, which leverages Zero-Knowledge Proofs (ZKPs)—specifically zk-SNARKs using the Groth16 protocol.

The workflow functions like a digital "trust-but-verify" system:

  1. Setup: The benchmark provider publishes problem instances ($P_i$) and a "public relation" ($R_i$), which is essentially a mathematical circuit that defines what a correct answer looks like.
  2. Solving: A model provider runs their LLM locally to find an answer ($a_i$).
  3. Proving: Instead of submitting the answer, the model provider generates a cryptographic proof ($\pi_i$). This proof says: "I know an answer that satisfies the public rules for problem $i$, but I’m not going to show you the answer itself."
  4. Verification: Any third party can take the public verification key and the proof to confirm the answer is correct.

To make this work, the authors had to encode mathematical problems into Rank-1 Constraint Systems (R1CS), a format that allows the ZKP to "check" the logic of an answer using systems of equations over finite fields.

Datasets

The paper introduces two new controlled-difficulty benchmark families designed for ZKP evaluation:

  • Boolean Satisfiability (SAT): 500 instances where the model must find a truth assignment for complex logical formulas. It tests symbolic search and constraint reasoning.
  • Discrete Logarithm Problem (DLP): 500 instances involving modular arithmetic. This is a cornerstone of cryptography and tests an LLM’s ability to handle precise number-theoretic calculations.

Both datasets are split into Easy, Medium, and Hard tiers based on the number of variables, clauses, or bit-sizes of the primes used. The authors evaluated seven frontier models, including GPT-4.1-mini, Claude Opus 4.5, and Qwen 3.5 Plus.

Key Insights and Ideas

  • Decoupling Problems from Answers: By keeping the "ground truth" answers unpublished, $P^4$Bench removes the incentive for web-crawlers to index answer keys, effectively "de-contaminating" future training sets.
  • Trustless Auditing: You no longer need to trust a central "judge." Because the verification is mathematical, the community can independently recompute scores from published proofs.
  • Answer Privacy as an Incentive: Model developers are often hesitant to share raw model outputs during development. ZKPs allow them to report progress and claim "state-of-the-art" status without revealing proprietary reasoning traces or intermediate steps.
  • Surprising Efficiency: While ZKPs are often considered computationally heavy, the authors found that for these specific mathematical tasks, proof generation is nearly instantaneous (median ~0.14ms), making the system highly practical for large-scale leaderboards.

Key Results

The experiments highlighted a significant performance gap between current frontier models:

  • Top Performer: Qwen 3.5 Plus emerged as the strongest model, achieving 99.6% overall accuracy on SAT and 77.2% on DLP.
  • The "Hard" Wall: Most models struggled significantly as difficulty scaled. On the "Hard" tier of the DLP benchmark, only Qwen 3.5 Plus achieved a non-zero score (11%), while all other models (including Claude and GPT-4 variants) fell to 0%.
  • Practicality: The median end-to-end time for a model provider to generate a proof (including setup) was only 8.2ms for SAT and 1.7ms for DLP. Verification by the public takes a constant 5–10ms, regardless of how hard the problem was to solve.

Limitations and Future Work

  • Scope of Problems: $P^4$Bench currently works best for "constructive" problems—tasks where an answer is hard to find but easy to check (NP-complete style). It doesn't yet easily cover open-ended essay writing or subjective reasoning.
  • The "Human-in-the-Loop" Cheat: While the ZKP proves an answer was found, it doesn't prove the LLM found it. A dishonest provider could use a human or a specialized solver to generate the answer and then create a valid ZKP. The authors note that this requires separate "Proof of Training" or "Proof of Inference" techniques.
  • Formal Proof Systems: The authors suggest that the next logical step is integrating with formal languages like Lean. This would allow the framework to verify complex mathematical theorems in zero-knowledge, moving beyond simple SAT/DLP puzzles.

Summary updated

BibTeX
@inproceedings{zhao2026text,
  author = {Enhan Zhao and Yuanrui Zhang and Zhang Zhang and Wei Wu and Di He},
  title = {{$\textbackslash\{\}text\{P\}^4$Bench: Contamination-Proof, Publicly Verifiable, and Privacy-Preserving LLM Evaluation via Zero-Knowledge Proofs}},
  booktitle = {AI4Math @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=SAY3zZt2my},
}
Figure