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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Masking Ratio, Encoder Depth and Corpus Scale in a DeepSMILES Chemical Language Model

Aayush Kothari, Julianne Wu, Marx Akl, Vansh Advani et al.
Research Square
Computational Drug Discovery Methods
preprint

Masking Ratio, Encoder Depth and Corpus Scale in a DeepSMILES Chemical Language Model

Aayush Kothari, Julianne Wu, Marx Akl, Vansh Advani, Sourish Rikkala, Mehul Biala, Murari Paluru
preprint en

Abstract

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).

Research Square
Aspiring Scholars Directed Research Program (US)
Computational Drug Discovery Methods
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon