AMPDiffusion 8M

March 27, 2026 · View on GitHub

We release the 16.54M parameter AMPDiffusion checkpoint (7.40M ESM2-8M layers + 9.14M own parameters) trained on the same dataset of our Cell Biomaterials paper (S3050-5623(25)00174-6) with 19,670 AMP samples. It was trained on ESM2-8M embeddings and reused attention layer weights for initialization.

Quick Start

# Install dependencies
pip install torch fair-esm einops ema_pytorch

# Generate sequences
python note/generate.py \
    --checkpoint note/model.pt \
    --num 1000 \
    --length 25 \
    --output generated.csv

Evaluation

All models scored with the same evaluation pipeline for fair comparison. We report two AMPDiffusion variants:

  • AMPDiff-25aa: 50,000 unique sequences at fixed 25aa (matching other baselines' max length, enables full HydrAMP scoring)
  • AMPDiff-mix: 50,000 unique sequences at mixed lengths (10-39aa)

Eval CSVs for each model are in note/eval/.

1. Average MIC — APEX 11-Species (lower = better)

MIC (Minimum Inhibitory Concentration) predicted by APEX ensemble (40 models, 8 architectures x 5 repeats). Averaged across the ensemble. We report the mean across the same 11 pathogen species as the Cell Biomaterials paper:

A. baumannii ATCC19606, E. coli ATCC11775, E. coli AIG221, E. coli AIG222, K. pneumoniae ATCC13883, P. aeruginosa PAO1, P. aeruginosa PA14, S. aureus ATCC12600, S. aureus (ATCC BAA-1556) MRSA, vancomycin-resistant E. faecalis ATCC700802, vancomycin-resistant E. faecium ATCC700221

Note: These APEX values use the current public APEX repo and differ in absolute scale from the values reported in the original Cell Biomaterials paper, but the relative ranking of models is consistent.

MetricAMPDiff-25aaAMPDiff-mixAmpGANTrainingHydrAMPPepCVAE
Mean84.987.096.2100.7105.7115.9
Median85.288.7102.0109.7115.1126.5
% < 5012.8%11.7%11.8%11.3%6.1%2.9%
% < 10066.0%62.6%48.4%41.3%36.7%22.1%
% < 12894.6%94.4%76.2%72.5%66.1%53.2%

2. HydrAMP Classifier — P(AMP) and P(low MIC) (higher = better)

Binary classifiers from HydrAMP. P(AMP) = probability of being an antimicrobial peptide. P(low MIC) = probability of having low MIC. Max sequence length: 25 aa. All percentages computed on N scored (sequences <=25aa), not total generated.

MetricAMPDiff-25aaAMPDiff-mixTrainingHydrAMPAmpGANPepCVAE
N scored (<=25aa)50,00026,19813,89650K50K50K
P(AMP) mean0.9050.8820.8880.7820.6310.516
P(AMP) > 0.887.8%84.6%84.1%76.8%54.0%41.1%
P(low MIC) mean0.7030.6080.4790.5120.3160.205
P(low MIC) > 0.570.7%61.2%47.8%51.3%31.6%20.4%
P(low MIC) > 0.866.5%56.6%45.2%48.9%27.9%17.8%

3. ProGen2 Perplexity (lower = better)

Protein language model perplexity from ProGen2-medium. Lower PPL indicates more protein-like sequences.

MetricAMPDiff-25aaAMPDiff-mixTrainingAmpGANPepCVAEHydrAMP
Mean PPL15.8116.1217.8418.5120.0220.25
Median PPL16.1616.1317.7618.3019.7620.35

4. Amino Acid Frequency (AMPDiffusion vs Training)

AAAMPDiffusionTrainingDiff
A8.34%6.76%+1.58
C2.44%5.47%-3.03
D1.18%2.40%-1.22
E2.52%3.04%-0.52
F4.42%4.00%+0.42
G7.94%7.66%+0.28
H1.33%2.23%-0.90
I7.52%6.35%+1.17
K15.68%11.26%+4.42
L11.38%8.70%+2.68
M4.21%1.15%+3.06
N2.47%3.73%-1.26
P3.14%3.64%-0.50
Q2.57%2.88%-0.31
R9.84%10.26%-0.42
S3.47%4.56%-1.09
T2.83%3.40%-0.57
V5.34%6.20%-0.86
W2.06%3.81%-1.75
Y1.31%2.49%-1.18

The model enriches cationic residues (K +4.4%, L +2.7%) consistent with strong AMP activity.

Jensen-Shannon divergence from Training: 0.129 (AMPDiffusion), 0.146 (AmpGAN), 0.211 (HydrAMP), 0.084 (PepCVAE).

5. Diversity — Jaccard Similarity to Training (k-mers, mixed-length)

Model3-mer unique3-mer Jaccard3-mer coverage6-mer unique6-mer Jaccard
AMPDiffusion7,9830.98999.8%690,9630.030
AmpGAN7,9980.991100%392,3070.012
HydrAMP7,9920.99099.9%458,6920.011
PepCVAE7,9990.991100%575,9850.009

Training has 7,929 unique 3-mers and 142,236 unique 6-mers.

6. Internal Diversity

MetricAMPDiff-25aaAMPDiff-mixAmpGANHydrAMPPepCVAETraining
Total sequences50,00050,00050,00050,00050,00019,670
Unique sequences50,000 (100%)50,000 (100%)49,635 (99.3%)50,000 (100%)50,000 (100%)19,670 (100%)

Eval Data

Per-sequence evaluation CSVs are in note/eval/:

  • ampdiffusion_eval.csv — 50,000 generated sequences (mixed length)
  • ampdiffusion_25aa_eval.csv — 50,000 generated sequences (fixed 25aa)
  • train_eval.csv
  • ampgan_eval.csv
  • hydramp_eval.csv
  • pepcvae_eval.csv

Each CSV contains: sequence, 11 species-specific APEX MIC values, average_MIC_11sp, hydramp_pamp, hydramp_pmic, progen_ppl.