Changelog

Unreleased (0.0.2)

Added

  • Native PureRNGs continuation across sampling, adaptation, transitions, and resampling.
  • current_rng snapshots prepared streams.
  • Retain mapped coordinates and Jacobians during importance draws without recording adaptation or MCMC trials.
  • Optional save_logtargets=true retains sampling-coordinate target log densities without reevaluation.
  • Native fixed-length HMC transitions and Hamiltonian adaptive importance sampling.
  • Optional local marginal-width adaptation for LAIS and HAIS.
  • Batched value/gradient callbacks for HMC and first-order GRAMIS accelerator execution.
  • Native proposal moments and scale-factor access, with optional Gaussian conversion to Distributions.jl.
  • Native Pareto-smoothed importance sampling with tail diagnostics and separate smoothed results.
  • Fitted pairwise quadratic transport with weighted moment or cached-score fitting.
  • Pilot-fitted score control variates for scalar weighted expectations.

Changed

  • Sampling and retargeting use PureRNGs on every backend. An explicit Random.AbstractRNG supplies one seed for compatibility. Device transfer preserves the native stream without reseeding.
  • Require PureRNGs 0.0.3 for faster CPU Float32 normal fills.
  • resample_next replaces resample and returns draws and the continued generator.
  • Custom proposals implement PureRNGs.rand_next(rng, proposal), returning (sample, next_rng).
  • Document batch-target sample ordering, including proposal banks and AMIS round concatenation.

Fixed

  • Retain completed RNG draws when a generic proposal transform fails, including nested products and static MIS.
  • Respect explicit Reactant client and device selection during preparation and compiled operations.
  • Reuse compiled Reactant operations across changes to RNG keys and stream positions.
  • Preserve the inferred type of the continued RNG in CUDA resampling.
  • Fix accelerator AutoEnzyme gradients for reductions over sampled parameters.
  • Fix cold CUDA HMC execution with reduction-based target functions.

0.0.1

Initial feature set. Requires Julia 1.13 or later.

Added

  • Plain importance sampling and static multiple importance sampling with selectable weighting schemes.
  • AMIS, N-PMC, DM-PMC, GR-PMC, LR-PMC, APIS, CAIS, and LAIS.
  • First-order GRAMIS-CAIS with gradients and local covariance adaptation, distinct from the Hessian-based GRAMIS algorithm.
  • Spherical, diagonal, and factor Gaussian and Student-t proposals, uniform boxes, and independent Gamma and Laplace proposals.
  • Proposal banks, product proposals, and optional Distributions.jl integration. Adaptive support depends on the method and proposal family.
  • Scalar and batch log targets, target contexts, and DensityInterface and LogDensityProblems integration.
  • Named parameters and identity, interval, positive, softplus, and simplex transforms.
  • Explicit gradients and DifferentiationInterface-based CPU automatic differentiation.
  • Reusable prepared samplers, adapted proposals, and target replacement through retarget.
  • Weighted moments and functionals, log-normalizer estimates, weight ESS, resampling, and sample provenance.
  • Serial and threaded CPU execution, with explicit device transfer through MLDataDevices.
  • Optional CUDA, Metal, and Reactant execution. Supported methods, precision, and gradient routes vary by backend.
  • Tutorials, method guides, equation reproducers, and CPU/CUDA model comparisons with recorded environments and accuracy checks.
  • A density-ratio logo in SVG and PNG formats, used in the README and documentation.

The API is experimental. Backend and method restrictions are documented in the manual.