NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MSAGPT: Neural Prompting Protein Structure Prediction via MSA Generative Pre-Training

Bo Chen, Zhilei Bei, Xingyi Cheng, Pan Li, Jie Tang, Le Song · DOI

Abstract

MSAGPT is a generative pre-training framework designed to enhance protein structure prediction for "orphan" proteins lacking evolutionary relatives. By employing a novel 2D evolutionary positional encoding and a multi-stage training pipeline—including pre-training on 16 million Multiple Sequence Alignments (MSAs) and reinforcement learning from AlphaFold2 feedback—MSAGPT generates high-quality "virtual" MSAs. Experimental results demonstrate a significant boost in structure prediction accuracy, with TM-Score improvements of up to 8.5% in MSA-scarce scenarios.

Introduction

The "AlphaFold revolution" has transformed structural biology, but its success relies heavily on Multiple Sequence Alignments (MSAs). MSAs are collections of evolutionarily related sequences that reveal co-evolutionary patterns critical for determining a protein's 3D shape. However, a substantial portion of proteins—approximately 20% of metagenomic and 11% of eukaryotic/viral proteins—are "orphans," meaning they have few or no known relatives in genomic databases. For these proteins, the lack of a rich MSA leads to poor structure predictions. MSAGPT addresses this challenge by treating MSA generation as a language modeling problem, creating "virtual MSAs" to provide the necessary evolutionary context.

Methods

MSAGPT reformulates MSA generation as a generative task, incorporating several domain-specific innovations to capture biological complexity:

  1. 2D Evolutionary Positional Encoding: Unlike standard 1D language models, MSAGPT utilizes a dual-axis encoding scheme that tracks both the residue position within a sequence and the sequence index within the alignment. This allows the model to capture both row-wise (sequence-specific) and column-wise (evolutionary) patterns simultaneously.
  2. 1D MSA Decoding: Despite the 2D encoding, the model generates the MSA as a flattened 1D sequence. This enables the use of standard, highly optimized next-token prediction objectives common in Large Language Models (LLMs), facilitating flexible zero-shot or few-shot generation.
  3. Three-Stage Training Pipeline:
  4. Stage 1 (Pre-training): Learning general evolutionary patterns from a massive dataset of 16 million natural MSAs.
  5. Stage 2 (Rejective Fine-tuning - RFT): Fine-tuning on high-quality MSAs filtered by AlphaFold2 (AF2) confidence scores to reduce "hallucinations."
    • Stage 3 (Reinforcement Learning from AF2 Feedback - RLAF): Using Direct Preference Optimization (DPO), the model is trained to prefer sequences that AF2 identifies as structurally informative.
The MSAGPT framework pipeline, illustrating the transition from low-quality retrieved MSAs to high-quality structure predictions via generated virtual MSAs.

Key Results and Insights

Evaluation on benchmarks such as CAMEO and CASP14/15 demonstrates that MSAGPT significantly outperforms existing virtual MSA generators. In MSA-scarce scenarios, MSAGPT improved the TM-Score (a measure of structural similarity) by +8.5% in few-shot settings. Furthermore, the model improved structure prediction accuracy for 91.0% of proteins in zero-shot scenarios compared to using natural MSAs alone.

Performance comparison of MSAGPT against existing methods, showing significant TM-Score improvements in both zero-shot and few-shot settings.

Beyond raw accuracy, the study revealed several critical insights into generative biology:

  • Diversity Over Similarity: When selecting generated sequences for the final MSA, picking the most diverse sequences (Static Diversity) often yielded better results than picking those most similar to the query protein.
  • The Dilution Effect: More data is not always better. Performance typically peaks at an MSA depth of 16 or 32; beyond this, the "noise" from generated sequences can begin to drown out the "signal" of the query protein.

Discussion and Limitations

While MSAGPT effectively "rescues" structure prediction for orphan proteins, several challenges remain. The multi-stage training process involving AlphaFold2 feedback is computationally intensive. Additionally, there is a risk of "database contamination," where generated virtual MSAs might be mistakenly uploaded to public databases, potentially affecting future model training. Future work will explore further scaling of the 2.8 billion parameter model and the development of classifiers to distinguish real from generated sequences.

Conclusion

MSAGPT represents a significant advancement in neural prompting for protein structure prediction. By leveraging generative pre-training and reinforcement learning from structural oracles, it provides a robust solution for the long-standing problem of orphan protein characterization.

Summary updated

BibTeX
@inproceedings{chen2024msagpt,
  author = {Bo Chen and Zhilei Bei and Xingyi Cheng and Pan Li and Jie Tang and Le Song},
  title = {{MSAGPT: Neural Prompting Protein Structure Prediction via MSA Generative Pre-Training}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=pPeXYByHNd},
}
Figure