TL;DR
Bio2Token introduces a quantized auto-encoder that converts 3D biomolecular structures into discrete 1D tokens at all-atom resolution. By leveraging the Mamba state space model, the researchers achieved sub-Angstrom reconstruction accuracy while scaling to massive systems of nearly 100,000 atoms, providing a high-fidelity foundation for future generative molecular models.
What Problem Does This Paper Address?
In the world of biomolecular design, fidelity is everything. However, modeling large molecules like proteins and RNA at the level of individual atoms is computationally grueling. Most current state-of-the-art models take shortcuts: they use "coarse-grained" representations, such as modeling only the protein backbone or treating entire amino acid residues as single points.
While these simplifications make models like ESM-3 or RFDiffusion computationally feasible, they lose the fine-grained atomic details—like side-chain interactions or precise ligand positioning—that are often critical for biological function. The bottleneck has traditionally been the "workhorse" architectures like Transformers, which suffer from quadratic ($O(N^2)$) complexity. As the number of atoms ($N$) grows, memory and compute requirements explode, making all-atom modeling of large complexes nearly impossible on standard hardware.
Methods
The authors developed Bio2Token, a Quantized Auto-Encoder (QAE) designed to map 3D atomic point clouds into a discrete 1D "vocabulary" and back again.
Key technical innovations include:
- Mamba Architecture: Instead of Transformers, the model uses bidirectional Mamba blocks. Mamba is a selective structured state space model (SSM) that offers near-linear scaling ($O(N \log N)$), allowing the model to process sequences of atoms that would crash a standard Transformer.
- Finite-Scalar Quantization (FSQ): To turn continuous latent vectors into discrete tokens, the authors used FSQ. Unlike the more common Vector Quantization (VQ), FSQ is easier to train and avoids the "codebook collapse" where a model stops using parts of its vocabulary.
- Loss Functions: The model is optimized using a combination of total structure RMSE (Root Mean Square Error) and an inter-atomic distance loss to ensure that local geometric relationships (like bond lengths within a residue) are preserved.
- Coordinate-Based Learning: Interestingly, the model does not use engineered SE(3)-invariant features (which are standard in structural biology AI). Instead, it learns directly from raw coordinates, relying on data augmentation (random rotations) to learn spatial relationships.
Datasets
The researchers trained both domain-specific tokenizers and a unified model (bio2token) using a massive breadth of data:
- Small Molecules: The $\nabla^2$DFT dataset, containing 1.9 million molecules and 16 million simulated conformations.
- Proteins: CATH 4.2 (18k structures) for prototyping, plus CASP14 and CASP15 for benchmarking. The unified model also leveraged a 100k-cluster subset of the AlphaFold Database (AFDB).
- RNA: RNA3DB, which includes structures ranging from small fragments to massive chains with over 95,000 atoms.
Key Insights and Ideas
- Efficiency Wins: The Mamba-based architecture is significantly more efficient than the popular Invariant Point Attention (IPA) used in AlphaFold. For a fixed compute budget, Mamba reached an RMSE of 0.6Å, while an equivalent IPA-based model lagged at 2.2Å.
- Scaling to the "Potato" Limit: The authors found that while domain-specific models (like
mol2token) are excellent for their niche, they fail on larger structures. A protein reconstructed by a small-molecule tokenizer looks like a "dense point potato." The unifiedbio2tokenmodel, however, generalizes across all scales. - Zero-Shot Complexes: Despite never being trained on multi-chain complexes or protein-RNA interactions, the model successfully reconstructed them at inference time with high fidelity (RMSE ~0.77Å for a protein-RNA complex).
- Vocabulary vs. Tesselation: The learned QAE approach is far more efficient than simple spatial voxelization. To achieve 0.2Å accuracy on a small molecule using a grid, you would need nearly 200,000 voxels; Bio2Token achieves this with a vocabulary of just 4,096 tokens.
Key Results
Bio2Token achieves state-of-the-art reconstruction accuracy across multiple benchmarks:
- Sub-Angstrom Accuracy: The model consistently achieves RMSE values between 0.2Å and 0.6Å. For context, this is significantly better than the tokenizers used in ESM-3 (which reported ~1.3Å on CASP14).
- Massive Scale: The model successfully tokenized and reconstructed a ribosomal RNA chain containing 90,441 atoms, a feat that would be computationally prohibitive for Transformer-based all-atom models.
- Structural Homology: Template modeling scores (TM-scores) for proteins and RNA were typically above 0.98, indicating that the global fold and tertiary structure are almost perfectly preserved.
Limitations and Future Work
While the RMSE is impressively low, the authors note that low RMSE does not guarantee chemical validity. Even a 0.5Å shift can result in steric clashes (atoms being too close) or broken covalent bonds. This is particularly visible at the periphery of very large structures, where errors tend to accumulate.
Future work involves:
- Integrating Atom Identity: The current model is "atom identity agnostic." Future versions will need to jointly represent atom types (Carbon, Nitrogen, etc.) alongside coordinates.
- Generative Modeling: The discrete tokens produced here are perfect candidates for training large-scale generative models (like LLMs or discrete diffusion) for de novo biomolecular design.
- Post-Processing: Implementing physics-based refinement to fix minor geometric strains in the reconstructed outputs.
Summary updated