Introduction
A protein that switches between conformations has at least two experimentally observed states, and AlphaFold2 given its full alignment usually returns one of them [1]. The field has two broad answers. One perturbs the input of a fixed predictor: subsampling the alignment [2], clustering it [3], masking columns with dropout at inference [4], or choosing which sequences to keep by a frustration signal [5]. The other changes what the model has learned: fine-tuning a predictor as a generative model [6], training an emulator of equilibrium ensembles [7], or retraining on structures split by conformation [8]. Elastic-network normal modes around a single prediction are the classical physical null [9, 10].
This task asks for a method that is trained once on a corpus of experimental structures and then, for a protein it has never seen, returns a ranked ensemble and a two-structure nomination of its states. The pair score reads only the nomination. That makes the problem two problems: getting both states into the pool at all, and then knowing which two members of a noisy pool are the states. Early in development we measured the size of the second gap on a panel of enzymes we assembled ourselves: among the 11 with the larger motions, the proposal pool contained representatives of both states for six, and our nominated pair recovered both for two. The pool was not the bottleneck; selection was.
Selection is hard for reasons that are visible from inside the pool only statistically. Most draws from any generator sit near one basin. A source can carry its own systematic bias that looks like motion when pooled with other sources. A hinge or a floppy terminus can move a lot without being the transition. And the rare draws that do reach the other state are few, partial, and contaminated by the same noise. Our method is built to learn, from experimental pairs, how a real transition shows up in such a pool.
Method
The method has a training phase that fits several small supervised models on episodes built from the corpus, and a generation phase that samples a pool, repairs it, and uses those models to nominate and rank. The trained artefact is a set of scikit-learn tree ensembles and one linear filter; no neural network weights are changed.
Native transitions from the corpus
The supervision is the difference between two experimental structures of the same protein. For the development pairs the data interface provides, we take the two named states and up to five further members of each. For other accessions in the corpus we draw up to nine chains, compute a robust separation between every two of them (a blend of the clipped RMS and the 90th-percentile CA displacement after iteratively reweighted superposition), and pick the pair that is both far apart and best splits the remaining chains between the two states. Chains close to one state are averaged into a per-residue consensus with a variance, and residues missing from the representative chain are placed from other deposits of the same state, so that a gap in one chain does not erase the part of the motion it hides. Each record keeps the two CA traces, their residue numbering, the sequence, and a per-residue noise level.
Episodes that imitate a proposal pool
From each native pair with motion we simulate what a generator would return. The reference is itself an imperfect prediction, , with a smooth random field. Each of proposals belongs to one of a few sources and is
where is a source-specific bias field and is thermal noise. With a source-specific probability the proposal is on the transition ( near a possibly truncated endpoint), with another it is near but carries a large misleading displacement (a rigid turn of a terminus or of a segment between two residues, or a broad smooth field), and otherwise it sits in the starting basin.
# Shared misleading modes, family-specific biases and independent thermal
# fluctuations reproduce different reasons why many draws may miss an endpoint.
distract = [_turn(x, sp, rng, terminal=k == 0) - x for k in range(2)]
distract.append(_smooth_field(x, rng) * min(6., .7 + rms) * rng.uniform(.5, 1.7))
nf = int(rng.integers(1, 5))
n = int(rng.integers(26, 58))
bias = [_smooth_field(x, rng) * rng.uniform(.06, .70) for _ in range(nf)]
true_freq = np.exp(rng.uniform(np.log(.045), np.log(.6), nf))
wrong_freq = rng.uniform(.04, .40, nf)
last = rng.uniform(.47, 1.38) if rng.random() < .55 else 1.
vectors, features, family, targets = [], [], [], []
for k in range(n):
f = k % nf
u = rng.random()
if k == 0:
z = base
else:
if u < true_freq[f]:
t = (rng.normal(last, .13) if rng.random() < .55 else rng.uniform(.12, max(.2, last)))
drift = distract[rng.integers(3)] * rng.uniform(-.06, .09)
elif u < true_freq[f] + wrong_freq[f]:
t = rng.uniform(-.15, .31)
drift = distract[rng.integers(3)] * rng.uniform(.45, 1.4)
else:
t = rng.normal(.035, .10)
drift = 0.
noise = rng.uniform(.10, .75) * _smooth_field(x, rng)
z = x + t * motion + drift + bias[f] + noise
feature, obs = geom.measure(z)
features.append(feature)
vectors.append(obs)
family.append(f)
mag = max(1e-7, np.mean(active * obs ** 2))
cross = np.mean(active * truth * obs)
cosine = np.clip(cross / np.sqrt(mag * signal), -1., 1.)
gain = np.clip((2 * cross - mag) / signal, -.8, 1.)
scale = np.clip(cross / mag, .4, 2.)
targets.append([gain, cosine, np.log(scale)])Every proposal is measured on a fixed set of distance rulers between residue pairs of the reference: short sequence-local pairs, spatial neighbours within 17 Å and random longer pairs. The weighted change is
with a packing weight and a further factor of 0.52 on pairs at most four residues apart. With the true change on the same rulers and an activity weight that emphasises rulers that really change, the regression targets for proposal are
The gain is one minus the weighted error of predicting by , relative to staying at the reference, so a proposal that moves the wrong way scores below zero. The features are the proposal's own displacement statistics plus relational features of the pool: how many other proposals point the same way, from how many sources, with what projection and transverse spread, measured against a within-basin noise floor. An extremely randomised tree ensemble of up to 64 trees learns the map. A second, linear filter, fit by regularised normal equations, learns how much of a single proposal's ruler change to keep against the independently supported change along its direction.
Further laws are fitted on the same kind of episodes, and on episodes whose pools are real BioEmu2 samples of training sequences, drawn in subprocesses on all GPUs during training: an arc law that predicts, as cumulative distributions over a grid, where the two experimental endpoints lie along the path from the reference to a proposal; an axial law over the pool's principal subspace (below); and a joint law over projections of the endpoints' midpoint and contrast, which adds further structures at the end of the ranking. A contact-change law is fitted directly on the native pairs: given one structure, it predicts the signed changes of the distances between coarse groups of residues, conditional on one of them changing.
Allocating the generation budget
At generation we first draw a few structures from BioEmu2 and from BioEmu 1.2 [7], and add shallow AlphaFold2 calls on random alignment subsets of 6, 20 or 48 sequences with dropout and one recycle, close in spirit to random subsampling [2], when the first draws are few or stay close to the reference; if the pool still holds fewer than three structures, three distilled AlphaFlow draws are added. After that each round goes to the source with the highest
where information is a kernel estimate of the fraction of distinguishable conformers among the source's draws, discounted for draws whose displacement from the reference is implausibly large. The square root is a stratified-allocation rule; the denominator stops one cheap source from absorbing the budget.
def information(family):
rows = measured.get(family)
if not rows:
return .35, 0.
z = np.stack(rows)
mag = np.sqrt(np.mean(z ** 2, axis=1))
# A kernel effective sample size counts distinguishable conformers.
# Scale the kernel by thermal variation near the reference basin.
width = .16 + .26 * np.quantile(mag, .25)
g = z @ z.T / z.shape[1]
dd = np.maximum(0., np.diag(g)[:, None] + np.diag(g)[None, :] - 2. * g)
repeats = np.exp(-.5 * dd / width ** 2).sum(1)
diversity = np.mean(1. / repeats)
quality = np.mean(1. / (1. + (mag / 1.8) ** 4))
return float((.25 + .75 * diversity) * quality), float(np.quantile(mag, .80))Every draw is checked for covalent geometry, chain breaks and clashes, and a draw that fails is projected onto the nearest valid backbone by a restrained L-BFGS relaxation with ideal bond lengths, cis or trans peptide planes and excluded volume. A repair that moves the CA trace by more than 1.8 Å RMS is rejected.
Nomination
Applying the first model to the repaired pool gives each member a strength, plus a small bonus for independent support. The pool is enlarged by synthesised endpoints: for the strongest members we fit a displacement through the reference and the other proposals on the same ray, a slope rather than an average, so that a rarely sampled endpoint keeps its full extent in a pool rich in intermediates, then solve for a trace that matches the learned ruler targets and carry the peptide planes onto it.
# Fit a displacement through the reference and the independently supported
# points on this ray. A slope, unlike averaging coordinates, preserves the
# extent of a rarely sampled endpoint in a pool rich in intermediates.
coeff, mean, spread, scale = _ray(v, support, i)
slope = np.einsum("n,nld->ld", coeff, disp)
factor = np.exp(np.clip(scales[i], -.65, .62))
c, m, sd = v[i] / geom.w, mean / geom.w, spread / geom.w
if learned is None:
target = factor * m
else:
basis = _ruler_basis(geom, c, m, sd, coeff.sum(), scale)
a, b = np.split(learned, 2)
target = np.clip(1. + basis @ a, .02, 2.65) * m + np.clip(basis @ b, -.25, 1.2) * (c - m)
z = x + factor * slope
precision = (abs(m) + .25) / (abs(m) + sd + .6)
z = _fit_shape(z, x, x + disp[i], geom, target, scale, precision)
bb = _transport_peptides(kept[i][1], z)
if bb is not None:
generated.append((bb, bb, kept[i][2], "inferred"))
candidate_score -= .62 * np.maximum(kernel[i], np.maximum(0., direction[i]) ** 8)
candidate_score[i] = -np.inf
cost = max(.02, time.monotonic() - begin)The pair itself is decided in the pool's principal subspace. We take a weighted, spatially tapered principal-component basis of the aligned sampled displacements, of dimension at most 18, and ask the axial law, for many unit directions in that subspace, what fraction of the native half-contrast lies along . Those answers are quadratic forms in , so we fit one symmetric matrix consistent with all of them, probing coordinate axes and their diagonals in two frames, and take its top eigenvector as the transition axis. With a learned midpoint and extent along , the pair is the two structures of the repaired pool (the reference among them, the synthesised endpoints not), , that minimise
where are the structures' coordinates in the subspace and their energy outside it.
center,eigenvalue,directions,total=at_moments(space,distribution,rng,2)
center_estimate = center.copy()
axis=directions[0]
f,scale=space.measures(np.stack([axis,-axis]))
result=distribution.predict(f)
mid=.5*(result[0,0]*scale[0]-result[1,0]*scale[1])
center=center+.5*(mid-center@axis)*axis
extent=float(np.mean(result[:,3]*scale))
endpoints=np.stack([center-extent*axis,center+extent*axis])
residual=(space.coords-space.x)*space.root[None,:,None]
orth=(np.sum(residual**2,axis=(1,2))-np.sum(space.C**2,axis=1)).clip(0.)
cost=np.sum((space.C[None]-endpoints[:,None])**2,axis=2)+.29*orth[None]
joint=cost[0,:,None]+cost[1,None,:]
np.fill_diagonal(joint,np.inf)
i,j=np.unravel_index(np.argmin(joint),joint.shape)
if space.total[i]>space.total[j]:
i,j=j,i
return (int(i), int(j)), (space, (center_estimate, eigenvalue, directions, total))When this law cannot be applied (too few proposals, a degenerate subspace, too little motion in the pool, or too little time), the pair falls back to the strongest member and, if one is credible, a member that reaches clearly to the other side of the reference along the same direction, or else the reference itself.
Ranking for coverage
After the pair, members are added greedily by how much new coverage of plausible endpoints they add, weighted by strength; the rest follow by strength. When the axial law is present this greedy step is redone against a posterior over endpoint hypotheses drawn from its learned second moment, and new backbones are reconstructed at hypotheses the pool did not cover. In either case, points along learned arcs between the reference and the strongest proposals are added.
strength[0] = -3.
second = int(np.argmax(strength))
first = _other_endpoint(np.stack(vectors), strength, kernel, observed, second)
selected = [first, second]
mass = np.exp(2.8 * (strength - strength.max())) / density
covered = np.maximum(kernel[:, first], kernel[:, second])
while len(selected) < min(len(kept), 24):
improvement = np.maximum(kernel - covered[:, None], 0.).T @ mass
score = improvement + .07 * np.exp(strength)
score[selected] = -np.inf
j = int(np.argmax(score))
selected.append(j)
covered = np.maximum(covered, kernel[:, j])
seen = set(selected)
selected.extend(int(j) for j in np.argsort(-strength) if j not in seen)When every draw is the same structure
If all repaired draws differ from the first only by rigid pose and sub-ångström jitter, there is no contrast to learn from. Then the contact-change law proposes alternatives directly from the single structure: it picks a few signed distance changes, predicts how the rest of the contact graph responds, and lifts the result to a backbone. The pair is the reference and the alternative that covers most of the predicted deformation mass.
if witness_model is not None and _one_observed_shape(valid, deadline):
carrier, backbone = valid[0][:2]
ranked = list(initial_saved[0]) if len(initial_saved[0]) > 1 else [carrier]
pair = list(initial_saved[1]) if len(ranked) > 1 else None
# Reinvest the time saved by collapsing equivalent draws in
# covering the learned distribution of signed contact changes.
# Keep the early decision available at every computation budget.
count = min(30, max(10, int(2.4 * np.sqrt(len(backbone)))))
more, alternative = _witness_cloud(backbone, ctx.msa.query, witness_model,
deadline, limit=count)
if pair is None and alternative is not None:
pair = [carrier, alternative]
ranked.append(alternative)
if pair is not None:
seen = {v.tobytes() for v in ranked if isinstance(v, np.ndarray)}
for v in more:
signature = v.tobytes()
if signature not in seen:
ranked.append(v)
seen.add(signature)
return ranked, pairThe method ignores the binding-partner information the interface offers, and it has no per-setting constants.
Results
| Method | ① | ② | ||
|---|---|---|---|---|
| Nominated-pair score ↑ | Ensemble score ↑ | Nominated-pair score ↑ | Ensemble score ↑ | |
| GPT-6.2 Astra | 0.065 | 0.087 | 0.088 | 0.101 |
| AlphaFold2, full MSA | 0.004 | 0.034 | 0.062 | 0.019 |
| Elastic-network normal modes | 0.011 | 0.015 | 0.064 | 0.028 |
| Random MSA subsampling | 0.027 | 0.061 | 0.061 | 0 |
| AF-Cluster | 0.022 | 0.043 | 0.034 | 0 |
| AFsample2 | 0.084 | 0.095 | 0.146 | 0.021 |
| BioEmu | 0.044 | 0.106 | 0.071 | 0.102 |
| AlphaFlow | 0.053 | 0.061 | 0.125 | 0.032 |
| ESMFlow | 0.033 | 0.046 | 0.009 | 0.012 |
| Coarse-grained simulation | 0.006 | 0.022 | 0.046 | 0 |
- ① Both states previously observed (frozen board of switching protein pairs)
- ② One state unseen by pretrained models (frozen board of switching protein pairs)
On both settings our pair score is above the starter, which runs AlphaFold2 on the full alignment over weight sets and seeds: 0.065 against 0.004 on Both states previously observed (frozen board of switching protein pairs) and 0.088 against 0.062 on One state unseen by pretrained models (frozen board of switching protein pairs). It is also above the elastic-network null, the depth-matched random subsampling null, AF-Cluster, BioEmu, ESMFlow and the matched-time simulation on both settings, and above AlphaFlow on Both states previously observed (frozen board of switching protein pairs).
It is not the best method on either setting. AFsample2 [4] reaches 0.084 on Both states previously observed (frozen board of switching protein pairs) and 0.146 on One state unseen by pretrained models (frozen board of switching protein pairs), and AlphaFlow reaches 0.125 on One state unseen by pretrained models (frozen board of switching protein pairs), so we are second on Both states previously observed (frozen board of switching protein pairs) and third on One state unseen by pretrained models (frozen board of switching protein pairs). The gap is largest on One state unseen by pretrained models (frozen board of switching protein pairs).
Two observations bear on these numbers. Our pool starts from BioEmu2 and BioEmu 1.2 draws; the BioEmu baseline reaches 0.044 on Both states previously observed (frozen board of switching protein pairs) and 0.071 on One state unseen by pretrained models (frozen board of switching protein pairs), and our score is above it on both. Our pool differs from that baseline's in sources and in the backbone repair, so the table does not separate what the learned selection adds from what the pool adds. The strongest baseline is a perturbation of AlphaFold2 itself, which our allocation brings in only when the first BioEmu draws are few or stay close to the reference, and then with shallow alignments.
How we got here
- Supervision from the corpus itself. We did not find an interface to the cached oracle outputs the task describes, so the first decision was to learn from the observed changes between same-accession structures, and to make the episodes imitate a pool rather than to train on clean pairs.
- Backbone repair came from a measured failure. In our first replays, by our development count, 94% of BioEmu backbones passed the geometry checks against 8% of distilled ESMFlow backbones and none of the distilled AlphaFlow ones. That led to the restrained relaxation and, later, to a stricter repair after we found severe clashes much more common in sampled models than in experimental chains.
- Selection, not sampling, was the gap. Using the evidence of other proposals raised our development nomination diagnostic on 20 metabolic enzymes from 0.077 for two full-alignment predictions to 0.101. From then on most experiments targeted the nomination.
- Keeping the reference in the pair capped the result. On our two main panels, holding the initial AlphaFold2 structure as one nominee limited the best attainable development score to 0.153 and 0.195; letting both structures vary raised those bounds to 0.375 and 0.355. That is why the final nomination picks two sampled structures.
- Averaging pulled states together. We tried averaging structures within inferred motion states, and later averaging nearby proposals. The first helped some cases and the second reduced coordinate error, but both drew the alternatives back toward the common state, and we kept the existing nomination rule. The comment on our slope fit along a ray names averaging as what it avoids.
- We tried to change what a generator learned, and did not ship it. A conditional flow that produced structures beyond the pretrained samples raised our development measure of two-state coverage on one panel from 0.291 to 0.355, while its nominations scored lower, so we kept the stronger nomination method. Fine-tuning a two-state conditioner in late token attention of BioEmu2 reduced held-out denoising and displacement errors on simulated donors, by our development measurement from 0.1438 and 0.1536 to about 0.116 and 0.094; it is not part of the final method. The pretrained model's own residue-distance likelihood ranked candidates by accuracy but usually favoured two structures in the same state.
- Other signals that did not help the pair. Evolutionary contact maps had little ability to tell which contacts appear in the second state; a local mobility model found mobile regions (correlations of 0.47 and 0.42 on two panels) and a contact-force model found the direction of motion more often, but neither consistently improved the nominated pair.
- The axial tensor was kept on weak evidence. Fitting one motion tensor to all directional measurements gave, in our development measurement over 148 proteins, a small average nomination gain whose uncertainty interval included zero. We kept it.
- Late additions improved coverage, not the pair. The learned distance-change generator improved full-ensemble coverage on four development panels and preserved the nominations, but cost some nomination quality under a tight time budget. On 26 proteins we had set aside from method selection, our development measure of ensemble coverage was 0.169 against 0.042 for our replay of the starter, while the nominated pairs scored 0.0012 against 0.0010: a sampling gain and no clear nomination gain. The single-shape branch was the last change before submission.
Limitations
- The pair is where we are weakest, and the pair is what is read. Our own held-out development check showed the learned machinery mostly improving the ensemble. On the evaluation, AFsample2 is ahead of us on both settings, by 0.084 against 0.065 on Both states previously observed (frozen board of switching protein pairs) and 0.146 against 0.088 on One state unseen by pretrained models (frozen board of switching protein pairs), and AlphaFlow is ahead on One state unseen by pretrained models (frozen board of switching protein pairs).
- The nominees must already be in the pool. When the axial law is used the two nominees are sampled structures, so a state no generator reached cannot be nominated, however well the axis is estimated. The synthesised endpoints enter only the ranking.
- The training signal is synthetic. The episodes are our model of how a generator errs: smooth bias fields, rigid turns, truncated paths. Where a real generator errs differently, the learned strength can be confidently wrong. Only part of training sees real BioEmu2 samples, and only for sequences short enough to sample in the time.
- No learned generator. The task invites changing what a model learned; we fitted tree ensembles over hand-built features and left every neural network frozen, after our attempts to fine-tune were not carried into the final method.
- AlphaFold2 is underused. The strongest baseline perturbs AlphaFold2, while our allocation calls it only when the first BioEmu draws are few or stay close to the reference, and only at shallow depth.
- Binding partners are ignored, so proteins whose second state needs a partner get no help from the information the interface provides.
- The method is large and tuned by hand. The submission is more than three thousand lines with many constants set during development, several of them, such as the axial tensor, kept on evidence whose interval included zero. We did not ablate the components on the evaluation.
References
- John Jumper, Richard Evans, Alexander Pritzel et al. (2021). Highly accurate protein structure prediction with AlphaFold. Nature.
- Diego del Alamo, Davide Sala, Hassane S Mchaourab et al. (2022). Sampling alternative conformational states of transporters and receptors with AlphaFold2. eLife.
- Hannah K. Wayment-Steele, Adedolapo Ojoawo, Renee Otten et al. (2024). Predicting multiple conformations via sequence clustering and AlphaFold2. Nature.
- Yogesh Kalakoti, Björn Wallner (2025). AFsample2 predicts multiple conformations and ensembles with AlphaFold2. Communications Biology.
- Hanqun Cao, Zijun Gao, Chunbin Gu et al. (2026). SF-Cluster: Frustration-Guided MSA Subsampling for Alternative Protein Conformation Recovery. ICML.
- Bowen Jing, Bonnie Berger, Tommi Jaakkola (2024). AlphaFold Meets Flow Matching for Generating Protein Ensembles. ICML.
- Sarah Lewis, Tim Hempel, José Jiménez-Luna et al. (2025). Scalable emulation of protein equilibrium ensembles with generative deep learning. Science.
- Patrick Bryant, Frank Noé (2024). Structure prediction of alternative protein conformations. Nature Communications.
- A.R. Atilgan, S.R. Durell, R.L. Jernigan et al. (2001). Anisotropy of Fluctuation Dynamics of Proteins with an Elastic Network Model. Biophysical Journal.
- Ahmet Bakan, Lidio M. Meireles, Ivet Bahar (2011). <i>ProDy</i> : Protein Dynamics Inferred from Theory and Experiments. Bioinformatics.