Manuscript Offprint

arXiv:2610.18651

Does Pretraining Teach Chemical Language Models Chemistry?

Leif Sieben, Yoel Zimmermann

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Chemical language models (CLMs) are pretrained on large corpora of molecules with the aim of learning representations that transfer to diverse downstream tasks. Here, we systematically study the effects of pretraining using a series of such CLMs across 64 molecular property prediction datasets. We find that the downstream gains of pretraining in CLMs do not scale and performance saturates below gradient-boosting baselines. Across the regimes evaluated, only supervised pretraining on traditional physico-chemical descriptors consistently improves downstream performance for the CLMs tested whereas some forms of pretraining result in models worse than a randomly initialized encoder. While models can resolve molecular structure well, they do so no better than a randomly initialized model, suggesting that, at best, CLMs learn descriptor-like properties in addition to low-level token statistics during pretraining, but surprisingly little chemistry beyond what classical molecular features already capture.

1 Introduction

The pretraining of models on a diverse corpus before adapting them to a downstream task of interest by fine-tuning has been a key paradigm in the development of modern machine learning. The pretraining paradigm naturally motivates the training of very large foundation models that often outperform specialist models, which only see data from the specific task they are evaluated on [1–3]. The benefits of pretraining are generally understood to arise from the acquisition of reusable structure from the underlying domain. In natural language, pretraining has been shown to produce representations that encode linguistic structure, including parts of speech, syntax, and semantic information [4–6]. Similarly, vision models learn to encode semantic and object-level structure despite receiving no corresponding labels [7].

Given its success in other domains, the pretraining paradigm has also been applied to chemistry. Treating molecules as objects for machine learning requires them to be converted into suitable mathematical representations, which can be done via hand-crafted rules, notably descriptors, which are computed values describing specific molecular properties [8, 9], through molecular fingerprints [10, 11], or, increasingly, by using the embeddings of machine learning models [12, 13]. One common class of such models is trained analogously to language models, where instead of taking text as input these models are trained on molecules formatted as strings using SMILES [14]. Models can be trained fully unsupervised (i.e., using only unlabeled data) by making use of masked language modeling (MLM) [2], where the model is tasked with filling in missing tokens in a string. We refer to this type of model as a “chemical language model (CLM)”, which is equivalent to another commonly used term, “molecular language models”, with the advantage of a more distinct acronym. A CLM is trained on molecular data alone (i.e., structures and optionally molecular properties) as opposed to

∗^{*}Both authors contributed equally, names listed in alphabetical order.

40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: AI4Science.

LLMs that are fine-tuned or entirely trained on natural language corpora on the subject of chemistry (such as scientific literature, patents or experimental records) [15] or general-purpose LLMs used for chemical tasks [16].

In this work, we focus on the use of CLMs for molecular property prediction, where a model is tasked with predicting a property such as solubility, biological activity, or quantum-mechanical energy. We ask: does pretraining produce representations that encode chemically relevant information transferable to such downstream tasks? We illuminate this question from three perspectives: whether pretraining improves downstream prediction and continues to improve with the amount of pretraining data; whether these gains depend on chemically meaningful relationships in the pretraining data; and whether the resulting representations contain information beyond established molecular features and resolve chemically meaningful changes in molecular structure.

Related Work Prior work has produced mixed evidence that pretraining improves molecular property prediction. For GNNs, Sun, Dai, and Yu [17] found substantially larger gains from supervised than unsupervised pretraining, with weak scaling in unlabeled data and little benefit when relevant descriptors were available. Similar results have emerged for CLMs: MoLFormer showed no clear downstream scaling with pretraining dataset size [18], while ChemBERTa-2 found supervised multi-task regression (MTR) generally superior to MLM and that improved pretraining loss did not reliably translate to downstream gains [19]. Sultan et al. found combined MLM+MTR optimal but still below downstream-trained tree models [20], while Sagawa and Kojima found that downstream performance resists improvement even as pretraining loss scales with model and dataset size as well as compute [21].

Another line of work has asked what molecular information CLMs acquire during pretraining. Probing and interpretability studies have found evidence that pretrained representations encode aspects of molecular syntax, substructures, and property-relevant features [18, 22]. Karnysheva et al. [23] found that molecular substructures relevant for a downstream task undergo larger representational changes during fine-tuning than less relevant ones, but leave open whether this results in improved downstream property prediction. Interestingly, even randomly initialized models already encoded the basic motif of ring structures.

Our work connects these two lines of research by asking not only whether pretraining improves molecular property prediction, but what information is responsible for any resulting improvement. Across systematic supervised and unsupervised pretraining experiments, we test how downstream performance changes with pretraining dataset size, molecular and task similarity, and across control experiments where we pretrain on increasingly perturbed input data to isolate what information is required for successful pretraining. We further investigate whether the resulting representations contain information beyond established molecular fingerprints and descriptors and whether they resolve chemically meaningful changes in molecular structure. Together, our experiments provide tests of whether the benefits of molecular pretraining can be attributed to learning transferable chemical information.

References (51)