Masking Ratio, Encoder Depth and Corpus Scale in a DeepSMILES Chemical Language Model
Masked language models (MLMs) have become a fixture of molecular machine learning, yet the pretraining hyperparameters governing their behavior on alternative molecular string representations remain underexplored. We present a systematic characterization of DeepBERTa, a ChemBERTa-derived MLM trained on DeepSMILES, extended here from fragment prediction to molecular property prediction across six MoleculeNet classification tasks. Across a joint encoder-depth by masking-ratio grid (four depths, six ratios, twenty-four pretrained checkpoints) evaluated on Tox21, BBBP and ClinTox, the conventional 15\% masking rate is not uniquely optimal, the 70\% ratio falls within 0.004 ROC-AUC of it, and the effect of encoder depth is task-dependent: six layers is strongest pooled, yet twelve layers is the best depth on BBBP and the worst on ClinTox, and the deepest models are the most sensitive to the masking ratio. In a matched six-layer SMILES control trained on the same corpus, the SMILES encoder attains its best masking ratio above 15\% on the two tasks tested (30\%, 50\%), reproducing the pattern reported for SMILES elsewhere, whereas DeepSMILES does not reproduce that ordering and scores higher than SMILES at nine of ten matched cells. We conclude that masking-ratio optimums derived from SMILES appear to be representation-specific. Consistent with recent reports at larger scale, we also find that pretraining corpora from 1M to 20M molecules give no consistent benefit on any task under two different tokenizers. DeepBERTa is competitive on binary tasks, reaching 0.730 on BBBP and 0.816 on BACE, and weaker on the 27-endpoint SIDER multitask benchmark (0.58--0.60).
Authors
- Aayush Kothari (ORCID: https://orcid.org/0000-0002-9668-1175)
- Julianne Wu (ORCID: https://orcid.org/0009-0004-0666-4980)
- Marx Akl
- Vansh Advani
- Sourish Rikkala
- Mehul Biala
- Murari Paluru
Institutions
- Aspiring Scholars Directed Research Program (US)
Publication Details
- Journal
- Research Square
- Published
- 2026-11-30
- DOI
- https://doi.org/10.21203/rs.3.rs-11911650/v1
- Primary Topic
- Computational Drug Discovery Methods
- Type
- preprint