Protein2Text: Resampling Mechanism to Translate Protein Sequences into Human-Interpretable Text

Ala Jararweh, Oladimeji Macaulay, David Arredondo, Yue Hu, Luis E. Tafoya, Kushal Virupakshappa, Avinash SahuNAACL 2025

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.

Protein2Text architecture and conceptual mapping from sequence space to text space.

The architecture consists of three integrated components:

  1. Protein Encoder (ESM-2): A 652M parameter transformer-based model that captures structural and functional features by treating amino acids as tokens.
  2. 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.
  3. 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.

Performance comparison of Protein2Text against general-purpose and protein-specific LLMs on the Protein2Text-QA test set.

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

BibTeX
@inproceedings{jararweh2025protein,
  author = {Ala Jararweh and Oladimeji Macaulay and David Arredondo and Yue Hu and Luis E. Tafoya and Kushal Virupakshappa and Avinash Sahu},
  title = {{Protein2Text: Resampling Mechanism to Translate Protein Sequences into Human-Interpretable Text}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.naacl-industry.68},
}
Figure