Prompt-Guided Injection of Conformation to Pre-trained Protein Model

Qiang Zhang, Zeyuan Wang, Yuqiang Han, Haoran Yu, Xurui Jin, Huajun ChenarXiv 2022

Abstract

Pre-trained Protein Models (PTPMs) have revolutionized bioinformatics by treating protein sequences as biological "sentences." However, these models often produce static embeddings that fail to capture the dynamic 3D conformational changes essential for biological function. We present ConfProtein, a novel framework that utilizes prompt learning to inject task-specific conformational knowledge into PTPMs. By employing dual prompts—Sequence (Seq) and Interaction-Conformation (IC)—and a specialized attention mask, ConfProtein enables models to adapt their representations based on the protein's interaction state. Our results demonstrate state-of-the-art performance in protein-protein interaction (PPI) prediction and binding affinity tasks, highlighting the effectiveness of modular knowledge injection in protein language models.

Introduction

In recent years, large-scale Pre-trained Protein Models (PTPMs) such as ProtBERT and ESM-1b have established themselves as powerful tools for protein sequence analysis. By leveraging the transformer architecture, these models learn rich representations of amino acid sequences. However, a significant limitation remains: proteins are not static strings. Their 3D structures, or conformations, are dynamic and change significantly when interacting with other molecules.

Standard PTPMs typically generate a single, fixed embedding for a given sequence, effectively ignoring these structural shifts. This "static" view is particularly problematic for tasks like predicting protein-protein interaction (PPI) or binding affinities, where the specific 3D "handshake" between molecules determines the biological outcome. To address this, we introduce ConfProtein, a method that uses "prompt learning" to inject dynamic 3D conformational knowledge into pre-trained models without requiring extensive retraining.

Methodology: The ConfProtein Framework

ConfProtein leverages the concept of prompt learning, a technique originally developed in Natural Language Processing (NLP), to adapt a frozen pre-trained model to specific downstream tasks. Instead of fine-tuning the entire model, which is computationally expensive and risks "catastrophic forgetting" of general biological knowledge, ConfProtein adds small, learnable vectors called "prompts" to the input sequence.

Dual Prompt Architecture

The framework utilizes two distinct types of prompts to capture different biological signals:

  1. Sequence (Seq) Prompt: This prompt is learned via Masked Language Modeling (MLM) on a large corpus of protein sequences. It is designed to capture and reinforce the sequential dependencies and evolutionary information inherent in the primary structure.
  2. Interaction-Conformation (IC) Prompt: This is the core innovation of ConfProtein. The IC prompt is learned through protein-protein interaction tasks. It is specifically designed to capture how a protein's representation should shift when it transitions from a "native" state to an "interaction" state.

Knowledge-Injection Attention Mask

To ensure that the information from these prompts is integrated correctly without interfering with the original sequence embeddings, the authors designed a Knowledge-Injection Attention Mask. This mask controls the flow of information within the transformer layers:

  • It allows information to flow from the prompts to the protein sequence, effectively "prompting" the model to adjust its embeddings.
  • It prevents the original sequence from "polluting" the prompts, ensuring they remain pure representations of the injected knowledge.
  • It stops different prompts from interfering with each other, allowing for modular and additive knowledge injection.

Experimental Setup and Datasets

The effectiveness of ConfProtein was evaluated across a diverse set of benchmarks:

  • Pre-training: The STRING dataset (physical-only interaction subset, 65 million sequences) was used for initial prompt learning.
  • PPI Prediction: Benchmarks included SHS27k, SHS148k, and STRING-HomoSapiens.
  • Binding Affinity: The SAbDab dataset was used for antibody-antigen binding tasks.
  • Structural Benchmarks: TAPE and CB513 were used for secondary structure and contact prediction.
  • ICProtein Dataset: A newly curated dataset containing 2,212 contact maps derived from 3D structures of proteins in their interacting states, providing a ground truth for conformational changes.

Key Insights and Results

Prompts as Semantic Probes

Analysis of the learned prompts reveals that they act as precise semantic keys. The IC prompt specifically modifies the embeddings of amino acids located on the protein surface—the primary site of molecular interactions—while leaving the internal "core" residues largely unchanged. This behavior aligns perfectly with biological intuition.

Visualization of structural changes and corresponding contact map shifts induced by the IC prompt. The red oval and boxes highlight areas of significant conformational change during interaction.

Performance in PPI and Binding Affinity

ConfProtein achieved state-of-the-art results in PPI prediction, significantly outperforming baselines like GNN-PPI and the original ESM-1b. For instance, on the SHS27k dataset (BFS split), ConfProtein reached an F1 score of 71.24, compared to ESM-1b's 68.12. Furthermore, the IC prompt demonstrated remarkable generalization, improving performance on antibody-antigen binding affinity tasks despite being trained primarily on general PPI data.

Specificity of Injected Knowledge

The study also highlighted the "incompatibility" of certain types of knowledge. Using the IC prompt for tasks unrelated to interactions, such as fluorescence prediction (which depends on internal chemistry), actually led to a decrease in performance. This confirms that the prompts are successfully capturing specific, distinct biological signals rather than just acting as generic performance boosters.

Conclusion and Future Directions

ConfProtein provides a flexible, modular, and computationally efficient way to upgrade PTPMs with structural knowledge. By treating 3D conformation as a "state" that can be prompted, the model moves closer to capturing the true dynamic nature of proteins.

Future work will explore automated methods for designing prompt architectures, moving beyond manual design. Additionally, the framework could be extended to include prompts for other environmental factors, such as temperature, pH, or ligand binding, creating a truly multi-state protein language model.

Summary updated

BibTeX
@misc{zhang2022prompt,
  author = {Qiang Zhang and Zeyuan Wang and Yuqiang Han and Haoran Yu and Xurui Jin and Huajun Chen},
  title = {{Prompt-Guided Injection of Conformation to Pre-trained Protein Model}},
  year = {2022},
  eprint = {2202.02944},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.02944},
}
Figure