Controllable Protein Sequence Generation with LLM Preference Optimization

Xiangyu Liu, Yi Liu, Silei Chen, Wei Hu

Abstract

Controllable protein design aims to generate sequences with specific biological functions and structural properties. While Large Language Models (LLMs) have advanced this field, they often struggle with structural stability and data scarcity for multi-attribute proteins. We present CtrlProt, a framework that leverages multi-listwise preference optimization to align protein LLMs with physical and functional constraints. By ranking generated sequences using Rosetta energy scores and structural similarity, CtrlProt produces proteins that are more likely to fold correctly while maintaining target functions. Our results demonstrate that CtrlProt outperforms existing baselines in both single and multi-attribute generation tasks, offering a robust approach for zero-shot functional composition in protein engineering.

Introduction

Designing proteins with bespoke functions—such as specific metal binding or subcellular localization—is a cornerstone of modern biotechnology. Large Language Models (LLMs) trained on protein sequences have emerged as powerful generative tools. However, two primary challenges persist: the disconnect between sequence-based functional "keywords" and actual physical stability, and the lack of training data for proteins possessing multiple specific attributes simultaneously. Standard supervised finetuning (SFT) often fails to capture the intricate physical constraints necessary for a protein to be biologically viable.

Methods

CtrlProt addresses these challenges through a three-stage pipeline:

  1. Supervised Finetuning (SFT): The model (ProtGPT2) is trained using prefix-tuning to associate specific Gene Ontology (GO) attributes with protein sequences.
  2. DPO Data Construction: Candidate sequences are generated and evaluated using the Rosetta Energy Score for structural stability and ProteinMPNN for functional structural similarity to known proteins.
  3. Multi-listwise Preference Optimization: Unlike standard Direct Preference Optimization (DPO), CtrlProt utilizes a multi-listwise approach that incorporates the magnitude of quality differences between candidates. This regularization ensures the model prioritizes learning from clear distinctions in protein quality.
The CtrlProt framework utilizes multi-listwise preference optimization to align LLM outputs with structural stability and functional relevance.

Datasets and Evaluation

The framework was trained and evaluated using sequences from UniProtKB associated with specific GO terms, with 3D structures sourced from the AlphaFold Protein Structure Database. The study focused on six attributes across Molecular Function (e.g., RNA binding), Biological Process (e.g., Phosphorylation), and Cellular Component (e.g., Nucleus).

Key Results

CtrlProt consistently outperformed baselines like ESM-2 and ProLLaMA. In multi-attribute generation, where prefixes are concatenated to combine functions, CtrlProt showed superior performance across metrics including CLS-score (functionality), pLDDT (folding confidence), and TM-score (structural similarity).

CtrlProt demonstrates superior performance across multiple metrics (CLS, TM, RMSD, pLDDT) compared to baseline methods in multi-attribute protein design tasks.

Key findings include:

  • Stability Integration: Explicitly rewarding low-energy configurations is essential for generating foldable proteins.
  • Zero-Shot Composition: Prefix-tuning allows for the successful generation of multi-functional proteins without explicit multi-attribute training data.
  • Diversity: The model maintains high sequence diversity, indicating it learns general design principles rather than memorizing training examples.

Conclusion

CtrlProt represents a significant step toward programmable protein design. While challenges remain in handling highly complex attribute combinations and the computational cost of scoring, the framework's ability to optimize for both stability and function via preference learning provides a powerful new tool for the field. Future work will focus on experimental wet-lab validation of these computationally designed sequences.

Summary updated

BibTeX
@inproceedings{liu2025controllable,
  author = {Xiangyu Liu and Yi Liu and Silei Chen and Wei Hu},
  title = {{Controllable Protein Sequence Generation with LLM Preference Optimization}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i1.32030},
}
Figure