Danyal Rehman1,2,3,4,
Charlie B. Tan1,5,
Yoshua Bengio1,4,6,
Joey Bose1,7,
Alexander Tong3
1Mila – Québec AI Institute ·
2Broad Institute of MIT & Harvard ·
3Aithyra ·
4Université de Montréal ·
5University of Oxford ·
6CIFAR Senior Fellow ·
7Imperial College London
June 25, 2026 · ~8 min read
Generate proteins like LLMs generate text — autoregressively, atom by atom.
Video 1. A coordinate-by-coordinate roll-out of an octapeptide (IFGWVYTG) using Robin, our 132 million parameter transferable Boltzmann Generator.
Training loss vs. compute
Robin accuracy vs. energy evaluations
Figure 1.Left: training loss vs. compute (FLOPs) for ArBG models from 8M to 126M parameters.
Right: Robin’s resampled Wasserstein metrics on unseen 8-residue peptides. MD needs 2–3 orders of magnitude more energy evaluations than Robin to match on energy-W₂, nearly 4 on torus-W₂, and does not reach Robin’s TICA-W₂ within the same compute budget.
Hover for values; toggle the metric; tap CSV to download the underlying data.
Primer
Boltzmann Generators (BGs) combine an
exact-likelihood generative model with an energy function to align observables
with the target Boltzmann distribution:
where is a conformation of atoms and is the (dimensionless)
potential energy that maps . The correction step — self-normalized importance sampling (SNIS) —
assigns each sample a weight , which serves to de-bias samples in accordance with the Boltzmann density. For this
to be consistent, the model must provide an exact likelihood and a
proposal that lies within the support of the target — two requirements that drive architecture choice.
Proposal Target Reweighted densityESS: —
Figure 2. Importance sampling, visualized. 2,500 samples are drawn from the blue proposal and re-weighted by to approximate the purple bimodal target . The thin purple bars are a weighted histogram of those samples — the empirical distribution after re-weighting. Slide the proposal away from a target mode or shrink its width to watch the effective sample size (ESS) collapse and the reweighted histogram fail to recover both modes — a finite-sample preview of why proposal quality determines whether SNIS-corrected estimates are usable in practice.
Normalizing flows
Discrete-time (NFs)
Discrete-time NFs compose a stack of analytically invertible layers
that transport a prior sample to . The resulting transport map is , and
conserves probability mass through the network via a discrete change of variables. Consequently, the likelihood follows directly from the change-of-variables formula:
Using this formulation, likelihoods are efficient, requiring one forward pass; however, every layer must admit a tractable
Jacobian determinant, which sharply restricts the family of admissible architectures. A deeper, more structural problem is
topological: a flow with a Gaussian prior is a homeomorphism, while the Boltzmann distribution of a peptide is
multi-modal with approximately disconnected support. Mapping a single connected prior onto several well-separated basins forces the model to
deform space across thin bridges, which can produce poorly-conditioned Jacobians, unstable training, and a practical ceiling on expressivity.
Continuous-time (CNFs)
CNFs replace the layer-by-layer composition with a learned vector field that transports a
prior sample at to a model sample at . The likelihood is given by the instantaneous
change-of-variables — an integral of the trace of the Jacobian:
This relaxes the architectural constraints, but the trace term is what makes likelihood evaluation expensive:
computing it exactly costs network evaluations per integration step. Stochastic
estimators (e.g. Hutchinson’s trace estimator) bring the cost down but inject variance into the SNIS weights.
Either way, the per-sample likelihood becomes the inference bottleneck — and since SNIS variance shrinks
with the number of samples, this directly caps how well the corrected estimator can perform.
Autoregressive Boltzmann Generators
Both problems disappear if we drop the flow and factor the joint density over coordinates instead. Flattening
to a -dimensional vector and applying the chain rule
yields:
The joint log-likelihood is a sum of scalar log-probabilities computed in a single forward pass — no
Jacobian determinant, no ODE integration, and no architectural constraint on invertibility.
There is, however, an immediate mismatch to resolve. Atomic coordinates live in continuous space
(), while autoregressive models — transformers in particular — are built to
emit categorical distributions over a finite vocabulary of tokens. How do you parameterize a continuous
density with an intrinsically discrete model?
Bin parameterization
Each conditional is parameterized as a categorical distribution over a uniform
partition of the coordinate’s support into bins. At sampling time, a continuous
coordinate is recovered by drawing uniformly within the selected bin. Training uses maximum likelihood estimation (MLE) with
teacher forcing: at every position the model sees the ground-truth prefix and minimizes the
cross-entropy of its predicted bin distribution against the bin index of the ground-truth . Because each
conditional is a categorical, the resulting density on is piecewise-constant; with sufficiently many bins
it converges to the underlying continuous distribution and the SNIS weights remain exact in the continuous
limit.
A conformation, one coordinate at a time
Predict a distribution. Draw a coordinate. Extend the prefix.
01 / Condition
Read the prefix
Condition on coordinates already sampled
Start of sequence
Causal transformer
p(x1)
02 / Predict
Choose a coordinate bin
Sample from the predicted categorical
CminCmaxSelected bin
A new distribution at every step
03 / Sample
Recover a continuous value
Draw uniformly inside the chosen bin
Inside the selected bin0.000.30
x₁ = 0.11
04 / Append to the sequenceStep 1 of 6 · sample x₁
Atom 1
Atom 2
Feed the extended prefix back into the transformer. Select a coordinate to inspect its step.
GenerationSample coordinates sequentially, three per atom.
Likelihood evaluationScore all conditionals in one forward pass.
Figure 3. Autoregressive coordinate generation. At each step, ArBG predicts a categorical
distribution conditioned on the coordinate prefix, samples a bin, and draws uniformly within it to recover
a continuous coordinate. The result is appended to the prefix before predicting the next coordinate.
Distributions and values are illustrative; two atoms are shown.
Architecture
We use a decoder-only transformer with causal self-attention — the same family of architectures
used to power modern large language models. Per-coordinate embeddings carry atom type, residue type, and positional information.
For Robin, our 132 million parameter transferable Boltzmann Generator, the conditioning is augmented
with residue position and overall sequence length, which turns the model into a sequence-to-structure generator:
given a peptide sequence, it samples an equilibrium ensemble.
Inside an ArBGDecoder-only transformer
From coordinates to the next-coordinate distributionCoordinate inputs pass through RMSNorm and cross-attention to a global conditioning encoder, then N pre-norm causal transformer blocks with residual connections. A categorical distribution over value bins yields the next coordinate, which is appended to the input. Select a component for details.01 / REPRESENT02 / TRANSFORM03 / SAMPLEQK, VAppend the sampled coordinate · repeatK, VAppend coordinate · repeatCoordinate prefixContinuous positions, in sequencex1y1z1…Molecular contextAtom · residue · position · lengthGlobal self-attentionNon-causal conditioning encoderSequence length is used by RobinRMSNormCross-attention+DECODER BLOCK× NRMSNormCausal self-attention+RMSNormFeed-forwardSwiGLU activation+ONE COORDINATE AT A TIMEp(x) = ∏j p(xj | x<j)Sample sequentially.Evaluate likelihood in one pass.+Residual additionNext coordinateProjection + softmax over K binsp(xj | x<j)Coordinate binsSample → xj
Explore the modelHover, tap, or focus a component to see how it works.
Figure 4. ArBG architecture. Continuous coordinates attend to a global conditioning encoder,
then pass through pre-norm causal transformer blocks. A categorical distribution over value bins
produces the next coordinate, which is appended to the prefix. Robin augments the conditioning with residue
position and sequence length. Histogram shown schematically.
Inference-time techniques
Because the model is autoregressive, decoding tricks developed for large language models apply almost without
modification. Below, denotes the sampling temperature (distinct from the physical temperature, which we
have already absorbed into ):
Temperature scaling. Logits are divided by before the softmax, which controls sample diversity. For transferable generation, we tune to optimize performance, and use for all studies conducted.
KV-caching. The attention keys and values computed for the prefix are stored and reused, so generating each new coordinate is a single-token append rather than a full re-encode.
Twisted SMC. SMC maintains a population of partial generations and resamples at residue boundaries using twist functions: scalar approximations of the future likelihood under the target, computed from the partial energy of the residues generated so far. Implausible substructures (e.g., steric clashes) are filtered out before they propagate. Autoregressive sampling is well-suited to this, since intermediate prefixes can be scored before the rest of the conformation is generated.
Robin
Single-system results
We start by training a separate model per system on five peptides, ranging from the 2-residue alanine dipeptide
to the 10-residue Chignolin. Following prior work, the ground-truth reference is taken from long unbiased
molecular dynamics (MD) trajectories. The first thing to check is whether the proposal overlaps the
target well enough that the SNIS-corrected distribution recovers the Boltzmann statistics. Figure 5
overlays the proposal, the SNIS-resampled distribution, and the MD reference for each system.
The quantitative picture across four systems is summarized in Table 1; the energy and structural
distributions behind these numbers follow.
Algorithm ↕
Tri-alanine
Tetrapeptide
Hexa-alanine
Chignolin
↕
↕
↕
↕
↕
↕
↕
↕
ECNF++
2.206 ±0.813
0.962 ±0.253
5.638 ±0.483
1.002 ±0.061
10.668 ±0.285
1.902 ±0.055
—
—
RegFlow
0.853 ±0.105
1.577 ±0.140
3.277 ±0.546
2.342 ±0.102
—
—
—
—
SBG
0.598 ±0.084
0.503 ±0.029
1.007 ±0.382
1.039 ±0.069
1.189 ±0.357
1.444 ±0.140
10.819±7.206
3.778 ±0.440
FALCON-A
1.385 ±0.182
0.343±0.004
2.929 ±0.068
1.094 ±0.034
1.211 ±0.105
1.163±0.112
—
—
FALCON
0.544 ±0.013
0.452 ±0.011
0.686±0.047
0.858 ±0.077
0.892±0.311
1.256 ±0.132
—
—
GIVT
1.354 ±0.058
0.343±0.008
1.033 ±0.449
1.113 ±0.100
1.206 ±0.056
1.527 ±0.048
45.646 ±20.989
3.031 ±0.098
MoL-PixelCNN++
0.506 ±0.082
1.024 ±0.686
1.643 ±0.504
1.415 ±0.110
1.429 ±0.186
1.264 ±0.205
140.717 ±49.113
3.391 ±0.093
GMM-PixelCNN++
0.249±0.025
0.364 ±0.016
1.434 ±0.783
0.806±0.056
1.164 ±0.037
1.285 ±0.058
23.339 ±6.485
3.007±0.086
ArBG (ours)
0.202±0.010
0.312±0.003
0.449±0.030
0.592±0.010
0.328±0.122
1.094±0.052
1.723±0.075
2.632±0.044
Table 1. Single-system results at 2×105 energy evaluations (lower is better).
Best in bold, second-best underlined; all methods use SNIS except
SBG (SMC). Shaded rows (GIVT, MoL-PixelCNN++, GMM-PixelCNN++) are autoregressive baselines we train with
the same ArBG recipe — identical de-quantization and transformer blocks — isolating the effect
of the proposal parameterization. Click any column header to sort.
Figure 5. Energy histograms across five peptide systems: the autoregressive proposal, the
SNIS-resampled distribution, and the molecular dynamics reference. The resampled distributions track the
reference closely across all systems considered, including Chignolin.
Agreement on the energy is a local consistency check; a more demanding question is whether the sampler actually
covers the relevant regions of conformational space. Chignolin is the standard benchmark for this: its
-hairpin secondary structure produces several well-separated torsional modes, and prior flow-based
methods tend to miss some of them. Figure 6 places the per-residue Ramachandran plots from the MD
reference and from our model side by side.
Figure 6. Per-residue Ramachandran plots on Chignolin (top: molecular dynamics reference; bottom:
Robin). The model recovers the populated modes in the test set, including the
-hairpin region more accurately than state-of-the-art generative approaches.
Transferable generation
The next question is whether a single network can learn to sample many
peptides at once. We train Robin, a 132 million parameter conditional causal transformer, on
ManyPeptidesMD — a corpus of biased MD trajectories spanning many distinct peptide sequences
— and evaluate it on held-out unbiased 8-residue peptides that never appear during training. As an aggregate
metric we report the squared 2-Wasserstein distance between predicted and reference energy distributions,
denoted . Averaged over 30 unseen octapeptides, Robin reduces
by roughly 60% relative to Prose, the prior flow-based
state-of-the-art. Table 2 reports the aggregate zero-shot numbers; Figure 7 then zooms in on
which conformational modes the model is actually capturing.
Model ↕
4-residue (30 systems)
8-residue (30 systems)
↕
↕
↕
↕
↕
↕
TimeWarp
7.237
2.204
0.993
—
—
—
BioEmu
90.079
2.037
1.479
193.873
4.638
1.601
UniSim
>10⁴
2.766
1.733
>10³
6.156
1.495
ECNF++
10.032
1.121
0.572
—
—
—
TarFlow
1.260
0.924
0.492
11.298
2.733
1.087
Prose
0.932
0.752
0.367
10.038
2.456
0.988
Robin (ours)
1.168
0.886
0.471
4.251
2.325
0.943
Robin (ours) + SMC
1.079
0.874
0.463
4.263
2.315
0.977
TarFlow
0.929
0.776
0.498
10.826
2.320
1.057
Prose
0.646
0.607
0.349
9.360
2.019
0.960
Robin (ours)
0.531
0.649
0.379
3.615
1.902
0.882
Table 2. Transferable (zero-shot) results, averaged over 30 unseen 4- and 8-residue peptides
(lower is better). Toggle the energy-evaluation budget; click any column header to sort.
Best in bold, second-best underlined.
Figure 7. Time-lagged independent component analysis (TICA) projections for the molecular dynamics
reference (top) and Robin (bottom) on a representative selection of unseen octapeptides. The model recovers
the slow dynamical modes — the metastable basins relevant to long-time behaviour — on peptides it
has not encountered during training.
References
Frank Noé, Simon Olsson, Jonas Köhler, and Hao Wu (2019). Boltzmann Generators: Sampling equilibrium states of many-body systems with deep learning.Science.
Danilo Jimenez Rezende and Shakir Mohamed (2015). Variational Inference with Normalizing Flows.ICML.
Ricky T. Q. Chen, Yulia Rubanova, Jesse Bettencourt, and David K. Duvenaud (2018). Neural Ordinary Differential Equations.NeurIPS.
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin (2017). Attention Is All You Need.NeurIPS.
Danyal Rehman, Charlie B. Tan, Yoshua Bengio, Joey Bose, and Alexander Tong (2026). Autoregressive Boltzmann Generators.ICML.
Cite
If you found this useful, the BibTeX is below:
BibTeX
@inproceedings{rehman2026arbg,title={{A}utoregressive {B}oltzmann {G}enerators},author={Rehman, Danyal and Tan, Charlie B and Bengio, Yoshua and Bose, Joey and Tong, Alexander},booktitle={International Conference on Machine Learning (ICML)},year={2026},url={https://arxiv.org/abs/2606.27361},doi={10.48550/arXiv.2606.27361},eprint={2606.27361},archivePrefix={arXiv},primaryClass={cs.LG},note={Spotlight at ICML 2026}}
@inproceedings{rehman2026arbg,
title = {{A}utoregressive {B}oltzmann {G}enerators},
author = {Rehman, Danyal and Tan, Charlie B and Bengio, Yoshua and Bose, Joey and Tong, Alexander},
booktitle = {International Conference on Machine Learning (ICML)},
year = {2026},
url = {https://arxiv.org/abs/2606.27361},
doi = {10.48550/arXiv.2606.27361},
eprint = {2606.27361},
archivePrefix= {arXiv},
primaryClass = {cs.LG},
note = {Spotlight at ICML 2026}
}