Convolutions are competitive with transformers for protein sequence pretraining.

Journal: Cell systems
Published Date:

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 whether 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 with, 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. A record of this paper's transparent peer review process is included in the supplemental information.

Authors

  • Kevin K Yang
    Division of Chemistry and Chemical Engineering; California Institute of Technology; Pasadena, California; United States of America.
  • Nicolo Fusi
    Microsoft Research New England, Cambridge, MA 02139, USA.
  • Alex X Lu
    Department of Computer Science, University of Toronto, Toronto, Canada.