Predicting and generating antibiotics against future pathogens with ApexOracle

Tianang Leng, Fangping Wan, Marcelo Der Torossian Torres, Cesar de la Fuente-Nunez

TL;DR

ApexOracle is a unified, multimodal AI platform that combines a discrete diffusion language model with genomic and text-based pathogen context to both predict antibiotic efficacy and design de novo antimicrobial molecules. Crucially, the model can generalize to entirely unseen, drug-resistant pathogens in a zero-shot manner, offering a proactive strategy for countering antimicrobial resistance before outbreaks occur.

What Problem Does This Paper Address?

The rise of antimicrobial resistance (AMR) is a looming global health crisis, already contributing to an estimated 4.95 million deaths annually. Traditional antibiotic discovery is painfully slow and expensive, meaning the pipeline of new drugs cannot keep pace with rapidly evolving bacterial defenses.

While machine learning has recently accelerated drug screening, existing AI approaches suffer from narrow focus and poor generalization. Most models are strain-specific—requiring massive, bespoke datasets to train separate models for each individual bacterium—or they focus exclusively on predicting general antimicrobial peptides (AMPs) without accounting for specific pathogen vulnerabilities. When faced with a novel, engineered, or highly resistant "future pathogen," these models fail because they lack biological and clinical context.

Methods

ApexOracle overcomes these limitations by introducing a unified representation-generation architecture that fuses three distinct data streams:

  1. Molecules: A discrete Diffusion Language Model (DLM) operating on SELFIES (Self-Referencing Embedded Strings) tokens. It is trained using a Masked Diffusion Language Model (MDLM) objective combined with multi-task regression (MTR) to predict 209 chemical descriptors from RDKit.
  2. Genomics: Whole-genome sequences are processed using Evo2, a foundational DNA language model, capturing critical genotypic hallmarks like resistance determinants and essential gene patterns.
  3. Textual Knowledge: A fine-tuned Me-LLaMA model extracts semantic embeddings from comprehensive pathogen trait descriptions (compiled via Qwen2.5-Max), covering taxonomy, Gram status, unique mutations, and documented resistance phenotypes.

These embeddings are fused via cross-attention mechanisms, treating the molecular representation as a query that attends to the genomic and textual knowledge banks. For molecule design, ApexOracle uses discrete predictor-based guidance and a remasking sampler to iteratively steer the generative module toward low minimum inhibitory concentrations (MIC) against specific target pathogens.

The architecture of ApexOracle and its unified prediction/generation pipeline.

Datasets

  • Chemical Pre-training: 121.6 million unique molecular sequences curated from PubChem, SmProt v2.0, UniRef, UniProt, and CycloPS (specifically chosen to include modification-rich peptides).
  • Antimicrobial Peptides (AMPs): A consolidated dataset of 17,988 peptides, 5,632 pathogen strains, and 121,265 MIC measurements combining an in-house collection and the DBAASP database.
  • Small Molecules: 49,331 molecule-strain pairs with binary activity labels against S. aureus RN4220, E. coli BW25113, and A. baumannii ATCC 17978.
  • Pathogen Synergy: 2,732 unique molecule-synergy-strain pairs from DBAASP.
  • Genomic Data: Sourced from the ATCC Genome Portal and NCBI.

Key Insights and Ideas

  • Atomic-Level Details Matter for Peptides: Traditional models treat AMPs as simple chains of canonical amino acids. However, over 71% of peptides in databases like DBAASP contain non-canonical amino acids, terminal modifications, or cyclic bonds. By using atom-level SELFIES tokens, ApexOracle captures these crucial structural nuances, outperforming residue-level models by a wide margin.
  • Synergy of Genome + Literature: Fusing raw genomic data with text-based clinical literature creates a holistic representation of a pathogen. The authors' ablation studies showed that removing either modality sharply degrades performance, proving they provide highly complementary signals.
  • Unified Framework: Instead of separating the "screening" model from the "generative" model, ApexOracle uses the same internal representations to both predict efficacy and guide the de novo creation of tailored molecules.

Key Results

  • Efficacy Prediction: The internal DLM outperformed alternative atom-level encoders by 27.1% in $R^2$ for strain-unaware MIC prediction. In strain-wise cross-validation on unseen strains, ApexOracle achieved an average $R^2$ of 0.5793.
  • Zero-Shot Classification: When tested on small-molecule antibiotic classification without any fine-tuning on the target strains, ApexOracle matched or beat fine-tuned baselines, showing an average gain of 8.3% in AUROC and 37.7% in AUPRC.
Performance metrics across cluster granularities, classification benchmarks, and ablation studies.
  • De Novo Generation: ApexOracle successfully designed novel molecules targeting priority threats like colistin-resistant E. coli and multi-drug resistant P. aeruginosa. The generated molecules showed significantly lower predicted MIC values and low structural similarity (Tanimoto similarity) to existing database compounds, indicating genuine chemical novelty rather than memorization.

Limitations and Future Work

  • Biological Outliers: The model struggles with pathogens that have highly atypical biology absent from the training data, such as cell-wall-deficient Mycoplasmatota, which yielded suboptimal designs.
  • Literature Dependency: The text modality relies heavily on the completeness of scientific literature; completely novel or uncharacterized pathogens won't benefit from this stream initially.
  • Objective Scope: Generation is currently optimized only for antibacterial potency. It does not explicitly account for toxicity, metabolic stability, or synthetic feasibility. The authors note that future work will aim to integrate multi-objective optimization (e.g., via reinforcement learning or Pareto-efficient generative methods) to address these clinical safety and manufacturing constraints.

Summary updated

BibTeX
@misc{leng2025predicting,
  author = {Tianang Leng and Fangping Wan and Marcelo Der Torossian Torres and Cesar de la Fuente-Nunez},
  title = {{Predicting and generating antibiotics against future pathogens with ApexOracle}},
  year = {2025},
  eprint = {2507.07862},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.07862},
}
Figure