GPV Trapdoor Sampling in Lattices
- GPV trapdoor sampling is a lattice-based primitive that uses a secret short basis to generate discrete Gaussian samples for hash-and-sign signatures and related trapdoor constructions.
- The method combines classical Klein sampling, MCMC convergence improvements, and quantum rejection sampling to achieve near-ideal lattice Gaussian distributions.
- Its advancements reduce runtime and improve security benchmarks in lattice cryptography and dual lattice attacks, balancing classical and quantum performance.
GPV trapdoor sampling is the lattice-sampling primitive underlying the Gentry–Peikert–Vaikuntanathan framework for hash-and-sign signatures and related trapdoor constructions. In this setting, a trapdoor is a short basis of a lattice , while the public description is a hard basis for the same lattice. Given a message , signing hashes to a lattice coset shift and samples a short vector from the discrete Gaussian . The central requirement is distributional: the output must look like a pure lattice-Gaussian sample independent of which short basis was used, because the GPV security reduction depends on basis-independence and on the Gaussian width parameter (Ling et al., 24 May 2026). Subsequent work has treated the sampling step itself as the main algorithmic object, first via Markov chain Monte Carlo methods (Wang et al., 2017) and, more recently, via quantum rejection sampling for a quadratic speedup in the dominant complexity term (Ling et al., 24 May 2026).
1. Lattice-Gaussian trapdoor sampling in the GPV framework
In the GPV framework, a trapdoor for a lattice is a short basis of a lattice , together with a corresponding hard public basis for the same lattice. In GPV signatures, key generation publishes the hard basis and keeps the short basis secret. Signing hashes a message to a lattice coset, represented by a shift 0, and samples from the discrete Gaussian over that coset,
1
For 2, the target distribution is
3
Security requires that signatures be distributed as pure lattice-Gaussian samples and therefore not reveal the secret basis. In the normalization used in the quantum treatment, GPV security reduces to ISIS with approximation factor 4 (Ling et al., 24 May 2026).
A closely related setting is sampling on dual 5-ary lattices. For 6,
7
and
8
Formally,
9
This dual-lattice formulation is important because the same lattice-Gaussian primitive appears both in GPV trapdoor sampling and in dual LWE attacks (Ling et al., 24 May 2026).
A second notation appears in the MCMC literature. There, the Gaussian parameter is written 0 rather than 1, and the discrete Gaussian over 2 centered at 3 is
4
In that normalization, the GPV signing reduction is stated with approximation factor 5 (Wang et al., 2017).
2. Classical samplers and the spectral-gap bottleneck
The classical starting point is Klein’s algorithm, a randomized nearest-plane procedure. Writing 6 with 7 orthonormal and 8 upper triangular, and setting 9, one defines
0
Klein’s proposal distribution over coefficient vectors 1 is
2
GPV uses this distribution as an efficient approximate sampler when the Gaussian width is sufficiently larger than the Gram–Schmidt norms (Ling et al., 24 May 2026).
Wang and Ling recast trapdoor sampling as Markov chain Monte Carlo, using Klein’s distribution as an independent Metropolis–Hastings proposal. Their independent MHK chain targets the exact lattice Gaussian and admits an explicit spectral-gap analysis. They prove a uniform lower bound
3
where
4
This yields
5
and therefore
6
In the trapdoor setting, the overall effort is thus governed by 7 (Wang et al., 2017).
The same bottleneck is expressed in the later quantum treatment by a parameter 8, with running time approximately
9
where 0 is essentially the inverse spectral gap up to polynomial factors. If
1
then a basis-independent upper bound is
2
with
3
This identifies lattice Gaussian sampling as the dominant runtime bottleneck in GPV trapdoor sampling and in dual attacks (Ling et al., 24 May 2026).
The MCMC formulation is important because it relaxes the direct-sampling threshold. Wang and Ling emphasize a security–complexity trade-off: instead of requiring 4 as in the classical GPV/Klein regime, one can target smaller 5 and pay a moderate number of MCMC iterations. For 6, they report 7, so for 8, 9; they interpret this as roughly 0 iterations to reduce the parameter from 1 to 2 (Wang et al., 2017).
3. Quantum rejection sampling and the truncated Klein construction
The quantum acceleration is built on quantum rejection sampling. Given a proposal distribution 3 and a target 4 on a finite set 5, if there exists 6 such that
7
then classical rejection sampling uses 8 proposals per accepted sample. In the quantum setting, if one has a unitary 9 preparing
0
and a controlled rotation encoding
1
then amplitude amplification prepares the target q-sample with query complexity
2
The technical obstacle is that lattice Gaussians have infinite support, so the quantum construction uses truncation. For
3
the truncated target and truncated Klein proposal are
4
The key observation is a pointwise domination inequality: 5 where
6
This is obtained from the one-dimensional bound
7
so Wang–Ling’s lower-bound machinery becomes exactly the domination condition needed by quantum rejection sampling (Ling et al., 24 May 2026).
The truncation is chosen so that the truncated Gaussian is negligibly close to the full Gaussian. If
8
then the Gaussian tail outside the ball is at most 9 times the total mass. Writing
0
one gets
1
The same argument extends by a union bound to multiple independent samples (Ling et al., 24 May 2026).
4. Complexity consequences for signing and dual-lattice sampling
With the truncated proposal 2, the target 3, a Klein oracle
4
and the controlled rotation
5
quantum rejection sampling prepares
6
using
7
queries. By contrast, the classical IMHK cost for a single sample is roughly 8. When 9 is large enough that almost all mass lies inside the truncation ball, 0, and the dependence on the hard sampling term improves from 1 to 2 (Ling et al., 24 May 2026).
In the worst-case Wang–Ling bound, the same transition appears as
3
The paper gives a concrete FALCON-512 example with dimension 4 and 5. For 6, corresponding to 7, the classical bound is approximately 8, while the quantum bound is approximately 9 (Ling et al., 24 May 2026).
The same sampler modifies modern dual LWE attack cost estimates because those attacks also require lattice-Gaussian sampling on a dual 0-ary lattice after BKZ reduction. Using the same parameters as Pouly–Shen, the QRS-based replacement reduces the overall attack cost from 1 to 2 bits for Kyber-512, from 3 to 4 bits for Kyber-768, and from 5 to 6 bits for Kyber-1024 without modulus switching. With modulus switching, the reported changes are 7 bits, 8 bits, and 9 bits, respectively. The measured quantity is the base-2 logarithm of the overall time (Ling et al., 24 May 2026).
These attack results do not change the definition of GPV trapdoor sampling, but they clarify its algorithmic status: lattice-Gaussian sampling is the shared primitive on both the constructive and the cryptanalytic sides.
5. Correctness, security, and comparison of sampling paradigms
The correctness condition in GPV is distributional rather than merely geometric. It is not enough to output a short preimage; the sampler must output a distribution negligibly close to the intended lattice Gaussian and independent of the particular trapdoor basis. The truncated quantum sampler preserves this property because the total variation distance between the full and truncated Gaussian can be made negligible by the tail bound, and the truncated distribution itself is sampled exactly by the QRS procedure (Ling et al., 24 May 2026).
This places three samplers in a clear hierarchy. Direct Klein sampling is efficient but only approximate, and its bias becomes problematic when the Gaussian width is too small relative to the Gram–Schmidt norms. Independent MHK sampling can converge to the exact target distribution, or an arbitrarily close approximation, even for smaller widths, but its cost is governed by the spectral-gap term 00 or 01. The QRS-based sampler uses the same Klein proposal but replaces mixing-time analysis by state preparation plus amplitude amplification, yielding an exact truncated target distribution with complexity dominated by 02 (Ling et al., 24 May 2026).
The MCMC literature also identifies a practical refinement: the independent multiple-try Metropolis–Klein algorithm. If 03 independent proposals are drawn at each step, the spectral-gap lower bound becomes
04
which is approximately 05 when 06 is small. This improves convergence by about a factor of 07 and supports parallel implementation, which Wang and Ling emphasize as beneficial for practical applications (Wang et al., 2017).
Several caveats remain explicit. The quantum work assumes coherent oracle access to a truncated Klein proposal distribution and to the controlled rotation; it analyzes query complexity rather than a complete low-level circuit. It also notes that if 08 is extremely close to the smoothing parameter, or if the dimension is very large, then 09 itself may be so small that even 10 remains large. Likewise, low-level leakage from approximate oracles or incomplete amplitude amplification is outside the theory model (Ling et al., 24 May 2026).
6. Related GPV-style preimage sampling beyond lattice Gaussians
Later work places GPV trapdoor sampling inside a broader theory of trapdoor preimage sampleable functions. In Wave, the GPV strategy is transferred to codes by replacing discrete Gaussians with the uniform distribution on vectors of prescribed Hamming weight. The public function is
11
and the trapdoor is a generalized 12-code structure. Domain sampling is justified by a variant of the leftover hash lemma, while rejection sampling is used to ensure that the trapdoor inverse output has the proper distribution, namely essentially uniform over all weight-13 preimages of a syndrome (Debris-Alazard et al., 2018).
Miranda develops the same GPV/FDH paradigm in the rank metric through the notion of an Average Trapdoor Preimage Sampleable Function. Its trapdoor is a subcode of a decodable code in a unique decoding regime, built by an Add-and-Remove construction. The signing algorithm samples a small number of uniform bits, solves an extended linear system, and then uses deterministic unique decoding. Proposition 5.4 states that conditioned on success the output is uniformly distributed over the solution set for the target syndrome, and the scheme is designed so that signatures do not leak information on the underlying trapdoor without using rejection sampling (Couvreur et al., 8 Oct 2025).
These code-based analogues do not replace lattice GPV sampling, but they show that the GPV principle is more general than discrete Gaussian generation alone. In lattices, the reference distribution is Gaussian over a coset; in Wave it is uniform over fixed-weight preimages; in Miranda it is uniform over rank-bounded preimages. This suggests a broader interpretation of GPV trapdoor sampling as the problem of efficiently generating trapdoor-independent samples from a high-entropy conditional distribution, with lattice Gaussian sampling as the Euclidean-metric instantiation most directly tied to SIS, ISIS, and dual 14-ary lattice techniques (Debris-Alazard et al., 2018, Couvreur et al., 8 Oct 2025).