Joint protein, mRNA, and DNA sequence design and optimization with nucleotide-level Potts models

Blazej Banaszewski, Lars J. Dornfeld, Dexiong Chen, Karsten Borgwardt, Lukas F. MillesNeurIPS 2026

TL;DR

Designing a synthetic protein usually happens in two isolated steps: pick the amino acids to fold into a 3D shape, then translate them into DNA later. NuCaliby breaks this sequential bottleneck by designing protein, mRNA, and DNA sequences all at once at the individual nucleotide level. By uniting the entire "central dogma" of biology into a single energy landscape, it lets researchers bake complex genetic instructions—like host-specific translation boosts or hidden RNA regulatory switches—directly into a protein's blueprint without breaking its 3D fold.

What Problem Does This Paper Address?

Nature follows the central dogma: DNA makes mRNA, which makes protein. Because 61 three-letter nucleotide "codons" map to just 20 amino acids, the genetic code is redundant. Yet those "synonymous" codon choices aren't neutral—they govern mRNA stability, how fast a host cell's ribosome translates the gene, and whether regulatory RNA structures can form.

Standard AI protein design ("inverse folding") ignores this until the very end. Tools like ProteinMPNN take a target 3D protein backbone and output an amino acid sequence. Only after that sequence is locked in do scientists reverse-translate it into DNA. Locking in the amino acids first severely restricts your options if you also need to satisfy tricky DNA or RNA constraints—even though many other amino acid sequences could have folded into the exact same 3D shape! Recent tools that predict codons directly from structure learn rigid, averaged habits from natural genomes and offer no way to steer properties on the fly.

Figure 1: Conceptual differences between protein design performed sequentially on amino acid level and end-to-end on nucleotide-level. The former determines the amino acid sequence first, and optimization for DNA and RNA properties happens post hoc with optimization space limited to synonymous codons. NuCaliby enables amino acid and nucleotide level constraints to be enforced jointly during sampling, which allows design and optimization across the central dogma of life.

Methods

NuCaliby extends Caliby (a structure-conditioned neural Potts model—essentially a physics-inspired energy function over graphs) down to individual nucleotides ($A, C, G, T$).

  1. Nucleotide Graph Architecture: An encoder reads the 3D protein backbone at the residue level and expands it into a graph with $3N$ nucleotide nodes. Edges explicitly distinguish intra-codon interactions (linking the three letters of a single codon) from inter-codon interactions (linking nucleotides of structurally neighboring amino acids).
  2. Synonymous Marginalization: Rather than training on noisy genomic DNA—which would force the model to memorize organism-specific quirks—NuCaliby trains purely on protein structures. During masked-denoising training, its loss function sums (marginalizes) probabilities over all synonymous codons that encode the native amino acid, keeping the base model organism-agnostic.
  3. Inference-Time Guidance: Because a Potts model defines an explicit energy landscape, NuCaliby samples complete sequences using Discrete Langevin Monte Carlo (DLMC) and adds "plug-and-play" energy terms at inference time without retraining:
  4. Proposal guidance uses local energy gradients to nudge single-nucleotide mutations—used here to match a host's tRNA pool (tAI) or slide a target mRNA motif across the gene to find its happiest structural home.
  5. Acceptance guidance uses Metropolis-Hastings rejection steps to score whole sequences with black-box calculators like ViennaRNA for mRNA folding stability.
NuCaliby's dual-pathway architecture and guided DLMC sampling loop.

Datasets

  • Training: ~231,000 experimental protein structures from the PDB (sourced from the Boltz-1 training set using a temporal split), clustered at 40% sequence identity via MMseqs2, excluding transmembrane proteins. No genomic DNA datasets were required.
  • Evaluation: 183 soluble monomer backbones from the Caliby test set for in silico benchmarks, plus 8 structurally diverse de novo backbones for wet-lab validation in E. coli. No new benchmark datasets were introduced.

Key Insights and Ideas

  • Pairwise couplings spontaneously learn the genetic code: Codons are 3-body triplets, yet a Potts model only calculates 2-body (pairwise) interactions. Remarkably, NuCaliby self-organizes its couplings into codon-aligned triangles: positions 1 and 2 bind tightly, while position 3 has weaker couplings—naturally rediscovering biology's "wobble" base!
  • Stepping outside synonymous space breaks optimization ceilings: Traditional codon optimization hits a hard wall dictated by the fixed amino acid sequence. Because NuCaliby treats amino acid identities as soft structural preferences, cranking up guidance lets it swap in non-synonymous (different, yet structurally compatible) amino acids to push host adaptation much higher.
  • Dodging combinatorial explosions: Embedding an RNA motif (like an aptamer) at the amino acid level requires enumerating dozens or hundreds of valid residue patterns across reading frames. NuCaliby's sliding-window energy bias smoothly anneals the exact nucleotide motif into the least disruptive spot on the protein backbone.
Sliding-window mRNA motif guidance across a coding sequence.

Key Results

  • Zero penalty to foldability: On 183 test monomers, unguided NuCaliby matches residue-level Caliby in AlphaFold2 self-consistency (TM-score 0.579, RMSD 3.85 Å, pLDDT 60.8%) and substantially outperforms CodonMPNN (TM-score 0.441, RMSD 4.85 Å).
  • Controllable host adaptation & stability: Synonymous optimization with DNA Chisel caps E. coli tRNA adaptation (tAI) at 0.572; NuCaliby pushes tAI to 0.660–0.725 by trading off self-consistency via non-synonymous mutations. ViennaRNA guidance lowers mRNA free energy on 182/183 backbones (mean shift $-0.07\text{ kcal/(mol}\cdot\text{nt)}$).
  • 100% motif embedding: While standard sampling never embeds functional RNA motifs (SiRA aptamer or HIV-1 frameshift element) by chance in 16 tries, NuCaliby embeds single motifs on 183/183 test proteins within just $n=2$ samples (and both motifs simultaneously by $n=16$).
  • Wet-lab validation: Tested across 8 de novo backbones in E. coli, moderate tAI guidance ($\lambda = 30$) increased soluble protein yield across all 8 backbones—a ~24% median boost (from 0.042 to 0.052 mg/mL, $p = 0.0039$). Several designs carrying embedded RNA motifs also remained soluble and expressible.

Limitations and Future Work

  • Trade-offs under extreme guidance: Pushing nucleotide objectives too aggressively ($\lambda \ge 300$ for tAI) causes structural drift from the target protein backbone, and embedding rigid RNA motifs still reduces wet-lab expression in some constructs.
  • Global vs. local biological nuance: NuCaliby currently optimizes tAI globally across a gene, whereas natural genes often use position-specific profiles—like a "slow ramp" of rare codons at the 5' start to prevent ribosome traffic jams.
  • Future directions: The authors envision targeting position-specific translation profiles to steer co-translational folding, embedding active ribosomal frameshifts to produce multiple distinct proteins from one transcript, and applying NuCaliby to subtly re-engineer existing natural proteins.

Summary updated

Abstract

Protein design typically generates amino acid sequences first and then translates them into DNA post-hoc limiting control over the nucleotide sequence via codon choice at design time. We introduce NuCaliby, a structure-conditioned model that jointly designs amino acid, mRNA, and DNA sequences of a protein at nucleotide resolution. NuCaliby predicts a Potts model over a nucleotide graph, trained using amino acid supervision by marginalizing over synonymous codons. It preserves residue-level designability on par with the original Caliby model. Its energy-based formulation supports composable inference-time guidance from sequence-level objectives through proposal construction and candidate acceptance, allowing the incorporation of biological proxies into the coding nucleotide sequence. Under organism-specific tRNA adaptation guidance, NuCaliby improves adaptation to host tRNA pools beyond synonymous sequence space, trading-off self-consistency. NuCaliby also embeds specified RNA motif sequences directly into coding sequences, avoiding the combinatorial growth required for the same task at the amino-acid level. In wet lab experiments, NuCaliby produces expressible and soluble proteins on par with state of the art methods, while enabling more complex nucleotide-level control and optimization. Together, these results extend protein design beyond the amino acid level, enabling joint optimization across the central dogma of molecular biology. The code and model weights are available here: \href{https://github.com/blazejba/NuCaliby}
BibTeX
@inproceedings{banaszewski2026joint,
  author = {Blazej Banaszewski and Lars J. Dornfeld and Dexiong Chen and Karsten Borgwardt and Lukas F. Milles},
  title = {{Joint protein, mRNA, and DNA sequence design and optimization with nucleotide-level Potts models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=8tntvR1it9},
}
Figure