Darwin-7B: A Multi-Omic Foundation Model for the Human Gut Microbiome via Sparsified Quality-Aware Tokenization

Arvid E. Gollwitzer, David de GruijlNeurIPS 2026

TL;DR

Understanding a microbial ecosystem requires knowing both who is there (their DNA) and what they are doing chemically (the small molecules they produce and consume). While existing biological foundation models only look at DNA in isolation, Darwin-7B is the first 7-billion-parameter model to jointly ingest raw, messy microbial DNA sequences alongside chemical metabolite profiles. By uniting genetics and chemistry, it significantly outperforms traditional predictors on complex clinical tasks like detecting inflammatory bowel disease, type 2 diabetes, and antibiotic resistance.

What Problem Does This Paper Address?

Your gut microbiome is a bustling chemical factory that profoundly shapes your health. To understand how it works, scientists examine two coupled layers: metagenomics (sequencing all the mixed-up DNA fragments in a sample to see which microbes are present) and metabolomics (using mass spectrometry to measure the small molecules those microbes are actively consuming and producing).

Until now, biological foundation models like Evo 2 or METAGENE-1 have been single-track minds: they only read DNA, and most expect clean, fully assembled genomes from single organisms. Real-world microbiome data, however, has three tricky quirks:

  1. Messy mixtures: Samples contain fragmented, variable-quality DNA reads from thousands of unknown species that often cannot be cleanly reassembled.
  2. Many-to-many chemistry: Microbes interact with their host via complex chemical reactions where multiple enzymes, substrates, and products collide at once.
  3. Compositional math: Microbial abundances are relative proportions (percentages summing to 100%, living on a geometric "simplex"). Applying standard Euclidean math to proportions creates mathematical illusions and spurious correlations.

Methods

Darwin-7B tackles these biological quirks by combining off-the-shelf sequence modeling with bespoke domain-specific modules:

Figure 1: Darwin-7B architecture: A multi-omic foundation model that jointly models metagenomic reads and metabolomic profiles using a Mamba–Transformer hybrid backbone, bidirectional cross- modal attention, a KEGG-based hypergraph neural network, and a compositional (CLR) consistency constraint. Genomic and metabolomic tokens occupy disjoint index ranges of the shared 40,192-token vocabulary and run as separate streams that interact only in the cross-modal attention modules after layers 16 and 32. The compositional-output panel is schematic; each row stands for one sample’s relative-abundance profile over taxa.
  • Quality-Aware Tokenization (Standard/Prior Work): Raw DNA reads and mass-spectrometry peaks are compressed into tokens using QA-Token, which weights data by sequencing quality and signal-to-noise ratio. DNA and metabolites share a 40,192-token vocabulary using strictly separate index ranges (plus a learned "null token" when metabolite data is missing).
  • Hybrid Backbone (Standard): A 32-layer trunk interleaves Mamba state-space layers with local-window Transformer layers in a 3:1 ratio—giving it Mamba's linear-scaling speed for long context and Transformer precision for short DNA motifs.
  • Hypergraph Neural Network (Novel): Pairwise graphs can't capture multi-molecule chemistry. The authors built a 3-layer hypergraph network over known metabolic reactions (from the KEGG database), allowing metabolite tokens to pass messages along multi-node reaction "hyperedges."
  • Bidirectional Cross-Modal Attention (Novel): The DNA and chemical streams run separately until they exchange information after layers 16 and 32. Contrastive alignment is cleverly applied before layer 16 so the model can't "cheat" by copying features across streams.
  • Aitchison-Space Loss (Novel application): To respect relative abundance geometry, outputs pass through a Centered-Log-Ratio (CLR) transform before computing error, preventing spurious correlations.

Datasets

  • Pretraining: 8 trillion base pairs of raw public metagenomes (NCBI SRA, ENA, MG-RAST—where QA-Token boosts usable archive reads from ~5% to ~40%), 250K LC-MS/MS metabolite profiles (MetaboLights, Metabolomics Workbench), 2M KEGG/GO functional annotations, and the first shard of MetaOmics-10T (which includes perturbation trajectories showing how communities react to interventions).
  • Evaluation: Tested on raw-read pathogen detection, species profiling (CAMI-II), antibiotic resistance (CARD), and clinical cohorts including HMP2 (IBD), type 2 diabetes (T2D), colorectal cancer, and external populations like FINRISK. The authors also release four new datasets alongside their training manifest.

Key Insights and Ideas

  • For DNA-only tasks, data curation beats architecture: When Darwin-7B is scaled down to match the exact training data size and tokenizer of its 7B-parameter rival (METAGENE-1), the two models tie on pathogen detection. Darwin-7B's raw-read advantage comes entirely from better quality-aware tokenization and a larger corpus—a refreshingly honest finding!
  • Chemistry + Interventional Data are load-bearing: Ablation studies show that predicting active metabolic pathways relies heavily on the multi-omic components and interventional pretraining data (seeing how ecosystems respond to shocks, rather than just static snapshots).
  • Emergent biological hierarchy: Without being explicitly taught taxonomy, Darwin-7B organizes life from coarse to fine along its depth—broad phyla become linearly decodable by layer 12, while specific species crystallize around layers 22–24.

Key Results

Benchmark performance

Figure 2: Benchmark performance: a, Raw-read tasks. Darwin-7B with its full corpus (8 T bp, QA-Token) leads METAGENE-1, but Darwin-7B trained at METAGENE-1’s data scale with BPE (1.5 T bp) ties it, so the lead comes from the corpus (Tab. 3). Evo 2-7B, pretrained on assembled genomes, is out of distribution (OOD, hatched). n.e.: not evaluated. b, In-cohort tasks with paired metagenomes and metabolomes; Darwin-7B is compared with four classical multi-omic predictors on identical folds. AUC and wF1 are scaled by 100. Bars show mean ± SD over ≥5 seeds; Tab. 9 lists every value.
  • Raw-Read Tasks: Reaches 94.5 MCC on Pathogen Detection (beating METAGENE-1's 93.0, though tying at 92.8 vs. 93.0 at matched data scale) and 0.98 F1 on CAMI species profiling.
  • Clinical Multi-Omics: Outperforms classical integration methods (like MOGONet and DIABLO) across all four paired benchmarks, hitting 0.947 AUC for IBD, 0.883 AUC for T2D, 0.910 AUC for antibiotic resistance (+3.0 to 3.7 AUC points over the strongest baseline), and 0.91 weighted F1 on metabolic pathways.
  • Scaling & Efficiency: Performance improves monotonically from 100M up to a 70B-parameter extension without saturating. Reusing the QA-Token vocabulary cuts downstream fine-tuning label requirements roughly 4-fold.
Figure 3: Ablations and scaling: a,b, Change from the full model when one component is removed and the model is retrained with a matched token budget, for metabolic-pathway wF1 (a, in points) and Pathogen Detection MCC (b). Error bars: SD of the ablated configuration over 5 seeds; gray band: SD of the full model. Every removal lowers pathway wF1 significantly, led by interventional pretraining data (−12 points) and the metabolomic stream (−9 points); on Pathogen Detection only removing the QA-Token corpus, the Transformer layers, or interventional data clears the seed spread (Welch t-tests, Holm-corrected). c, Token-matched scaling (100 B tokens per scale) of IBD AUC and Pathogen MCC with the QA-Token or BPE corpus; points are means over 5 seeds, the IBD-AUC gap widens from +0.009 at 100M to +0.038 at 7B, and the 7B Pathogen points are runs at matched data scale (1.5 T bp). Tabs. 12–13 (App. J.4–J.5) list all values.

Limitations and Future Work

The authors are admirably transparent about where their evidence stops:

  • Screening-grade, not clinic-ready: On external cohorts across three continents, performance drops by 9–14 points (0.808–0.856 AUC). Clinical deployment will require site-specific recalibration.
  • Simulations vs. real humans: Their promising dietary-intervention study ($n=87$, $r=0.72$ predicting glycemic changes) and causal analyses were conducted in silico on virtual trajectories. A real, three-site human clinical trial ($n=500$) is planned for future work.
  • Decodability $\neq$ Mechanism: Just because taxonomic ranks and pathways can be read out from internal layers doesn't prove the model uses them as true causal mechanisms.
  • Compute & Edge Cases: Pretraining cost ~129K A100 GPU-hours (and 540K more for scaling up to 70B), ancient degraded DNA still trips up the model, and model weights are gated (with no code released) due to biosafety risks.

Summary updated

Abstract

Microbial ecosystems govern human health, agricultural productivity, and biogeochemical cycling. Two coupled modalities determine their function: which organisms are present (metagenomic content) and which small molecules they produce and consume (metabolomic content). Existing biological foundation models operate on a single modality, mostly on assembled single-organism genomes. We introduce *Darwin-7B*, a $7$-billion-parameter multi-omic foundation model that takes raw metagenomic reads and liquid chromatography--tandem mass spectrometry (LC-MS/MS) metabolite profiles as joint input. We combine a Mamba--Transformer hybrid trunk ($24$ of $32$ layers Mamba) with a hypergraph neural network over KEGG metabolic reactions and two bidirectional cross-modal attention modules that couple the genomic and metabolomic streams. We enforce a centered-log-ratio consistency loss that respects the simplex geometry of abundance data. We pretrain *Darwin-7B* on $8\,\text{T}$ base pairs of metagenomic reads, $250\text{K}$ LC-MS/MS metabolite profiles, and $2\text{M}$ KEGG/GO functional annotations, curating the reads with a quality-aware tokenization framework from prior work. Our evaluation shows three key results. First, on Pathogen Detection, *Darwin-7B* reaches a Matthews correlation coefficient (MCC) of $94.5$ against $93.0$ for METAGENE-1, the matched $7\text{B}$ genomic baseline; at METAGENE-1's data scale the two models tie ($92.8$ vs. $93.0$), showing that the raw-read lead comes from corpus curation and scale. Second, on four clinical tasks with paired metagenomes and metabolomes, *Darwin-7B* outperforms all evaluated multi-omic predictors: inflammatory bowel disease (IBD) prediction reaches an area under the ROC curve (AUC) of $0.947$, type 2 diabetes reaches $0.883$, antibiotic resistance reaches $0.910$, and metabolic-pathway weighted F1 (wF1) reaches $0.91$. Removing the metabolomic stream, the hypergraph neural network, or cross-modal attention drops pathway wF1 by $0.06$--$0.09$. Third, we observe monotone performance gains as we scale from $100\text{M}$ to $70\text{B}$ parameters at fixed token budgets, and we observe screening-grade transfer across four external clinical cohorts ($0.808$--$0.856$ AUC).
BibTeX
@inproceedings{gollwitzer2026darwin,
  author = {Arvid E. Gollwitzer and David de Gruijl},
  title = {{Darwin-7B: A Multi-Omic Foundation Model for the Human Gut Microbiome via Sparsified Quality-Aware Tokenization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=BYzy56EOoz},
}
Figure