Papers
Topics
Authors
Recent
Search
2000 character limit reached

KLVY Compiler for Compiled Nonlocal Games

Updated 14 July 2026
  • The KLVY compiler is a method for transforming any k‑prover nonlocal game into a sequential single‑prover protocol using quantum homomorphic encryption.
  • It achieves quantitative quantum soundness by ensuring the compiled protocol’s acceptance probability closely matches the original game’s quantum value within a negligible margin.
  • The framework employs a sequential NPA hierarchy and geometric regularization to enforce cryptographic non‑signaling and recover valid moment matrices for robust security.

Searching arXiv for the KLVY compiler and closely related papers on compiled nonlocal games, quantum soundness, and the associated sequential NPA framework. The KLVY compiler most specifically denotes the Kalai–Lee–Vidick–Yuen compiler introduced in the context of compiled nonlocal games: a procedure that maps any kk-prover nonlocal game GG to a sequential, interactive single-prover protocol GcompG_{\mathrm{comp}} by using a quantum homomorphic encryption scheme QHE=(Gen,Enc,Eval,Dec)\mathrm{QHE}=(\mathrm{Gen},\mathrm{Enc},\mathrm{Eval},\mathrm{Dec}). Its central purpose is to transfer the power of Bell-type multi-prover tests into a single-device setting by replacing spatial separation with cryptography. In the compiled protocol, the verifier generates a secret key, samples questions x⃗∼μ\vec{x}\sim\mu, sends Encsk(xi)\mathrm{Enc}_{sk}(x_i) in the first k−1k-1 rounds, sends xkx_k in the clear in the last round, decrypts the encrypted answers, and evaluates the same predicate VV on the transcript (x⃗,a⃗)(\vec{x},\vec{a}). The corresponding security target is quantitative quantum soundness: an efficient single-device quantum prover should not exceed the original game’s quantum value, up to a negligible slack determined by the cryptographic parameters and the hierarchy level used in the analysis (Baroni et al., 29 Sep 2025).

1. Compilation of nonlocal games into single-device protocols

A GG0-prover nonlocal game GG1 is specified by question alphabets GG2, answer alphabets GG3, a distribution GG4 on GG5, and a predicate GG6 deciding win or lose. In the spatially separated model, prover GG7 receives GG8 and returns GG9, and the verifier’s acceptance probability is determined by the payoff tensor GcompG_{\mathrm{comp}}0 (Baroni et al., 29 Sep 2025).

The KLVY compiler transforms this game into a sequential protocol with the same underlying predicate. At security parameter GcompG_{\mathrm{comp}}1, the verifier runs GcompG_{\mathrm{comp}}2 to generate a secret key GcompG_{\mathrm{comp}}3, samples GcompG_{\mathrm{comp}}4, and proceeds in GcompG_{\mathrm{comp}}5 rounds. For rounds GcompG_{\mathrm{comp}}6, the verifier sends GcompG_{\mathrm{comp}}7, receives an encrypted answer GcompG_{\mathrm{comp}}8, and later decrypts GcompG_{\mathrm{comp}}9. In the last round QHE=(Gen,Enc,Eval,Dec)\mathrm{QHE}=(\mathrm{Gen},\mathrm{Enc},\mathrm{Eval},\mathrm{Dec})0, the verifier sends QHE=(Gen,Enc,Eval,Dec)\mathrm{QHE}=(\mathrm{Gen},\mathrm{Enc},\mathrm{Eval},\mathrm{Dec})1 in the clear and receives QHE=(Gen,Enc,Eval,Dec)\mathrm{QHE}=(\mathrm{Gen},\mathrm{Enc},\mathrm{Eval},\mathrm{Dec})2. The acceptance decision is again computed using QHE=(Gen,Enc,Eval,Dec)\mathrm{QHE}=(\mathrm{Gen},\mathrm{Enc},\mathrm{Eval},\mathrm{Dec})3.

The intended effect is computational non-signaling across the QHE=(Gen,Enc,Eval,Dec)\mathrm{QHE}=(\mathrm{Gen},\mathrm{Enc},\mathrm{Eval},\mathrm{Dec})4 interfaces. Although only one physical device participates and does so sequentially, the encryption is meant to hide earlier questions and answers from later or earlier parts of the device’s computation. The compilation therefore replaces space-like separation by cryptographic hardness rather than by physical isolation. A plausible implication is that the KLVY compiler is best understood as a cryptographic simulation of the non-signaling structure that underlies nonlocal-game soundness arguments.

2. Quantum values and quantitative quantum soundness

The relevant reference values are the tensor-product quantum value

QHE=(Gen,Enc,Eval,Dec)\mathrm{QHE}=(\mathrm{Gen},\mathrm{Enc},\mathrm{Eval},\mathrm{Dec})5

and the commuting-operator value

QHE=(Gen,Enc,Eval,Dec)\mathrm{QHE}=(\mathrm{Gen},\mathrm{Enc},\mathrm{Eval},\mathrm{Dec})6

In the compiled setting, an efficient single-prover strategy QHE=(Gen,Enc,Eval,Dec)\mathrm{QHE}=(\mathrm{Gen},\mathrm{Enc},\mathrm{Eval},\mathrm{Dec})7 induces conditional distributions QHE=(Gen,Enc,Eval,Dec)\mathrm{QHE}=(\mathrm{Gen},\mathrm{Enc},\mathrm{Eval},\mathrm{Dec})8, and the compiled acceptance probability is

QHE=(Gen,Enc,Eval,Dec)\mathrm{QHE}=(\mathrm{Gen},\mathrm{Enc},\mathrm{Eval},\mathrm{Dec})9

Quantitative soundness seeks an inequality of the form

x⃗∼μ\vec{x}\sim\mu0

where x⃗∼μ\vec{x}\sim\mu1 and x⃗∼μ\vec{x}\sim\mu2 is negligible in x⃗∼μ\vec{x}\sim\mu3 but also depends on the number of parties x⃗∼μ\vec{x}\sim\mu4, the number of rounds x⃗∼μ\vec{x}\sim\mu5, alphabet sizes, the hierarchy truncation level x⃗∼μ\vec{x}\sim\mu6, and QHE parameters such as ciphertext expansion, supported homomorphic depth, and security (Baroni et al., 29 Sep 2025).

The main quantitative soundness theorem has two regimes. In the finite-dimensional optimality regime, if x⃗∼μ\vec{x}\sim\mu7 admits a finite-dimensional optimal quantum strategy and hence x⃗∼μ\vec{x}\sim\mu8, then there exists a negligible function x⃗∼μ\vec{x}\sim\mu9 such that

Encsk(xi)\mathrm{Enc}_{sk}(x_i)0

In the general regime, for every Encsk(xi)\mathrm{Enc}_{sk}(x_i)1 there exists a negligible function Encsk(xi)\mathrm{Enc}_{sk}(x_i)2 such that

Encsk(xi)\mathrm{Enc}_{sk}(x_i)3

where Encsk(xi)\mathrm{Enc}_{sk}(x_i)4 is the optimal value of the Encsk(xi)\mathrm{Enc}_{sk}(x_i)5-partite sequential NPA SDP and satisfies Encsk(xi)\mathrm{Enc}_{sk}(x_i)6 as Encsk(xi)\mathrm{Enc}_{sk}(x_i)7 (Baroni et al., 29 Sep 2025).

These statements recover the bipartite quantitative bounds of Klep et al. (2025) when Encsk(xi)\mathrm{Enc}_{sk}(x_i)8 and strictly extend the asymptotic multipartite results of Baroni et al. (2025) to quantitative bounds for finite Encsk(xi)\mathrm{Enc}_{sk}(x_i)9. The significance is not merely asymptotic convergence: the theorem supplies an explicit negligible slack for fixed security parameter and fixed truncation level.

3. Sequential NPA hierarchy for quantum instruments

The technical framework replaces the standard measurement-only perspective with a Heisenberg-picture formalism based on quantum instruments. For party k−1k-10, a quantum instrument is a collection k−1k-11 of completely positive trace-non-increasing maps such that k−1k-12 is completely positive and trace-preserving. In the sequential compiled model, parties act in the order k−1k-13, with the last party k−1k-14 represented by POVM effects k−1k-15, and earlier parties represented by instrument maps transforming later parties’ operators (Baroni et al., 29 Sep 2025).

Operationally non-signaling for party k−1k-16 means that the marginal channel is independent of the question:

k−1k-17

This is the sequential analogue of the non-signaling condition that the compiler seeks to enforce computationally.

At hierarchy level k−1k-18, one defines, for each layer k−1k-19, a universal xkx_k0-algebra xkx_k1 generated by symbols xkx_k2 satisfying projective measurement relations and causal non-signaling completeness relations for all prefixes. Sequential xkx_k3-homomorphisms

xkx_k4

encode ordered instrument application. Let xkx_k5 be the set of words of degree at most xkx_k6. The level-xkx_k7 moment matrix xkx_k8 is indexed by xkx_k9 and defined by a positive linear functional VV0 via

VV1

Its entries VV2 are the correlations VV3, and the objective function is the game payoff.

The VV4-partite sequential NPA SDP maximizes

VV5

subject to three classes of constraints: positive semidefiniteness and normalization, Hankel consistency, and operationally non-signaling identities at every layer VV6. The hierarchy is strictly feasible at every level and complete with respect to VV7-partite commuting-observable strategies, equivalently operationally non-signaling sequential strategies. Its values satisfy VV8 as VV9 (Baroni et al., 29 Sep 2025).

A further structural feature is the flatness criterion. A game admits a flat optimal solution to the level-(x⃗,a⃗)(\vec{x},\vec{a})0 hierarchy if and only if it admits a finite-dimensional optimal quantum strategy; in that case there exists (x⃗,a⃗)(\vec{x},\vec{a})1 such that (x⃗,a⃗)(\vec{x},\vec{a})2. This criterion is what allows the general (x⃗,a⃗)(\vec{x},\vec{a})3 bound to collapse to the sharper (x⃗,a⃗)(\vec{x},\vec{a})4 bound in the finite-dimensional regime.

4. Pseudo-solutions, geometric regularization, and proof architecture

For an efficient compiled strategy (x⃗,a⃗)(\vec{x},\vec{a})5, the associated algebraic Heisenberg-picture state (x⃗,a⃗)(\vec{x},\vec{a})6 on (x⃗,a⃗)(\vec{x},\vec{a})7 defines a “pseudo-solution” (x⃗,a⃗)(\vec{x},\vec{a})8 with entries

(x⃗,a⃗)(\vec{x},\vec{a})9

This matrix is positive semidefinite and normalized, but it satisfies the non-signaling constraints only weakly: for each party GG00 and all test polynomials GG01 of total degree at most GG02, the violation is bounded by a negligible function of GG03 (Baroni et al., 29 Sep 2025).

To aggregate all such violations, the analysis introduces a linear constraint-testing map

GG04

which stacks the Hankel equalities and all operationally non-signaling constraints. Feasibility is equivalent to belonging to GG05, and the pseudo-solution satisfies

GG06

The conversion from pseudo-solution to feasible hierarchy point proceeds by a three-step geometric decomposition.

First, one projects onto the affine constraint subspace:

GG07

and defines

GG08

This enforces all linear constraints exactly, with operator-norm loss controlled by GG09 and the constraint-violation norm.

Second, one restores positivity by strict feasibility. If GG10 is a strictly feasible point with minimum eigenvalue GG11, and GG12, then one forms the convex mixture

GG13

Weyl’s inequality and the lower bound on the smallest eigenvalue imply GG14.

Third, one renormalizes:

GG15

All non-normalization constraints are homogeneous and therefore preserved, while the normalization error produces only an additional negligible loss.

The payoff is linear in the moment matrix entries, so operator-norm closeness between GG16 and the feasible GG17 translates directly into a soundness bound:

GG18

If flatness holds at some finite level, the same proof yields

GG19

(Baroni et al., 29 Sep 2025).

5. Parameters, efficiency, and scope of applicability

The negligible slack in the quantitative soundness bound is computational rather than information-theoretic. It depends on the verifier’s computational security parameter GG20, the QHE scheme’s semantic security and correctness for the required homomorphic circuit depth, the ciphertext length, the evaluation noise budget, the alphabet sizes GG21 and GG22, the number of parties GG23, the number of rounds GG24, and the hierarchy truncation level GG25 (Baroni et al., 29 Sep 2025).

The level-GG26 SDP grows with GG27, GG28, GG29, and GG30 through the word sets GG31. The paper notes that low levels can already be numerically tractable, and that strict feasibility guarantees robust primal solutions. On the protocol side, compiling a GG32-prover game produces GG33 sequential rounds; the first GG34 rounds involve QHE ciphertexts. Communication per round is GG35 bits for indices, plus the quantum or classical ciphertext overhead determined by the QHE scheme. The verifier’s time is dominated by GG36 operations and sampling from GG37, while the prover’s time is quantum polynomial time with homomorphic evaluation depth matching the game’s per-round computation.

The framework is especially motivated by multipartite nonlocality, which exhibits phenomena with no bipartite analogue. The GHZ game is singled out as an example: because GG38 while GG39, the quantitative finite-dimensional bound becomes

GG40

More generally, increasing GG41 drives the negligible slack downward, while increasing GG42 tightens GG43 toward GG44.

The principal limitations are equally explicit. Quantitative soundness relies on the underlying QHE assumptions and on the efficiency of the prover strategy. The hierarchy-based bound depends on the chosen truncation level GG45, and achieving the sharper GG46 certificate requires flatness, hence finite-dimensional optimality. The growth of the word sets constrains practical SDP sizes, and numerical solvers may return convex mixtures even though strict feasibility and a finite-level stopping criterion are available (Baroni et al., 29 Sep 2025).

6. Terminological ambiguity and adjacent uses

A recurrent source of confusion is that unrelated technical explainers also use the label “KLVY Compiler.” One such use refers to “CompilerKV,” described as a compiler-like framework for risk-adaptive KV cache retention under tight memory budgets in long-context LLMs; its core artifacts are a Head Heterogeneity Table and a Risk-Adaptive Threshold Gating table learned offline and deployed as lookup tables during prefill-only compression (Yang et al., 9 Feb 2026).

Another unrelated use applies the label to the Calyx compiler, an open-source intermediate language and compiler infrastructure for accelerator generators. Calyx employs a split representation consisting of a hardware-like structural IR and a software-like control IR, lowers control constructs to finite-state machines, and emits synthesizable hardware descriptions (Nigam et al., 2021).

These systems belong to different research areas—respectively long-context LLM inference and hardware compilation—and are not the KLVY compiler of compiled nonlocal games in the sense of Kalai–Lee–Vidick–Yuen. A plausible implication is that the term should be interpreted through context: in quantum cryptography and nonlocal-game compilation, it denotes the QHE-based single-device compiler analyzed via sequential NPA methods; in the other two cases, it is a secondary label attached to otherwise distinct systems.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to KLVY Compiler.