PepGen: conditional generation of peptides for MHC binding.

Dani Korpela, Alexandru Dumitrescu, Martin Stražar, Rui Li, Ramnik J Xavier, Daniel B Graham, Harri Lähdesmäki

Journal: Bioinformatics (Oxford, England) 2026;42(Supplement_2):

PMID: 42635241

Abstract

MOTIVATION

Peptide-MHC II binding drives adaptive immunity, yet discovery of novel binder peptides remains challenging due to open binding grooves of MHC-II that accommodate variable-length peptides. While discriminative models perform well, they are unfeasible for generation via enumeration due to vast peptide space (2013≈8×1016 for peptides of length 13 amino acids). Generative AI approaches could accelerate binder design to enable vaccines targeted to particular MHC-II alleles or optimize other peptide chemical properties.

RESULTS

We introduce PepGen, the first protein language model for MHC II peptide generation building on Generalized Language Modeling. PepGen conditions on alleles, arbitrary partial peptides including putative TCR-interacting motifs, and continuous binding affinity. Across multiple benchmarks including infilling and de novo generation, PepGen outperformed frequency sampling, Gibbs clustering, and autoregressive baselines. Adjusted log-probabilities enable good classification performance. Experimental validation confirmed that the SARS-CoV-2 peptide TEGALNTPKDHIGTR binding the HLA-DQA101:03-DQB106:03 allele can be redesigned to bind the HLA-DQA101:02-DQB105:02 allele. PepGen generated three putative TCR-motif-preserving binders gaining up to 70% of original MFI. Overall, PepGen provides scalable, motif-constrained MHC II peptide redesign and de novo generation, validated through thorough benchmarks and functional assays.

AVAILABILITY AND IMPLEMENTATION

Code and Data are available at https://github.com/DaniTheOrange/PepGen.

© The Author(s) 2026. Published by Oxford University Press.

Address: Department of Computer Science, Aalto University, Espoo, 02150, Finland.; Broad Institute of MIT and Harvard, Cambridge, MA, 02142, United States.; Broad Institute of MIT and Harvard, Cambridge, MA, 02142, United States.; Department of Biotechnology and Systems Biology, National Institute of Biology, Ljubljana, 1000, Slovenia.; Broad Institute of MIT and Harvard, Cambridge, MA, 02142, United States.; Department of Computer Science, Aalto University, Espoo, 02150, Finland.
Bant logo

© Copyright 2026, Nutrition Evidence

NED wishes to thank the following organisations for their support:

We use cookies to improve your experience and analyze site traffic with Google Analytics. By continuing to use our site, you agree to our use of cookies. Learn more.