Ensembits: an alphabet of protein conformational ensembles
Abstract
Protein structure tokenizers (PSTs) are workhorses in protein language modeling, function prediction, and evolutionary analysis. However, existing PSTs encode local geometry of static structures and miss the correlated motions and alternative conformational states revealed by protein ensembles. Here we introduce Ensembits, the first learned tokenizer that maps a conformational ensemble to a single token per residue. Ensembits addresses challenges inherent to tokenizing dynamics: deriving informative geometric descriptors across conformations, permutation-invariant encoding of variable-size ensembles, and conquering sparsity in dynamics data. Trained with a Residual VQ-VAE using a frame distillation objective on a large molecular dynamics corpus, Ensembits outperforms all tokenizer baselines on RMSF prediction and leads a token-conditioned ANOVA test on per-residue motion amplitude. On EC, GO, binding site/affinity prediction and zero-shot mutation effect prediction Ensembits is competitive with existing static tokenizers despite using far less pretraining data than ESM3 and AminoAseed. The distillation objective enables Ensembits to predict dynamics tokens from a single predicted structure, alleviating dynamics data sparsity. As the field moves from static structure prediction toward ensemble generation, Ensembits offers the discrete vocabulary needed to bring dynamics into protein language modeling. Our code is available at: https://github.com/OliverLaboratory/Ensembits.