End-to-end learning of multiple sequence alignments with differentiable Smith-Waterman
Samantha PettiiD, Nicholas BhattacharyaiD, Roshan RaoiD, Justas DauparasiD, Neil ThomasiD, Juannan ZhouiD, Alexander M. RushiD, Peter K. KooiD, Sergey OvchinnikoviD
Abstract
Multiple Sequence Alignments (MSAs) of homologous sequences contain information on structural and functional constraints and their evolutionary histories. Despite their importance for many downstream tasks, such as structure prediction, MSA generation is often treated as a separate pre-processing step, without any guidance from the application it will be used for. Here, we implement a smooth and differentiable version of the Smith-Waterman pairwise alignment algorithm that enables jointly learning an MSA and a downstream machine learning system in an end-to-end fashion. To demonstrate its utility, we introduce SMURF (Smooth Markov Unaligned Random Field), a new method that jointly learns an alignment and the parameters of a Markov Random Field for unsupervised contact prediction. We find that SMURF learns MSAs that mildly improve contact prediction on a diverse set of protein and RNA families. As a proof of concept, we demonstrate that by connecting our differentiable alignment module to AlphaFold and maximizing predicted confidence, we can learn MSAs that improve structure predictions over the initial MSAs. Interestingly, the alignments that improve AlphaFold predictions are self-inconsistent and can be viewed as adversarial. This work highlights the potential of differentiable dynamic programming to improve neural network pipelines that rely on an alignment and the potential dangers of relying on black-box methods for optimizing predictions of protein sequences.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 54
- FWCI
- 3.26
- Field percentile
- top 6%
- Assay
- Research Focus
- Approach
Reproducibility 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
- rawMSA: End-to-end Deep Learning Makes Protein Sequence Profiles and Feature Extraction Obsolete
Claudio Mirabello, Björn Wallner·PLoS ONEPeer-reviewed·Aug 15, 2019
- So ManyFolds, So Little Time: Efficient Protein Structure Prediction With pLMs and MSAs
Thomas D. Barrett, Amelia Villegas-Morcillo, … Arthur Flajolet·bioRxiv·Oct 15, 2022
- Effective structure-aware protein alignment via residue-level contrastive learning
Ronghui You, Ziye Wang, … Shanfeng Zhu·bioRxiv·Mar 9, 2024
- Deep Neural Network for Protein Contact Prediction by Weighting Sequences in a Multiple Sequence Alignment
Hiroyuki Fukuda, Kentaro Tomii·BMC BioinformaticsPeer-reviewed·Jan 9, 2020
- SoftAlign: End-to-end protein structures alignment
Jeanne Trinquier, Samantha Petti, … Sergey Ovchinnikov·bioRxiv·May 9, 2025
- Fast, accurate construction of multiple sequence alignments from protein language embeddings
Minh Hoang, Isabel Armour-Garb, Mona Singh·bioRxiv·Mar 13, 2026