←Morphogen
    Deep Read · mRNA vaccine design · 9 min

    An algorithm from speech recognition designs sturdier mRNA

    LinearDesign searches an astronomical space of equivalent mRNA sequences for tightly folded, well-coded ones; its designs degraded more slowly in buffer and raised more antibodies in mice.

    3 December 2026 · based on a paper in Nature
    virus particle on a cell surface, electron micrograph
    Photo: National Institute Of Allergy And Infectious Diseases

    Every protein can be written down in mRNA in an enormous number of equivalent ways. Because the genetic code uses 64 three-letter codons to specify only 20 amino acids, most amino acids have several synonymous codons — different spellings with the same meaning. For the 1,273-amino-acid spike protein of SARS-CoV-2, Zhang and colleagues calculate that roughly 2.4 × 10^632 distinct mRNA sequences all encode exactly the same protein. Those sequences are not biologically equivalent, though: they fold into different shapes, degrade at different rates and are translated with different efficiency. In a 2023 paper in Nature, the authors describe LinearDesign, an algorithm that searches that space for sequences that are both tightly folded and composed of codons the host cell prefers, and then report wet-lab tests of its designs as vaccine candidates against SARS-CoV-2 and varicella-zoster virus, the cause of chickenpox and shingles.

    The reason to care is mundane chemistry. mRNA is chemically unstable and prone to degrade, and a degraded molecule makes no protein. That fragility leads to insufficient protein expression, and the authors call it a major obstacle in the storage and distribution of mRNA vaccines, which require cold-chain technologies that hinder their use in developing countries. Earlier work had established the lever: more internal folding structure lengthens an mRNA's half-life, and structure plus well-chosen codons together raise protein output. The problem was that the standard tool of the trade — codon optimisation — pulls on only one of those levers, and the search space is far too large to enumerate. By the authors' estimate, checking every spike-encoding sequence one at a time would take roughly 10^616 billion years.

    How it works

    LinearDesign's objective combines two quantities. The first is minimum free energy, or MFE: the folding energy of the most stable shape a given RNA strand can fold into, in kilocalories per mole. A more negative MFE means a more heavily base-paired, double-stranded molecule, which the authors expect to be less prone to degradation than open loop regions. The second is the Codon Adaptation Index, or CAI, a score between 0 and 1, defined as the geometric mean of how closely each codon in a sequence matches the codon the host cell uses most frequently for that amino acid. The combined objective is the MFE minus a weighted codon term, with a dial the authors call lambda setting the balance: at zero it optimises stability alone, pushed to infinity it optimises codon usage alone.

    The computational trick is a borrowing from linguistics. The authors encode the whole design space as a deterministic finite-state automaton, essentially a compact graph in which every path from start to end spells out one valid mRNA for the target protein — the same device as the "word lattice" that speech recognition systems use to hold all the sentences compatible with a sound. One small lattice is built per amino acid and the lattices are strung together. RNA folding, meanwhile, is mathematically equivalent to parsing a string with a stochastic context-free grammar — a set of weighted rewrite rules, like grammar rules for sentences, here used to express folding energies — so finding the most stable fold is a parsing problem. The authors therefore use lattice parsing, a generalisation of the classical CKY parsing algorithm from a single string to an entire lattice, which folds every sequence in the design space simultaneously and returns the single best one together with its structure. Codon preference is folded into the same computation by giving each codon edge of the lattice a cost equal to the negative logarithm of that codon's relative adaptiveness, so a path's total weight carries the CAI term.

    The search is exact for the stated objective, which means the returned sequence is provably optimal under the energy model used — the standard nearest-neighbour thermodynamic model for RNA folding. In theory the runtime grows with the cube of sequence length; in practice the authors measure quadratic growth below about 10,000 nucleotides, and spike-sized designs finish in roughly eleven minutes. Adding the codon term costs about 15 per cent more time. A faster variant uses beam search, an approximation that keeps only the best 500 partial solutions at each step rather than all of them; it runs in linear time, cut the spike design to 2.7 minutes, and gave up 1.2 per cent of the energy objective, a gap that did not widen with longer sequences. Because beam search also yields near-optimal alternatives, it supplies a slate of candidates for laboratory testing rather than a single answer. The lattice formulation can additionally express alternative genetic codes, modified nucleotides and constraints such as banning particular codons or adjacent codon pairs.

    What the evidence shows

    In silico, the authors map the two-dimensional space of MFE against CAI for both antigens. The most stable designs reach free energies about 1.8 times lower than the best-possible-CAI designs, and are roughly 80 per cent base-paired versus about 60 per cent for codon-optimal ones. Crucially, the two optimisation directions turn out to be largely orthogonal: with human codon preferences, codon optimisation improves stability only marginally, and when the authors switch to yeast codon preferences, which favour A and U, optimising codons actually worsens stability. That is the argument for a joint objective rather than a sequential one.

    The laboratory tests compared seven LinearDesign spike mRNAs, all sharing the same flanking untranslated regions — the non-coding stretches on either side of the coding sequence, which strongly affect translation and were held fixed — against a benchmark sequence designed with a commercial codon-optimisation service and already used in a COVID-19 vaccine that had entered a Phase I trial in China. The design matrix deliberately held MFE constant across some groups and CAI constant across others, so the two factors could be separated. On a non-denaturing gel the sequences migrated in the order of their computed MFE despite similar molecular weights, consistent with the more structured molecules being more compact. In buffer containing 10 mM magnesium at 37 °C, in an assay the authors say follows earlier work, the lowest-MFE design had a half-life of 20.0 hours against 3.9 hours for the benchmark; at 20 mM the figures were 12.6 and 3.3 hours. In transfected human HEK293 cells, all seven designs produced more protein than the benchmark: 2.3-fold for two designs whose codon index nearly matched the benchmark's but whose MFE was lower, and 2.9-fold for the most stable design.

    In mice — groups of six C57BL/6 animals given two intramuscular doses of lipid-formulated mRNA two weeks apart — four LinearDesign sequences produced anti-spike IgG endpoint titres 57 to 128 times higher than the benchmark and neutralising antibody titres, which measure antibodies that actually block viral entry, 9 to 20 times higher. The benchmark showed very limited ability to induce antibodies, and a robust Th1-biased interferon-γ T cell response was induced only by the LinearDesign molecules. A second comparison against an mRNA carrying the BNT162b2 coding sequence with the same flanking regions showed slower degradation, higher expression and higher antibody titres for two LinearDesign molecules. The varicella-zoster experiments repeated the pattern with a different antigen and a different pair of untranslated regions: the most stable design had a half-life of 66.5 hours against 10.9 for a commercially codon-optimised control, and three designs raised significantly more antigen-specific IgG than that control and than the wildtype sequence. Notably, the best-expressing varicella designs were mid-range ones, beating both the lowest-MFE and the lowest-CAI extremes — internal evidence that the joint objective, not stability alone, is what matters. All of this was achieved with unmodified nucleotides.

    What it does not show

    Several limits are the authors' own. LinearDesign designs only the coding region; the authors state explicitly that it does not address optimisation of the untranslated regions, and treat the two as complementary problems. Only two properties are optimised, stability and codon usage, and the authors note that other relevant parameters could be added when models for them exist. Chemical stability is not modelled directly at all — the authors say it is hard to model and lean on its established correlation with thermodynamic folding stability — and the half-lives are measured in magnesium buffer, not in cells or animals. The optimality guarantee is only as good as the underlying folding energy model, and the predicted base-pairing between coding regions and untranslated regions rests on a separate folding prediction tool.

    The most stable designs were deliberately left untested. The first five amino acids were excluded from optimisation to avoid a heavily structured leader that could block ribosomes from starting translation, and long helices were avoided because they may trigger unwanted innate immune responses, so candidates closest to the optimal boundary were never made.

    The in vivo evidence is mouse-only, with six animals per group for the main spike experiment and five for the other two, analysed with non-parametric tests. No human or clinical efficacy data appear. The causal link from stability to immunogenicity remains correlational: the authors describe their inference that the designs are more stable inside the animal as speculation, and report no in vivo stability or antigen-kinetics measurement. The large antibody ratios also rest on a single comparator that itself induced very limited antibodies, which makes any fold-change against it fragile. The 2.3- to 2.9-fold expression gains and the half-life measurements are the firmer biological results. Because the designs used unmodified nucleotides, the work does not establish how the method interacts with the modified bases such as pseudouridine used in licensed vaccines; the authors say adaptation is easy once the corresponding energy model is available, which it is not yet. Therapeutic-protein uses are proposed, not demonstrated, and only two antigens from two viruses were tested. Finally, the commercial entanglement is substantial: patents were filed on the algorithm and on the varicella vaccine, the algorithm was licensed to a pharmaceutical company in 2021, 15 of the 16 authors were employees of the two companies involved, two are cofounders of a third, and the benchmark spike sequence was one already carried into a Phase I trial — which makes independent replication worth watching for.

    Where it fits

    The paper sets itself against three strands of prior work. Conventional codon-optimisation tools, including the two commercial services used as benchmarks here, improve codon usage but barely touch stability; optimising GC content has a similar effect, since GC content correlates with codon usage in vertebrates. Two earlier algorithms did attack the most-stable-mRNA problem directly, using specialised extensions of the classical Zuker folding algorithm, but according to the authors cannot incorporate codon optimality. The authors position the connection to lattice parsing as their most innovative contribution, on the grounds that it yields a simpler and more generalisable algorithm and makes the joint objective expressible at all. In the main text that case is argued conceptually rather than with a head-to-head comparison against those two predecessors.

    The biological hypothesis is not the paper's own. It comes from 2019 work showing that structure lengthens mRNA half-life and raises expression; the contribution here is the ability to test that hypothesis with molecules of much lower free energy than were previously reachable. A separate study by another group, cited by the authors, found that LinearDesign sequences with three different untranslated regions outperformed benchmarks for protein expression in vitro — external support for the expression claims, though not for the antibody results.

    What a reader searching for mRNA should take away is a division of confidence. The computational core is strong and checkable: an exact reduction with a stated optimality guarantee, concrete measured runtimes, a quantified approximation gap, and publicly released code. The cell-level and in-tube advantages are well supported by a design matrix built specifically to separate structure from codon usage. The headline immunogenicity figure is a single-study mouse result against one codon-optimised benchmark, and is better read as a direction than as a magnitude. The broader claim the work makes is architectural: that mRNA sequence design is a search problem with a tractable exact solution, and that the two things designers care about should be optimised together rather than one after the other.

    Paper
    Algorithm for optimized mRNA design improves stability and immunogenicity
    Authors
    He Zhang, Liang Zhang, Ang Lin, Congcong Xu, Ziyu Li, Kaibo Liu, Boxiang Liu, Xiaopin Ma, Fanfan Zhao, Huiling Jiang, Chunxiu Chen, Haifa Shen et al.
    Venue
    Nature · 2 May 2023
    Link
    doi:10.1038/s41586-023-06127-z
    Index
    stacks.braintank.ai
    Cite

    Keep reading

    SEM: yellow bacteria clustered on a red immune cell
    SEM: yellow bacteria clustered on a red immune cell

    SEM: yellow bacteria clustered on a red immune cell · Photo: National Institute Of Allergy And Infectious Diseases

    Morphogen · Angelman syndrome therapy

    An antisense molecule reactivates the silenced UBE3A copy in Angelman syndrome

    In human neurons, including a patient's, and in macaque spinal cord and brain, a short synthetic strand turned the father's silenced UBE3A copy partly back on. No functional outcome was measured.

    Science Translational Medicine · 22 March 2023

    Photo: Malcolm Choong

    Morphogen · Coronary artery genetics

    Coronary artery tissue from 44 people links heart-disease DNA variants to genes

    A Nature study profiles single cells from human coronary arteries to trace how non-coding risk variants act on gene switches, with a focus on smooth muscle cells.

    Nature · 25 November 2026
    a scientist holds a petri dish up to the light in front of stacked culture plates, vintage colour
    a scientist holds a petri dish up to the light in front of stacked culture plates, vintage colour

    A scientist holds a petri dish up to the light in front of stacked culture plates, vintage colour · Photo: National Cancer Institute

    Morphogen · RNA foundation models

    RNA language model learns from base pairing as well as sequence, and is released openly

    structRFM folds RNA secondary structure into its pre-training, and its authors report gains in structure prediction and in spotting functional RNA elements.

    Nature · 4 November 2026