Skip to main content
QUICK REVIEW

[Paper Review] Tranception: protein fitness prediction with autoregressive transformers and inference-time retrieval

Pascal Notin, Mafalda Dias|arXiv (Cornell University)|May 27, 2022
Genomics and Phylogenetic StudiesBiochemistry, Genetics and Molecular Biology123 citations
TL;DR

Tranception introduces an autoregressive transformer with inference-time retrieval of homologous sequences to boost protein fitness predictions, improving performance especially for shallow alignments and indels.

ABSTRACT

The ability to accurately model the fitness landscape of protein sequences is critical to a wide range of applications, from quantifying the effects of human variants on disease likelihood, to predicting immune-escape mutations in viruses and designing novel biotherapeutic proteins. Deep generative models of protein sequences trained on multiple sequence alignments have been the most successful approaches so far to address these tasks. The performance of these methods is however contingent on the availability of sufficiently deep and diverse alignments for reliable training. Their potential scope is thus limited by the fact many protein families are hard, if not impossible, to align. Large language models trained on massive quantities of non-aligned protein sequences from diverse families address these problems and show potential to eventually bridge the performance gap. We introduce Tranception, a novel transformer architecture leveraging autoregressive predictions and retrieval of homologous sequences at inference to achieve state-of-the-art fitness prediction performance. Given its markedly higher performance on multiple mutants, robustness to shallow alignments and ability to score indels, our approach offers significant gain of scope over existing approaches. To enable more rigorous model testing across a broader range of protein families, we develop ProteinGym -- an extensive set of multiplexed assays of variant effects, substantially increasing both the number and diversity of assays compared to existing benchmarks.

Motivation & Objective

  • Motivate accurate modeling of protein fitness landscapes across diverse protein families, including those hard to align or containing disordered regions.
  • Develop a non-MSA-trained protein language model that can leverage retrieval to incorporate homology information at inference.
  • Enhance prediction for substitutions, insertions, and deletions with robust performance across taxa.
  • Provide a large, diverse benchmark (ProteinGym) to rigorously assess mutation effect predictors across many assays.

Proposed method

  • Propose Tranception, an autoregressive transformer with specialized attention (Tranception attention) using grouped kernel convolutions to capture multiple k-mer patterns.
  • Replace standard position encodings with Grouped ALiBi to enable head-wise distance-aware attention and longer-context modeling.
  • Train on non-aligned UniRef sequences (700M parameter model; context size 1024) and apply sequence mirroring to improve bidirectional scoring.
  • Score fitness by computing log-likelihood ratios between mutated and wild-type sequences (Equation 2).
  • At inference, combine autoregressive predictions (P_A) with retrieval-based predictions (P_R) from an MSA retrieved at inference time (Equation 3, 4).
  • Use retrieval to obtain per-position amino-acid distributions from the retrieved MSA with pseudocounts and Laplace smoothing, re-weighted to correct sampling bias (Hopf et al. 2017).
  • Handle insertions/deletions by tailoring the retrieved MSA columns and relying on autoregressive mode for new positions, then average left-to-right and right-to-left scores for stability.

Experimental results

Research questions

  • RQ1Can an autoregressive transformer trained on non-aligned sequences achieve state-of-the-art protein fitness predictions without relying on MSAs during training?
  • RQ2Does inference-time retrieval of homologous sequences improve predictions, especially for proteins with shallow or no MSAs, and for indels?
  • RQ3How does Tranception perform across substitutions, multiple mutants, indels, and diverse taxa compared to alignment-based and other protein language models?
  • RQ4Is the model robust to MSA depth and capable of scoring regions that are difficult to align or disordered?
  • RQ5What benchmark can comprehensively assess mutation effects across a wide range of assays and taxa (ProteinGym)?

Key findings

  • Tranception (with retrieval) outperforms all baselines on ProteinGym substitution and indel benchmarks.
  • Retrieval substantially improves performance, with the largest gains for proteins with shallow MSAs and for multiple mutations.
  • Without retrieval, Tranception already exceeds non-retrieval baselines and competitive alignment-free models; with retrieval, it surpasses alignment-based methods.
  • The model shows robustness to MSA depth and can score regions that are poorly aligned or disordered, providing broad coverage across proteins (e.g., BRCA1, viral proteins).
  • Tranception excels in extrapolating far in sequence space, yielding larger gains for multiple mutants than for single mutants.
  • ProteinGym provides a diverse, expansive benchmark (including indels) that reveals clear advantages of Tranception over prior methods.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.