Skip to content

Finding small genes in soil with a DNA language model

Tim Rajakumar, Quentin Ferry
30 November 2026
11 min

Peptides, small proteins of 10 to 50 amino acids, include some of biology's most valuable molecules, yet gene finders routinely miss the genes that encode them. SmORFinder, a deep-learning tool trained on microbes from the human gut, showed a way to find them. But deep-learning tools often fail outside the data they learned from. So we asked whether SmORFinder still works in soil, the richest and least explored microbial habitat, and whether LOAM, our DNA language model pre-trained on soil, can do better. Here is what we found:

  • SmORFinder did not carry over. As released, it scored an AUROC of 0.71 on soil (0.5 is chance, 1.0 is perfect). Retrained on soil, it reached 0.84.
  • LOAM did better. A small head on our frozen LOAM-100M model reached 0.91, the best of every model we tried.
  • The lead held for translation. Trained on direct evidence of translation, the same kind of head ranked translated small ORFs best in genomes it had never seen.

For Soilytix, this is an exciting step on the way to mining soil for antifungal peptides.

Small genes, large blind spot

The coding part of a gene, its open reading frame (ORF), runs from a start codon to a stop codon. A small ORF (smORF) encodes a very small protein: in this post, one of 10 to 50 amino acids.

Diagram of the central dogma for one small ORF. On the DNA, the small ORF lies between a start codon and a stop codon. It is copied into messenger RNA, and the RNA is translated into a short chain of amino acids.
The central dogma for one small ORF. Schematic, not to scale.

A protein this short is usually called a peptide. Peptides do a lot of work. They are hormones and signals that cells send to each other, weapons that microbes use against competing bacteria and fungi, and small membrane proteins that switch larger transporters and enzymes on or off.

Some peptides are among the most valuable molecules that biology makes. Semaglutide, one of the GLP-1 drugs that are among the best-selling medicines in the world, has 31 amino acids. Nisin, an antimicrobial food preservative made by Lactococcus lactis, has 34. Insulin, at 51, sits just above our range.

Yet gene finders routinely miss small genes, for three reasons:

  • The signal is weak. Gene finders recognise coding DNA by its statistics, such as codon usage. Thirty codons give too few counts to tell a real gene from chance.
  • Decoys are everywhere. Three of the 64 codons are stops, so random DNA contains a stop about every 21 codons. Every genome holds far more chance ORFs of 10–50 codons than real small genes.
  • Cutoffs hide them. To keep false positives down, gene finders set a minimum length. Prodigal, the most used bacterial gene finder, considers only ORFs longer than 90 nucleotides (30 codons), and annotation pipelines often drop what remains.

A 2014 review said it in its title: small proteins can no longer be ignored.

Deep learning makes a dent

In 2019, Sberro and colleagues searched 1,773 human microbiome samples for small ORFs that evolution conserves: families of related sequences whose mutations keep the protein intact. They found more than 4,000 such families, most of them new.

SmORFinder (Durrant and Bhatt, 2021) trained neural networks on those families. The networks read an ORF and 100 nucleotides on each side (its flanks), and predict whether the ORF belongs to a conserved small-protein family. They find small genes that standard gene finders miss.

But SmORFinder learned the human gut, and a model trained in one environment often fails in another. Soil is about as far from the gut as microbial life gets.

Soil is also where much of the important biology is. Most antibiotics in clinical use were first found in soil bacteria such as Streptomyces, and soil microbes run the nutrient cycles that feed plants. Yet soil, the most diverse microbial habitat on Earth, is under-represented: sequencing has followed medicine, and many soil organisms have never been cultured. The Soilytix Bioasset discovery program aims to explore that gap.

Part of that program is a search for peptides, and every peptide begins as a small gene. So we started with two questions. Does SmORFinder still work on soil? And could a model that has already read soil DNA do better?

LOAM, a DNA language model trained on soil

The second question rests on a simple idea: a model can learn a lot about DNA before anyone shows it a gene. Language models for biological sequences learn the grammar of DNA or protein from huge amounts of unlabelled data, by predicting hidden or next letters. Their internal representations then carry much of what a specific task needs. A small model trained on top of them (a probe, or head) can do well with few labels, while the large model stays unchanged. Protein models such as ESM and DNA models such as Evo have shown this for many tasks.

LOAM is Soilytix's own DNA language model (blog post, preprint). It was pre-trained to predict the next nucleotide of genomes from environmental microbiomes, mostly soil and sediment. So it has read soil genomes, not laboratory strains, and it has never been told what a gene is. We have released four sizes, from 25 million to 624 million parameters. Here we use LOAM-100M (8 transformer blocks), a good compromise between what the network knows and how fast it runs.

A soil benchmark, built by the original rules

To answer both questions fairly, we needed soil data labelled by SmORFinder's own rules. So we rebuilt its training set from soil, starting with 154 long-read assemblies from Microflora Danica, a total of 296 billion bases.

First, we let Prodigal call too much on purpose. With its length cutoff lowered from 90 to 15 nucleotides, as in SmORFinder, it returned 12 million ORFs of at most 50 codons. These are candidates, not genes, because at this length, Prodigal cannot tell a real gene from a chance ORF.

We then let evolution do the sorting: we grouped the candidate peptides into families of similar sequences and applied Sberro's and Durrant's rules to tease apart gene and non-gene families. Both kinds of family have several members with slightly different DNA sequences. What separates them is how those sequences differ. In a gene family, the mutations spare the peptide: most leave the amino acids unchanged, or swap one for a similar one, and the reading frame stays open. This is the mark of protein-coding selection (tested with RNAcode). In a non-gene family, the mutations fall anywhere, as if there were no peptide to protect.

These are conservation labels: they say that evolution keeps the peptide, not that a cell makes it. We come back to this below. The resulting catalogue of peptide families is far larger than the gut catalogue behind SmORFinder.

  • Gene families
    Human gut (SmORFinder)
    4,539
    Soil (this study)
    86,471
    Ratio
    19×
  • Non-gene families
    Human gut (SmORFinder)
    4,705
    Soil (this study)
    34,630
    Ratio
    7×

To test the models fairly, we held out whole families. The hardest test set contains only families with no detectable relative in the training set (by DIAMOND protein search), so a model cannot pass it by memorising families.

How we keep score. We rank all test ORFs by a model's score and ask how often the real genes come out on top. The AUROC (area under the receiver operating characteristic curve) is the probability that a randomly chosen real gene scores higher than a randomly chosen non-gene: 0.5 is a coin toss, 1.0 a perfect ranking. AUROC does not change with the number of negatives, so it can be compared across test sets.

SmORFinder does not travel; LOAM leads

First, a check of our pipeline: on SmORFinder's own gut data, our copy matched the published accuracy (F1 within 0.003).

On the soil test families, the released model scored an AUROC of 0.71: better than chance, but only just useful. Retrained on soil with the same recipe, it reached 0.84. The gap runs both ways: the network retrained on soil lost 0.10 AUROC on gut families. Soil small genes are not gut small genes.

We then compared three kinds of model on the same soil data: SmORFinder retrained on soil; protein language models (ESM C and ESM-2), which see only the protein; and LOAM-100M, frozen, with a small trained head.

Chart of AUROC by model on soil gene families never seen in training. The LOAM-100M probe scores highest: 0.905 with 1,000 nucleotides of flank and 0.896 with 100. Then come ESM C (0.879), ESM-2 (0.848), SmORFinder retrained on soil (0.838), SmORFinder as released (0.712) and LOAM-100M with random weights (0.638).
Test families have no detectable relative in the training set: 160,878 gene and 28,887 non-gene examples in 12,502 families. Lines show 95% intervals from 1,000 bootstrap draws of families.

LOAM wins, and it wins at both flank lengths. A frozen model that was never shown a gene, with only a small head on top, finds soil's small genes better than SmORFinder, the network built and trained for exactly this task. It also beats the protein language models, although ESM C is six times its size. That lead is modest (0.026) but solid, with a 95% interval (0.020–0.032) well clear of zero. And LOAM needs little context to do it: 100 nucleotides of flank give almost everything, and 1,000 add only about 0.01.

Three checks tell us that the gain is real:

  • Pre-training is the cause. The same LOAM architecture with random weights, read and trained the same way, gives 0.64.
  • It is not memory. LOAM's gain over the retrained SmORFinder is the same on contigs that LOAM read during pre-training and on contigs it never read (+0.07 in both cases).
  • Bigger or fine-tuned is not automatically better. Fine-tuning LOAM-100M with LoRA did not beat the frozen probe: scored on the same test ORFs, it ended 0.005 lower. Evo 2 7B, a DNA model about 70 times larger and trained on other data, only equalled LOAM-100M on the sample of test ORFs that it scored (0.87 for both, with 1,000 nucleotides of flank). Note, a smaller test set is used here because Evo 2 is fairly costly to run.

From conservation to translation

Every label so far says that evolution keeps a peptide. None says that a cell makes it, and a discovery program needs peptides that cells really produce. What do we need to close this gap? Proof from the laboratory: experiments that catch ribosomes at work on an ORF (ribosome profiling, or Ribo-seq), and experiments that detect the peptide itself (mass spectrometry, or a tag fused to the peptide).

Such evidence is scarce, and scarcer still for soil, which is why most of the field trains and tests on conservation. So we went through the literature and gathered 79 public sources into one database. It covers 33 genomes and samples: 5 soil samples, where the evidence was measured directly in the soil, and 28 organisms grown in the laboratory. Only 15 of the 33 come from soil or root nodules. The others are laboratory species such as E. coli, Salmonella and M. tuberculosis, because that is where most translation experiments have been done. In our range of 10 to 50 amino acids, the database holds 2,130 small genes with direct evidence of translation.

The test asks one thing: within a genome, does a model rank the translated small ORFs above the ORFs that lie between genes (intergenic ORFs), for which no evidence of translation exists? We ran it twice. First we used the models as they are, straight out of conservation training. Then we gave them a new head trained on the translation evidence itself. For that, we held out each of the 33 genomes in turn, trained on the other 32 without any peptide related to one in the held-out genome, and tested on the genome that the head had never seen. Training used all the evidence, including genes of up to 100 amino acids; the test counted only our range.

A score for one genome needs enough examples, and only 13 of the 33 genomes have at least 10 small genes with evidence in our size range. The figure shows the mean AUROC over these 13. Only three come from soil or root nodules, because for soil organisms most of the evidence is for larger proteins.

Chart of mean AUROC over 13 held-out genomes, for translated small ORFs against intergenic ORFs. Used as they are, the models score 0.71 to 0.79. With a head trained on translation evidence, LOAM-100M scores 0.85 with 100 nucleotides of flank and 0.86 with 1,000, above the classical ORF features (0.78) and the ESM C head (0.71).
Mean AUROC per genome, over the 13 genomes with at least 10 small genes with evidence in the range of 10 to 50 amino acids. Lines show 95% intervals from 2,000 bootstrap draws of genomes.

Used as they are, the conservation-trained models already rank translated small ORFs above intergenic ones, so conservation labels do teach something about translation. The LOAM-100M probes with flank and the retrained SmORFinder lead, close together.

Translation evidence then separates the field. With a head trained on it, LOAM-100M reaches 0.85–0.86 with flank. That is 0.09 above the same LOAM features with their conservation-trained head, which shows what the new labels add, and 0.09 above the retrained SmORFinder (95% interval 0.06–0.14). The most telling comparison is with a classical model of codon and amino-acid composition, trained on the same evidence in the same way: LOAM leads it by 0.08, and in all 13 genomes. With the same labels, hand-made sequence statistics cannot match what LOAM extracts from the ORF and its surroundings.

What this means

Most microbial life has never been cultured, and most of its genes have never been annotated. The smallest genes, those that encode peptides, are missed most often. Gene finders carry the blind spots of the data they learned from into new environments, as SmORFinder's drop from the gut to soil shows. Deep learning can close that gap if the models learn from the environments we want to explore.

LOAM learned only to predict the next nucleotide of soil DNA. It was never shown a gene. Yet a small head on its frozen representations gives the best small-gene calls on soil peptide families with no relative in training. Given some translation evidence, it is also the best at ranking translated small ORFs above intergenic ones, in genomes it has never seen.

Pre-trained, soil-native models are therefore a practical tool to mine uncharted genomes: cheap to adapt, robust to new families, and ready to improve as experimental evidence grows.

For the Soilytix Bioasset discovery program, this is a good step toward a concrete goal: mining soil for antifungal peptides. Soil bacteria live side by side with fungi and compete with them, and peptides are among their weapons. But a peptide cannot be tested until its gene is found, and many of soil's small genes have gone unseen. With models that find them, the search can cover the candidates that standard gene finders never report.

About the authors

Tim Rajakumar

Co-founder, Chief Scientific Officer

Tim co-founded Soilytix and sets its research direction, owning the science behind its assays and claims. He leads the company's applied science and co-leads its AI work on bioassets with Quentin.

Quentin Ferry

Co-founder, Chief AI Scientist

Quentin co-founded Soilytix and leads its AI research, building deep learning and foundation models to better mine and understand soil biology. That work includes LOAM, the family of genomic language models used in this post.

Follow LOAM

See our privacy policy.