Neural quantum states store a many-body wavefunction as a neural network instead of a list of $2^n$ numbers. The autoregressive variety, which generates a spin configuration one site at a time the way a language model generates text, sidesteps the exponential memory cost of classical quantum simulation and can be sampled exactly. It pays for this in time. Every sample needs one sequential network call per lattice site. For convolutional models such as those in ANTN, each call is a full pass over the lattice, and the paper itself names this linear-in-sites sampling cost as the open bottleneck.
This proposal borrows speculative decoding from language modeling. A cheap draft model proposes several spins at once, and the expensive target model checks all of them in one parallel pass. The twist is that the natural cheap draft "tokenizes" the lattice differently from the target. It emits whole 2×2 plaquettes of spins, so each prediction is a 16-way choice, while the target emits one spin at a time. That is exactly the tokenizer-mismatch problem studied for heterogeneous language models. The central claim is that the cross-tokenizer theory built for text, meaning exact marginalization to a shared atomic unit plus the idea of nested tokenizations, turns this mismatch from an obstacle into a design rule. The rule says when draft and target can be combined with exact, unbiased samples, and at what cost.
Core Claim
We treat a 2D spin lattice read in some site order as the "byte string." We treat any grouping of sites into patches as a "tokenizer," with patches chosen as clusters of the Hamiltonian's interaction graph. Under these definitions, speculative sampling between a patch-level draft and a site-level target is exact and cheap whenever the draft tokenization is nested in the target order. Nested means every draft patch occupies a contiguous block of the target's site ordering.
When the tokenization is nested, three steps are exact. The draft's patch distribution collapses to per-spin conditionals by summing over at most $2^p$ patch completions, where $p$ is the patch size. The target scores all drafted spins in one masked forward pass. After a rejection partway through a patch, the draft re-conditions on the fixed spins by restricting and renormalizing its patch distribution.
When the tokenization is not nested, the draft's conditional in target order requires a sum that grows exponentially with lattice width. A 2×2 plaquette read in plain row-by-row (raster) order straddles two rows, so plain raster order is not nested with plaquettes. The prediction is therefore that choosing the target's site ordering to be plaquette-major is what makes cross-granularity drafting pay off.
The expected gain follows from the standard speculative sampling analysis. With per-site acceptance probability $\alpha = 1 - \mathrm{TV}(p_{\text{target}}, q_{\text{draft}})$, where TV is total variation distance between the two conditionals, and $\gamma$ drafted sites per round, the expected number of sites committed per target pass is
$$ \mathbb{E}[\text{sites per target pass}] = \frac{1-\alpha^{\gamma+1}}{1-\alpha}. $$
Speedup therefore hinges on whether a tiny plaquette-level draft can match the target's per-spin conditionals closely on frustrated lattices. That is an empirical question the experiments answer directly.
How This Relates to Prior Work
The cross-tokenizer literature supplies the method.
- Exact atomic marginalization. Exact Byte-Level Probabilities and ByteSampler recover exact byte-level distributions from subword models by enumerating the token sequences consistent with a byte string. In text this enumeration is the hard part. On a lattice with a fixed-length patch tokenizer each spin string has a unique cover, so the same marginalization reduces to a $2^p$ sum. The "prompt boundary problem," a prefix ending mid-token, becomes a trivial renormalization.
- Nested tokenization. Lossless Vocabulary Reduction introduced nested tokenization to map one model's distribution losslessly onto a shared vocabulary. We reuse nestedness in a different role: it determines whether verification across granularities is exact and polynomial, and it therefore dictates the target's site ordering.
- Distillation. ACTD showed that re-tokenizing a teacher's full distribution leaks long-tail noise into a student. Under nested tokenization the target's probability of a whole plaquette is an exact product of its conditionals. Distilling the draft thus needs no anchor heuristics, and we test whether that exactness matters.
- Speculative decoding under mismatch. Cactus relaxes speculative acceptance to tolerate draft–target mismatch in text. We deliberately do not relax acceptance, because variational Monte Carlo energy gradients require unbiased samples from $|\psi|^2$. A Cactus-style relaxed rule is used only as a probe of how much bias buys how much speed.
The quantum-simulation literature motivates and constrains the proposal.
- The memory wall. BMQSim pushes exact state-vector simulation to 47 qubits with compression and SSD spilling. State of practice on GPU simulation shows performance collapsing once states exceed cache at 13–14 qubits. Both confirm that exact amplitudes are unavailable at the lattice sizes of interest.
- The accuracy ceiling. ANTN shows that an autoregressive network combined with a small tensor network beats a much larger matrix product state on frustrated 2D Heisenberg models. The remaining cost is sampling time, not memory.
- Why the patches are graph clusters. Graph-based quantum modeling enters as the design lens for patch shapes, not as the core mechanism. GTranQEM and QEM-Bench argue that quantum correlations are poorly captured by strictly local message passing over a graph. We take the opposite, cheap bet for the draft: a 2×2 plaquette contains both nearest-neighbor ($J_1$) and diagonal ($J_2$) bonds. A 16-way softmax over it captures the strongest local correlations exactly. The target remains free to model everything else.
Nothing in the file connects tokenizer theory to neural quantum states. The closest cited ideas, ANTN's sequential sampler and Cactus's mismatched drafts, each have only half of the picture.
Research Program
The work has four parts.
1. Nestedness theorem and algorithm. We formalize patch tokenizations of a lattice ordering and prove three things:
- Under nestedness, speculative sampling with per-spin acceptance returns samples distributed exactly as the target, at draft overhead $O(2^p)$ per site.
- Under non-nestedness, draft conditionals in target order require marginalizing over partially revealed patches, at a cost exponential in the number of straddled patches.
- For non-nested pairs, verifying at patch granularity instead is exact but costs up to $2^p$ batched target evaluations on every rejection.
2. Targets. We train target states by variational Monte Carlo on the $J_1$-$J_2$ Heisenberg model. Two target families are used because their sampling costs differ:
- PixelCNN/ANTN-style models, where each autoregressive step is a full convolutional pass, so sampling costs about $n$ times one evaluation.
- Transformers with cached keys and values, where sampling costs about one evaluation in arithmetic but remains sequential.
Each target family is trained under two orderings, raster and plaquette-major, so the effect of nestedness can be isolated.
3. Drafts. Drafts are small autoregressive models over plaquette tokens. They are distilled from the target on target samples using the exact patch-level KL divergence, and they are periodically refreshed as the target changes during optimization.
4. Integration into optimization. We plug the sampler into variational Monte Carlo and measure energy reached against wall-clock time, not just sampler throughput.
Baselines
Plain autoregressive sampling (do-nothing reference). The target is sampled site by site with no draft, as in ANTN. It is exact by construction, so every other method is measured as speedup relative to it at the same sample count and GPU memory. For its sampling throughput, no reported result found on Lacuna for autoregressive NQS sampling wall-clock or throughput. The only quantitative anchor the file gives is ANTN's parameter efficiency, ~1% of the parameters of a bond-dimension-1024 MPS at bond dimension 8. We therefore measure this reference ourselves on identical hardware and batch sizes.
Independent Metropolis–Hastings with the draft as proposal (strongest competitor). The draft samples a full configuration, and the target accepts it with the usual likelihood ratio. This is the strongest competitor because it uses the same cheap draft, needs only one parallel target pass per proposal, and is asymptotically exact. We give it the same draft, the same target, and the same wall-clock budget. We tune its thinning and chain count with the same budget we spend tuning $\gamma$. Beating it means lower bias in energy and correlation estimates, plus a higher effective sample size per second at 10×10 and 12×12.
Local spin-flip Markov chain Monte Carlo on the target. This is the traditional sampler. It is run with tuned sweep length and burn-in, and compared on effective samples per second.
Same-granularity draft (ablation). A tiny per-site draft isolates whether cross-granularity drafting matters. It is matched to the plaquette draft in parameters and distillation budget. If it matches the plaquette draft, the tokenization story is unnecessary.
Non-nested draft (ablation). A raster-order target is paired with plaquette drafts, and patch-level verification is used. This isolates the nestedness ingredient.
Relaxed acceptance (bias probe). A Cactus-style relaxed acceptance rule quantifies how much bias the exact rule avoids and at what speed cost.
Why not just…?
Why not just give the target itself plaquette tokens, so it needs a quarter of the steps? This is a real threat. A 2×2-patch target cuts sequential steps fourfold with no draft at all. We will retrain targets at patch sizes 1, 2 and 4 with equal parameters and optimization budget, and report the energy each reaches. If patched targets match site-level energies on frustrated $J_2/J_1 \approx 0.5$ lattices, the draft buys nothing beyond what retokenizing the target buys. We would then report that as the finding. The case for speculation is that it composes with any target, including a patched one drafting at yet coarser patches, and never changes the target's variational family.
Why not just use independent Metropolis–Hastings with the draft as a proposal? Its acceptance probability is a product of per-site ratios across all $n$ sites, so it should decay roughly exponentially with lattice size. Speculative sampling, by contrast, pays for a mismatch only locally, by resampling one spin. We will plot acceptance and effective sample size against lattice size (4×4 through 12×12) for both methods using the same draft. If Metropolis–Hastings acceptance stays high at 12×12, the simpler method wins, and we will say so.
Why not just batch more samples in parallel, since GPUs parallelize across samples? For transformer targets with cached attention, sampling arithmetic is already about one forward pass, so speculation may only reduce latency and kernel launches. We expect little throughput gain there once batches are large. For convolutional targets, which is how ANTN is built, each step recomputes the whole lattice, so sampling arithmetic is $n$ times evaluation and batching cannot remove that factor. We report throughput versus batch size for both target families and locate the crossover. The GPU memory limits that cap batch size, the same pressure behind the simulation memory wall, determine which regime practical runs fall into.
Proposed Experiments
Exactness is checked first, on 4×4 and 5×4 lattices, where the target's full distribution over $2^{16}$ and $2^{20}$ configurations can be enumerated. We compute KL and total variation between empirical sample histograms and the exact target distribution. Speculative, plain, and Metropolis–Hastings samplers are compared at equal sample counts. The speculative sampler must be statistically indistinguishable from plain sampling, and the relaxed-acceptance probe should show measurable bias.
Speed and accuracy are then measured on the $J_1$-$J_2$ lattices used by ANTN: 8×8, 10×10 and 12×12, at $J_2/J_1 \in \{0, 0.5\}$. We report:
- target passes per committed site;
- per-site acceptance $\alpha$ against the prediction from the displayed formula;
- effective samples per second;
- variational energy versus wall-clock time over full optimization runs.
The success criterion is at least a 2× reduction in wall-clock time to reach the plain sampler's final energy on 10×10 at $J_2/J_1=0.5$ with the convolutional target, with no energy degradation. The decisive checks are three:
- The nested (plaquette-major) configuration must beat the non-nested raster configuration.
- The plaquette draft must beat the same-granularity draft.
- Speculative sampling must beat independent Metropolis–Hastings on effective sample size at 12×12.
If any of these fails, the corresponding ingredient is not doing the work claimed.
References
- ANTN: Bridging Autoregressive Neural Networks and Tensor Networks for Quantum Many-Body Simulation
- Exact Byte-Level Probabilities from Tokenized Language Models for FIM-Tasks and Model Ensembles
- Sampling from Your Language Model One Byte at a Time
- Lossless Vocabulary Reduction for Auto-Regressive Language Models
- ACTD: Anchor-Based Cross-Tokenizer Distillation with Residual Regularization
- Cactus: Accelerating Auto-Regressive Decoding with Constrained Acceptance Speculative Sampling
- BMQSim: Overcoming Memory Constraints in Quantum Circuit Simulation with a High-Fidelity Compression Framework
- State of practice: Evaluating GPU performance of state vector and tensor network methods
- Beyond Circuit Connections: A Non-Message Passing Graph Transformer Approach for Quantum Error Mitigation
- QEM-Bench: Benchmarking Learning-based Quantum Error Mitigation and QEMFormer as a Multi-ranged Context Learning Baseline