Manuscript Offprint
arXiv:2610.41070D2ML: Models for Direct-to-Biology Small Molecule Screening
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
1 Introduction
Molecular property prediction is a central problem in machine learning for drug discovery. Property prediction models (e.g., for protein–ligand binding) are often highly data-limited, and their performance degrades substantially outside the training distribution [Wallach and Heifets, 2018, Fooladi et al., 2025]. Chemical property landscapes compound this challenge: most molecules may be inactive for a given problem, while compounds nearby in chemical space can nevertheless differ substantially in activity, a phenomenon known as an “activity cliff” [Maggiora, 2006, Stumpfe and Bajorath, 2012].
Small-molecule discovery searches enormous chemical spaces under economic constraints: custom synthesis costs approximately US$1000 per compound, and design cycles take around 10 weeks. Conventional search therefore operates in two phases. Hit identification uses methods like high-throughput screening or DNA-encoded libraries, which amortize pre-established libraries across screens of multiple targets, to broadly sample chemical space and identify initial hits. In hit-to-lead and lead optimization, medicinal chemists iteratively synthesize close analogs to explore local structure–activity relationships while limiting experimental cost. As a result, activity datasets often suffer from a “streetlight effect” in which active compounds occur in closely related series — not because they are the only possible actives, but because they are particularly accessible through local search [Blevins and Quigley, 2025]. Models must therefore learn from data that are scarce, chemically biased, and subject to temporal distribution shift during discovery program progress. Useful models must operate within a design–make–test–learn (DMTL) cycle in which experimental resources are limited and compounds are evaluated against multiple objectives rather than a single endpoint.
An alternative strategy combines nanogram-scale high-throughput chemical synthesis (HTCS) with biological testing of crude reaction mixtures (i.e., taking reactions “direct to biology” without purification), allowing novel compounds to be made and tested in days. Carmot Therapeutics was the first to industrialize this HTCS direct-to-biology strategy (“D2B” for short) as a centerpiece chemical exploration strategy, successfully discovering multiple drugs using the approach in a purely empirical experimentally-driven, rather than model-guided, manner [Hansen et al., 2018, Shin et al., 2019, Rodriguez et al., 2025]. Machine learning has also been applied to D2B workflows to identify potent compounds obscured by low reaction yields and to guide prospective selection from virtual libraries [McCorkindale et al., 2024]. Extending model-guided D2B to an assay cascade introduces additional challenges. Even conventional chemical search requires modeling variable-fidelity data from high-throughput screening vs focused low-throughput assays; benefiting from D2B’s scale further requires handling unpurified compounds with uncertain true concentrations.
In this work, we investigate how molecular property prediction models can use structured supervision from a D2B assay sequence. We tailor each prediction task to its assay readout and investigate whether sharing information across stages improves prediction when high-fidelity measurements are scarce. We evaluate predictive performance on held-out assay data and separately demonstrate model-guided compound discovery through a prospective campaign. This campaign identifies compounds with improved potency and selectivity in a large, synthetically accessible chemical space.
Accepted to the AI for Drug Discovery workshop (NeurIPS 2026).

Figure 1: Direct-to-biology synthesis, screening stages, and preservation of selectivity across purification. (A) Kimia's ATLAS platform combines a target-directed bit with libraries of blocks in one-reaction-per-well format. Two-component reactions explore one molecular vector; three-component reactions explore two, yielding up to products from blocks. (B) The D2B cascade progresses from SP ( compounds) to DR ( ) and purified MSP ( ). DR and MSP support potency ratios across targets, while only MSP supports quantitative comparison across compounds. (C) Purification shifts ROS1 and LTK IC values from the same crude well by nearly identical factors (25.2× and 25.3×), preserving the ~122-fold potency ratio and showing that crude DR can retain selectivity even when absolute potency is uncertain. Supplementary Figure 7 shows a systematic paired analysis of DR/MSP potency ratios.
2.1 High-throughput chemical synthesis with direct-to-biology screening (D2B)
Kimia’s D2B synthesis and screening platform, ATLAS [Sadowsky, 2026], uses standardized coupling reactions to link reactive core scaffolds (“bits”) with libraries of complementary fragments (“blocks”) in an arrayed format (one-per-well; Figure 1A) — for example, linking carboxylic-acid-containing bits with amine-containing blocks via amide coupling, or an aryl halide bit with a boronic acid block in a Suzuki reaction. In a two-component reaction, a bit with a single reactive handle can be cross-reacted against hundreds or thousands of blocks, one-per-well, to enable broad exploration at a single molecular vector in one step. Three-component reactions leverage scaffolds with multiple independently reactive handles to enable multi-vector exploration and search over chemical spaces of compounds by active learning in batches of compounds.
ATLAS achieves its scale by combining miniaturized nanogram-scale chemical synthesis with biological testing of unpurified (crude) reaction mixtures; similar D2B approaches have been used by Carmot and others in degrader, fragment, agonist, and inhibitor discovery campaigns across covalent and noncovalent modalities [Stevens et al., 2023, Wilders et al., 2025, Stevens et al., 2025, Douthwaite et al., 2026, Shin et al., 2019, Du et al., 2024, Rodriguez et al., 2025]. D2B lends itself to the sequential assay cascade shown in Figure 1B:
-
Crude single-point (SP): each compound is first tested at a single, high concentration. Many wells are expected to be inactive due to broad exploration or failed synthesis. The SP screen cheaply identifies putatively active wells and is best interpreted as coarse evidence of activity rather than quantitative potency.
-
Crude dose-response (DR): compounds passing SP screening are tested at multiple dilution ratios (concentrations); true actives should display concentration-dependent activity. Because these products are unpurified, the target molecule's exact concentration is unknown. However, when multiple targets are assayed using material from the same crude well, this concentration uncertainty is shared between measurements and cancels when their apparent potencies are compared. Crude DR can therefore preserve selectivity even when absolute potency is uncertain. Figure 1C illustrates this directly: purification shifts the LTK and ROS1 dose-response curves by approximately the same factor while preserving their roughly 122-fold potency ratio. This interpretation assumes that other components of the crude reaction mixture do not themselves contribute substantial target-specific activity [McCorkindale et al., 2024]. Across structure-matched DR/MSP compounds, selectivity is positively correlated for all three target pairs, suggesting that crude DR measurements can provide useful estimates of selectivity for compounds advanced to MSP (Supplementary Section 5.6 and Figure 7).
• Microgram-scale synthesis with purification (MSP): selected compounds from DR are resynthesized at the g scale, versus the ng scale used for SP and DR, then purified and quantitated. Purified material is assayed in dose-response at known concentration, yielding MSP data. These measurements provide the highest-fidelity potency estimates for a given compound, but at substantially decreased throughput.

Figure 2: Model architectures across the D2B assay cascade. All models take Morgan fingerprints and differ in supervision and information sharing. (A) L2-regularized linear regression, one coefficient matrix: “Linear” is fitted to MSP alone, and “Linear (all stages)” to all three stages. (B) Single-task: independent networks for each stage. (C) Multi-task: a shared backbone with stage-specific heads; “MT – loss balancing” removes stage-wise loss normalization and weighting. Solid arrows denote the forward pass; dashed arrows denote supervision.
2.2 Model design for D2B
We ask whether SP/DR data should only guide selection for MSP or also be used to train predictive models. Put differently, does the structured noise arising from the lack of purification in SP/DR data overwhelm the benefit of having 100–1000× the compounds going into a model? Chemical intuition suggests that measurements on impure compounds may be uninformative or harmful, whereas larger datasets may overcome noise [Halevy et al., 2009].
We characterize a series of modeling strategies, illustrated in Figure 2. Our focus is on domain-specific model architecture rather than chemical representation, so we use Morgan (ECFP-style) fingerprints as a common molecular representation across all models [Rogers and Hahn, 2010]. As a baseline, we evaluate L2-regularized linear regression (ridge regression) in both a single-task setting purely on predicting MSP potency and a lumped setting regressing the activity data for SP, DR, and MSP together, without separate losses, to test whether access to the broader cascade is sufficient without a higher-capacity shared representation. We additionally evaluated ordinary least squares (OLS) and L1 regularization (lasso), which yielded qualitatively similar conclusions.
The main models of interest are single-task versus multi-task deep networks. In both settings, we tailor custom loss heads for each assay stage: predicting activity probability at SP, pairwise log potency ratios at DR, and absolute log IC at MSP. Prior work has addressed yield–activity confounding in D2B [McCorkindale et al., 2024] and transfer learning between screening fidelities [Buterez et al., 2024]. Our focus is on tailoring prediction targets and losses to the information available at each D2B stage. In particular, the crude DR objective uses cross-target log potency ratios, in which the shared concentration factor cancels, allowing selectivity to be modeled despite uncertainty in absolute compound concentration. In the single-task setup, we train an independent network for each stage; in the multi-task setup, we train the three stages jointly using a shared molecular backbone and stage-specific output heads, with stage-wise loss normalization and weighting to prevent differences in raw loss scale from dominating the shared objective (Supplementary Section 5.3). We compare this model with a separately tuned multi-task configuration without loss balancing. Hyperparameters were optimized independently for each model over 40 Optuna trials (Supplementary Section 5.5).
2.3 Dataset Design
The data in this work come from a kinase discovery program targeting ROS1, a therapeutic target in non-small-cell lung cancer. Libraries were constructed from a two-handle 2,4-disubstituted pyrimidine bit using Kimia-proprietary regioselective three-component chemistry (Figure 1A). Compounds were assayed for activity against four kinases: ROS1, its close structural relatives ALK and LTK, and TRKB, which serves as a key anti-target. Selectivity over TRKB is important because TRK-family inhibition can cause neurological toxicities [Drilon et al., 2023]. The program therefore seeks compounds potent against ROS1 and selective over TRKB, making this a multi-objective design problem. Activity was tested using ADP-Glo (Promega) at 25 µM ATP.
Table 1 describes the composition of the dataset by assay stage. All models were evaluated on retrospective test sets constructed to maximize separation from the training data (Supplementary Section 5.2). For MSP, we report two complementary evaluations: MSP-held is the resulting out-
| Stage | Compounds assayed per target | Compounds per split | ||||||
|---|---|---|---|---|---|---|---|---|
| LTK | ROS1 | TRKB | ALK | train | val. | test | total | |
| SP | 26,538 | 15,368 | - | - | 21,228 | 2,654 | 2,656 | 26,538 |
| DR | 1,462 | 1,332 | 1,163 | - | 1,273 | 163 | 180 | 1,616 |
| MSP | 163 | 163 | 163 | 163 | 114 | 25 | 24 | 163 |
| MSP-prospective | 84 | 84 | 84 | 84 | - | - | 84 | 84 |
Table 1: Dataset used in this work. Left: per-target assay coverage; right: train–validation–test counts. Each compound has one split shared across assay stages, preventing cross-stage leakage (Supplementary Section 5.2). The 24-compound MSP test split is MSP-held (Table 2); MSP-prospective is a separate prospective set used only for evaluation.
| Model | SP | DR | MSP-held | MSP-prospective | |||
|---|---|---|---|---|---|---|---|
| ROC-AUC | ρ | r | ρ | r | ρ | r | |
| Linear | - | - | - | 0.624 | 0.616 | -0.029 | -0.021 |
| Linear (all stages) | 0.732 | 0.241 | 0.174 | -0.011 | -0.117 | 0.349 | 0.357 |
| Single-task | 0.890 ± .006 | 0.271 ± .049 | 0.259 ± .063 | 0.420 ± .026 | 0.365 ± .033 | 0.120 ± .034 | 0.150 ± .027 |
| Multi-task (MT) | 0.892 ± .011 | 0.402 ± .024 | 0.400 ± .025 | 0.443 ± .047 | 0.443 ± .062 | 0.175 ± .015 | 0.188 ± .022 |
| MT -loss balancing | 0.874 ± .006 | 0.336 ± .020 | 0.334 ± .020 | 0.427 ± .048 | 0.357 ± .044 | 0.133 ± .025 | 0.132 ± .025 |
Table 2: Predictive performance across the D2B assay cascade. SP is scored by macro AUROC (LTK, ROS1); DR and MSP by Spearman () and Pearson (), computed per target and macro-averaged (three pairwise ratios at DR, four kinases at MSP). MSP-held is the retrospective out-of-distribution set (24 molecules), MSP-prospective the independent prospective set (84). The MSP-prospective compounds were selected using single-task models; multi-task results on this cohort assess prediction accuracy, not the ability of multi-task models to select compounds prospectively. DR and MSP evaluation is restricted to resolved potency estimates (). Deep models report mean s.d. over five initializations; linear baselines are single fits.
of-distribution retrospective set of 24 molecules; MSP-prospective is a separate set of 84 molecules derived from a prospective experiment and characterized with high-fidelity measurements.
3 Results
3.1 Joint modeling improves prediction at sparse assay stages
We asked whether information could be shared across the assay cascade to improve prediction at the more sparsely sampled DR and MSP stages. The training sets span a near 200-fold range in size, from 21,228 molecules at SP to 1,273 at DR and only 114 at MSP (Table 1).
Table 2 reports predictive performance across the cascade for all five models. Linear baselines demonstrate the difficulty of learning from the sparse MSP data: although L2-regularized linear regression appears highly competitive on MSP-held (, ), it completely fails to generalize to MSP-prospective. All-stage ridge shows inconsistent generalization, performing poorly on MSP-held (, ), but well on MSP-prospective (, ). Thus, while earlier-stage supervision may benefit simple models, access to additional data alone does not yield robust performance across assay stages and evaluation sets.
The deep model sequence provides a clearer benefit from specialization of losses and sharing representations. The single-task deep network generalizes within each prediction modality (SP, DR, and MSP), with performance falling off in a correlated manner to dataset size, suggesting that the MSP model in particular might benefit from sharing parameters with earlier stages. Consistent with this hypothesis, a multi-task model dominates the single-task model on all endpoints; although the difference is small at SP (AUROC 0.892 vs 0.890), it grows materially at DR and MSP, reaching on MSP-held and on MSP-prospective.
Stage-specific losses can differ substantially in scale, motivating the use of stage-wise loss normalization and weighting (Supplementary Section 5.3). An exploratory comparison using BCE/Huber losses illustrates how balancing redistributes the stage contributions to the training loss (Supplementary Figure 6). The multi-task configurations with and without loss balancing in Table 2 were tuned

Figure 3: Model-guided prospective selection occupies favorable MSP prediction space and extends the measured ROS1 potency–selectivity frontier. (A,B) Predicted (A) and measured (B) ROS1 potency and ROS1/TRKB selectivity (IC₅₀ ratio). A: MSP-train prediction density (gray); MSP-held (blue) and -prospective (orange) predictions. B: DR/MSP training measurements (one per compound; n = 1,137, blue); MSP-prospective (n = 84, orange). Open circles denote Pareto-optimal compounds in either set; black markers identify compounds in panel C. (C) The most selective prospective (1) and training (2) compounds and the closest training analog of compound 1 (3). Changes are largest in the left-side substituent; (1) is not a local change from (2), and its closest neighbor is weak, indicating exploration beyond local transformations of top hits (T = ECFP4 Tanimoto similarity).
independently and differ in their molecular representations, network architectures, and checkpoint-selection criteria; their performance differences cannot be attributed to loss balancing alone.
3.2 Prospective validation extends the ROS1 potency–selectivity frontier
Before developing the multi-task model, we prospectively tested whether single-task models could extend the observed potency–selectivity frontier. We enumerated commercially available Enamine blocks reaction-compatible with our chosen 2,4-disubstituted pyrimidine bit to generate a synthetically accessible virtual library of approximately 10⁸ molecules. We retained candidates predicted to (i) be active against ROS1 at SP, (ii) have at least 3-fold ROS1-over-TRKB selectivity at DR, (iii) retain at least 2-fold ROS1-over-TRKB selectivity at MSP, and (iv) have a predicted MSP ROS1 IC₅₀ below 175 nM. These filters guided fragment purchases to synthesize and test 84 novel compounds (MSP-prospective). Table 2 evaluates prediction–measurement agreement within this already selected set, whereas the combined SP–DR–MSP selection pipeline targets enrichment in the favorable tail. Weak within-set correlations can therefore coexist with separation in MSP prediction space (Figure 3A) and enrichment in measured potency and selectivity (Supplementary Figure 4).
Prospective compounds extended the observed ROS1 potency–selectivity landscape (Figure 3B). The best prospective compound (1) achieved 233-fold ROS1-over-TRKB selectivity while retaining a ROS1 IC₅₀ of 14.7 nM, compared with 79-fold selectivity and a ROS1 IC₅₀ of 20.3 nM for the most selective compound in training (Figure 3C). Compound 1 is only moderately similar to this training compound (ECFP4 Tanimoto 0.529), indicating that the improvement was not obtained through local elaboration of the strongest existing chemotype. Its closest historical analog (3; Tanimoto 0.577) was substantially weaker against ROS1 (IC₅₀ = 883 nM), with unresolved TRKB potency. The prospective compounds extend the observed Pareto frontier toward higher selectivity while retaining potent activity (Figure 3B). Restricting the comparison to purified MSP measurements changes historical density but preserves both Pareto frontiers, since all historical frontier compounds were measured by MSP (Supplementary Section 5.7 and Figure 8). The historical MSP cohort was already enriched for activity through experimental SP/DR screening, whereas the prospective compounds were selected using model predictions and tested directly by MSP.
4 Conclusions and Future Work
Matching prediction targets to assay information and sharing supervision across stages can improve learning from heterogeneous D2B measurements. In prospective validation, the single-task D2B model guided exploration of a large accessible chemical space to extend the observed ROS1/TRKB potency–selectivity frontier, and a multi-task model further improved retrospective performance. These benchmarks support balanced joint modeling while highlighting the need to match model capacity to data availability. Future work should evaluate multi-task models prospectively, investigate additional representations, test additional experimental confounds like active bits, and explore how stage-specific assay supervision can be applied to chemical foundation models. See Supplementary Section 6 for limitations.
References
Takuya Akiba, Shotaro Sano, Toshihiko Yanase, Takeru Ohta, and Masanori Koyama. Optuna: A next-generation hyperparameter optimization framework. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pages 2623–2631, 2019.
Guy W Bemis and Mark A Murcko. The properties of known drugs. 1. molecular frameworks. Journal of medicinal chemistry, 39(15):2887–2893, 1996.
Andrew D Blevins and Ian K Quigley. Clever hans in chemistry: Chemist style signals confound activity prediction on public benchmarks. arXiv preprint arXiv:2512.20924, 2025.
David Buterez, Jon Paul Janet, Steven J. Kiddle, Dino Oglic, and Pietro Liò. Transfer learning with graph neural networks for improved molecular property prediction in the multi-fidelity setting. Nature Communications, 15(1):1517, 2024. doi: 10.1038/s41467-024-45566-8.
James L. Douthwaite, Damian J. Houde, Eneida Pardo, Mark Moran, Jason Baird, Sophia R. Meyer, Babak Mahjour, Qiyuan Zhao, Jay F. Larrow, Yu-Pu Juang, et al. Nanoscale direct-to-biology optimization of Cdk2 inhibitors. Journal of Medicinal Chemistry, 69(8):9142–9162, 2026. doi: 10.1021/acs.jmedchem.5c03614.
Alexander Drilon, Joshua C. Horan, Anupong Tangpeerachaikul, Benjamin Besse, Sai-Hong Ignatius Ou, Shirish M. Gadgeel, D. Ross Camidge, Anthonie J. van der Wekken, et al. NVL-520 is a selective, TRK-sparing, and brain-penetrant inhibitor of ROS1 fusions and secondary resistance mutations. Cancer Discovery, 13(3):598–615, 2023. doi: 10.1158/2159-8290.CD-22-0968.
Xiaohui Du, Ray Fucini, Jeff Iwig, Hiroyuki Kawai, Joon Won Jeong, Daniel Erlanson, and Stig Hansen. Oxazole, oxadiazole, and indole derivatives for the inhibition of usp28. U.S. Patent Application Publication US 2024/0425513, 2024.
Hosein Fooladi, Thi Ngoc Lan Vu, Miriam Mathea, and Johannes Kirchmair. Evaluating machine learning models for molecular property prediction: Performance and robustness on out-of-distribution data. Journal of Chemical Information and Modeling, 65(19):9871–9891, 2025. doi: 10.1021/acs.jcim.5c00475.
Alon Halevy, Peter Norvig, and Fernando Pereira. The unreasonable effectiveness of data. IEEE Intelligent Systems, 24(2):8–12, 2009. doi: 10.1109/MIS.2009.36.
Stig Hansen, Daniel Erlanson, and Mark Cancilla. Methods of chemotype evolution. U.S. Patent 10,107,798, 2018. Issued October 23, 2018.
Matthew D Hoffman, Andrew Gelman, et al. The no-u-turn sampler: adaptively setting path lengths in hamiltonian monte carlo. J. Mach. Learn. Res., 15(1):1593–1623, 2014.
Gerald M. Maggiora. On outliers and activity cliffs—why qsar often disappoints. Journal of Chemical Information and Modeling, 46(4):1535, 2006. doi: 10.1021/ci060117s.
William McCorkindale, Mihris Filep, Nir London, Alpha A. Lee, and Emma King-Smith. Deconvoluting low yield from weak potency in direct-to-biology workflows with machine learning. RSC Medicinal Chemistry, 15(3):1015–1021, 2024. doi: 10.1039/D3MD00719G.
Du Phan, Neeraj Pradhan, and Martin Jankowiak. Composable effects for flexible and accelerated probabilistic programming in numpyro. arXiv preprint arXiv:1912.11554, 2019.
Ruben Rodriguez, Anne Hergarden, Shyam Krishnan, Marikris Morales, Davina Lam, Ted Tracy, Teresa Tang, Avalon Patton, Craig Lee, Asmita Pant, et al. Biased agonism of glp-1r and gipr enhances glucose lowering and weight loss, with dual glp-1r/gipr biased agonism yielding greater efficacy. Cell Reports Medicine, 6(6), 2025.
David Rogers and Mathew Hahn. Extended-connectivity fingerprints. Journal of Chemical Information and Modeling, 50(5):742–754, 2010. doi: 10.1021/ci100050t.
Jack Sadowsky. Direct-to-biology applications to lead generation. 21st Annual Drug Discovery Chemistry Conference, 2026. Presentation, April 15, 2026.
Youngsook Shin, Joon Won Jeong, Ryan P Wurz, Pragathi Achanta, Tara Arvedson, Michael D Barberger, Iain DG Campuzano, Ray Fucini, Stig K Hansen, John Ingersoll, et al. Discovery of n-(1-acryloylazetidin-3-yl)-2-(1h-indol-1-yl) acetamides as covalent inhibitors of krasg12c. ACS medicinal chemistry letters, 10(9): 1302, 2019.
Rebecca Stevens, Enrique Bendito-Moll, David J. Battersby, Afjal H. Miah, Natalie Wellaway, Robert P. Law, Peter Stacey, Diana Klimaszewska, Justyna M. Macina, Glenn A. Burley, and John D. Harling. Integrated direct-to-biology platform for the nanoscale synthesis and biological evaluation of PROTACs. Journal of Medicinal Chemistry, 66(22):15437–15452, 2023. doi: 10.1021/acs.jmedchem.3c01604.
Rebecca Stevens, Harry J. Shrives, Jenni Cryan, Diana Klimaszewska, Peter Stacey, Glenn A. Burley, John D. Harling, David J. Battersby, and Afjal H. Miah. Expanding the reaction toolbox for nanoscale direct-to-biology PROTAC synthesis and biological evaluation. RSC Medicinal Chemistry, 16(3):1141–1150, 2025. doi: 10.1039/D4MD00760C.
Dagmar Stumpfe and Jürgen Bajorath. Exploring activity cliffs in medicinal chemistry. Journal of Medicinal Chemistry, 55(7):2932–2942, 2012. doi: 10.1021/jm201706b.
Izhar Wallach and Abraham Heifets. Most ligand-based classification benchmarks reward memorization rather than generalization. Journal of Chemical Information and Modeling, 58(5):916–932, 2018. doi: 10.1021/acs.jcim.7b00403.
Harry Wilders, George Biggs, Sam M. Rowe, Emma E. Cawood, Ioannis G. Riziotis, Alan R. Rendina, Emma K. Grant, Jonathan Pettinger, David J. Fallon, Mark Skehel, David House, Nicholas C. O. Tomkinson, and Jacob T. Bush. Expedited SARS-CoV-2 main protease inhibitor discovery through modular ‘direct-to-biology’ screening. Angewandte Chemie International Edition, 64(6):e202418314, 2025. doi: 10.1002/anie.202418314.

Figure 4: Prospective selection enriches measured ROS1 potency and selectivity. Percentage of compounds satisfying measured criteria for ROS1 potency ( nM), ROS1-over-TRKB selectivity (), or both, in MSP-train, MSP-held, and MSP-prospective. Only compounds with resolved potency estimates for both targets () are included. Annotations report fold enrichment of MSP-prospective relative to MSP-train. The corresponding distributions in MSP prediction space are shown in Figure 3A.
5 Supplementary material
5.1 Bayesian dose-response curve fitting
Dose-response measurements were analyzed using Bayesian curve fitting so that each measurement was represented by both a potency estimate and its associated uncertainty, rather than by a single least-squares point estimate. Raw well measurements were first normalized using plate-level controls, with high and low controls defining the response scale. Curves were then fit jointly within each plate using a four-parameter Hill model, with plate-level parameters capturing shared experimental variation and molecule-specific parameters describing potency, slope, asymptotes, and residual noise (Figure 5). A Student-t likelihood was used to reduce sensitivity to outlier wells. Posterior distributions were sampled using the No-U-Turn sampler [Hoffman et al., 2014] implemented in NumPyro [Phan et al., 2019]. For each dose-response curve, we retained the posterior median of as the potency estimate and its posterior standard deviation as a measure of uncertainty. When measurements were available across multiple plates or synthesis batches, posterior samples were combined before calculating these summaries so that disagreement between replicate measurements was reflected in the resulting uncertainty.
Because a numerical can be returned even when the experimental data do not resolve a dose-response relationship, we additionally estimated the probability that each compound was inactive,

Figure 5: Bayesian model for dose-response curve fitting. Robust Bayesian fits and parameter-sharing at the plate level avoid common numerical instabilities arising in least-squares fitting of assay data that may range from highly active to totally inactive, and enable downstream propagation of uncertainties.
. This probability was derived from two properties of the fitted posterior: the width of the credible interval on , which captures how well potency is identified, and the posterior curve depth, which captures evidence for a non-flat dose-response relationship. These quantities were combined using a logistic classifier calibrated against independent activity classifications. The classifier achieved a held-out ROC-AUC of 0.933, compared with 0.893 when using credible-interval width alone. Measurements with were considered to have a resolved potency estimate and were used for potency-based training and evaluation.
The resulting posterior summaries define the supervision used by the dose-response models. At MSP, each target is represented by its absolute , posterior uncertainty, and activity probability (). At DR, where uncertainty in the concentration of crude material makes absolute potency unreliable, supervision is instead defined using pairwise differences in between targets, corresponding to log potency ratios. Uncertainty in each ratio is propagated from the posterior uncertainties of the two contributing curves, and a ratio is used only when both curves have resolved potency estimates.
5.2 Construction of the evaluation sets
To evaluate generalization to chemically distinct compounds, each compound was assigned a single train–validation–test split that was shared across all three assay stages. The assignment was constructed over the union of compounds appearing at SP, DR, or MSP (27,161 unique compounds) and then applied to each stage separately. This shared assignment prevents cross-stage leakage, which is important because the assay stages overlap substantially: 997 compounds appear at both SP and DR, 159 at both DR and MSP, and 97 at all three stages. If the stages were split independently, the same compound could appear in the test set at one stage and the training set at another. This is particularly important for MSP-held: all 24 MSP test compounds also have DR measurements, and 15 also have SP measurements. Without a shared split, a model trained jointly across the cascade could therefore encounter every held-out MSP compound through earlier-stage measurements during training.
Compounds were represented using radius-2 Morgan fingerprints, and chemically related compounds were grouped into chemotype groups. Two compounds were assigned to the same connected chemotype group if they shared a generic Bemis–Murcko framework [Bemis and Murcko, 1996] or had a Tanimoto similarity of at least 0.90. Entire groups, rather than individual compounds, were then assigned to the train, validation, or test sets. We preferentially selected the most chemically isolated groups for the test set, using each compound's maximum fingerprint similarity to compounds outside its own group to quantify isolation. Validation compounds were selected from the remaining groups using the same criterion. This procedure produces deliberately challenging retrospective evaluation sets while ensuring that closely related compounds are not divided between training and evaluation.
Because the same global assignment is applied at every assay stage, the resulting dataset sizes reflect both the different numbers of measurements available at each stage and their overlap. The final splits contain 21,228 training, 2,654 validation, and 2,656 test compounds at SP; 1,273, 163, and 180 compounds at DR; and 114, 25, and 24 compounds at MSP, respectively. For each test compound we compute its Tanimoto similarity to the most similar training compound. Across test compounds, the median of this value is 0.643, 0.634, and 0.690 at SP, DR, and MSP respectively, and its largest value is 0.897, 0.828, and 0.828.
The prospective MSP evaluation set (MSP-prospective) was not used in constructing these splits. It consists of the 84 compounds selected using the single-task models, subsequently synthesized and characterized experimentally, and therefore provides a separate evaluation from the retrospective MSP-held set. Relative to the retrospective training set, MSP-prospective has a median maximum Tanimoto similarity of 0.659 and a maximum of 0.873, placing it in a similar chemical-similarity regime to the deliberately held-out retrospective sets.
5.3 Stage-wise loss balancing
The multi-task model combines the SP, DR, and MSP objectives using stage-wise loss balancing. At optimization step , an exponential moving average of the raw loss for each stage is updated as
where is the raw loss for stage at the current step and the moving average is initialized from the first observed loss for each stage. The corresponding normalization factor is
and the total multi-task objective is
A loss is computed for each stage at every optimization step, so the moving averages are updated continuously throughout training. The normalization factor is treated as a constant and is not differentiated.
The SP, DR, and MSP objectives use different loss functions and can therefore differ in scale. Magnitude normalization and stage weights control their relative contributions to the shared objective. At the start of training, their magnitudes differ by more than an order of magnitude, reflecting the different loss functions used at each assay stage rather than their relative importance. A separate diagnostic using BCE/Huber losses illustrates how SP can dominate the scalar training loss without balancing (Supplementary Figure 6).
The stage weights are fixed within a training run and selected by hyperparameter optimization (Supplementary Section 5.5). They are applied after magnitude normalization and control the relative emphasis placed on each stage once the raw losses have been placed on a comparable scale. The selected multi-task model uses , , and .
Because the Gaussian negative log-likelihoods used at DR and MSP are not bounded below by zero, their moving averages can approach or cross zero during training. We therefore normalize by the absolute value of the moving average and clip the reciprocal normalization factor to . This prevents values near zero from producing unstable updates.
In the “MT–loss balancing” configuration, moving-average normalization is disabled and all stage weights are set to . Its objective therefore reduces to the unweighted sum of the three raw stage losses,
For this configuration, checkpoint selection also used the unnormalized mean validation score rather than the chance-normalized criterion used for the multi-task model. The configurations were tuned independently and also differ in their selected architecture and training hyperparameters (Supplementary Tables 4 and 5).
5.4 Exploratory training-loss comparison
To examine how loss scaling affects the shared objective, we trained an exploratory multi-task model using soft-label binary cross-entropy for SP and Huber loss on training-standardized DR and MSP targets. Each stage loss was the sum of its per-target mean losses. We compared unit weights with geometric-mean inverse-loss weights, , where is the mean stage loss from the preceding epoch and is the geometric mean of the three stage losses. Weights were initialized to one. Both configurations used the same training partition and three paired initializations, with otherwise identical settings over 300 epochs. SP accounted for 82.2% of the total training loss on average across updates in epochs 101–200, compared with 33.8% after balancing (Figure 6). Although SP contributed most of the scalar loss, its share of the summed shared-backbone gradient norms was 14.5% without balancing. These diagnostic runs use a different loss formulation from the likelihood-based multi-task configurations evaluated in Table 2. Those configurations were tuned independently and differ in their molecular representations, network architectures, and checkpoint-selection criteria. Their performance differences therefore cannot be attributed to loss balancing alone.

Figure 6: Stage contributions to training loss in an exploratory multi-task model. Total training loss (black dashed) and its SP, DR, and MSP contributions without (A) and with (B) epoch-wise geometric-mean loss balancing. Thin curves show three paired initializations and thick curves their means over all 300 epochs. Loss contributions are recorded during training and sum to the total; the vertical axis is logarithmic. The model uses soft-label binary cross-entropy for SP and standardized Huber losses for DR and MSP, distinct from the likelihood-based models in the main results.
5.5 Hyperparameter optimization
Each model reported in Table 2 was tuned independently using the same budget of 40 Optuna trials [Akiba et al., 2019]. Searches used a tree-structured Parzen estimator with a fixed sampler seed for reproducibility.
Neural-network search For hyperparameter optimization, each trial was trained for up to 12 epochs. Unpromising trials were terminated using Optuna's median pruner with 3 start-up trials and 2 warm-up steps. Between 26 and 35 of the 40 trials were pruned for each model. The search space is given in Table 3. All neural models use Morgan fingerprints, with fingerprint radius and dimensionality optimized jointly with the network hyperparameters. Each single-task network and each multi-task configuration received an independent hyperparameter search. The configuration with the highest validation score among completed trials was selected for final training.
| Hyperparameter | Range | Scale |
|---|---|---|
| Fingerprint radius | {2, 3} | categorical |
| Fingerprint length | {2048, 4096} | categorical |
| Backbone width | {512, 1024, 2048} | categorical |
| Residual blocks | {1, 2, 3} | categorical |
| Dropout | [0.05, 0.35] | uniform |
| Head width | {0, 128, 256} | categorical |
| Learning rate | [5 × 10-5, 3 × 10-3] | log-uniform |
| Weight decay | [10-6, 10-3] | log-uniform |
| λσ (uncertainty loss) | [0, 1] | step 0.1 |
| λact (activity loss) | [0, 1] | step 0.1 |
| Stage weights wSP, wDR, wMSP | [0.5, 4.0] | step 0.5 |
Table 3: Hyperparameter search space for the neural models. Stage weights are optimized only for the multi-task model; the MT – loss balancing configuration uses equal stage weights by construction. The linear warm-up period was fixed at 8 epochs for all neural models.
Model selection. Because the validation objectives differ across assay stages, configurations were ranked using a chance-normalized mean validation score. Each stage's validation score was rescaled as , with for SP AUROC and for the DR and MSP correlations. For models trained on multiple stages, the rescaled scores were averaged across stages. This places chance performance at zero for each metric before averaging. The same criterion was used for checkpoint selection during final training. The configuration without loss balancing instead used the unnormalized mean validation score for model selection.
Final training. The selected configuration for each neural model was retrained from scratch using five independent random initializations. Models were trained for up to 300 epochs, with validation every 4 epochs and early stopping after 20 validation checks without improvement, subject to a minimum of 30 epochs. In practice, training terminated between epochs 88 and 252. For each run, the checkpoint with the highest validation score under the selection criterion used for that configuration was restored for evaluation. Table 2 reports the mean and standard deviation across the five runs.
| Model | Radius | Bits | Width | Blocks | Head | Dropout |
|---|---|---|---|---|---|---|
| Single-task (SP) | 3 | 4096 | 512 | 3 | 256 | 0.086 |
| Single-task (DR) | 2 | 4096 | 1024 | 3 | 256 | 0.099 |
| Single-task (MSP) | 3 | 4096 | 512 | 3 | 128 | 0.217 |
| MT –loss balancing | 2 | 2048 | 1024 | 1 | 256 | 0.196 |
| Multi-task (MT) | 3 | 4096 | 2048 | 2 | 256 | 0.125 |
Table 4: Selected molecular-representation and architecture hyperparameters for the neural models. “Head” denotes the width of the stage-specific prediction head.
| Model | Learning rate / WD | Stage weights | ||
|---|---|---|---|---|
| Single-task (SP) | 0.6 | 0.7 | — | |
| Single-task (DR) | 0.4 | 0.0 | — | |
| Single-task (MSP) | 0.5 | 0.1 | — | |
| MT –loss balancing | 0.5 | 0.2 | 1.0/1.0/1.0 | |
| Multi-task (MT) | 0.5 | 0.5 | 3.0/1.5/2.0 |
Table 5: Selected optimization and loss hyperparameters for the neural models. “WD” denotes weight decay. Stage weights are reported as ; MT –loss balancing uses equal stage weights by construction.
Linear baselines The linear baselines were optimized using the same 40-trial budget. Morgan fingerprint radius and dimensionality were searched over the same ranges used for the neural models, and the ridge regularization strength was searched log-uniformly over . For Linear (all stages), stage weighting was included as an additional hyperparameter. Selection used macro-averaged validation Spearman correlation across the prediction targets available to each model. Linear selected radius 3 with 2048 bits and ; Linear (all stages) selected radius 2 with 4096 bits and , in both cases without stage weighting. Because the linear estimators are deterministic given their inputs and hyperparameters, they are reported as single-fit point estimates rather than means across random initializations.
5.6 Paired crude-DR and purified-MSP selectivity
We matched the submitted DR and historical MSP datasets by canonical molecular structure, yielding 159 one-to-one compound pairs. Each target pair was evaluated only when all four stage/target potency summaries were finite and resolved (), using the same cutoff as the main evaluation. For targets and , selectivity for over is ; positive values favor . The eligible counts are 121 for ROS1/TRKB, 114 for ROS1/LTK, and 99 for LTK/TRKB. Their Pearson correlations are 0.61, 0.68, and 0.78; Spearman correlations are 0.62, 0.76, and 0.83, respectively (Figure 7).
These associations support approximate retention of selectivity in the selected, resolved subset. They do not establish exact equality: median MSP-minus-DR shifts in log selectivity are +0.22, +0.002, and +0.18, respectively. Posterior summaries pool measurements within each stage, and MSP entails resynthesis, purification, and quantification rather than purification of the same assayed aliquot. Differences may therefore reflect multiple experimental effects. The analysis neither excludes target-specific crude-mixture interference nor establishes reliability for compounds not advanced to MSP.
5.7 MSP-only potency–selectivity landscape
Supplementary Figure 8 shows the MSP-only counterpart to Figure 3B. Both Pareto frontiers remain unchanged because all three historical frontier compounds were already measured by MSP; excluding DR changes only the historical density.


Figure 7: Paired crude and purified selectivity. Compound-matched DR and MSP selectivity for (A) ROS1/TRKB, (B) ROS1/LTK, and (C) LTK/TRKB (n = 121, 114, and 99). Points are pooled compound-level posterior summaries from all retrospective splits; both targets must be resolved at both stages. Dashed lines indicate equality and shading a descriptive threefold band. Pearson r and Spearman are shown.

Figure 8: MSP-only counterpart to Figure 3B. Blue and orange contours show the historical (n = 163) and prospective (n = 84) purified MSP cohorts, respectively. Open circles and connecting steps mark the Pareto frontiers, which remain unchanged after excluding crude DR measurements.
The two cohorts differ in how their compounds were selected. The 163 historical MSP compounds were chosen for purification after experimental SP/DR screening, so this group was already enriched for activity. The 84 prospective compounds were selected using model predictions and tested directly by MSP, without experimental SP/DR screening. Their enrichment for activity was therefore achieved without this experimental prefiltering. The historical MSP cohort provides a useful reference for the compounds discovered, but is not a matched control for evaluating model-based selection.
6 Limitations
This study focuses on a single 2,4-disubstituted pyrimidine core within a kinase-focused discovery program. The extent to which these findings generalize to other chemical scaffolds and target classes therefore remains to be established. In addition, the purified evaluation sets are small (24 retrospective and 84 prospective compounds before potency filtering), limiting the precision of performance estimates and comparisons between models. Further evaluation using larger purified datasets across a broader range of chemistries and targets will be needed to establish the wider applicability of the approach.