Fabian Per Krüger
Research Subjects
Fabian Per Krüger has a total of 9 co-authors. Here are the top co-authors by number of shared publications:
- Igor V. Tetko
Helmholtz Munich – German Research Center for Environmental Health (GmbH), Institute of Structural Biology, Molecular Targets and Therapeutics Center, 85764 Neuherberg, Germany
8 shared publications - Ola Engkvist
Discovery Sciences, Molecular AI, AstraZeneca R&D
7 shared publications - Mikhail Kabeshov
Discovery Sciences, Molecular AI, AstraZeneca R&D
6 shared publications - Nicklas Österbacka
Department of Physics, Chalmers University of Technology, SE-412 96 Gothenburg, Sweden
3 shared publications - Thierry Kogej
Discovery Sciences, Molecular AI, AstraZeneca R&D
3 shared publications - Johan Ostman
AI Sweden, Gothenburg, Sweden
1 shared publication
Latest Publications
- Open Access
- 12 November 2026
- Published by American Chemical Society (ACS) in ChemRxiv
SmartReact: An Open-Source Python Package for Scalable Forward Synthesis Enumeration Built on Interpretable SMARTS Templates
Predicting which products can be made from a set of building blocks underpins library design, analogue generation, and synthesis-constrained generative modelling. Reaction templates encoded as SMARTS patterns are the standard tool for this forward synthesis enumeration task. However, existing approaches force a trade-off between chemical coverage, specificity, and the computational cost of applying large template sets at scale. We present SmartReact, an open-source Python library that resolves this trade-off through a template set built on SMARTS-RX, a hierarchical functional group ontology. SmartReact's templates are a combinatorial expansions over the functional group ontology of 406 patterns based on which functional groups interact in which reaction, so the library exposes only a few hundred distinct reactant-side patterns no matter how many templates it holds, and one classification per molecule resolves thousands of templates at once. Every prediction of SmartReact is traceable to a named reaction and an explicit set of functional group requirements, making results directly interpretable by chemists and straightforward to audit. New reaction types can be incorporated by specifying a SMARTS pattern and its functional group requirements, making the library easy to extend. A case study enumerating 536 001 unique products from 1 000 building blocks in 14.1 s demonstrates real-world utility at scale. Scientific Contribution: SmartReact contributes a large, expert-refined SMARTS reaction template library together with an open-source Python package designed to use it efficiently. The library's 9 770 templates spanning 37 medicinal chemistry reaction types are generated by combinatorial expansion over the SMARTS-RX functional group ontology, which gives them a chemical specificity and non-redundancy that auto-extracted libraries lack and, at the same time, a bounded reactant-side pattern space that makes them cheap to pre-filter.
- 12 November 2026
- Published by American Chemical Society (ACS) in ChemRxiv
Open AccessSmartReact: An Open-Source Python Package for Scalable Forward Synthesis Enumeration Built on Interpretable SMARTS Templates
Predicting which products can be made from a set of building blocks underpins library design, analogue generation, and synthesis-constrained generative modelling. Reaction templates encoded as SMARTS patterns are the standard tool for this forward synthesis enumeration task. However, existing approaches force a trade-off between chemical coverage, specificity, and the computational cost of applying large template sets at scale. We present SmartReact, an open-source Python library that resolves this trade-off through a template set built on SMARTS-RX, a hierarchical functional group ontology. SmartReact's templates are a combinatorial expansions over the functional group ontology of 406 patterns based on which functional groups interact in which reaction, so the library exposes only a few hundred distinct reactant-side patterns no matter how many templates it holds, and one classification per molecule resolves thousands of templates at once. Every prediction of SmartReact is traceable to a named reaction and an explicit set of functional group requirements, making results directly interpretable by chemists and straightforward to audit. New reaction types can be incorporated by specifying a SMARTS pattern and its functional group requirements, making the library easy to extend. A case study enumerating 536 001 unique products from 1 000 building blocks in 14.1 s demonstrates real-world utility at scale. Scientific Contribution: SmartReact contributes a large, expert-refined SMARTS reaction template library together with an open-source Python package designed to use it efficiently. The library's 9 770 templates spanning 37 medicinal chemistry reaction types are generated by combinatorial expansion over the SMARTS-RX functional group ontology, which gives them a chemical specificity and non-redundancy that auto-extracted libraries lack and, at the same time, a bounded reactant-side pattern space that makes them cheap to pre-filter.
- Open Access
- 28 August 2026
- Published by American Chemical Society (ACS) in ChemRxiv
SmartReact: An Open-Source Python Package for Scalable Forward Synthesis Enumeration Built on Interpretable SMARTS Templates
Predicting which products can be made from a set of building blocks underpins library design, analogue generation, and synthesis-constrained generative modelling. Reaction templates encoded as SMARTS patterns are the standard tool for this forward synthesis enumeration task. However, existing approaches force a trade-off between chemical coverage, specificity, and the computational cost of applying large template sets at scale. We present SmartReact, an open-source Python library whose template set inverts that trade-off, because the construction that produces the specificity is the same construction that makes the templates cheap to eliminate. Its templates are combinatorial expansions over SMARTS-RX, a fixed hierarchical functional group ontology of 406 patterns, so the library exposes only a few hundred distinct reactant-side patterns no matter how many templates it holds, and one classification per molecule resolves thousands of templates at once. Every prediction of SmartReact is traceable to a named reaction and an explicit set of functional group requirements, making results directly interpretable by chemists and straightforward to audit. New reaction types can be incorporated by specifying a SMARTS pattern and its functional group requirements, making the library easy to extend. A case study enumerating 536,171 unique products from 1,000 building blocks in 15.7 s demonstrates real-world utility at scale. Scientific Contribution: SmartReact contributes a large, expert-refined SMARTS reaction template library together with an open-source Python package designed to use it efficiently. The library's 9,770 templates spanning 37 medicinal chemistry reaction types are generated by combinatorial expansion over the SMARTS-RX functional group ontology, which gives them a chemical specificity and non-redundancy that auto-extracted libraries lack and, at the same time, a bounded reactant-side pattern space that makes them cheap to pre-filter.
- 28 August 2026
- Published by American Chemical Society (ACS) in ChemRxiv
Open AccessSmartReact: An Open-Source Python Package for Scalable Forward Synthesis Enumeration Built on Interpretable SMARTS Templates
Predicting which products can be made from a set of building blocks underpins library design, analogue generation, and synthesis-constrained generative modelling. Reaction templates encoded as SMARTS patterns are the standard tool for this forward synthesis enumeration task. However, existing approaches force a trade-off between chemical coverage, specificity, and the computational cost of applying large template sets at scale. We present SmartReact, an open-source Python library whose template set inverts that trade-off, because the construction that produces the specificity is the same construction that makes the templates cheap to eliminate. Its templates are combinatorial expansions over SMARTS-RX, a fixed hierarchical functional group ontology of 406 patterns, so the library exposes only a few hundred distinct reactant-side patterns no matter how many templates it holds, and one classification per molecule resolves thousands of templates at once. Every prediction of SmartReact is traceable to a named reaction and an explicit set of functional group requirements, making results directly interpretable by chemists and straightforward to audit. New reaction types can be incorporated by specifying a SMARTS pattern and its functional group requirements, making the library easy to extend. A case study enumerating 536,171 unique products from 1,000 building blocks in 15.7 s demonstrates real-world utility at scale. Scientific Contribution: SmartReact contributes a large, expert-refined SMARTS reaction template library together with an open-source Python package designed to use it efficiently. The library's 9,770 templates spanning 37 medicinal chemistry reaction types are generated by combinatorial expansion over the SMARTS-RX functional group ontology, which gives them a chemical specificity and non-redundancy that auto-extracted libraries lack and, at the same time, a bounded reactant-side pattern space that makes them cheap to pre-filter.
- Open Access
- 22 July 2026
- Published by American Chemical Society (ACS) in ChemRxiv
SmartReact: An Open-Source Python Package for Scalable Forward Synthesis Enumeration Built on Interpretable SMARTS Templates
Predicting which products can be made from a set of building blocks underpins library design, analogue generation, and synthesis-constrained generative modelling. Reaction templates encoded as SMARTS patterns are the standard tool for this forward synthesis enumeration task. However, existing approaches force a trade-off between chemical coverage, specificity, and the computational cost of applying large template sets at scale. We present SmartReact, an open-source Python library that resolves this trade-off through a template set built on SMARTS-RX, a hierarchical functional group ontology. The same ontology that gives each template a precise chemical environment also drives exact pre-filtering of incompatible reactant pairs, keeping enumeration fast as the template library grows. Every prediction is traceable to a named reaction template and an explicit set of functional group requirements, making results directly interpretable by chemists and straightforward to validate or audit. New reaction types can be incorporated by specifying a SMARTS pattern and its functional group requirements, making the library easy to extend. A case study enumerating 524,911 unique products in under a minute from 1,000 building blocks demonstrates real-world utility at scale. Scientific Contribution: SmartReact contributes both a large, expert-refined SMARTS reaction template library and a scalable open-source Python package designed to use it efficiently. The library’s 9,594 templates spanning 36 medicinal chemistry reaction types are grounded in the SMARTS-RX functional group ontology, giving them high chemical specificity and non-redundancy that auto-extracted libraries lack. The same ontology drives exact pre-filtering of incompatible reactant-template combinations, yielding a 43-fold algorithmic speedup that combines with near-linear parallel scaling and a classify-once API to reach over 11,000-fold throughput relative to single-core brute-force matching on a 32-core server.
- 22 July 2026
- Published by American Chemical Society (ACS) in ChemRxiv
Open AccessSmartReact: An Open-Source Python Package for Scalable Forward Synthesis Enumeration Built on Interpretable SMARTS Templates
Predicting which products can be made from a set of building blocks underpins library design, analogue generation, and synthesis-constrained generative modelling. Reaction templates encoded as SMARTS patterns are the standard tool for this forward synthesis enumeration task. However, existing approaches force a trade-off between chemical coverage, specificity, and the computational cost of applying large template sets at scale. We present SmartReact, an open-source Python library that resolves this trade-off through a template set built on SMARTS-RX, a hierarchical functional group ontology. The same ontology that gives each template a precise chemical environment also drives exact pre-filtering of incompatible reactant pairs, keeping enumeration fast as the template library grows. Every prediction is traceable to a named reaction template and an explicit set of functional group requirements, making results directly interpretable by chemists and straightforward to validate or audit. New reaction types can be incorporated by specifying a SMARTS pattern and its functional group requirements, making the library easy to extend. A case study enumerating 524,911 unique products in under a minute from 1,000 building blocks demonstrates real-world utility at scale. Scientific Contribution: SmartReact contributes both a large, expert-refined SMARTS reaction template library and a scalable open-source Python package designed to use it efficiently. The library’s 9,594 templates spanning 36 medicinal chemistry reaction types are grounded in the SMARTS-RX functional group ontology, giving them high chemical specificity and non-redundancy that auto-extracted libraries lack. The same ontology drives exact pre-filtering of incompatible reactant-template combinations, yielding a 43-fold algorithmic speedup that combines with near-linear parallel scaling and a classify-once API to reach over 11,000-fold throughput relative to single-core brute-force matching on a 32-core server.
- Open Access
- 28 October 2025
- Published by Royal Society of Chemistry (RSC) in Digital Discovery
- Vol. 4 (12) , 3552-3566
MolEncoder: towards optimal masked language modeling for molecules
Predicting molecular properties is a key challenge in drug discovery.
- 28 October 2025
- Published by Royal Society of Chemistry (RSC) in Digital Discovery
- Vol. 4 (12) , 3552-3566
Open AccessMolEncoder: towards optimal masked language modeling for molecules
Predicting molecular properties is a key challenge in drug discovery.
- 23 September 2025
- Published by Springer Nature
- p. 42-44
MolEncoder: Improved Masked Language Modeling for Molecules
- 23 September 2025
- Published by Springer Nature
- p. 42-44
MolEncoder: Improved Masked Language Modeling for Molecules
- Open Access
- 31 August 2025
- Published by American Chemical Society (ACS) in ChemRxiv
MolEncoder: Towards Optimal Masked Language Modeling for Molecules
Predicting molecular properties is a key challenge in drug discovery. Machine learning models, especially those based on transformer architectures, are increasingly used to make these predictions from chemical structures. Inspired by recent progress in natural language processing, many studies have adopted encoder-only transformer architectures similar to BERT (Bidirectional Encoder Representations from Transformers) for this task. These models are pretrained using masked language modeling, where parts of the input are hidden and the model learns to recover them before fine-tuning on downstream tasks. In this work, we systematically investigate whether core assumptions from natural language processing, which are commonly adopted in molecular BERT-based models, actually hold when applied to molecules represented using the Simplified Molecular Input Line Entry System (SMILES). Specifically, we examine how masking ratio, pretraining dataset size, and model size affect performance in molecular property prediction. We find that higher masking ratios than commonly used significantly improve performance. In contrast, increasing model or pretraining dataset size quickly leads to diminishing returns, offering no consistent benefit while incurring significantly higher computational cost. Based on these insights, we develop MolEncoder, a BERT-based model that outperforms existing approaches on drug discovery tasks while being more computationally efficient. Our results highlight key differences between molecular pretraining and natural language processing, showing that they require different design choices. This enables more efficient model development and lowers barriers for researchers with limited computational resources. We release MolEncoder publicly to support future work and hope our findings help make molecular representation learning more accessible and cost-effective in drug discovery.
- 31 August 2025
- Published by American Chemical Society (ACS) in ChemRxiv
Open AccessMolEncoder: Towards Optimal Masked Language Modeling for Molecules
Predicting molecular properties is a key challenge in drug discovery. Machine learning models, especially those based on transformer architectures, are increasingly used to make these predictions from chemical structures. Inspired by recent progress in natural language processing, many studies have adopted encoder-only transformer architectures similar to BERT (Bidirectional Encoder Representations from Transformers) for this task. These models are pretrained using masked language modeling, where parts of the input are hidden and the model learns to recover them before fine-tuning on downstream tasks. In this work, we systematically investigate whether core assumptions from natural language processing, which are commonly adopted in molecular BERT-based models, actually hold when applied to molecules represented using the Simplified Molecular Input Line Entry System (SMILES). Specifically, we examine how masking ratio, pretraining dataset size, and model size affect performance in molecular property prediction. We find that higher masking ratios than commonly used significantly improve performance. In contrast, increasing model or pretraining dataset size quickly leads to diminishing returns, offering no consistent benefit while incurring significantly higher computational cost. Based on these insights, we develop MolEncoder, a BERT-based model that outperforms existing approaches on drug discovery tasks while being more computationally efficient. Our results highlight key differences between molecular pretraining and natural language processing, showing that they require different design choices. This enables more efficient model development and lowers barriers for researchers with limited computational resources. We release MolEncoder publicly to support future work and hope our findings help make molecular representation learning more accessible and cost-effective in drug discovery.
- Open Access
- 26 March 2025
- Published by Springer Nature in Journal of Cheminformatics
- Vol. 17 (1) , 1-17
Publishing neural networks in drug discovery might compromise training data privacy
This study investigates the risks of exposing confidential chemical structures when machine learning models trained on these structures are made publicly available. We use membership inference attacks, a common method to assess privacy that is largely unexplored in the context of drug discovery, to examine neural networks for molecular property prediction in a black-box setting. Our results reveal significant privacy risks across all evaluated datasets and neural network architectures. Combining multiple attacks increases these risks. Molecules from minority classes, often the most valuable in drug discovery, are particularly vulnerable. We also found that representing molecules as graphs and using message-passing neural networks may mitigate these risks. We provide a framework to assess privacy risks of classification models and molecular representations, available at https://github.com/FabianKruger/molprivacy. Our findings highlight the need for careful consideration when sharing neural networks trained on proprietary chemical structures, informing organisations and researchers about the trade-offs between data confidentiality and model openness.
- 26 March 2025
- Published by Springer Nature in Journal of Cheminformatics
- Vol. 17 (1) , 1-17
Open AccessPublishing neural networks in drug discovery might compromise training data privacy
This study investigates the risks of exposing confidential chemical structures when machine learning models trained on these structures are made publicly available. We use membership inference attacks, a common method to assess privacy that is largely unexplored in the context of drug discovery, to examine neural networks for molecular property prediction in a black-box setting. Our results reveal significant privacy risks across all evaluated datasets and neural network architectures. Combining multiple attacks increases these risks. Molecules from minority classes, often the most valuable in drug discovery, are particularly vulnerable. We also found that representing molecules as graphs and using message-passing neural networks may mitigate these risks. We provide a framework to assess privacy risks of classification models and molecular representations, available at https://github.com/FabianKruger/molprivacy. Our findings highlight the need for careful consideration when sharing neural networks trained on proprietary chemical structures, informing organisations and researchers about the trade-offs between data confidentiality and model openness.
- Open Access
- 3 January 2024
- Published by American Chemical Society (ACS) in ChemRxiv
Using test-time augmentation to investigate explainable AI: inconsistencies between method, model and human intuition
Stakeholders of machine learning models desire explainable artificial intelligence (XAI) to produce human-understandable and consistent interpretations. In computational toxicity, augmentation of text-based molecular representations has been used successfully for transfer learning on downstream tasks. Augmentations of molecular representations can also be used at inference to compare differences between multiple representations of the same ground-truth. In this study, we investigate the robustness of eight XAI methods using test-time augmentation for a molecular-representation model in the field of computational toxicity prediction. We report significant differences between explanations for different representations of the same ground-truth, and show that randomized models have similar variance. We hypothesize that text-based molecular representations in this and past research reflect tokenization more than learned parameters. Furthermore, we see a greater variance between in-domain predictions than out-of-domain predictions, indicating XAI measures something other than learned parameters. Finally, we investigate the relative importance given to expert-derived structural alerts and find similar importance given irregardless of applicability domain, randomization and varying training procedures. We therefore caution future research to validate their methods using a similar comparison to human intuition without further investigation.
- 3 January 2024
- Published by American Chemical Society (ACS) in ChemRxiv
Open AccessUsing test-time augmentation to investigate explainable AI: inconsistencies between method, model and human intuition
Stakeholders of machine learning models desire explainable artificial intelligence (XAI) to produce human-understandable and consistent interpretations. In computational toxicity, augmentation of text-based molecular representations has been used successfully for transfer learning on downstream tasks. Augmentations of molecular representations can also be used at inference to compare differences between multiple representations of the same ground-truth. In this study, we investigate the robustness of eight XAI methods using test-time augmentation for a molecular-representation model in the field of computational toxicity prediction. We report significant differences between explanations for different representations of the same ground-truth, and show that randomized models have similar variance. We hypothesize that text-based molecular representations in this and past research reflect tokenization more than learned parameters. Furthermore, we see a greater variance between in-domain predictions than out-of-domain predictions, indicating XAI measures something other than learned parameters. Finally, we investigate the relative importance given to expert-derived structural alerts and find similar importance given irregardless of applicability domain, randomization and varying training procedures. We therefore caution future research to validate their methods using a similar comparison to human intuition without further investigation.