Papers
Topics
Authors
Recent
Search
2000 character limit reached

Neural Importance Resampling (NIR)

Updated 7 July 2026
  • 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 pθ(s)ψθ(s)2p_\theta(s)\propto |\psi_\theta(s)|^2 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 ψθ(s)\psi_\theta(s), where ss is a basis configuration, the required sampling distribution is

pθ(s)=ψθ(s)2sψθ(s)2.p_\theta(s)=\frac{|\psi_\theta(s)|^2}{\sum_{s'}|\psi_\theta(s')|^2}.

NIR replaces direct sampling from this distribution by a two-network scheme: the primary NQS represents the wave function, while an auxiliary autoregressive model qϕq_\phi 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 pθ(s)ψθ(s)2p_\theta(s)\propto |\psi_\theta(s)|^2. The multi-state setting is more demanding and is central to the method’s motivation. For KK states, the paper considers a determinant construction

Ψ(s1,,sK)=det ⁣(ψ1(s1)ψK(s1)  ψ1(sK)ψK(sK)),\mathbf{\Psi}(s^1,\ldots,s^K)= \det\!\begin{pmatrix} \psi_1(s^1) & \cdots & \psi_K(s^1) \ \vdots & \ddots & \vdots \ \psi_1(s^K) & \cdots & \psi_K(s^K) \end{pmatrix},

with corresponding target distribution

p(s1,,sK)Ψ(s1,,sK)2.p(s^1,\ldots,s^K)\propto |\mathbf{\Psi}(s^1,\ldots,s^K)|^2.

By construction this law is permutation-invariant in the order of the KK 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

ψθ(s)\psi_\theta(s)0

with its own parameters ψθ(s)\psi_\theta(s)1. For a sampling batch, one first draws a pool of ψθ(s)\psi_\theta(s)2 candidates

ψθ(s)\psi_\theta(s)3

Each candidate is assigned an importance weight

ψθ(s)\psi_\theta(s)4

Because NQS targets are often known only up to normalization, the implementation uses unnormalized weights such as

ψθ(s)\psi_\theta(s)5

for single-state NQS, or

ψθ(s)\psi_\theta(s)6

for the multi-state determinant case. Final outputs are then resampled from the candidate pool with probabilities

ψθ(s)\psi_\theta(s)7

If ψθ(s)\psi_\theta(s)8 target-like samples are required, the algorithm repeats this categorical draw ψθ(s)\psi_\theta(s)9 times (Ledinauskas et al., 28 Jul 2025).

The paper notes that plain importance sampling with self-normalized estimators is an alternative: ss0 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 ss1 whenever ss2, then weighting by ss3 corrects proposal mismatch, and as ss4 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-ss5 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 ss6 depends only on previous sites. In the multi-state determinant setting, the proposal acts on tuples ss7, and proposal training randomly permutes the order of the ss8 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,

ss9

with gradients

pθ(s)=ψθ(s)2sψθ(s)2.p_\theta(s)=\frac{|\psi_\theta(s)|^2}{\sum_{s'}|\psi_\theta(s')|^2}.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 pθ(s)=ψθ(s)2sψθ(s)2.p_\theta(s)=\frac{|\psi_\theta(s)|^2}{\sum_{s'}|\psi_\theta(s')|^2}.1 whenever pθ(s)=ψθ(s)2sψθ(s)2.p_\theta(s)=\frac{|\psi_\theta(s)|^2}{\sum_{s'}|\psi_\theta(s')|^2}.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

pθ(s)=ψθ(s)2sψθ(s)2.p_\theta(s)=\frac{|\psi_\theta(s)|^2}{\sum_{s'}|\psi_\theta(s')|^2}.3

In the ideal case this quantity is constant across samples, so the standard deviation is zero. NIR defines a threshold pθ(s)=ψθ(s)2sψθ(s)2.p_\theta(s)=\frac{|\psi_\theta(s)|^2}{\sum_{s'}|\psi_\theta(s')|^2}.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 pθ(s)=ψθ(s)2sψθ(s)2.p_\theta(s)=\frac{|\psi_\theta(s)|^2}{\sum_{s'}|\psi_\theta(s')|^2}.5, the local estimator is

pθ(s)=ψθ(s)2sψθ(s)2.p_\theta(s)=\frac{|\psi_\theta(s)|^2}{\sum_{s'}|\psi_\theta(s')|^2}.6

and observable expectations are estimated by averages over samples distributed according to pθ(s)=ψθ(s)2sψθ(s)2.p_\theta(s)=\frac{|\psi_\theta(s)|^2}{\sum_{s'}|\psi_\theta(s')|^2}.7. For the energy gradient with respect to variational parameters,

pθ(s)=ψθ(s)2sψθ(s)2.p_\theta(s)=\frac{|\psi_\theta(s)|^2}{\sum_{s'}|\psi_\theta(s')|^2}.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

pθ(s)=ψθ(s)2sψθ(s)2.p_\theta(s)=\frac{|\psi_\theta(s)|^2}{\sum_{s'}|\psi_\theta(s')|^2}.9

Most calculations use an qϕq_\phi0 lattice with open boundaries. The multi-state ansatz searches for the three lowest-energy states using a determinant construction with qϕq_\phi1. Each constituent NQS is a 4-layer MLP of width qϕq_\phi2 with layer normalization and GELU activations. The proposal is a Transformer with embedding dimension qϕq_\phi3, four attention heads, and four Transformer layers. Both NQS and proposal are optimized with Adam; the NQS additionally uses minSR. The batch size is qϕq_\phi4, and total NQS training runs for qϕq_\phi5 steps (Ledinauskas et al., 28 Jul 2025).

The principal sampler comparison is against MCMC in the deep ferromagnetic regime qϕq_\phi6. On qϕq_\phi7 and qϕq_\phi8 lattices, both samplers perform similarly. On the qϕq_\phi9 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 pθ(s)ψθ(s)2p_\theta(s)\propto |\psi_\theta(s)|^20, NQS+NIR agrees well on the absolute energy scale across pθ(s)ψθ(s)2p_\theta(s)\propto |\psi_\theta(s)|^21, captures the closing and reopening of the gap for pθ(s)ψθ(s)2p_\theta(s)\propto |\psi_\theta(s)|^22, 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 pθ(s)ψθ(s)2p_\theta(s)\propto |\psi_\theta(s)|^23 misses important regions of pθ(s)ψθ(s)2p_\theta(s)\propto |\psi_\theta(s)|^24, the weights become extremely uneven and resampling degenerates. Proposal retraining is therefore an additional moving part and a genuine computational overhead. The threshold pθ(s)ψθ(s)2p_\theta(s)\propto |\psi_\theta(s)|^25, 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).

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 Neural Importance Resampling (NIR).