arXiv:2610.22025cs.LGOct 2026

Manuscript Offprint

arXiv:2610.22025

Not All Unlabeled Data Are Equal: Unlabeled Data Selection for Semi-Supervised QSAR Modeling with Large Chemical Repositories

Oliver Majer, Saso Dzeroski, Jurica Levatic

Oliver Majer 1,2^{1,2}, Sašo Džeroski 1^{1}[0000-0003-2363-712X], and Jurica Levatić 1^{1}[0000-0002-4025-051X]

1^{1} Jožef Stefan Institute, Jamova cesta 39, Ljubljana, Slovenia

{jurica.levatic,saso.dzeroski}@ijs.si

2^{2} University of Ljubljana, Faculty of Computer and Information Science, Večna pot 113, Ljubljana, Slovenia

olivermajer7@gmail.com

Abstract. Semi-supervised learning (SSL) is particularly attractive in domains where labels are expensive to obtain, while unlabeled examples are readily available. Quantitative Structure–Activity Relationship (QSAR) modelling, which predicts molecular biological activity from chemical structure, is one such domain. Obtaining activity measurements requires costly wet-lab experiments, resulting in small labeled datasets, while chemical repositories such as ChEMBL contain millions of unlabeled molecules. Despite this apparent suitability, the potential of large chemical databases to improve QSAR models via SSL remains largely unexplored. Furthermore, it is unclear how unlabeled data should be selected in realistic SSL settings with genuine unlabeled data.

We conduct a systematic study of unlabeled-data selection using 10 QSAR datasets extracted from ChEMBL and a pool of more than 400,000 unlabeled molecules. To this end, we evaluate three established SSL algorithms (self-training, co-training, and label propagation) and formulate four unlabeled-data selection strategies based on random, nearest-neighbour, furthest-neighbour, and mixed sampling.

Our results show that unlabeled data from large chemical repositories can improve QSAR models, with SSL outperforming the supervised baseline on all 10 datasets. Moreover, the most reliable improvements are generally achieved by selecting a relatively small number of chemically distant molecules. This suggests that the composition of the unlabeled set may be more important than its size, challenging the common premise that SSL necessitates an abundance of unlabeled data.

Keywords: Semi-supervised learning · Quantitative Structure–Activity Relationship · Unlabeled data selection

1 Introduction

Semi-supervised learning (SSL) aims to improve predictive performance by leveraging both labeled and unlabeled data during model training [3]. Unlike supervised

O. Majer et al.

learning, which relies exclusively on labeled examples, SSL exploits abundant unlabeled data to learn more accurate models. SSL has been successfully applied across many domains, including computer vision [4], natural language processing [19], and bioinformatics [13], particularly in settings where obtaining labels is expensive or time-consuming. Common SSL approaches include self-training, co-training, consistency regularization, and graph-based methods [5].

Quantitative Structure–Activity Relationship (QSAR) modeling represents an attractive application domain for SSL. QSAR modeling aims to establish relationships between the structural and physicochemical properties of molecules and their biological activities using computational models. By predicting molecular properties, QSAR models can accelerate drug discovery and substantially reduce development costs [12]. However, the predictive performance of QSAR models is often limited by the availability of labeled data [8].

In QSAR studies, labeled datasets are typically limited in size because biological activity measurements require costly and time-consuming wet-lab experiments. As a result, many publicly available QSAR datasets contain only tens to hundreds of molecules (Figure 1). On the other hand, large public chemical repositories such as ChEMBL contain millions of compounds, the vast majority of which lack labels for a specific prediction task [7]. This combination of scarce labeled data and abundant unlabeled molecules closely matches the premise underlying SSL and offers a potential for exploiting large chemical databases to improve QSAR models. However, despite the apparent suitability of QSAR modelling for semi-supervised learning, the potential of large chemical repositories to improve QSAR models within the SSL setting remains largely unexplored.

Previous studies leveraged large chemical repositories to learn molecular representations and enhance QSAR models through self-supervised pretraining followed by task-specific fine-tuning [9, 11]. Unlike self-supervised learning, which relies on computationally expensive pretraining to learn general-purpose molecular representations, classical SSL incorporates unlabeled molecules directly into the training of the target QSAR model. As a result, SSL can be applied in a task-specific manner without requiring large-scale pretraining and can be readily deployed whenever a small labeled dataset and a large pool of unlabeled molecules are available. Furthermore, because unlabeled data are exploited in a task-specific manner, classical SSL can capture information relevant to the target prediction task that may not be fully reflected in general-purpose molecular representations.

A closely related issue within the SSL field concerns the selection of unlabeled data. Namely, the vast majority of studies evaluate SSL methods using simulated unlabeled data generated by removing labels from a portion of the existing labeled dataset. This setup implicitly assumes that the unlabeled and labeled data come from the same distribution and typically deals with a relatively small pool of unlabeled data (i.e., a part of labeled dataset), which is unselectively provided to SSL algorithms. This setting, however, does not correspond to the real-world scenario which inspired the development of SSL in the first place: scarce labeled examples accompanied by a vast pool of unlabeled data (with a possible distribution mismatch). It is therefore currently unclear how unlabeled

Figure

Fig. 1: Histogram of dataset sizes (in terms of number of labelled compounds) for 2970 biological targets extracted from the ChEMBL database.

data should be selected in real-world SSL applications with access to large pools of genuinely unlabeled data, and how different selection strategies affect the predictive performance of SSL algorithms.

To this end, we conduct a systematic study of unlabeled data selection in QSAR modeling using 10 datasets extracted from the ChEMBL database and a pool of more than 400,000 unlabeled molecules. With this, we simultaneously address the two aforementioned open questions: (i) whether large chemical databases can be exploited to enhance QSAR models via SSL, and (ii) how unlabeled data selection affects the performance of SSL models in a real-world setting. We consider three well-known SSL methods (self-training [19], co-training regression [1], and label propagation [22]) and propose four different unlabeled data selection strategies: random sampling, nearest-neighbour selection, furthest-neighbour selection, and mixed strategy. We evaluate these strategies across varying unlabeled set sizes.

Our experiments reveal a somewhat counter-intuitive result: selecting a relatively small number of chemically distant molecules yields more reliable improvements in SSL predictive performance. This finding challenges the typical SSL premise of exploiting large amounts of unlabeled data and suggests that the composition of the unlabeled set may be more important than its size. From a practical perspective, it further indicates that better SSL performance may be achievable using only a small amount of unlabeled data, potentially reducing the computational cost of model training.