A method and system for synthesizability scoring based on simplified reaction template constraints

By using a simplified reaction template constraint method, reaction templates are extracted and filtered, a single-step inverse synthesis model is trained, and a multi-step route search is driven. This solves the problems of high computational cost and insufficient discriminative power in the existing technology for multi-step search, and achieves efficient and accurate synthesizability scoring.

CN123161685APending Publication Date: 2026-11-24UNIV OF SCI & TECH OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611397023.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-09
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing syntheticity scoring methods struggle to effectively reduce the computational overhead of multi-step searches in drug discovery and materials design, and they also fail to retain discriminative power in the collapsed intervals of binary indices, making it difficult to efficiently screen synthetic molecules.

Method used

By using a simplified reaction template constraint-based method, reaction templates are extracted and filtered, and a single-step retrosynthetic model is trained to output only the splits that satisfy the simplified template criterion. This drives a multi-step route search, and the number of unpurchasable raw materials in the optimal route is calculated to score the molecular synthesizability.

Benefits of technology

While reducing the computational overhead of multi-step search, it retains the distinguishability of the molecular syntheticity score, improving screening efficiency and accuracy, especially for complex molecules.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123161685A_ABST
    Figure CN123161685A_ABST
Patent Text Reader

Abstract

This invention discloses a syntheticity scoring method and system based on simplified reaction template constraints. It extracts reaction templates from an atom-mapped reaction corpus to obtain a complete template set; filters by a simplified criterion: when the template is written in the retrosynthetic direction, the product side consists of a single molecule, and the reactant side consists of two or more molecules; trains a single-step retrosynthetic model only on a subset of simplified templates, ensuring that inference only outputs simplified splits; uses this model to drive a multi-step AND-OR route search, finding synthetic routes from the target molecule to purchasable building blocks within a given budget; and calculates a continuous syntheticity score based on the number U of unpurchasable starting materials in the optimal route. Under the same search budget, the number of node expansions is reduced by approximately 18%, and the solution rate increases from 81.8% to 85.1%. The score retains discriminative power within the binary index collapse interval, making it suitable for high-throughput triage of virtual compound libraries.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of computer-aided synthesis planning and cheminformatics, specifically to a syntheticity scoring method and system based on simplified reaction template constraints. Background Technology

[0002] In drug discovery and materials design, generative models can generate large-scale virtual libraries of compounds, many of which are not actually available through experiments. Therefore, a syntheticity score is needed to sort candidate molecules by ease of preparation and screen out those that are difficult to synthesize.

[0003] Existing syntheticity scores are broadly classified into two categories: The first category consists of scalar structural complexity predictors, such as SAscore, SCScore, RAscore, and their learning variants. These methods directly regress or classify a scalar score from the molecular structure. Their drawback is that the ease of synthesis of a molecule depends not only on its structure but also on the available starting materials. Such scoring is blind to the building block inventory—for example, when scoring building block molecules that are readily available and by definition do not require synthesis, SAscore and SCScore will cross most of their value ranges, while RAscore will still classify a significant proportion of such readily available molecules as difficult to obtain. Furthermore, these scalar scorers do not actually search for synthetic routes, cannot provide executable splitting schemes, and cannot indicate where synthesis is hindered.

[0004] The second category is route-based scoring. Each step of multi-step route search relies on a single-step retrosynthesis model to predict the splitting method. The mainstream approach models single-step retrosynthesis as reaction template classification, with the action space explicitly given by the chemical template. Its drawback is that the action space of a single-step retrosynthesis model trained on a complete reaction corpus is very wide, proposing a large number of splitting candidates at each node. A significant proportion of these are non-simplified candidates such as functional group interchange, adding / removing protecting groups, coupling or rearrangement that do not reduce the target molecule. Under a fixed expansion budget, these candidates disperse the search to branches that do not advance towards smaller, purchasable precursors, wasting budget and prolonging the search, making route-based scoring difficult to use for high-throughput screening.

[0005] Furthermore, there are precedents for training specialized models by limiting single-step models to templates of a specific chemical subclass, such as training specialized models only on templates of cyclization reactions. However, the motivation for this is to supplement the shortcomings of general models for specific reactions, rather than to reduce the computational cost of multi-step searches or to use the strict reduction of molecular complexity at each step as a criterion for template selection. Although scalar complexity scorers implicitly contain the idea of ​​simplifying precursors through retrosynthetic steps, the net effect of hard-constraining the single-step action space to simplified reactions on multi-step searches has never been directly quantified.

[0006] Furthermore, the commonly used binary solvability index (whether there exists a route where all leaves are purchasable) is always 0 for a large number of real-world difficult molecules, losing its discriminative power and making it impossible to rank these difficult molecules; while scalar structure scores do not reflect the actual route search results. Therefore, there is a lack of a continuous, route-based syntheticity scoring method that can both reduce the computational cost of multi-step search and retain discriminative power within the collapsed range of the binary index. Summary of the Invention

[0007] This invention proposes a syntheticity scoring method based on simplified reaction template constraints, comprising: S1. Extract reaction templates from the atomic mapping reaction corpus to obtain a complete template set; S2. Filter the complete template set according to the simplified template criterion to obtain a simplified template subset. The simplified template criterion is: when the template is written in the retrosynthetic direction, the product side is a single molecule and the reactant side is two or more molecules. S3. Train a single-step inverse synthesis model on the simplified template subset so that the single-step inverse synthesis model can only output the split that satisfies the simplified template criterion during inference; S4. Drive a multi-step route search for the target molecule to be scored using the single-step retrosynthetic model: For molecules that do not hit the purchasable building block set in the multi-step route search, the single-step retrosynthetic model expands and outputs candidate splits, and the candidate reactants corresponding to the candidate splits are added to the multi-step route search. Molecules that hit the purchasable building block set are determined to be purchasable. Calculate and output the continuous synthesizability score of the target molecule based on the number of starting materials that do not belong to the purchasable building block set in the optimal route obtained by the multi-step route search.

[0008] The simplified template criterion also includes a monotonically decreasing trend in the retrosynthetic direction of one or a combination of the following good-base complexity measures: the number of aromatic rings on the reactant side is less than that on the product side; the number of heavy atoms, rings, rotatable bonds, or stereocenters of a single molecule on the reactant side is lower than the corresponding values ​​on the product side.

[0009] The simplified template criterion applies filtering to the complete template set at the template set level. The simplified template subset obtained after filtering directly constitutes the split set that the single-step inverse synthesis model can output during the inference phase. The single-step inverse synthesis model does not perform any complexity scoring or reordering on the candidate splits during the inference phase. The output of the single-step inverse synthesis model is ordered by probability.

[0010] The single-step retrosynthesis model includes a graph neural network that encodes the molecular graph of the product. The graph neural network encodes the molecular graph to be unfolded in the multi-step route search. Its output includes template classification results and atom-by-atom reaction center prediction results on the simplified template subset. The reaction center prediction results are used in conjunction with the template classification results to generate the candidate split.

[0011] The reaction template is extracted from the local environment covered by a set map distance on the product molecular map, starting from the reaction center atom. When the set map distance is 0, the local environment only covers the reaction center atom. The extraction retains templates that appear at least a set threshold number of times.

[0012] The single-step inverse synthesis model trained on the simplified template subset has its encoder and reaction center prediction parts initialized by a model pre-trained on the complete template set, and its template classification part re-initialized and then trained.

[0013] The multi-step route search is constrained by a search budget; the search budget includes at least one of the following: a search time limit, a maximum node expansion count limit, and a maximum search depth limit; the search budget also includes the expansion width as the number of candidate splits returned by the single-step inverse synthesis model each time a node is expanded.

[0014] The continuous synthesizability score ,in, The number of starting raw materials in the optimal route that do not belong to the set of purchasable building blocks; When the target molecule is determined to be solved and scored as 1, and no route is found, the score is 0; the optimal route is the one that maximizes the SynScore. The shortest route is the one with fewer reaction steps when there are parallel routes.

[0015] A computer-readable storage medium having a computer program stored thereon, characterized in that, when the program is executed by a processor, it implements the syntheticity scoring method based on simplified reaction template constraints as described in the claim.

[0016] A syntheticity scoring system based on simplified reaction template constraints includes: The template extraction and filtering module is configured to extract reaction templates from the atomic mapping reaction corpus and filter them according to the simplified template criterion described in claim 1 to obtain a simplified template subset; A single-step model module is configured to train and infer a single-step inverse synthetic model on the simplified template subset; The multi-step search module is configured to perform candidate splitting on molecules that do not hit the set of purchasable building blocks using the single-step retrosynthesis model and drive a multi-step route search for the target molecule to be scored. The scoring module is configured to calculate and output the continuous synthesizability score of the target molecule based on the number of starting materials in the optimal route that do not belong to the set of purchasable building blocks. Attached Figure Description

[0017] Figure 1 This is a schematic diagram of the overall pipeline flow of a synthesizability scoring method based on simplified reaction template constraints proposed in this invention. Figure 2 This is a schematic diagram of the reaction template extraction, simplified filtering, and single-step inverse synthesis model training process in this invention; Figure 3 This is a schematic diagram of the multi-step AND-OR route search iteration process in this invention; Figure 4 This is a schematic diagram of the continuous synthesizability scoring calculation process in this invention. Detailed Implementation

[0018] This invention provides a synthesizability scoring method based on simplified reaction template constraints. At the template set level, the action space of the single-step inverse synthesis model is hard-constrained to a simplified reaction, so that the model can only output the split of the target into smaller parts. This reduces the number of node expansions in multi-step searches without losing coverage under the same search budget. It is combined with a continuous synthesizability score SynScore based on the optimal route, which retains the discriminative power at the point of binary index collapse.

[0019] The entire pipeline consists of four modules connected in series: single-step model, simplified constraints, multi-step AND-OR search, and continuous synthesizability scoring.

[0020] The training corpus is entirely composed of atomic mapping reaction corpora, which are derived from a commercial database and are not disclosed in this invention. Only the models trained from the database are disclosed.

[0021] refer to Figure 1 This invention provides a syntheticity scoring method based on simplified reaction template constraints, specifically including: S1. Extract reaction templates from the atomic mapping reaction corpus to obtain a complete template set.

[0022] Single-step inverse synthesis is modeled as reaction template classification. From the atomic mapping reaction corpus, reaction templates are extracted within a given radius, and templates that appear at least twice a set threshold are retained to obtain a complete template set.

[0023] In one specific implementation: An extraction radius of 0 is used, meaning only the local environment of the reaction center atom is extracted; a threshold of 20 is applied; resulting in a complete template set of 64,366 template categories. A radius of 0 corresponds to a conversion rule that only describes the most local chemical environment of the reaction center, representing a conservative extraction granularity commonly used in the art; a threshold of 20 is used to filter out low-frequency noise templates; both are implementation parameters that can be adjusted according to the corpus size and are not intended to limit the invention. The extraction process is described in [reference needed]. Figure 2 .

[0024] Furthermore, the reaction template is extracted from the local environment covered by a set distance on the product molecular map, starting from the reaction center atom. When the set distance is 0, the local environment only covers the reaction center atom. Templates that appear at least a set threshold number are extracted and retained. The set distance is not limited to 0 and can be a larger value, such as 1 or 2, to change the granularity of the reaction center environment. The set threshold is not limited to 20 occurrences and can be adjusted according to the corpus size and noise level.

[0025] S2. Filter the complete template set according to the simplified template criterion to obtain a simplified template subset.

[0026] The simplified template criterion is: when the template is written in the retrosynthetic direction, the product side consists of a single molecule and the reactant side consists of two or more molecules. A simplified template subset refers to the subset of templates retained after filtering the complete template set using the following criterion. This criterion stems from the calculus of the idea that useful retrosynthetic steps simplify the precursor.

[0027] Specifically, a template is written in the retrosynthetic direction, i.e. from the product to the reactant. If and only if the product side is a single molecule and the reactant side is two or more molecules, the template is considered to be simplified. That is, the splitting of the template will split a single target molecule into multiple smaller precursor molecules.

[0028] Templates that do not meet this condition—namely, non-simplified templates such as functional group interchanges, deprotection, and couplings or rearrangements that do not increase the number of molecules—are filtered out. The simplification criterion is implemented in engineering as the function `is_simplifying`, whose logic is that the number of product molecules is equal to 1 and the number of reactant molecules is not less than 2.

[0029] In one specific implementation: the above criteria are applied to each of the 64,366 templates in the complete template set, resulting in a simplified template subset of 42,028 templates, accounting for 65.3% of the complete template set. See the filtering process below. Figure 2 .

[0030] The design principle employs the good-foundation monotonicity argument: if each step of the search strictly reduces the molecular complexity metric of a good-foundation, which in this case means breaking the molecule into more and smaller precursors at each step, then the search is biased into a shallower, more convergent tree, with fewer nodes wasted on branches that do not advance toward purchasable precursors, thus reducing the number of expansions under the same budget.

[0031] Furthermore, the simplified template criterion also includes a monotonic decrease in one or a combination of the following measures of good group complexity in the retrosynthetic direction: the number of aromatic rings on the reactant side is less than that on the product side, i.e., dearomatization; the number of heavy atoms, rings, rotatable bonds or stereocenters of a single molecule on the reactant side is lower than the corresponding values ​​on the product side.

[0032] Based on the aforementioned splitting criteria, additional constraints are added without replacing the core criteria. Thresholds can be set and combined for each good basis complexity criterion to strike a balance between coverage and search overhead.

[0033] Furthermore, the simplified template criterion applies filtering to the complete template set at the template set level. The simplified template subset obtained after filtering directly constitutes the split set that the single-step inverse synthesis model can output during the inference stage. The output of the single-step inverse synthesis model is sorted by probability.

[0034] The constraints are applied at the data layer, i.e., the template set level. The filtered model can only output simplified splits during inference, without requiring any additional complexity scoring or candidate reordering during inference. This is fundamentally different from a post-complexity scorer, which generates candidates first and then reorders them using a post-scalar complexity scorer. In contrast, this invention has zero additional scoring overhead during inference and fundamentally excludes non-simplified candidates from the action space, rather than resorting to ex-post penalties.

[0035] S3. Train a single-step inverse synthesis model on a simplified template subset so that the single-step inverse synthesis model can only output the split that satisfies the simplified template criterion during inference.

[0036] Specifically, a dedicated simplified single-step model is retrained on a simplified template subset; the unconstrained model trained on the complete template set is called the original model; the two models have the same structure.

[0037] The single-step retrosynthesis model uses a directed message-passing neural network (D-MPNN) to encode the product molecular graph, and jointly outputs the probability distribution on the template set, i.e., the template classification result, and an atom-by-atom reaction center prediction result, which predicts the probability of each atom as a reaction center.

[0038] The predicted high-ranking templates are applied to the products via a template-to-reactant mapping tool to obtain a set of candidate reactants ranked by probability. This mapping tool is a template application tool implemented based on an open-source cheminformatics tool library. The single-step model template classification plus atom-by-atom reaction center head is a TemplateGNN-like function in the source code. See the training flowchart. Figure 2 .

[0039] Furthermore, the single-step retrosynthesis model includes a graph neural network that encodes the molecular graph of the product. The graph neural network encodes the molecular graph to be unfolded in the multi-step route search. Its output includes template classification results on a simplified template subset and atom-by-atom reaction center prediction results. The reaction center prediction results are used in conjunction with the template classification results to generate candidate splits.

[0040] Graph neural networks are not limited to D-MPNN; other graph neural networks or Transformers can also be used.

[0041] Furthermore, in the single-step inverse synthesis model trained on the simplified template subset, the encoder and reaction center prediction parts are initialized by a model that has been pre-trained on the complete template set, and the template classification part is re-initialized and then trained.

[0042] To improve training efficiency, the encoder and reaction center heads of the simplified model are initialized with a warm start using the original model that has already been trained on the complete template set; since the label spaces, i.e. the template sets, of the two models are different, the template classification heads are re-initialized before training.

[0043] Accordingly, the two models share the same encoder and reaction center head after initialization and reuse, so that the template sets that can be output by the action space are different between the two. Thus, the simplified output split is used as the only controlled variable. This univariate isolation structure is the scientific basis for the control experiment.

[0044] In this embodiment, the network and training hyperparameters are empirically set values ​​and can be adjusted according to the size of the training corpus and hardware conditions: hidden dimension 300, message passing depth 3, dropout 0.1, sum readout, two-layer multilayer perceptron with a template classification head of hidden dimension 600, reaction center head of hidden dimension 128, optimizer AdamW, and learning rate. Weight decay The model uses a cosine learning rate with 2000 warm-up steps, label smoothing of 0.1, gradient clipping of 5, and mixed precision using FP16 and FP32. The simplified model achieves approximately 0.575 top-1 accuracy on its holdset template.

[0045] S4. Drive the multi-step route search for the target molecule to be scored using a single-step retrosynthetic model. Calculate and output the continuous synthesizability score of the target molecule based on the number of starting materials that do not belong to the set of purchasable building blocks in the optimal route.

[0046] Specifically, a constrained single-step model drives a retro-star type AND-OR tree search to find synthetic routes; in the source code, this is the retro-star type searcher, RetroStar. The purchasable building block set refers to the set of purchasable starting materials represented by a set of molecular identifiers.

[0047] In one specific implementation: Molecular identifiers use InChIKey, and the inventory uses a publicly available set of ZINC purchasable building blocks; when a molecule matches this inventory, that molecule becomes a purchasable leaf. See [link to search iteration process] for details. Figure 3 The target molecule is used as the root node. Nodes to be expanded are selected from the AND-OR graph. It is determined whether the molecule matches the available building block inventory. If it matches, it is marked as a purchasable leaf; otherwise, it is expanded using a constrained single-step model. The top-k candidate reactant set is added to the AND-OR graph (k is 10 in this example). Then, it is determined whether the search budget is exhausted. The budget includes a time limit, a maximum number of expansions, and a maximum depth. If exhausted, candidate synthesis routes are enumerated and submitted to the scoring module. The cost of each reaction node is... That is, the negative log-likelihood, which can be added along the way.

[0048] Furthermore, the multi-step route search is constrained by a search budget; the search budget includes at least one of the following: a maximum search time limit, a maximum maximum number of node expansions, and a maximum search depth limit; the search budget also includes the expansion width, which is the number of candidate splits returned by the single-step inverse synthesis model at each node expansion.

[0049] In one specific implementation: k is set to 10, the maximum search clock time is 8 seconds per molecule, the number of unfoldings does not exceed 100, and the depth does not exceed 5. An additional, stricter total clock time limit of 60 seconds per molecule is set to define ill-conditioned searches. The setting of k to 10 is based on the sensitivity scan in Example 2. The curves flatten out around k 6 to 8, and k 10 approaches convergence and is significantly cheaper than the reference setting of k 50. 8 seconds, 100 unfoldings, 5 steps, and 60 seconds are the budget settings for this embodiment, used to compromise between solution coverage and computational cost, and can be adjusted according to the application scenario.

[0050] See the scoring calculation process. Figure 4 For each target molecule, candidate routes are enumerated from the AND-OR graph obtained from the search, and a continuous score is calculated. Let U be the number of starting materials in the optimal route that do not belong to the set of purchasable building blocks, and define a continuous synthesizability score. for: When the value is 0, meaning all starting materials are available for purchase, the problem is considered solved. The score is 1; the score decreases rapidly as the number of unpurchaseable raw materials increases. When the value is 1, it is 0.5. When the value is 2, the value is 0.11. When the value is 3, the value is 0.016. When the value is 4, the value is 0.0016. Not less than 5 and not exceeding When no route is found The value is 0, and its range is within the closed interval between 0 and 1. Continuous scoring in the source code is: .

[0051] Furthermore, continuous syntheticity score ,in The initial quantity of raw materials that are not part of the set of purchasable building blocks in the optimal route; When the score is 0, the target molecule is considered solved and receives a score of 1; when no route is found, the score is 0. The optimal route is to make the target molecule solvable. Maximum The route with the fewest steps is selected when there are two routes in a row. The reported route corresponds to the route with the given score.

[0052] The continuous rather than binary classification can divide the candidate region into three intervals: solved, a few raw materials that cannot be purchased, and a large number of raw materials that cannot be purchased. Even at the point where the binary markers of solved and unsolved collapse, molecules can still be sorted according to the gradient of synthesis difficulty.

[0053] Alternative forms of continuous composability scoring: Alternatively, the proportion of purchasable leaves in the leaves of the optimal route can be taken as the coverage rate. In the source code, the building block coverage rate is the bb_coverage of the route object, which is the number of purchasable leaves in the route divided by the total number of leaves. It can also be weighted by leaf complexity or price, or combined with route length and confidence to form a composite score.

[0054] Example 1: Comparison of the effect of simplified constraints on search overhead and coverage: Template extraction and filtering are the same as in S1 and S2. The complete template set of 64,366 templates is filtered into a simplified template subset of 42,028 templates, accounting for 65.3%. Model training is the same as in S3: D-MPNN is used to train two single-step models, the original and the simplified, on the complete set and the simplified subset respectively. The simplified model is warm-started with the encoder and reaction center head of the original model and re-initialized with the template classification head. Search configuration is the same as in S4: retro-star type AND-OR search, k is 10, 8 seconds per molecule, no more than 100 unfolding times, no more than 5 depths, and a hard clock limit of 60 seconds per molecule; both models use the same purchasable building block inventory, i.e., the publicly available ZINC purchasable building block set, and each process runs on a GPU.

[0055] The evaluation set consists of 1000 drug-like target molecules taken from the publicly available ChEMBL-35 library. A fixed random seed was used, and small molecule records were shuffled and extracted sequentially. For each record, the largest organic component was extracted (i.e., desalting), retaining molecules with a heavy atom number between 5 and 60 that can be resolved by open-source cheminformatics libraries. This heavy atom number boundary was used to exclude excessively small non-drug-like molecules and excessively large non-synthetic reasonable molecules. Duplicates were removed by InChIKey until 1000 molecules were reached. A total of 1017 molecules were extracted, of which 17 were filtered out due to size. Because this evaluation set is independent of the training reaction corpus, these targets are out-of-distribution targets relative to the training set. The seed and sampling script are publicly available along with the benchmark and can accurately reproduce this target set.

[0056] The comparison results are as follows: The simplified model versus the original model, with k = 10: Solution efficiency 85.1% vs. 81.8%, McNemar exact test p = 1.5 x 10^-3; Number of unique solutions at points of inconsistency 68 vs. 35; Average number of expansions for all 1000 molecules 32.0 vs. 38.8, a reduction of approximately 18%; Average number of expansions for the 783 molecules solved by both models 15.7 vs. 22.0, a reduction of approximately 30%, two-sided Wilcoxon signed-rank test statistic W = 20881, p = 8.6 x 10^-21, highly significant; Molecularly, the simplified model expanded 283 fewer molecules, 136 more, and the same number 364; Median clock time per target 0.32 seconds vs. 0.49 seconds.

[0057] Because the simplification constraints limit the single-step model to proposing smaller candidate components of the objective at each node, non-simplified branches in the search tree that do not advance towards purchasable precursors are completely eliminated at the action space level. Under the same budget, the number of node expansions required for the search decreases from 38.8 to 32.0, the number of expansions on the common subset decreases from 22.0 to 15.7, and the median search time decreases from 0.49 seconds to 0.32 seconds. Because each expansion strictly reduces the molecular complexity metric of good foundations, the search tree becomes shallower and more convergent, with the budget concentrated on branches advancing towards purchasable precursors, resulting in an increase in the solution rate from 81.8% to 85.1%. Intuitively, narrowing the action space should result in a loss of coverage, but in practice, it slightly increases coverage while reducing overhead, demonstrating non-obviousness. Because SynScore continuously assigns the number of unpurchasable raw materials U in the optimal route as its independent variable, different synthesis difficulties are mapped to continuous gradients. In the original model, 167 out of its 182 unsolved targets have only 1 to 2 unpurchasable raw materials remaining. The simplified model, due to its tendency to continuously break down targets into smaller ones, retains more unpurchasable raw materials; 72 targets have U not less than 5. Therefore, even in intervals where the binary solved flag collapses into unsolved regions, it can still sort and classify molecules. The above effects are achieved on out-of-distribution drug targets independent of the training corpus. Since the simplified constraints mechanistically make the search tree shallower and more convergent, the relative advantage of this method is expected to further increase with the complexity of the target molecules, the size of the building block library, and the depth of the route, and can be extended to larger template sets and building block libraries, while its core mechanism remains unchanged.

[0058] It should be noted that, among the above effects, the reduction in the number of node expansions is a robust main effect compared with the same molecule pairing; the fact that the solution rate does not decrease but increases further indicates that narrowing the action space does not come at the cost of coverage rate, and both support the technical contribution of this method from a joint and independent perspective.

[0059] Example 2: Sensitivity of Expanded Width k and Operating Point Selection: Both models were scanned at k values ​​from 3 to 10, with other parameters the same as in Example 1. The original model with k = 50 was used as a molecule-by-molecule reference. The solution rate was 83.9%, the average time was 4.59 seconds, and the median was 1.20 seconds. Results showed that as k increased, the simplified model's solution rate rose to 85.1% at k = 10, exceeding the reference rate of k = 50 near k = 8; the original model stabilized at approximately 81.8%. All curves flattened out between k = 6 and 8. Therefore, k = 10 was chosen as the operating point, which was close to convergence and significantly cheaper than the reference rate of k = 50.

[0060] Example 3: Comparison with an external open-source multistep inverse synthetic planner: A publicly available open-source multistep inverse synthetic planner was run on all 1000 targets, using its publicly available USPTO extension strategy and filtering model, and the same set of building blocks as the present invention; the search depth, expansion width, iteration budget, and hardware conditions were aligned with its. Results: The comparison planner solved 467 targets (46.7%), while the simplified model of the present invention solved 85.1%, and the original model solved 81.8%, representing approximately 1.8 times the solution rate. The median search time was approximately one-thirteenth of the comparison planner's and approximately one-eighth of the original model's. Of the 1000 targets, only the present invention solved 391, while only the comparison planner solved 7. This comparison isolates the differences to the single-step model and search algorithm itself, rather than budget or hardware differences.

[0061] This invention also provides a synthesizability scoring system based on simplified reaction template constraints, comprising: a template extraction and filtering module configured to extract reaction templates from an atom-mapped reaction corpus and filter them according to the aforementioned simplified template criteria to obtain a simplified template subset, executing S1 and S2; a single-step model module configured to train and infer a single-step retrosynthesis model on the simplified template subset, executing S3; a multi-step search module configured to use the single-step retrosynthesis model to perform candidate splitting on molecules that do not hit the purchasable building block set and drive a multi-step route search for the target molecule to be scored, executing the search part of S4; and a scoring module configured to calculate and output the continuous synthesizability score of the target molecule based on the number of starting materials that do not belong to the purchasable building block set in the optimal route, executing the scoring part of S4. The above modules can be implemented on the same computing device or distributed across multiple computing devices interconnected via a network.

[0062] The present invention also provides a computer-readable storage medium, which is a storage carrier that can be read by a processor, including carrier types such as disk, optical disk, flash memory, solid-state memory and combinations thereof, on which a computer program is stored in a readable and writable manner, and when the program is executed by the processor, it implements the aforementioned syntheticity scoring method based on simplified reaction template constraints.

[0063] This invention also provides a method for reducing the overhead of multi-step retrosynthetic route search, including constraining the action space of a single-step retrosynthetic model so that it only outputs a split that satisfies a simplified template criterion for any product molecule or intermediate molecule. This criterion is that the split divides a single target molecule into two or more smaller precursor molecules. The constrained single-step retrosynthetic model drives the multi-step route search. This solution decouples the core concept of constraining the action space to a simplified form from the template classification implementation route: the constraint is not limited to template set filtering, but can also be achieved by applying the same simplified criterion to the candidate generation or training data of a template-independent generative single-step model.

[0064] The implementation of a template-independent generative model is as follows. A sequence-to-sequence or graph-to-graph generative single-step model, such as a Transformer-based autoregressive reactant generation model, is used to directly generate candidate reactants without going through a reaction template. There are two ways to apply a simplified criterion. First, at the training data layer, only training samples with a single product pointing to two or more reactants are retained during training data construction. The criterion is the same as S2, i.e., the product side is a single molecule and the reactant side is two or more molecules, enabling the generative model to learn to generate only split-type splits. Second, at the candidate generation layer, the candidate reactant set output by the generative model is filtered using the same simplified criterion, retaining only candidates that satisfy the condition of splitting a single target molecule into multiple smaller precursors for multi-step search. Both methods can be used in conjunction with the same search budget, building block inventory, and evaluation process as in Example 1. Those skilled in the art will anticipate that, similar to the template classification approach, the constrained template-independent model can only propose candidates that break down the objective into smaller parts at each node. Non-simplified branches are excluded at the action space level, resulting in a shallower and more convergent search tree, thereby reducing the number of node expansions under the same search budget. The simplified comparison results in Example 1, where the number of expansions decreased from 38.8 to 32.0, the number of common subsets decreased from 22.0 to 15.7, and the solution rate increased from 81.8% to 85.1%, demonstrate the validation conclusion for the controlled variable—that is, only outputting simplified splits—and are also applicable to the constrained model of this decoupling scheme. The difference between this scheme and the aforementioned main scheme is that the main scheme is limited to implementation through template set filtering, while this scheme covers all means of implementing the constraint of only outputting simplified splits.

[0065] This invention also provides a syntheticity scoring method, which performs a multi-step route search on the target molecule to obtain the optimal route, and calculates a continuous syntheticity score based on the number U of starting materials that do not belong to the set of purchasable building blocks in the optimal route. ,in, A score of 0 indicates a solution has been found and is assigned a rating of 1; no route was found and the score is 0. This solution will be scored continuously. Decoupling Single-Step Routes from Simplified Constraints: Multi-step route search can be driven by any single-step inverse synthetic model, including unconstrained models trained on the complete template set, models with simplified constraints, and generative models independent of the template. As long as candidate routes can be enumerated from the resulting AND-OR graph and the number of unpurchasable starting materials for each route can be counted, the multi-step route search can proceed according to... Calculate continuous scores. The optimal route selection rule is the same as S4: take the route that makes the best possible outcome. Maximum The route with the fewest response steps is selected when two routes are in parallel; a score of 0 is given when no route is found; the value falls within the closed interval of 0 to 1, and the decay characteristics are the same as S4. For 1 hour 0.5, It is 2 hours and 0.11. It is 3 hours and 0.016. It is 0.0016 at 4 o'clock.

[0066] Even when the search is driven by an unconstrained original model, The candidate targets are still categorized into three levels: solved, a few unpurchasable materials, and a large number of unpurchasable materials. In the original model, 167 of its 182 unsolved targets have only 1 to 2 unpurchasable materials remaining. These targets collapse into unsolved categories under the binary "solved" flag, but according to this scheme, they can be distinguished by continuous scores on the order of 0.5 or 0.11. When combined with the simplified model of Example 1, the distinguishability further exhibits an overall difference in the U-distribution; the simplified model has 72 targets with U not less than 5. The difference between this scheme and the main scheme is that the main scheme binds continuous scores to the search under simplification constraints, while this scheme allows continuous scores to be applied to search results of any route independently of simplification constraints.

[0067] The radius of the extracted template is not limited to 0; larger radii, such as 1 or 2, can be used to change the granularity of the reaction center environment, while the simplified criteria remain unchanged. Thresholds can be set and combined for each good-foundation complexity criterion to strike a trade-off between coverage and search overhead. In addition to AND-OR and retro-star search algorithms, at least one multi-step search algorithm from Monte Carlo tree search, A algorithm, and bundle search can be used, all of which benefit from the constrained action space.

[0068] Beyond template-based classification D-MPNN, single-step models can utilize other graph neural networks, Transformers, or template-independent generative single-step models, provided the same simplified constraints are applied to their candidate generation or training data. The scoring format can be extended to coverage forms (bb_coverage), weighted forms, and composite scoring forms. Applications extend beyond organic small molecule chemical synthesis to include biosynthetic route planning, materials and polymer synthesis routes, and general combinatorial search problems from target to available precursors, provided a corresponding simplified good-base criterion and a set of purchasable or available leaves can be defined. The inventory for purchasable leaves can be replaced with an actual supplier list, internal inventory, or a custom available set.

[0069] The above are merely preferred embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.

Claims

1. A syntheticity scoring method based on simplified reaction template constraints, characterized in that, include: S1. Extract reaction templates from the atomic mapping reaction corpus to obtain a complete template set; S2. Filter the complete template set according to the simplified template criterion to obtain a simplified template subset. The simplified template criterion is: when the template is written in the retrosynthetic direction, the product side is a single molecule and the reactant side is two or more molecules. S3. Train a single-step inverse synthesis model on the simplified template subset, so that the single-step inverse synthesis model can only output the split that satisfies the simplified template criterion during inference; S4. Drive a multi-step route search for the target molecule to be scored using the single-step retrosynthetic model: For molecules that do not hit the purchasable building block set in the multi-step route search, the single-step retrosynthetic model expands and outputs candidate splits, and the candidate reactants corresponding to the candidate splits are added to the multi-step route search. Molecules that hit the purchasable building block set are determined to be purchasable. Calculate and output the continuous synthesizability score of the target molecule based on the number of starting materials that do not belong to the purchasable building block set in the optimal route obtained by the multi-step route search.

2. The syntheticity scoring method based on simplified reaction template constraints according to claim 1, characterized in that, The simplified template criterion also includes a monotonically decreasing trend in the retrosynthetic direction of one or a combination of the following good-base complexity measures: the number of aromatic rings on the reactant side is less than that on the product side; the number of heavy atoms, rings, rotatable bonds, or stereocenters of a single molecule on the reactant side is lower than the corresponding values ​​on the product side.

3. The syntheticity scoring method based on simplified reaction template constraints according to claim 1, characterized in that, The simplified template criterion applies filtering to the complete template set at the template set level. The simplified template subset obtained after filtering directly constitutes the split set that the single-step inverse synthesis model can output during the inference phase. The single-step inverse synthesis model does not perform any complexity scoring or reordering on the candidate splits during the inference phase. The output of the single-step inverse synthesis model is ordered by probability.

4. The syntheticity scoring method based on simplified reaction template constraints according to claim 1, characterized in that, The single-step retrosynthesis model includes a graph neural network that encodes the molecular graph of the product. The graph neural network encodes the molecular graph to be unfolded in the multi-step route search. Its output includes template classification results and atom-by-atom reaction center prediction results on the simplified template subset. The reaction center prediction results are used in conjunction with the template classification results to generate the candidate split.

5. The syntheticity scoring method based on simplified reaction template constraints according to claim 1, characterized in that, The reaction template is extracted from the local environment covered by a set map distance on the product molecular map, starting from the reaction center atom. When the set map distance is 0, the local environment only covers the reaction center atom. The extraction retains templates that appear at least a set threshold number of times.

6. The syntheticity scoring method based on simplified reaction template constraints according to claim 1, characterized in that, The single-step inverse synthesis model trained on the simplified template subset has its encoder and reaction center prediction parts initialized by a model pre-trained on the complete template set, and its template classification part re-initialized and then trained.

7. The syntheticity scoring method based on simplified reaction template constraints according to claim 1, characterized in that, The multi-step route search is constrained by a search budget; the search budget includes at least one of the following: upper limit of search time, upper limit of maximum number of node expansions, and upper limit of maximum search depth; The search budget also includes the number of candidate splits returned by the single-step inverse synthesis model each time a node is expanded, as the expansion width.

8. The syntheticity scoring method based on simplified reaction template constraints according to claim 1, characterized in that, The continuous synthesizability score ,in, The number of starting raw materials in the optimal route that do not belong to the set of purchasable building blocks; When the target molecule is determined to be solved and scored as 1, and no route is found, the score is 0; the optimal route is the one that maximizes the SynScore. The shortest route is the one with fewer reaction steps when there are parallel routes.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the program implements the syntheticity scoring method based on simplified reaction template constraints as described in any one of claims 1 to 8.

10. A synthesizability scoring system based on simplified reaction template constraints, characterized in that, include: The template extraction and filtering module is configured to extract reaction templates from the atomic mapping reaction corpus and filter them according to the simplified template criterion described in claim 1 to obtain a simplified template subset; A single-step model module is configured to train and infer a single-step inverse synthetic model on the simplified template subset; The multi-step search module is configured to perform candidate splitting on molecules that do not hit the set of purchasable building blocks using the single-step retrosynthesis model and drive a multi-step route search for the target molecule to be scored. The scoring module is configured to calculate and output the continuous synthesizability score of the target molecule based on the number of starting materials in the optimal route that do not belong to the set of purchasable building blocks.