Amortised adaptive importance sampling

Arran Carter, Víctor Elvira, Esmeralda S. WhitammerarXiv 2026

TL;DR

This paper introduces Amortised Adaptive Importance Sampling (AAIS), a method that uses neural networks to "learn how to adapt" during the sampling process. By training on a family of related distributions, AAIS creates a sampler that can efficiently navigate new, complex targets at runtime without needing prior knowledge of their parameters.

What Problem Does This Paper Address?

Monte Carlo sampling is the workhorse of modern statistics and machine learning, used for everything from Bayesian inference to statistical mechanics. However, it’s often a "cold start" problem: every time you have a new target distribution, you have to start your sampler from scratch.

Adaptive Importance Sampling (AIS) tries to solve this by iteratively updating a "proposal" distribution to better match the target. The catch? Standard AIS uses fixed, hand-crafted rules for these updates (like simple moment matching). These rules are often "dumb"—they don't learn from experience across different problems. On the other hand, existing amortised samplers usually require explicit "conditioning" information (like the specific dataset used in a Bayesian model) to be known upfront.

The authors ask: Can we learn a smart adaptation rule that works for any target in a family, using only the information we gather while sampling?

Methods

The core innovation is replacing the hard-coded update rules of AIS with a learnt adaptation function ($u_\phi$), implemented as a lightweight neural network.

  1. The Loop: Like standard AIS, the algorithm draws samples, calculates weights, and evaluates the target's density and gradients.
  2. The "Brain": Instead of a fixed formula, these observations (samples, weights, gradients) are fed into a neural network. This network then predicts the parameters (means and variances) for the next iteration's proposal.
  3. Architecture: The authors use a permutation-invariant structure (similar to Deep Sets). This is crucial because it allows the sampler to work with any number of samples or proposal components at test time, regardless of what was used during training.
  4. Scale Equivariance: The model is designed to be scale-equivariant. This means if you stretch or shift your target distribution, the learned adaptation rule still works perfectly without needing re-tuning.
Figure 1: Amortisation of a proposal adaptation over a family of targets. Each row shows sequential adaptation of the importance sampling proposal in our implementation of amortised adaptive importance sampling. The samples and importance weights from each iteration’s proposal qt−1 are supplied to a neural network that predicts the parameters of the next iteration’s proposal qt. During training, the neural network is updated to minimise a divergence between all steps’ proposals and the target distribution p. Training is over many distributions from a family; once trained, the sampler can be used for new targets in the same family.

Datasets

The authors evaluated AAIS on several challenging synthetic and real-world statistical families:

  • Neal’s Funnel (5D to 50D): A notorious benchmark for samplers due to its "neck" region where the density is extremely concentrated.
  • Banana Distributions: Non-linear, curved distributions that test a sampler's ability to follow complex geometries.
  • Hierarchical Bayesian Models: A common real-world scenario (based on the "8-schools" problem) where one must infer parameters across multiple related groups.
  • Bayesian Linear Regression (BLR): Testing the ability to handle varying amounts of data and different feature correlations.

Key Insights and Ideas

  • Meta-Learning for Sampling: AAIS is essentially meta-learning. It doesn't just learn to sample one distribution; it learns the strategy for sampling a whole class of distributions.
  • Implicit Structure: Unlike many amortised methods, AAIS doesn't need to know the "labels" or "parameters" of the target family. It infers the structure implicitly by interacting with the density function at runtime.
  • Generalization is Possible: A sampler trained on one range of variances can still perform well on targets with much larger or smaller scales thanks to the scale-equivariant design.
  • Scalability: While traditional AIS methods often collapse in high dimensions (like the 50D Funnel), the learned rules in AAIS prove much more robust.

Key Results

AAIS consistently outperformed standard AIS baselines (like DM-PMC and GAPIS) across all metrics:

  • Better Fit: It achieved significantly lower Sliced 1-Wasserstein distances, meaning the final samples matched the true target much more closely.
  • Higher Efficiency: The Effective Sample Size (ESS) was often orders of magnitude higher than baselines in high-dimensional settings.
  • Accurate Integration: Errors in estimating the log-normalizing constant ($\log Z$) were drastically reduced. For the 50D Funnel, AAIS was the only method that provided a reliable estimate.
Figure 2: Samples generated by the final step proposal for each method for 50-dimensional funnel (top row) with N = 50 components in the proposal mixture, and 5-dimensional banana (bottom row) with N = 10 components in the proposal mixture, each projected into their first two coordinates.

As shown in the experimental tables, AAIS maintains high performance even as dimensionality increases, whereas baseline methods see their performance degrade rapidly.

Table 1: Experimental results for Funnel d = 5, 25, 50. We report the mean over 256 test targets from the family and (for AAIS) the std.dev. of this mean over 3 training seeds. The worst 5% quantile of the metric over the batch of targets is shown in parentheses. Best in green, second-best in blue.

Limitations and Future Work

  • Diagonal Covariance: The current implementation uses diagonal covariance matrices for the Gaussian mixtures to maintain stability. Moving to full-rank covariances could capture even more complex correlations but might be harder to train.
  • Training Requirement: You still need a "family" of distributions to train on. If your target is completely unique and unlike anything seen before, the benefits of amortisation might diminish.
  • Beyond AIS: The authors suggest that this principle—learning the adaptation rule from online information—could be extended to other iterative methods like Markov Chain Monte Carlo (MCMC).

Summary updated

BibTeX
@misc{carter2026amortised,
  author = {Arran Carter and Víctor Elvira and Esmeralda S. Whitammer},
  title = {{Amortised adaptive importance sampling}},
  year = {2026},
  eprint = {2610.16736},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.16736},
}
Figure