# JanusDDG: A Thermodynamics-Compliant Model for Sequence-Based Protein Stability via Two-Fronts Multi-Head Attention

arXiv: https://arxiv.org/abs/2504.03278 · HTML: https://mlsanity.com/paper/2504.03278/

## Key facts

- No citing papers in the map yet (data through 14 Oct 2026).
- Builds on 1 of its 45 references that are in the map.
- First posted on arXiv 4 Apr 2025.

## Builds on (most cited first, 1 of 1)

- [Attention Is All You Need](https://mlsanity.com/paper/1706.03762/) (2017)

## Abstract (arXiv)

Understanding how residue variations affect protein stability is crucial for designing functional proteins and deciphering the molecular mechanisms underlying disease-related mutations. Recent advances in protein language models (PLMs) have revolutionized computational protein analysis, enabling, among other things, more accurate predictions of mutational effects. In this work, we introduce JanusDDG, a deep learning framework that leverages PLM-derived embeddings and a bidirectional cross-attention transformer architecture to predict Delta Delta G of single and multiple-residue mutations while simultaneously being constrained to respect fundamental thermodynamic properties, such as antisymmetry and transitivity. Unlike conventional self-attention, JanusDDG computes queries (Q) and values (V) as the difference between wild-type and mutant embeddings, while keys (K) alternate between the two. This cross-interleaved attention mechanism enables the model to capture mutation-induced perturbations while preserving essential contextual information. Experimental results show that JanusDDG achieves state-of-the-art performance in predicting Delta Delta G from sequence alone, matching or exceeding the accuracy of structure-based methods for both single and multiple mutations. Code Availability:https://github.com/compbiomed-unito/JanusDDG
