Abstract
Text-based representations of chemicals and proteins can be thought of as unstructured languages codified by humans to describe domain-specific knowledge. Advances in natural language processing (NLP) methodologies in the processing of spoken languages accelerated the application of NLP to elucidate hidden knowledge in textual representations of these biochemical entities and then use it to construct models to predict molecular properties or to design novel molecules. This review outlines the impact made by these advances on drug discovery and aims to further the dialogue between medicinal chemists and computer scientists.
Introduction
Traditional drug discovery has long been constrained by the computational intensity of 3D molecular modeling, such as molecular docking and molecular dynamics, or the serendipity of laboratory experimentation. However, the digital age has produced a massive repository of biochemical data—including millions of compounds in PubChem and protein sequences in UniProt—stored primarily as one-dimensional (1D) text-based representations.
Recent breakthroughs in Natural Language Processing (NLP) have provided the tools necessary to treat these sequences as "biochemical languages." By applying architectures originally designed for human speech and translation—such as Word2Vec, seq2seq, and Transformers—to chemical strings, researchers can now "read" and "understand" molecular structures. This shift allows for the rapid prediction of molecular properties, the mapping of complex chemical reactions, and the generation of novel drug candidates with unprecedented efficiency.
Methodological Framework
To treat chemistry as a language, researchers have adapted several core NLP methodologies to handle the unique syntax of biochemical strings.
Tokenization and Representation
Before a model can process a sequence, it must be broken into meaningful units or "tokens." In cheminformatics, this involves techniques like k-mers (overlapping character sequences), Byte-Pair Encoding (BPE), or the extraction of Maximum Common Substructures (MCS). Once tokenized, molecules are converted into distributed representations. Unlike simple one-hot encoding, models like Mol2Vec or SMILESVec learn dense vector embeddings. These embeddings capture semantic similarities between molecular fragments, allowing the model to recognize that two different strings may represent chemically similar functional groups.
Generative Modeling and De Novo Design
To explore uncharted chemical space, researchers utilize generative architectures including Recurrent Neural Networks (RNNs), Variational Autoencoders (VAEs), and Generative Adversarial Networks (GANs). These models are trained to learn the "grammar" of chemical strings, enabling them to write entirely new, valid molecular sequences that possess desired pharmacological properties.
Reaction Prediction as Machine Translation
One of the most significant paradigm shifts is framing chemical reactions as a translation task. Using seq2seq models and Transformers equipped with attention mechanisms, models can "translate" a set of reactants into a product sequence. This approach bypasses the need for hard-coded rules of quantum chemistry, instead learning the statistical mappings of chemical transformations.
Data Resources and Benchmarking
The efficacy of these models relies on massive datasets. Key resources include:
- Chemical Databases: PubChem (96M+ compounds), ChEMBL, and ZINC.
- Protein Databases: UniProt, PDB, and PFam.
- Standardized Benchmarks: The field has moved toward rigorous evaluation using platforms like MOSES and GuacaMol for molecule generation, and MoleculeNet for property prediction.
Key Insights: Grammar and Syntax
A critical realization in this field is that molecules possess a strict syntax. Standard SMILES (Simplified Molecular Input Line Entry System) strings often feature long-range dependencies, such as ring closures, which can be difficult for neural networks to track. This has led to the development of more robust representations:
- DeepSMILES: Modified syntax to reduce complexity for deep learning models.
- SELFIES (Self-Referencing Embedded Strings): A representation engineered to be 100% robust, ensuring that every generated string corresponds to a chemically valid molecule.
Results and Performance
The application of NLP to drug discovery has yielded several high-impact results:
- Computational Efficiency: SMILES-based similarity metrics using NLP tokenization achieve accuracy comparable to traditional 2D graph-based measurements while being significantly faster to compute.
- Predictive Power: Distributed representations like Mol2Vec consistently match or outperform expert-crafted chemical fingerprints (e.g., Morgan fingerprints) in predicting toxicity, solubility, and binding affinity.
- State-of-the-Art Reactions: Attention-based models, specifically the Molecular Transformer, currently set the standard for reaction prediction, outperforming both rule-based systems and graph neural networks.
Limitations and Future Directions
Despite these successes, challenges remain. Interpretability is a primary concern; for medicinal chemists to trust these models, "Explainable AI" (XAI) must be developed to map neural attention weights back to physical pharmacophores. Furthermore, data bias remains a hurdle, as current databases are skewed toward successful experiments, leaving models with little information on "inactive" compounds.
The future of the field lies in the adoption of advanced contextual models like BERT or GPT variants. By performing unsupervised pre-training on billions of unlabeled biochemical strings, these models can develop a deep, foundational understanding of chemical space before being fine-tuned for specific drug discovery tasks.
Summary updated