Introduction
Many proteins work by switching between distinct structures, and a structure predictor given a protein's sequence and multiple sequence alignment (MSA) usually returns one of them. AlphaFold2 [1] run repeatedly over its weight sets and seeds returns essentially one conformation many times. The field has answered in three ways. One perturbs the MSA so that the coevolutionary signal favouring one state is weakened or replaced: clustering the alignment [2], subsampling it [3], masking columns with inference dropout [4], or subsampling it guided by frustration [5]. A second samples from generative models of structure, flow-matching variants of the predictor [6] or emulators of equilibrium ensembles [7]. A third changes what the predictor learned, as in retraining on a conformational split [8]. Elastic-network normal modes [9, 10] give a physics-only picture of which parts of a fold are soft.
The 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 nomination of the protein's two states. In our own development pools, built from several generators within a per-protein time budget, the best structure available for the second state was often far better than the one a simple nomination rule picked. Choosing which structure to nominate is therefore as much the problem as generating it. Three properties of the candidate pools make that choice hard, and our method is built around them.
Variation is mostly not switching. Termini, loops and poorly predicted segments move between samples without the protein changing state, and an unweighted structural distance treats that variation as a second state.
Generators reproduce the seed's state with an offset. AlphaFold2 on a shallow MSA and BioEmu often place most of their mass a few ångström away from the seed model, in the same state. A rule that nominates the largest structural cluster away from the seed picks this offset copy.
Generators differ in sample count, not in evidence. BioEmu yields many cheap samples, while AlphaFold2 and ESMFlow yield few. Any rule that counts structures lets the cheapest generator decide.
Method
Our method, mobility-guided search (MGS), has a training phase that learns which residues of a fold switch between states, and a generation phase that uses this prediction twice: to steer where AlphaFold2's MSA is perturbed, and to weight the metric in which candidates are compared.
Learning which residues switch
In training we mine the corpus for accessions with several chains (at most 16 per accession, two per PDB entry, X-ray first, lengths 30 to 1200). For every pair of chains of one accession that shares at least 30 residues in UniProt numbering (and at least 60% of the shorter chain), we compute the CA RMSD after superposition. A pair whose RMSD lies in Å counts as two different states. For such a pair we superpose on an iteratively re-weighted core: six rounds in which only residues deviating by less than 2 Å, or at least the best , carry weight. This gives a per-residue displacement that does not smear a hinge motion over the whole chain. Each residue of chain is labelled with its largest displacement against any chain in another state,
def _acc_labels(recs, min_common=30, min_frac=0.6, state_rmsd=2.0, max_rmsd=25.0):
import numpy as np
n = len(recs)
obs = [np.isfinite(r["ca"]).all(1) for r in recs]
pair = {}
for i in range(n):
for j in range(i + 1, n):
si, sj = recs[i]["sp"][obs[i]], recs[j]["sp"][obs[j]]
common, ii, jj = np.intersect1d(si, sj, return_indices=True)
if len(common) < min_common or len(common) < min_frac * min(len(si), len(sj)):
continue
A = recs[i]["ca"][obs[i]][ii].astype(float)
B = recs[j]["ca"][obs[j]][jj].astype(float)
r_ = _rmsd(A, B)
if state_rmsd <= r_ <= max_rmsd:
pair[(i, j)] = (common, _core_dev(A, B))
out = []
for i in range(n):
spi = recs[i]["sp"]
lab = np.full(len(spi), np.nan)
hit = False
for j in range(n):
key = (min(i, j), max(i, j))
if j == i or key not in pair:
continue
common, dev = pair[key]
pos = np.searchsorted(spi, common)
cur = lab[pos]
lab[pos] = np.where(np.isnan(cur), dev, np.maximum(cur, dev))
hit = True
if hit:
out.append((recs[i]["seq"], recs[i]["ca"], lab.astype(np.float32)))
return outThe model, which we call MobNet, sees the features of one structure only, because at generation time all it has is the AlphaFold2 seed model. Per residue it reads the amino acid, sequence position, contact numbers at six radii, distance from the centroid, local CA geometry, and Gaussian network model (GNM) quantities computed from a 10 Å Kirchhoff matrix : the mean-square fluctuation profiles over all, the three slowest and the ten slowest nonzero modes, the shapes of the six slowest modes, and hinge indicators for the three slowest. It is a four-layer transformer (width 128, eight heads) whose attention logits carry a learned bias for each bin of CA distance and of sequence separation. It has two outputs per residue, a switching logit and a log-displacement , trained with
over labelled residues, for five epochs of AdamW with a one-cycle schedule (peak ). If no artifact is present, a fallback uses the normalised ten-slowest-mode GNM fluctuation as .
with torch.autocast(dev.type, dtype=torch.bfloat16, enabled=dev.type == "cuda"):
out = model(Ft, Dt, Mt).float()
ok = Mt & torch.isfinite(Yt)
l1 = F_.binary_cross_entropy_with_logits(out[..., 0][ok], (Yt[ok] >= 3.0).float())
l2 = F_.smooth_l1_loss(out[..., 1][ok], torch.log1p(Yt[ok].clamp(max=30.0)))
loss = l1 + 0.3 * l2
opt.zero_grad()
loss.backward()
torch.nn.utils.clip_grad_norm_(model.parameters(), 1.0)
opt.step()
sched.step()The predicted switching probabilities are turned into residue weights by their rank within the protein, :
so the residue ranked most likely to switch counts five times as much as the least likely. We use the rank rather than the probability so that the weighting does not depend on the model's calibration from one protein to the next.
def _mob_weight(mob):
"""Residue weights of the selection metric from the predicted switching probability:
by within-protein rank, so residues the model ranks as switching count up to 5x more."""
import numpy as np
p = np.asarray(mob, float)
rk = np.argsort(np.argsort(p)) / max(len(p) - 1, 1)
return 0.25 + rk ** 2Generation from three families
Per protein, the time budget is split between AlphaFold2 (share 0.52), ESMFlow (0.08) and BioEmu (the remainder). Each family's calls are sized from its measured cost per structure, and the order of calls alternates so that the family furthest behind its share goes next. A family that fails twice hands its share to the other. Unless the MSA cannot be parsed, AlphaFold2 is called only on small MSA subsets, in two kinds of request:
- Coherent neighbourhoods. The 47 rows most identical to a centre row. The centres are chosen by farthest-point sampling in sequence space over a panel of rows, and the first centre is the query itself, so successive neighbourhoods visit different subfamilies, whose coevolution can favour different states. This is in the spirit of clustering the alignment [2].
- Mobility-targeted masks. On a random subset of 63 rows, 15% of the columns are masked in every row but the query, with inference dropout on. The column fraction and the dropout follow AFsample2 [4], but the columns are drawn with probability proportional to , where marks residues where the seed's pLDDT is at least 70. The aim is to remove the coevolution that pins the seed's state where the protein is expected to move.
Among new requests, one in three is masked. A request whose prediction lands more than 2 Å from the seed in the weighted metric, with mean pLDDT above 70 on the seed's confident residues, is queued as a follow-up and re-folded with other weights and seeds, and follow-ups fill up to half of each later batch.
# follow-ups first (exploit what produced a second state), then new exploration
fu = follow[:max(0, nreq // 2)]
del follow[:len(fu)]
for (rows, mask, drop) in fu:
reqs.append(FoldRequest(rows=rows, mask=mask, model=1 + (k * 3 + len(reqs)) % 5,
dropout=drop, seed=1000 + k, n=nseed))
meta.append((rows, mask, drop))
while len(reqs) < nreq:
j = len(reqs)
if (k + j) % 3 == 2:
rows = planner.random_rows(self.MASK_ROWS)
mask = planner.mask(rows, mob, conf)
drop = True
else:
rows = planner.neighbourhood(self.NB_ROWS)
mask = []
drop = False
reqs.append(FoldRequest(rows=rows, mask=mask, model=1 + (k * 3 + j) % 5,
dropout=drop, seed=1000 + k, n=nseed))
meta.append((rows, mask, drop))BioEmu is sampled in batches of up to 256 (at most 1200 per protein), and is switched off if a batch of at least eight yields no physical structure. ESMFlow is called once, after the first AlphaFold2 round, for 6 to 24 samples. It needs no MSA, which makes it an independent opinion about the protein's state.
Nomination
All candidates are superposed on the seed's confident residues and compared in the weighted metric
with the weighted displacement from the seed. Each candidate also gets an intrinsic plausibility score: its compactness relative to the seed's confident residues,
where is the mean number of CA neighbours within 10 Å and the last factor is replaced by 0.7 for generators without pLDDT. The score never uses contacts relative to the seed, which a real second state may legitimately remodel.
The pool is clustered by average linkage at 2.5 Å in . We then mark as the seed's own state ("home") the seed's cluster, every cluster whose medoid lies within 2 Å of the seed, and every fragment of that cloud: a cluster within 3 Å of the seed whose medoid is within 2 Å of a home medoid. Then comes the offset rule. If a sampling family (shallow-MSA AlphaFold2, or BioEmu) puts less than 15% of its quality mass in the home clusters, its dominant cluster within 4 Å is taken to be its offset copy of the seed's state and joins home. ESMFlow is deliberately exempt: when it disagrees with the seed, the disagreement is the information.
lab, clus = clusters_at(2.5)
home = {int(lab[0])} | {c for c, v in clus.items() if v["r"] < 2.0}
# fragments of the seed's own cloud: clusters next to a home cluster and still near the seed
grew = True
while grew:
grew = False
for c, v in clus.items():
if c not in home and v["r"] < 3.0 and min(Ds[v["med"], clus[h]["med"]] for h in home) < 2.0:
home.add(c)
grew = True
def fmass(c, f):
mm = clus[c]["m"]
return float(q[mm][fam[mm] == f].sum()) / ftot[f]
# A sampler family (shallow-MSA AF2, BioEmu) that reproduces the seed's state only with an
# offset puts little of its mass near the seed; its own dominant cluster within 4 A is that
# offset copy. An independent predictor (ESMFlow) is not offset-corrected: when it
# disagrees with the seed, the disagreement is the information.
for f in ("af2", "bio"):
if f in fams and sum(fmass(c, f) for c in home) < 0.15:
near = [c for c, v in clus.items() if c not in home and v["r"] < 4.0 and fmass(c, f) > 0]
if near:
home.add(max(near, key=lambda c: fmass(c, f)))Every remaining cluster is scored by family-normalised quality mass, mean quality, cross-family support and size:
with reliabilities for AlphaFold2 and ESMFlow and for BioEmu. The support factor is 0.7, 1.0 or 1.15 for at most one, two or at least three families with material mass in the cluster. Because each family's mass is normalised by its own total, a family's vote does not grow with its sample count beyond eight samples. If no cluster scores at least 0.05, the two states may be only 2 to 3 Å apart and merged at this resolution, so we recluster at 1.25 Å and accept a distinct mode at least 1.25 Å from the seed, at half its score, if that beats the coarse winner. From the winning cluster we nominate the most central high-quality member of its outer quarter (the members with at or above the cluster's 75th percentile). A cluster often stretches along the transition, and a structure earns credit for the second state only past the midpoint between the states.
def cscore(v):
support = 0.7 if v["nf"] <= 1 else (1.0 if v["nf"] == 2 else 1.15)
size = 1.0 - 0.7 * np.exp(-(len(v["m"]) - 1) / 1.5) # a lone structure is weak evidence
return v["mass"] * v["q"] * support * size
score = np.zeros(N)
best, bv = None, 0.0
for c, v in clus.items():
if c in home or v["mass"] <= 0:
continue
sc = cscore(v)
score[v["m"]] = sc
if sc > bv:
best, bv = c, sc
if best is None or bv < 0.05:
# Nothing (or only a sliver of evidence) stands apart at 2.5 A: the motion may be small
# (two states 2-3 A apart merge at this resolution). Look again at half the resolution
# for a distinct mode that is not the seed's own and lies >= 1.25 A from it.
lab2, clus2 = clusters_at(1.25)
for c, v in clus2.items():
if c == int(lab2[0]) or v["mass"] <= 0 or v["r"] < 1.25:
continue
sc = 0.5 * cscore(v)
if sc > bv:
score[v["m"]] = np.maximum(score[v["m"]], sc)
clus, best, bv = clus2, c, sc
alt = None
if best is not None:
# The representative: the most central high-quality member of the cluster's outer
# quarter (farthest from the seed). A cluster often stretches along the transition,
# and credit for the second state starts only past the midpoint between the states --
# the centre of a stretched cluster can fall short of it.
m = clus[best]["m"]
loc = (np.exp(-Ds[np.ix_(m, m)] ** 2 / 4.5) * q[m][None]).sum(1)
far = r[m] >= np.percentile(r[m], 75)
alt = int(m[far][np.argmax((q[m] * loc)[far])])
return alt, score, Dm, r, qThe returned pair is (seed, nominee). The seed is replaced by its closest plausible stand-in only if it is itself unphysical. When no cluster qualifies, the nominee is the most distant valid structure between 2 and 12 Å RMSD with mean pLDDT of at least 60 where it has one. The ensemble is ranked seed, nominee, then 48 greedily chosen diverse high scorers, then everything else.
Results
| Method | ① | ② | ||
|---|---|---|---|---|
| Nominated-pair score ↑ | Ensemble score ↑ | Nominated-pair score ↑ | Ensemble score ↑ | |
| Claude Opus 5.5 | 0.067 | 0.117 | 0.069 | 0.093 |
| 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 states previously observed (frozen board of switching protein pairs) MGS reaches 0.067, far above the starter's 0.004 and above every baseline with a published value but one: the strongest, AFsample2 [4], reaches 0.084, and the next, AlphaFlow-PDB, 0.053.
On One state unseen by pretrained models (frozen board of switching protein pairs) MGS reaches 0.069, slightly above the starter (0.062), the elastic-network null (0.064) and the random-subsampling null (0.061), and below BioEmu (0.071). The best baseline, AFsample2 [4], reaches 0.146, and AlphaFlow-PDB 0.125. On this setting our method adds little over the starter.
We do not know why our margin over the starter differs so much between the two settings, and our inputs do not let us check. One hypothesis is consistent with our own development runs. On the one protein with a deep MSA that we could run end to end, the nominee came from ESMFlow, and ESMFlow on its own is the weakest baseline on One state unseen by pretrained models (frozen board of switching protein pairs) (0.009). If ESMFlow's clusters often win the nomination there without being in the right state, the second half of our pair would earn little. We record this as a hypothesis only.
How we got here
All numbers in this section are our own development measurements, made on pools we built ourselves, and not results of the task's evaluation.
- The constraint that shaped everything: no MSAs to develop on. The container held no alignment for any training or development protein, only one deep MSA for a protein whose states are unknown. So we could not measure how AlphaFold2 or BioEmu behave with real MSAs on two-state proteins. Our accuracy numbers come from substitute pools: MSA-free ESMFlow samples plus single-sequence AlphaFold2 and BioEmu, with an experimental state standing in for the seed model. The MSA side of the generator (neighbourhoods and learned masks) was never tested on a protein with known states.
- Cost probes ruled out full-MSA AlphaFold2. On the deep MSA, five full-MSA predictions cost about 113 s of charged time, against about 50 to 76 s for five predictions on 32- or 64-row subsets. In the closing summary we attributed roughly 100 s per full-MSA call to processing overhead. Every AlphaFold2 request in the method is therefore on a small subset.
- What the training data looks like. Mining yielded 2563 accessions with labelled state pairs and 19719 labelled chains, with about 35% of the residues of labelled chains switching by at least 3 Å. On a split by crude k-mer homology clusters (8066 training and 1395 validation chains), the best single physics feature, the ten-slowest-mode GNM fluctuation, ranked switching residues at an AUROC of 0.741. MobNet reached 0.776 to 0.779 after four to five epochs and drifted down to 0.770 by twelve, which is why training stops at five. Adding ESM-2 embeddings as an input gave a validation AUROC of 0.780 to 0.788. We retrained the structure-only model instead. The magnitude head is weak: the correlation of predicted and actual log RMS displacement was 0.35, and it underestimated displacements by about half.
- A per-structure density rule failed; clusters replaced it. Our first nomination rule scored each candidate by the density of good structures around it, per family. On synthetic pools with a planted second state, it scored 0.227 when the generators reproduced the seed's state with an offset, and 0 when the second state was rare. Clustering, with the offset copy absorbed into the seed's state, raised these to 0.811 and 0.823.
- Seed-relative quality was replaced. An early quality term measured how many of the seed's local contacts a candidate preserved. After a synthetic case in which the true second state got quality 0, we replaced it with the intrinsic compactness score above, for the reason the code's comment gives: a real second state may legitimately remodel the seed's contacts.
- A learned "agreement" term hurt, and was removed. We had also rewarded clusters whose displacement profile agreed with MobNet's predicted profile. On a decoy test, where an equally dense and equally plausible mode moves the protein along a wrong collective direction, that term left the learned weighting at 0.504, below no weighting at all (0.640). Removing the term raised the learned weighting to 0.803, against 0.712 for GNM weights. With the candidate order shuffled, the learned weighting scored 0.565 against 0.529 for none and 0.322 for the fixed file's default nomination rule (the medoids of the two largest clusters), which had scored 0.882 when the true state's samples preceded the decoy's in the candidate list. On a larger decoy set of 75 the three weightings were close (0.458, 0.444 and 0.441).
- Three guards, added one after another. The per-family offset rule, the guard that absorbs fragments of the seed's cloud, and the cluster-size factor were introduced in consecutive edits, the last together with a relaxed compactness threshold. Before them our development-pair nomination stood at 0.215 against 0.217 for the default rule (32 cases). The offset rule raised it to 0.265 on the same 32 cases; after the fragment guard it stood at 0.243 against 0.181 (48 cases, as more pools had finished), and after the size factor and the relaxed threshold at 0.249 against 0.181. The set changed in between, so the meaningful comparison is with the default rule on the same cases, and the size factor and the relaxed threshold cannot be separated.
- The representative moved outward. We first nominated the cluster's most central member, then restricted the choice to the cluster's far half, because a stretched cluster's centre can fall short of the midpoint between the states. Restricting it further to the outer quarter beat the far half on 104 cases of our validation pools, 0.224 against 0.207.
- Final development evidence. On 64 corpus proteins with two states (128 cases, each state taking a turn as the seed), the final nomination scored 0.217 against 0.101 for the default rule, with a best-available partner in the pool at 0.291. The per-protein paired difference was +0.116 (standard error 0.021), with 34 wins and 10 losses. With flat residue weights it scored 0.210, and with GNM weights 0.214. On the development pairs the final rule scored 0.280 against 0.181. On the synthetic scenarios it scored 0.877, 0.860, 0.884 and 0.881, against 0.886, 0.598, 0.896 and 0.881 for the default rule, for a clean pool, an offset seed state, a dominant second state and a rare second state. So the clear gain is in the offset case. All of these sets were also used while iterating, so the numbers are optimistic.
Limitations
- Little gain on One state unseen by pretrained models (frozen board of switching protein pairs). On One state unseen by pretrained models (frozen board of switching protein pairs) MGS is only slightly above the starter and the elastic-network and random-subsampling nulls, and below BioEmu. On both settings it is below AFsample2 [4], which changes only how AlphaFold2 is called. Our contribution is clearly visible on Both states previously observed (frozen board of switching protein pairs) only.
- The learned component is barely load-bearing in nomination. On our largest development set, learned residue weights beat flat weights by 0.217 to 0.210 and GNM weights by 0.217 to 0.214. Where training could matter more, in the mobility-targeted masks, we never measured it, because no development protein had an MSA. As submitted, the method is better described as a carefully designed nomination rule with a learned prior than as a learned generator.
- The training budget is almost unused. Training mines labels and fits MobNet in about seven minutes on one GPU, and is capped well below the available allowance. We fine-tuned no generator and trained no ranker on oracle outputs. Those are the routes the task suggests for using the allowance, and we left them untested.
- Half the pair is fixed. The first nominee is always the AlphaFold2 seed (unless it is unphysical). On proteins where the seed model is in neither observed state, or where the state that matters is the one the seed does not show, the nomination can earn at most what the second structure earns.
- Hand-set constants. The cluster cut-offs (2.5, 1.25, 2, 3 and 4 Å), the offset threshold 0.15, the family reliabilities, the support and size factors and the budget shares were chosen by reasoning and checked on the same development and synthetic sets used to iterate.
- No full-MSA perturbations, and ESMFlow is skipped on long chains. Unless the MSA cannot be parsed, every AlphaFold2 request works on a subset of at most 63 rows. On long chains ESMFlow's cubic cost can leave room for fewer than six samples, and it is then skipped. On such proteins the pool rests on AlphaFold2 and BioEmu alone.
References
- John Jumper, Richard Evans, Alexander Pritzel et al. (2021). Highly accurate protein structure prediction with AlphaFold. Nature.
- Hannah K. Wayment-Steele, Adedolapo Ojoawo, Renee Otten et al. (2024). Predicting multiple conformations via sequence clustering and AlphaFold2. Nature.
- Diego del Alamo, Davide Sala, Hassane S Mchaourab et al. (2022). Sampling alternative conformational states of transporters and receptors with AlphaFold2. eLife.
- 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.