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

Guido Barducci, Ivan Rossi, Francesco Codicè, Cesare Rollo, Valeria Repetto +4 more
4/4/2025
q-bio.QMcs.AIcs.LG

Official code: compbiomed-unito/JanusDDG (5 stars, MIT, last commit 2026-01-12).

Abstract

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 $ΔΔ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 $ΔΔ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

View on arXivView PDF

Code Implementations(1)

MIT
50Jinja, PythonSep 10, 20259 months agoMIT

Similar Papers

Cite this paper

@article{barducci2025janusddg,
  title  = {JanusDDG: A Thermodynamics-Compliant Model for Sequence-Based Protein Stability via Two-Fronts Multi-Head Attention},
  author = {Guido Barducci and Ivan Rossi and Francesco Codicè and Cesare Rollo and Valeria Repetto and Corrado Pancotti and Virginia Iannibelli and Tiziana Sanavia and Piero Fariselli},
  year   = {2025},
  eprint = {2504.03278},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.03278v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.03278.svg)](https://codeofpaper.com/paper/2504.03278)

Discussion