Reprogramming pretrained language models for protein sequence representation learning

Ria Vinod, Pin‐Yu Chen, Payel Das

Abstract

The representation reprogramming via dictionary learning (R2DL) framework reprograms a pretrained English language model to learn the embeddings of protein sequences. By learning a sparse linear mapping between English and protein vocabulary embeddings, R2DL achieves state-of-the-art performance on various protein-related tasks while maintaining extreme data and computational efficiency.

Introduction

In the fields of drug discovery and biotechnology, understanding the "grammar" of protein sequences is critical for predicting properties such as stability, toxicity, and function. The current paradigm involves training massive Protein Language Models (PLMs) on billions of sequences. However, this approach faces significant hurdles: the immense computational cost of training from scratch, the scarcity of expensive labeled experimental data, and the lack of hardware accessibility for most research labs.

This research explores whether we can bypass expensive pretraining by repurposing the high-level representations already learned by large-scale English language models. The authors introduce R2DL, a framework that "reprograms" frozen English models to speak the language of proteins.

Methodology: Representation Reprogramming via Dictionary Learning (R2DL)

R2DL operates by keeping a pretrained English model (the "source") completely frozen and focusing on the interface between the protein sequence and the model's vocabulary.

Token Reprogramming

Protein sequences consist of 20 amino acids, whereas English models possess vocabularies of thousands of words. R2DL utilizes k-SVD to identify a sparse linear mapping ($\Theta$). This mapping represents each amino acid as a weighted combination of existing English word embeddings, effectively translating protein "tokens" into a space the English model understands.

Label Mapping and Lightweight Training

The framework establishes a one-to-one correspondence between the source model's output classes (e.g., sentiment analysis labels) and the target protein classes (e.g., toxicity). During training, only the mapping matrix $\Theta$ is updated. The underlying transformer architecture remains untouched, making the process significantly faster and less resource-intensive than traditional fine-tuning.

Experimental Evaluation

The researchers evaluated R2DL across eight diverse protein tasks, categorized into:

  1. Physicochemical Properties: Secondary structure, mutational stability, homology detection, and solubility (utilizing the TAPE benchmark).
  2. Biomedical Functions: Antimicrobial peptide (AMP) prediction, toxicity, antibody affinity, and protein–protein interaction (PPI).

R2DL was compared against standard supervised LSTMs and high-capacity in-domain pretrained models such as ESM-1b and ProtT5.

Key Results and Comparative Analysis

R2DL demonstrated superior or competitive performance in 6 out of 8 tasks. Notably, it showed an 11.2% improvement in stability prediction compared to specialized pretrained models. Furthermore, it outperformed standard supervised LSTMs by up to 29.3%, proving that reprogramming is more effective than training from scratch on small datasets.

Comparison of R2DL against traditional training paradigms.

One of the most striking findings was the framework's data efficiency. In homology prediction tasks, R2DL was found to be $10^4$ times more data-efficient than traditional pretraining methods. This efficiency allows researchers to achieve foundation-model-level performance on a single GPU.

Discussion: The "Universal Grammar" of Sequences

The success of R2DL is attributed to the shared structural logic between natural language and protein sequences. Both follow Zipf’s law, a statistical distribution where a small number of tokens appear frequently while most are rare. This shared organizational pattern allows a model trained on English to interpret the dependencies within amino acid sequences.

Additionally, the learned embeddings were found to be biologically interpretable. Visualization of the embeddings showed that the model naturally grouped amino acids with similar chemical properties (such as hydrophobicity), despite having no explicit biological training.

Conclusion and Future Directions

R2DL represents a significant step toward democratizing AI for the life sciences. While the k-SVD process may face scalability challenges with "Ultra-Large" models, the paradigm of reprogramming offers a sustainable alternative to the "train-from-scratch" status quo. Future work will explore extending this framework to other scientific sequences, such as SMILES strings for small molecules or polymer sequences, potentially revolutionizing materials science and chemistry.

Summary updated

BibTeX
@inproceedings{vinod2025reprogramming,
  author = {Ria Vinod and Pin‐Yu Chen and Payel Das},
  title = {{Reprogramming pretrained language models for protein sequence representation learning}},
  booktitle = {Digital},
  year = {2025},
  doi = {10.1039/d4dd00195h},
}
Figure