Introduction
The biological sciences are currently facing a "characterization crisis." While genomic sequencing technologies have advanced rapidly, providing over 227 million known protein sequences, experimental characterization remains a slow and costly bottleneck. Consequently, approximately 99.7% of known proteins remain uncharacterized. While structural prediction tools like AlphaFold have made significant strides, translating these sequences and structures into functional, human-interpretable understanding remains a primary challenge.
The Protein2Text Framework
To bridge this gap, we introduce Protein2Text, a multimodal large language model (LLM) designed to translate raw protein sequences into descriptive text. Adapted from the LLaVA framework, Protein2Text replaces visual inputs with biological sequence data.
The architecture consists of three integrated components:
- Protein Encoder (ESM-2): A 652M parameter transformer-based model that captures structural and functional features by treating amino acids as tokens.
- Perceiver Resampler: A critical innovation that addresses the variable length of protein sequences. It distills embeddings into a fixed set of 128 latent tokens, ensuring compatibility with the LLM while preserving essential biological information.
- LLM Decoder (LLaMA-3.1-8B): The central reasoning engine that processes distilled protein tokens alongside user text prompts to generate natural language responses.
Training and Datasets
Protein2Text was trained in two stages: initial pretraining for alignment and subsequent fine-tuning via Low-Rank Adaptation (LoRA). The model leverages several high-quality datasets:
- UniProt Alignment: 394,000 sequence-description pairs.
- Protein2Text-QA: A novel dataset of ~210,000 QA pairs extracted from PubMed Central (PMC) research articles using LLaMA-3.1. This ensures the model learns from the nuanced language of actual scientific literature.
- Evaluation Benchmarks: Testing included standard sets, zero-shot sets for unseen protein families, and cross-domain sets (DiscussionQA and IntroductionQA) to evaluate generalization.
Key Results and Insights
Protein2Text significantly outperforms both general-purpose LLMs and existing protein-specific baselines across multiple metrics.
Overcoming the "Template Trap"
A key finding was that many existing models rely on rigid templates, leading to high lexical scores but poor functional generalization. Protein2Text demonstrates superior accuracy in complex tasks, such as subcellular localization, by learning semantic relationships rather than just memorizing patterns.
Generalization and Zero-Shot Performance
The model maintained high semantic similarity (BiomedBERT score of 0.897) even on entirely unseen protein families. This suggests that the resampling mechanism effectively captures universal biological features from the ESM-2 embeddings.
Conclusion and Future Directions
Protein2Text represents a significant step toward automated protein characterization. While the model shows remarkable performance, it is not immune to hallucinations—a common challenge in LLMs. Future work will focus on expanding training data and refining the architecture to further reduce error rates and enhance the model's utility in real-world scientific discovery.
Summary updated