Authors: Andreas Burger, Malte Franke, Luka Mucko, Kjell Jorner, Alan Aspuru-Guzik
Organizations: University of Toronto NVIDIA Vector Institute Toronto, Canada · NVIDIA · ETH Zurich NCCR Catalysis Zurich, Switzerland · University of Toronto Vector Institute Toronto, Canada · University of Toronto NVIDIA Vector Institute Acceleration Consortium CIFAR Toronto, Canada
We introduce Grand Canonical Generators (GCG), a generative framework that extends Boltzmann generators to the grand canonical ensemble. We present two designs. The first conditions a variable-size generative model on the chemical potential, sampling particle number and configuration jointly. The second factorizes the grand canonical distribution into a particle-number distribution and the corresponding canonical Boltzmann density. This factorized formulation can use any existing Boltzmann generator for the canonical component, encodes the known linear chemical-potential dependence analytically, and yields a tractable likelihood that supports self-normalized importance sampling (SNIS). Empirically, GCG accurately reproduces grand canonical observables on a Lennard--Jones fluid and methane adsorption in a zeolite, demonstrating generalization across chemical potentials and correction via SNIS and grand canonical Monte Carlo.
Figures & tables
Figure 1: Grand Canonical Generators learn to sample from the μVT ensemble, which defines a distribution over both the particle number and geometries, conditioned on the chemical potential μ .
Figure 2: Lennard–Jones. Curves and bands show the mean and range over three training seeds.
Figure 3: Chemical-potential extrapolation. Mean and ±1 std over three training seeds.
Figure 4: Inference-time correction of Factorized Grand Canonical Generators on LJ with self-normalized importance sampling (top) and grand canonical Monte Carlo (bottom). Bands show 95% bootstrap intervals (200 resamples for self-normalized importance sampling; 2,000 for grand canonical Monte Carlo over five seeds).
Figure 5: Methane adsorption in MFI zeolite for a Factorized Grand Canonical Generators model, compared to grand canonical Monte Carlo.
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 6: One-coordinate marginals for the periodic ideal gas. Lines are the mean density over the three coordinate axes and bands are their range. Dashed is the analytic uniform density. Morph develops a sharp central peak at eβμ=1 . Joint Grand Canonical Generators and Factorized Grand Canonical Generators remain close to the true marginal at all activities.
Figure 7: Ideal-gas errors across activity. Dashed: finite-sample error from independent uniform configurations.
Figure 8: Particle-number transfer to unseen chemical potentials.
Figure 9: Normalized effective sample size ESS/M of the stratified pool in Fig. 4 . (a) Per fixed- N sector at 400 configurations, with the largest normalized weight (dashed). (b) Pooled over all sectors for conditional self-normalized importance sampling and grand canonical self-normalized importance sampling as a function of target-energy evaluations.
Figure 10: Inference-time correction with conditional self-normalized importance sampling, grand canonical self-normalized importance sampling, and Bennett acceptance ratio between N and N+1 particles. Bennett acceptance ratio combines insertion and deletion energy changes to reconstruct particle-number probabilities.
Morph
Joint GCG
Factorized GCG
Factorized GCG
System
LJ
LJ
LJ
Zeolite
Temperature
1.5
1.5
1.5
298 K
Box
6.53
6.53
6.53
40.04×39.80×26.77 Å
Batch
1024
1024
1024
128
Steps
60k
60k
60k
200k
Backbone
8×512
8×512
8×512
8×768
Appendix
Table 1: Model hyperparameters for the Lennard–Jones (LJ) fluid and the MFI zeolite.