Flansma/helm-bert
HELM-BERT
A peptide language model using HELM (Hierarchical Editing Language for Macromolecules) notation, compatible with Hugging Face Transformers.

Model Description
HELM-BERT is built upon the DeBERTa architecture, pre-trained on ~75k peptides from four databases (ChEMBL, CREMP, CycPeptMPDB, Propedia) using Masked Language Modeling (MLM) with a Warmup-Stable-Decay (WSD) learning rate schedule.
- Disentangled Attention: Decomposes attention into content-content and content-position terms
- Enhanced Mask Decoder (EMD): Injects absolute position embeddings at the decoder stage
- Span Masking: Contiguous token masking with geometric distribution
- nGiE: n-gram Induced Encoding layer (1D convolution, kernel size 3)
<p align="center"><img src="assets/HELM-BERT.png" width="600"></p>
Model Specifications
How to Use
from transformers import AutoModel, AutoTokenizer
model = AutoModel.from_pretrained("Flansma/helm-bert", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("Flansma/helm-bert", trust_remote_code=True)
# Cyclosporine A
inputs = tokenizer("PEPTIDE1{[Abu].[Sar].[meL].V.[meL].A.[dA].[meL].[meL].[meV].[Me_Bmt(E)]}$PEPTIDE1,PEPTIDE1,1:R1-11:R2$$$", return_tensors="pt")
outputs = model(**inputs)
embeddings = outputs.last_hidden_stateTraining Data
Pre-trained on deduplicated peptide sequences from:
- ChEMBL: Bioactive molecules database
- CREMP: Cyclic peptide conformational ensemble database
- CycPeptMPDB: Cyclic peptide membrane permeability database
- Propedia: Protein-peptide interaction database
Downstream Performance
Permeability Regression (CycPeptMPDB)
Single-Assay (mixed PAMPA/Caco-2 target):
Per-Assay (separate models for PAMPA and Caco-2):
Train/test 9:1, val 10% from train. Scaffold split by Murcko scaffolds.
<p align="center"><img src="assets/tsnecycpeptmpdbpermeabilitymixrandom_scaffold.png" width="800"></p>
PPI Classification (Propedia v2)
Train/test 8:2, val 10% from train, 1:4 positive:negative ratio.
- Random: random split
- aCSM: clustering-based split on aCSM-ALL complex signatures with protein overlap pruning
<p align="center"><img src="assets/tsnepropediappirandomacsm.png" width="800"></p>
PPI Classification (ChEMBL)
Val 10% from train.
<p align="center"><img src="assets/tsnechemblppirandomfamily.png" width="800"></p>
Citation
@article{lee2026helmbert,
title={HELM-BERT: Topology-Aware Representations for Chemically Modified Peptides},
author={Lee, Seungeon and Koyama, Takuto and Maeda, Itsuki and Matsumoto, Shigeyuki and Okuno, Yasushi},
journal={Journal of Chemical Information and Modeling},
year={2026},
doi={10.1021/acs.jcim.6c00451},
publisher={American Chemical Society},
url={https://pubs.acs.org/doi/10.1021/acs.jcim.6c00451}
}License
MIT License
