Exploring the limits of pre-trained embeddings in machine-guided protein design: a case study on predicting AAV vector viability

A Ana F. Rodrigues L Lucas Ferraz L Laura Balbi P Pedro Giesteira Cotovio C Catia Pesquita

Abstract

Abstract Effective representations of protein sequences are widely recognized as a cornerstone of machine learning-based protein design. Yet, protein bioengineering poses unique challenges for sequence representation, as experimental datasets typically feature few mutations, which are either sparsely distributed across the entire sequence or densely concentrated within localized regions. This limits the ability of sequence-level representations to extract functionally meaningful signals. In addition, comprehensive comparative studies remain scarce, despite their crucial role in clarifying which representations best encode relevant information and ultimately support superior predictive performance. In this study, we systematically evaluate multiple ProtBERT and ESM2 embedding variants as sequence representations, using the adeno-associated virus capsid as a case study and prototypical example of bioengineering, where functional optimization is targeted through highly localized sequence variation within an otherwise large protein. Our results reveal that, prior to fine-tuning, amino acid–level embeddings outperform sequence-level representations in supervised predictive tasks, whereas global sequence-level embeddings tend to be more effective in unsupervised settings. However, optimal performance is only achieved when embeddings are fine-tuned with task-specific labels, with sequence-level representations providing the best performances. Moreover, our findings indicate that the extent of sequence variation required to produce notable shifts in sequence representations exceeds what is typically explored in bioengineering studies, showing the need for fine-tuning in datasets characterized by sparse or highly localized mutations.

Article Details

Volume / Issue Vol. 16, Issue 1
Published March 26, 2026
ISSN 2045-2322
Publisher Nature Portfolio

Journal Info

Scientific Reports

Nature Portfolio

ISSN: 2045-2322 Open Access Life Sciences

Authors (5)

A

Ana F. Rodrigues

L

Lucas Ferraz

L

Laura Balbi

P

Pedro Giesteira Cotovio

C

Catia Pesquita