Elix, CBI2024, Open Molecule Generator: A Multi...

Elix
October 30, 2024

Elix, CBI2024, Open Molecule Generator: A Multipurpose Molecule LLM

Elix

October 30, 2024

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

26 slides
  1. Any unauthorized reproduction of this material is strictly prohibited. Open

    Molecule Generator by Elix (OMGeE): A Multipurpose Molecule LLM Elix, Inc. David Jimenez Barrero
  2. Introduction Goal: Train a Foundation Model with contextualized molecule information

    which can be fine-tuned to diverse drug-discovery downstream tasks. A Foundation Model is a type of large-scale neural network trained on vast and diverse datasets, designed to be Foundation Model Downstream Tasks general-purpose and adaptable to a wide range of tasks through fine-tuning. Steps: 1. Train an LLM with competitive architecture Foundation Model 2. Increase functionality through LoRA finetuning 2
  3. Dataset: MolPajama V2 MolPajama V2 is mainly built from ChEMBL

    with: • molecules and a compilation of their respective physico-chemical properties • semantic structure description • known activities description • known protein targets Mol Pajama Each sample is then formatted in a human-readable form. Anticipating potential downstream tasks that might require more complex understanding of the data, there were added 3 more types of samples added to the corpus with ADMET, Matched Molecular Pairs, and Retrosynthetic information. 3
  4. Model Training Order of LLM generation Model Training 4 Billion

    Parameter LLaMA Architecture > 65B Tokens Mol ecular weight 3 2 8 Input Tokens , logD 3 Generation ecular weight 3 2 8 , logD 3 . weight 3 2 8 , logD 3 . 1 3 2 8 , logD 3 . 1 smiles 2 8 , logD 3 . 1 smiles COC1 Context Output 4
  5. Pretraining Results: Constrained Molecule Generation Task Evaluating the model -

    Cross Entropy Loss. (Not too informative) However, the pretraining can be used for a Constrained Molecule Generation task Order of LLM generation Set of physico-chemical properties Molecule Input Context Generation 1. Supply a specific set of physico-chemical properties to the model (from test set) 2. Generate a molecule that should satisfy the conditions 3. Evaluate how well conditions are met 5
  6. Substructure-based Generation Overall Task: Generate a molecule with desired –fixed–

    substructures and a variable substructure based on a description. Ground Truth Example: • 1 ether oxygens (including phenoxy) • 1 benzene rings 9
  7. Substructure-based Generation Samples Overall Task: Generate a molecule with desired

    –fixed– substructures and a variable substructure based on a description. Ground Truth Reference • 1 Tertiary amines • 1 halogens, Bicyclic • 1 aromatic nitrogens • 1 benzene rings Generated • 1 pyridine rings 10
  8. Substructure-based Generation Samples Task: Create a molecule with a single

    provided substructure. Ground Truth Reference • 1 ether oxygens (including phenoxy) • 1 halogens • 1 methoxy groups Generated -OCH3 • 1 benzene rings 11
  9. Substructure-based Generation Samples Task: Find a linker from a description

    to join 2 substructures Possible use contexts: PROTAC Ground Truth Reference • 2 amides • 1 halogens • 1 Primary amines • 1 Secondary amines • 1 primary amides • 2 Tertiary amines • 1 para-hydroxylation sites Generated • 2 carbonyl O • 2 aromatic nitrogens • 1 benzene rings 12
  10. Substructure-based Generation Samples Generate a molecule with a desired substructure

    based on a verbal description of the substructure. Ground Truth Reference • 2 ether oxygens (including phenoxy) • 2 methoxy groups Generated -OCH3 • 1 benzene rings 13
  11. Conclusions • OMGeE was tested without fine-tuning for constrained molecule

    generation, achieving high performance with small error across 26 constraints • OMGeE was successfully fine-tuned for substructure based generation, showing adaptability to downstream tasks not originally present in the pre-training • This study opens the door for further leveraging of OMGeE for other downstream applications such as: ◦ One-step Retrosynthesis ◦ Pharmacophore based generation ◦ Matched-Molecular-Pairs-based optimization ◦ etc… • OMGeE weights and architecture is open-sourced for researchers to further extend the functionality • OMGeE and downstream functionality are coming soon to Elix DiscoveryTM 15
  12. Downstream Tasks Once the Foundation Model is trained, it can

    be leveraged for downstream tasks using LoRA It can be trained on a small fraction of the time using a fraction of the resources 17
  13. ChEMBL Corpus Actual Sample hydrogen bond donnors: 0, polar surface

    area: 61.83, num of radical electrons: 0, most Acid A ChEMBL corpus sample can be divided into 5 parts: dissociation constants (pKa): 13.58, num of aliphatic heterocycles: 0, num of N or O (Nitrogens and Oxygens): 5, hydrogen bond acceptors: 5, num of aliphatic rings: 0, labute approximate surface area (LabuteASA): 140.71, logD: 3.12, num saturated rings: 0, num of 1. Physico-Chemical properties: logP, Mol Weight, QED, Num aromatic rings, Num of valence electrons, labute approximate surface area, etc. aliphatic carbocycles: 0, molecule type: Small molecule, rule of 3: fail, num heavy atoms: 24, num of rings: 2, num heteroatoms: 5, molecular formula: C19H20O5, natural product likeness score: -0.54, full molecular weight: 328.36, molecular species: NEUTRAL, logP: 3.06, num aromatic heterocycles: 0, molecular weight monoisotopic: 328.1311, standard international chemical identifier (InChI): InChI=1S/C19H20O5/c1-22-16-9-6-14(7-10-16)8-11-19(21)24-13-18(20)15-4-3-5-17(12-15)23-2/h3-7,9 2. Summary of substructures: number of epoxide rings, number of esters, number of ether oxygens, etc. -10,12H,8,11,13H2,1-2H3, num aromatic rings: 2, quantitative estimate of drug-likeness (qed): 0.55, full molecular formula: C19H20O5, num lipinski rule of 5 (ro5) violations: 0, num saturated carbocycles: 0, fraction of SP3 hybridized C atoms: 0.26, num aromatic carbocycles: 2, molecular weight freebase: 328.36, num rotatable bonds: 8, num of NHs or OH: 0, Balaban’s J value (BalabanJ): 1.78, fragments: 2 benzene rings, 2 carbonyl O, excluding COOH, 1 ketones 3. Similar molecules: Tanimoto sim > 0.8 (if available) excluding diaryl, a,b-unsat. dienones, heteroatom on Calpha, 2 carbonyl O, 1 ketones, 1 esters, 1 aryl methyl sites for hydroxylation, 3 ether oxygens (including phenoxy), 2 methoxy groups -OCH3, num of valence electrons: 126, activities: activity type: Potency, pChEMBLvalue: 4.9, Potency=12589.3nM, target: 4. Activities and targets: activity type, pChEMBLvalue, value, target, protein sequence, description of the target (if available) <sequence>MSQEGDYGRWTISSSDESEEEKPKPDKPSTSSLLCARQGAANEPRYTCSEAQKAAHKRKISPVKFSNTDSVLPPKRQKSGSQED LGWCLSSSDDELQPEMPQKQAEKVVIKKEKDISAPNDGTAQRTENHGAPACHRLKEEEDEYETSGEGQDIWDMLDKGNPFQFYLTRVSGVKPKY NSGALHIKDILSPLFGTLVSSAQFNYCFDVDWLVKQYPPEFRKKPILLVHGDKREAKAHLHAQAKPYENISLCQAKLDIAFGTHHTKMMLLLYE EGLRVVIHTSNLIHADWHQKTQGIWLSPLYPRIADGTHKSGESPTHFKADLISYLMAYNAPSLKEWIDVIHKHDLSETNVYLIGSTPGRFQGSQ KDNWGHFRLKKLLKDHASSMPNAESWPVVGQFSSVGSLGADESKWLCSEFKESMLTLGKESKTPGKSSVPLYLIYPSVENVRTSLEGYPAGGSL 5. Molecule: depicted with multiple canonical and non-canonical SMILES representations PYSIQTAEKQNWLHSYFHKWSAETSGRSNAMPHIKTYMRPSPDFSKIAWFLVTSANLSKAAWGALEKNGTQLMIRSYELGVLFLPSAFGLDSFK VKQKFFAGSQEPMATFPVPYDLPPELYGSKDRPWIWNIPYVKAPDTHGNMWVPS</sequence>, description: Tyrosyl-DNA phosphodiesterase 1, SMILES: <smiles>COC1=CC=C(CCC(=O)OCC(=O)C2=CC=CC(OC)=C2)C=C1</smiles>, <smiles>COc1ccc(CCC(=O)OCC(=O)c2cccc(OC)c2)cc1</smiles>, <smiles>COc1ccc(CCC(=O)OCC(=O)c2cccc(OC)c2)cc1</smiles> 18
  14. ADMET Matched Molecular Pairs (MMP) Corpus • A dataset of

    molecule pairs and their associated ADMET properties • Constructed using the library Therapeutics Data Commons (TDC) * Matched molecular pairs by Murcko Scaffold Distribution BBB: 1 Caco-2: -4.84 Distribution BBB: 1 Caco-2: -5.79 • Containing 22 ADMET metrics: • Caco-2 (Cell Effective Permeability), • Absorption PAMPA Permeability, • Distribution BBB (Blood-Brain Barrier), Create a transformation path with the change in ADMET prop. • Metabolism CYP P450 2C19 Inhibition, Distribution BBB: no_change Caco-2: high→low • Excretion Clearance Hepatocyte, etc. Actual Sample MMP transformation: <smiles>CCCCNc1ccc(NCCCC)c2c1C(=O)c1ccccc1C2=O</smiles> -> ~ 4.2M samples <smiles>Cc1ccc2c(c1)C(=O)c1ccccc1C2=O</smiles>, Delta absorption Solubility: high->low * Velez-Arce, Alejandro, and Huang, Kexin, and Fu, Tianfan and Gao, Wenhao and Zhao, Yue and Roohani, Yusuf and Leskovec, Jure and Coley,Connor W and Xiao, Cao and Sun, Jimeng and Zitnik, Marinka; Therapeutic Data Commons - PyTDC; https://pypi.org/project/PyTDC/ ; Zitnik Lab, Harvard University 19
  15. LogD, Solubility and CLint Matched Molecular Pairs (MMP) Corpus •

    A dataset of molecule pairs and their associated LogD, Solubility and CLint properties • Based on the dataset in the paper Transformer-Based Matched molecular pairs by Murcko Scaffold Molecular Optimization Beyond Match Molecular Pairs * • Couples molecules based on: • single transformation differences logD: 2.39 Sol: 1.65 CLint: 1.18 logD: 2.23 Sol: 2.06 CLint: 1.11 Create a transformation path with the change in ADMET prop. • tanimoto similarity logD: (0.0, 0.2] Sol: high->low CLint: no_change • Murcko Scaffolds Actual Sample ~ 7.1M samples MMP transformation: <smiles>Cc1nc2ccccc2c(=O)n1-c1ccc(OC2CCN(C3CCCC3)CC2)cc1</smiles> -> <smiles>Cc1nc2ccncc2c(=O)n1-c1ccc(OC2CCN(C3CCC3)CC2)cc1</smiles>, Delta logD: (-1.1, -0.9], Delta solubility: no_change, Delta Clint: no_change, source molecule logD: 2.17, target molecule logD: 1.11, source molecule solubility: 2.58, target molecule solubility: 2.91, source molecule Clint: 0.92, target molecule Clint: 0.86 * He J, Nittinger E, Tyrchan C, Czechtizky W, Patronov A, Bjerrum EJ, Engkvist O. Transformer-based molecular optimization beyond matched molecular pairs. J Cheminform. 2022 Mar 28;14(1):18. doi: 10.1186/s13321-022-00599-3. PMID: 35346368; PMCID: PMC8962145. 20
  16. Retrosynthesis Corpus • Retrosynthesis task is decomposed into 1-step retrosynthesis

    subtasks Product Reactants • Based on the USPTO-50K reactions data Actual Sample 1 • Two types of samples are generated: <smiles>O=C1CN(c2ccc(/C=C/c3cccnc3)cc2OCc2ccccc2)S(=O)(=O)N1</smiles> -> 'Retrosynthesis: class: Heterocycle Formation, retrosynthesis transformation: <smiles>O=C1CN(c2ccc(I)cc2OCc2ccccc2)S(=O)(=O)N1.C=Cc1cccnc1</smiles> a. relating the product to the reactants with a human readable reaction-class name Actual Sample 2 'Retrosynthesis USPTO: main product: b. relating the product to the template; has <smiles>COc1ccc(C2CC(c3cc(OC)c(OC)c(OC)c3)=NN2C(C)=O)cc1OCC(=O)Nc1nc2ccc(OC(F)(F)F)cc2s 1</smiles>, retrosynthesis template: retrosynthesis template, forward reaction, <smarts>[#16;a:4]:[c:5](:[#7;a:6])-[NH;D2;+0:7]-[C;H0;D3;+0:1](-[C:2])=[O;D1;H0:3]>>O-[ C;H0;D3;+0:1](-[C:2])=[O;D1;H0:3].[#16;a:4]:[c:5](:[#7;a:6])-[NH2;D1;+0:7]</smarts>, retrosynthesis transformation forward reaction: <smarts>O-[C;H0;D3;+0:1](-[C:2])=[O;D1;H0:3].[#16;a:4]:[c:5](:[#7;a:6])-[NH2;D1;+0:7]>> [#16;a:4]:[c:5](:[#7;a:6])-[NH;D2;+0:7]-[C;H0;D3;+0:1](-[C:2])=[O;D1;H0:3]</smarts>, retrosynthesis transformation: ~ 0.85M samples <smiles>COc1ccc(C2CC(c3cc(OC)c(OC)c(OC)c3)=NN2C(C)=O)cc1OCC(=O)Nc1nc2ccc(OC(F)(F)F)cc2s 1</smiles> -> <smiles>COc1ccc(C2CC(c3cc(OC)c(OC)c(OC)c3)=NN2C(C)=O)cc1OCC(=O)O.Nc1nc2ccc(OC(F)(F)F)cc 2s1</smiles> * He J, Nittinger E, Tyrchan C, Czechtizky W, Patronov A, Bjerrum EJ, Engkvist O. Transformer-based molecular optimization beyond matched molecular pairs. J Cheminform. 2022 Mar 28;14(1):18. doi: 10.1186/s13321-022-00599-3. PMID: 35346368; PMCID: PMC8962145. 21
  17. Results: Tanimoto Similarity • Additionally, different temperatures were tried: 0.1,

    0.3, 0.5, and 0.8. (Smaller -> more peaked dist, larger -> fatter dist) • The Tanimoto similarity between the the property template molecule and the generated molecule is shown below The generation success rate, i.e.: rate of valid molecules generated, was 0.92, 0.93, 0.92, 0.88 for temperatures of 0.1, 0.3, 0.5, and 0.8 respectively. 22
  18. Preparing a Dataset: Splitting the Molecule Starting from a Molecule:

    ✄ ✄ Each fragment has min 4 heavy atoms, and there are max 3 fragments generated. 23
  19. Preparing a Dataset: Sticking Together the Pieces Sample: <s>Fragment decomposition:

    Fragment 1: <smarts>[1*]c1cccc(OC)c1OC</smarts>, Fragment 2: <smarts>[1*]C(=O)O[2*]</smarts>, Fragment 3: 1 ketones, 1 halogens, 1 carbonyl O, 1 ketones excluding diaryl, a,b-unsat. dienones, heteroatom on Calpha, 1 Input thiophene rings; w connections: [2]; SMILES: <smiles>COc1cccc(C(=O)OCC(=O)c2ccc(Br)s2)c1OC</smiles>, <smiles>COc1cccc(C(=O)OCC(=O)c2ccc(Br)s2)c1OC</smiles>, Output <smiles>COC1=CC=CC(C(=O)OCC(=O)C2=CC=C(Br)S2)=C1OC</smiles> 24

More Decks by Elix

Other Decks in Technology