Learning to Give Checkable Answers with Prover-Verifier Games

Cem Anil, Guodong Zhang, Yuhuai Wu, Roger Grosse

TL;DR

This paper introduces Prover-Verifier Games (PVGs), a game-theoretic framework that trains machine learning models to produce verifiable outputs. By pairing a powerful, untrusted "prover" network with a constrained, trusted "verifier" network, the authors demonstrate that models can learn robust, adversarial-resistant protocols to justify their decisions.

What Problem Does This Paper Address?

While modern deep learning systems achieve incredible performance, they remain notoriously brittle. They are vulnerable to adversarial attacks, behave erratically on out-of-distribution data, and are often confidently wrong. A major barrier to deploying these systems in high-stakes domains (like medicine or legal tech) is our inability to verify why a model made a specific decision.

To address this, the authors look to computational complexity theory—specifically Interactive Proof Systems (IPS). The goal is to design a training paradigm where a machine learning system doesn't just give an answer, but also provides a "certificate" or proof that a cheaper, trusted verifier can easily check.

Methods

The authors formalize this process as a two-player differentiable game:

  1. The Verifier ($V$): A computationally limited, trusted network tasked with finding the correct answer to a decision problem.
  2. The Prover ($P$): A powerful, untrusted network incentivized to convince the verifier that the answer is always "yes" (or a specific target label), regardless of the actual truth.

Because the prover is untrustworthy, the verifier must learn to ignore empty rhetoric and only rely on messages it can independently validate.

The core theoretical contribution of the paper is analyzing how the structure of the game affects the outcome. The authors evaluate eight different game formulations based on two factors:

  • Player Order: Do they move simultaneously (Nash Equilibrium), or does one lead while the other follows (Stackelberg Equilibrium)?
  • Information Revelation: Is the specific problem instance revealed to the agents before or after they choose their strategies?
Table 1: The summary of our theoretical results on the desirability of equilibria of different PVG formulations. The “ordering" column illustrates in which order the prover and verifier pick their strategies (weights) and the problem instance (the input and labels) are revealed. The “necessity" and “sufficiency" columns show whether having converged to an equilibrium is necessary and/or sufficient for having discovered and complete and sound proof-verification protocol. The “failure mode" column describe in what way some of the setups lead to undesirable equilibria. The “convergence" column specifies if gradient descent converges to the eqilibrium on the Binary Erasure Channel Task. (∗)We’ve only shown local convergence for the verifier-leading equilibria.

Datasets

The framework was evaluated on two algorithmic/synthetic benchmarks designed to test verification mechanics:

  • Binary Erasure Channel (BEC) Task: A simplified, abstract communication task used to mathematically prove and empirically test gradient-based convergence to ideal Nash equilibria.
  • FindThePlus Dataset: A newly introduced visual search task consisting of $10 \times 10$ pixel images containing a single $3 \times 3$ plus-shaped pattern. The label depends on the color of the plus (e.g., red vs. blue). Crucially, the verifier is architecturally constrained to only look at a small patch of the image, forcing it to rely on the prover's coordinate messages to know "where to look."

Key Insights and Ideas

  • The "Flood-the-Zone" Failure Mode: If the prover is allowed to act as the leader and choose its strategy first, it learns to emit completely uninformative messages to pollute the communication channel. This disinformation strategy prevents the verifier from learning anything useful.
  • The "Trivial Verifier" Failure Mode: If the verifier sees the problem instance before deciding its strategy, it simply solves the problem itself and completely ignores the prover, defeating the purpose of learning a verification protocol.
  • Verifier-First or Simultaneous is Essential: To achieve a sound and complete protocol, the game must be structured so that the verifier commits to its verification strategy before seeing the specific instance, or both players move simultaneously. This forces the prover to be cooperative when the answer is truly "yes" because it knows it cannot fool the verifier when the answer is "no."

Key Results

To rigorously test the verifier's robustness, the authors performed a "stress test": they froze the trained verifier and gave an adversarial prover massive computational resources (using strong optimizers like L-BFGS) to generate deceptive messages.

  • Perfect Precision: Verifiers trained using the correct PVG formulations achieved 1.0 (perfect) precision and recall against fully optimized adversarial provers on the BEC task, and 0.99 precision on the FindThePlus task.
  • Collaborative Training Fails: In contrast, standard collaborative training (where the prover is rewarded simply for helping the verifier be correct) resulted in 0.0 precision under stress testing. The collaborative verifier merely learned the prover's "tells" rather than actually checking the proof, making it incredibly easy to deceive.
Figure 1: Depiction of a proof-verification protocol learned via Prover-Verifier Training. When trained on the task of detecting whether there’s a blue plus pattern (1a) in the input image, Prover-Verifier Training discovers a coordinate-based verification protocol. If there’s a plus in the image (1b), the prover sends its coordinate, and the verifier accepts this certificate. If there’s not a plus in the image (1c), then the prover sends the coordinates of a maximally convincing image patch, but the verifier rejects this certificate.

As shown in the visual search task, the PVG-trained prover learns to point to the exact coordinates of the target pattern when it exists. If it doesn't exist, the prover points to a maximally convincing fake patch, but the verifier successfully rejects it.

Limitations and Future Work

  • Scaling to Complexity: The current experiments are restricted to low-dimensional, synthetic algorithmic tasks. Scaling PVGs to complex, real-world problems (like natural language reasoning or complex computer vision) remains an open challenge.
  • Approximate Equilibria: Finding exact Nash or Stackelberg equilibria using gradient descent is notoriously difficult in practice. More work is needed to understand how these models behave when they only reach approximate equilibria, as incomplete training could lead to unexpected vulnerabilities.

Summary updated

Abstract

Our ability to know when to trust the decisions made by machine learning systems has not kept up with the staggering improvements in their performance, limiting their applicability in high-stakes domains. We introduce Prover-Verifier Games (PVGs), a game-theoretic framework to encourage learning agents to solve decision problems in a verifiable manner. The PVG consists of two learners with competing objectives: a trusted verifier network tries to choose the correct answer, and a more powerful but untrusted prover network attempts to persuade the verifier of a particular answer, regardless of its correctness. The goal is for a reliable justification protocol to emerge from this game. We analyze variants of the framework, including simultaneous and sequential games, and narrow the space down to a subset of games which provably have the desired equilibria. We develop instantiations of the PVG for two algorithmic tasks, and show that in practice, the verifier learns a robust decision rule that is able to receive useful and reliable information from an untrusted prover. Importantly, the protocol still works even when the verifier is frozen and the prover's messages are directly optimized to convince the verifier.
BibTeX
@misc{anil2021learning,
  author = {Cem Anil and Guodong Zhang and Yuhuai Wu and Roger Grosse},
  title = {{Learning to Give Checkable Answers with Prover-Verifier Games}},
  year = {2021},
  eprint = {2108.12099},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2108.12099},
}
Figure