Convolutions are competitive with transformers for protein sequence pretraining
Abstract
Pretrained protein sequence language models have been shown to improve the performance of many prediction tasks, and are now routinely integrated into bioinformatics tools. However, these models largely rely on the Transformer architecture, which scales quadratically with sequence length in both run-time and memory. Therefore, state-of-the-art models have limitations on sequence length. To address this limitation, we investigated if convolutional neural network (CNN) architectures, which scale linearly with sequence length, could be as effective as transformers in protein language models. With masked language model pretraining, CNNs are competitive to and occasionally superior to Transformers across downstream applications while maintaining strong performance on sequences longer than those allowed in the current state-of-the-art Transformer models. Our work suggests that computational efficiency can be improved without sacrificing performance simply by using a CNN architecture instead of a Transformer, and emphasizes the importance of disentangling pretraining task and model architecture.
02 /Specification & Classification
Click any tag to browse matching papersReproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Transforming the Language of Life: Transformer Neural Networks for Protein Prediction Tasks
Ananthan Nambiar, Simon Liu, … Anna Ritz·bioRxiv·Jun 15, 2020
- ProtHyena: A fast and efficient foundation protein language model at single amino acid resolution
Yiming Zhang, Manabu Okumura·bioRxiv·Jan 18, 2024
- Transformer protein language models are unsupervised structure learners
Roshan Rao, Joshua Meier, … Alexander W. Rives·bioRxiv·Dec 15, 2020
- E1: Retrieval-Augmented Protein Encoder Models
Sarthak Jain, Joel Beazer, … Ali Madani·bioRxiv·Nov 12, 2025
- MSA Transformer
Roshan Rao, Jason J. Liu, … Alexander W. Rives·bioRxiv·Feb 12, 2021
- xTrimoPGLM: Unified 100B-Scale Pre-trained Transformer for Deciphering the Language of Protein
Bo Chen, Xingyi Cheng, … Le Song·bioRxiv·Jul 5, 2023