PepHarmony: A Multi-View Contrastive Learning Framework for Integrated Sequence and Structure-Based Peptide Encoding

Ruochi Zhang, Haoran Wu, Chang Liu, Huaping Li, Yuqian Wu, Kewei Li, Yifan Wang, Yifan Deng, Jiahui Chen, Fengfeng Zhou, Xin GaoarXiv 2024 · DOI

Abstract

Peptides are critical components in drug discovery, yet their inherent flexibility and the scarcity of experimental 3D structures pose significant challenges for computational modeling. We present PepHarmony, a multi-view contrastive learning framework that integrates 3D structural information into a sequence-based peptide encoder. By aligning sequence and structure representations during a self-supervised pre-training phase, PepHarmony enables a sequence-only encoder to capture structural nuances. This approach achieves state-of-the-art performance across diverse tasks, including cell-penetrating peptide prediction and binding affinity, while maintaining the inference speed of sequence-based models.

Introduction

Peptides—short chains of amino acids—occupy a unique niche in biotechnology due to their high specificity and low toxicity. However, modeling them effectively is difficult. Unlike large proteins, peptides often lack stable 3D structures, making traditional protein-centric models like ESM less effective. Current computational approaches generally bifurcate into two categories: sequence-based models, which are computationally efficient but ignore 3D geometry, and structure-based models, which are accurate but require structural data that is often unavailable during early-stage drug design.

PepHarmony bridges this gap by creating a model that "learns" structural features during training but remains a fast, sequence-only tool during practical application. This allows researchers to benefit from structural insights without the overhead of generating 3D data at runtime.

Methodology

The core of PepHarmony is a multi-view contrastive learning strategy that treats the amino acid sequence and its 3D structure as two distinct "views" of the same peptide.

The PepHarmony framework architecture, illustrating the multi-view pre-training phase and the sequence-only inference phase.

Dual Encoder Architecture

The framework utilizes two specialized encoders:

  1. Sequence Encoder: Employs Evolutionary Scale Modeling (ESM) to process amino acid strings.
  2. Structure Encoder: Utilizes a Geometry-Aware Relational Graph Neural Network (GearNet) to encode 3D spatial relationships.

Pre-training Objectives

The model is trained using two types of self-supervised learning (SSL):

  • Contrastive Learning (InfoNCE): This objective forces the model to align the sequence and structure representations of the same peptide in a shared latent space while maximizing the distance between different peptides.
  • Generative Learning (Variational Representation Reconstruction): A VAE-like task where the model attempts to reconstruct structural features directly from sequence representations, further embedding geometric knowledge into the sequence encoder.

Inference Strategy

Post-training, the structure encoder is discarded. The remaining sequence encoder, now "structure-aware," is used for downstream tasks. This allows the model to produce embeddings that reflect 3D information from a simple string of amino acids.

Experimental Setup

To ensure robust training, the authors curated extensive datasets from the AlphaFold DB and the Protein Data Bank (PDB). The AlphaFold data was categorized by confidence (pLDDT scores), with the af90 subset (highest confidence) proving most effective for training.

The model was evaluated on several downstream benchmarks:

  • Cell-Penetrating Peptide (CPP) Prediction: Identifying peptides capable of crossing cell membranes.
  • Solubility: Predicting peptide behavior in aqueous environments.
  • Binding Affinity: Estimating the strength of peptide-protein interactions.
  • Self-Contaction: Predicting internal 3D contact maps from sequences.

Key Results and Insights

PepHarmony consistently outperformed baseline models, including standard ESM2 and GearNet, across all evaluated tasks. Notable performance metrics include:

  • CPP Prediction: Achieved an Accuracy of 0.790 and an F1 score of 0.766, significantly surpassing the base ESM2 (0.723 ACC).
  • Binding Affinity: Reached a Pearson correlation of 0.499.
  • Self-Contaction: Achieved a ROC-AUC of 0.796, demonstrating that the sequence encoder successfully internalized 3D connectivity knowledge.

Insights on Data and Loss Functions

Ablation studies revealed that the quality of synthetic data is more important than quantity; training on high-confidence AlphaFold predictions (af90) yielded better results than larger, noisier datasets. Furthermore, contrastive loss was identified as the primary driver of performance gains, while the generative VAE-style loss provided more specialized improvements in tasks like solubility.

Conclusion

PepHarmony demonstrates that multi-view contrastive learning is a powerful tool for transferring structural knowledge into sequence-based models. By internalizing 3D geometry during pre-training, PepHarmony provides a high-performance, efficient solution for peptide property prediction. Future work may explore more sophisticated generative tasks or domain-specific adaptations for specialized therapeutic areas like antimicrobial peptides.

Summary updated

BibTeX
@misc{zhang2024pepharmony,
  author = {Ruochi Zhang and Haoran Wu and Chang Liu and Huaping Li and Yuqian Wu and Kewei Li and Yifan Wang and Yifan Deng and Jiahui Chen and Fengfeng Zhou and Xin Gao},
  title = {{PepHarmony: A Multi-View Contrastive Learning Framework for Integrated Sequence and Structure-Based Peptide Encoding}},
  year = {2024},
  eprint = {2401.11360},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.11360},
}
Figure