Neural Importance Resampling (NIR)
- Neural Importance Resampling (NIR) is a sampling strategy that uses two networks—a primary neural quantum state and an autoregressive proposal—to generate target-like samples.
- The method replaces direct sampling by drawing candidates from the proposal network and correcting mismatches with importance weights, ensuring accurate approximation of the wave function distribution.
- Empirical results indicate that NIR improves stability and sampling efficiency in challenging regimes such as the 2D transverse-field Ising model, outperforming conventional MCMC methods.
Neural Importance Resampling (NIR) is a sampling strategy for neural quantum states (NQS) that combines importance resampling with a separately trained autoregressive proposal network, so that variational Monte Carlo can sample from the target distribution without forcing the NQS itself to be autoregressive (Ledinauskas et al., 28 Jul 2025). It is designed for settings in which Markov chain Monte Carlo (MCMC) mixes slowly and direct autoregressive NQS impose undesirable architectural constraints, especially for symmetry-aware and determinant-based multi-state ansätze. The acronym is not unique: in medical imaging, “NIR” also denotes “Neuron Incidence Redistribution,” a fairness regularizer unrelated to sampling or resampling (Shoby et al., 19 May 2026).
1. Definition and problem domain
In NQS-based variational Monte Carlo, the central computational task is repeated sampling from the probability law induced by the current wave function. For a single-state ansatz , where is a basis configuration, the required sampling distribution is
NIR replaces direct sampling from this distribution by a two-network scheme: the primary NQS represents the wave function, while an auxiliary autoregressive model proposes configurations that are then corrected by importance resampling. The method is therefore a learned sampling wrapper around an unrestricted NQS, not a restriction on the wave-function parameterization itself (Ledinauskas et al., 28 Jul 2025).
The immediate motivation is architectural decoupling. Standard MCMC is asymptotically correct but can suffer from slow mixing, autocorrelation, equilibration problems, local trapping, and dependence on hand-designed proposals. Autoregressive NQS avoid MCMC by exact ancestral sampling, but they enforce a sequential factorization of the variational ansatz and make symmetry enforcement, global constraints, and determinant-based multi-state constructions harder. NIR is explicitly presented as a way to retain direct neural sampling while leaving the NQS architecture unrestricted (Ledinauskas et al., 28 Jul 2025).
2. Motivation from single-state and multi-state neural quantum states
The single-state target law is the usual . The multi-state setting is more demanding and is central to the method’s motivation. For states, the paper considers a determinant construction
with corresponding target distribution
By construction this law is permutation-invariant in the order of the configurations. Sampling from it is difficult for both local MCMC and direct autoregressive NQS, even when each constituent single-state network is itself autoregressive (Ledinauskas et al., 28 Jul 2025).
This difficulty is especially acute in sharply multimodal regimes. The paper emphasizes the ferromagnetic phase of the two-dimensional transverse-field Ising model, where dominant configurations can be far apart in configuration space. A local Markov chain then mixes poorly, whereas a learned autoregressive proposal can generate configurations in distinct modes and the resampling step can correct the residual proposal mismatch. This suggests that NIR is best understood as a response to a specific bottleneck of variational NQS algorithms: sampling, rather than wave-function evaluation, becomes the limiting factor in difficult many-body regimes (Ledinauskas et al., 28 Jul 2025).
3. Algorithmic structure and correctness
NIR introduces a separate autoregressive proposal model
0
with its own parameters 1. For a sampling batch, one first draws a pool of 2 candidates
3
Each candidate is assigned an importance weight
4
Because NQS targets are often known only up to normalization, the implementation uses unnormalized weights such as
5
for single-state NQS, or
6
for the multi-state determinant case. Final outputs are then resampled from the candidate pool with probabilities
7
If 8 target-like samples are required, the algorithm repeats this categorical draw 9 times (Ledinauskas et al., 28 Jul 2025).
The paper notes that plain importance sampling with self-normalized estimators is an alternative: 0 It nevertheless adopts resampling for implementation reasons: once resampled configurations are produced, the rest of an existing VMC code can treat them approximately as direct target draws, so downstream local estimators, energy calculations, and parameter gradients need no additional reweighting logic. In this form NIR has no chain state, no warmup, no thinning, and no serial dependence between successive samples (Ledinauskas et al., 28 Jul 2025).
The correctness argument is the standard one for importance resampling. If 1 whenever 2, then weighting by 3 corrects proposal mismatch, and as 4 the empirical weighted measure converges to the target measure. The paper uses the term “unbiased” to indicate that NIR does not impose architectural bias on the NQS and uses exact proposal correction through importance weights, but it also notes that finite-5 resampling is only asymptotically exact rather than exactly unbiased for all nonlinear estimators (Ledinauskas et al., 28 Jul 2025).
4. Proposal network, online adaptation, and overlap control
The proposal is an autoregressive Transformer that outputs probabilities directly rather than amplitudes. Each site value is embedded, positional embeddings are added, causal masking is used, and the input sequence is shifted by prepending a learnable token and dropping the last token so that prediction at site 6 depends only on previous sites. In the multi-state determinant setting, the proposal acts on tuples 7, and proposal training randomly permutes the order of the 8 states so that the model learns the permutation invariance of the determinant target (Ledinauskas et al., 28 Jul 2025).
Proposal training is online and adaptive because the target distribution changes as the NQS evolves. The paper considers both forward and backward KL objectives,
9
with gradients
0
The implemented method uses the forward KL. The stated reason is that forward KL is mean-seeking and penalizes missing target support, which is aligned with the requirement 1 whenever 2. Backward KL was easier to optimize but tended to produce mode collapse, with some high-probability target regions assigned very small proposal mass and thus becoming effectively unrecoverable by resampling (Ledinauskas et al., 28 Jul 2025).
To monitor overlap, the paper experimented with effective sample size diagnostics but found a simpler statistic more useful: the standard deviation of
3
In the ideal case this quantity is constant across samples, so the standard deviation is zero. NIR defines a threshold 4; when the observed standard deviation exceeds that threshold, the proposal network is retrained until overlap improves again. This makes the proposal an amortized but nonstationary sampler that tracks the current NQS rather than a frozen auxiliary model (Ledinauskas et al., 28 Jul 2025).
5. Integration into variational Monte Carlo and empirical performance
Within VMC, NIR simply supplies the samples needed for local estimators and gradients. For an operator 5, the local estimator is
6
and observable expectations are estimated by averages over samples distributed according to 7. For the energy gradient with respect to variational parameters,
8
NIR contributes only by providing the sampling mechanism. Because the implementation uses resampled target-like configurations rather than explicit downstream importance weights, existing VMC code can remain largely unchanged (Ledinauskas et al., 28 Jul 2025).
The experiments focus on the two-dimensional transverse-field Ising model
9
Most calculations use an 0 lattice with open boundaries. The multi-state ansatz searches for the three lowest-energy states using a determinant construction with 1. Each constituent NQS is a 4-layer MLP of width 2 with layer normalization and GELU activations. The proposal is a Transformer with embedding dimension 3, four attention heads, and four Transformer layers. Both NQS and proposal are optimized with Adam; the NQS additionally uses minSR. The batch size is 4, and total NQS training runs for 5 steps (Ledinauskas et al., 28 Jul 2025).
The principal sampler comparison is against MCMC in the deep ferromagnetic regime 6. On 7 and 8 lattices, both samplers perform similarly. On the 9 lattice, MCMC becomes highly unstable and often gets trapped in an excited state with energy far above the sum of the three lowest levels, whereas NIR remains stable. Against DMRG with bond dimension 0, NQS+NIR agrees well on the absolute energy scale across 1, captures the closing and reopening of the gap for 2, matches DMRG to numerical precision in the ferromagnetic regime, and is described as most advantageous near the phase-transition region before that advantage diminishes again in the easier paramagnetic regime (Ledinauskas et al., 28 Jul 2025).
6. Conceptual position, adjacent usages, and limitations
NIR occupies a specific place among learned sampling and resampling methods. In particle filtering, neural resampling has meant a differentiable set-to-set particle transformer that maps weighted particles to equally weighted particles; that method is a learned transport-style resampler, not classical importance resampling over NQS configurations (Zhu et al., 2020). In off-policy reinforcement learning, “importance resampling” denotes replay sampling proportional to policy-ratio weights followed by ordinary updates, again a distinct use of resampling from the NQS setting (Schlegel et al., 2019). In rendering, several neural methods learn proposals or warps rather than resample candidate pools, including primary-sample-space warping (Zheng et al., 2018), many-light proposal learning (Figueiredo et al., 16 May 2025), and neural BRDF sampling by reparameterization (Wu et al., 13 May 2025). These comparisons suggest that the distinctive feature of NIR in the NQS sense is not merely that it is neural or that it uses resampling, but that it uses a separately trained autoregressive proposal to correct sampling for an unrestricted variational wave function.
The limitations are equally specific. NIR depends critically on sufficient proposal–target overlap; if 3 misses important regions of 4, the weights become extremely uneven and resampling degenerates. Proposal retraining is therefore an additional moving part and a genuine computational overhead. The threshold 5, batch size, proposal architecture, and KL objective matter in practice. The paper reports that forward KL was more robust than backward KL because backward KL became mode-seeking and collapsed onto only part of the target support. More broadly, NIR is presented as a practical sampling method, not as a universal cure: its empirical success relies on maintaining a good amortized proposal throughout VMC optimization (Ledinauskas et al., 28 Jul 2025).
A further source of ambiguity is terminological. The same acronym appears in unrelated domains, most notably “Neuron Incidence Redistribution” in fairness-aware medical image classification, where NIR denotes a regularization term on penultimate-layer activations rather than any form of importance sampling or resampling (Shoby et al., 19 May 2026). For that reason, the unqualified term “NIR” is domain-sensitive. In the NQS literature, however, it refers specifically to the learned proposal-plus-resampling strategy introduced for variational many-body quantum simulation (Ledinauskas et al., 28 Jul 2025).