# A smile is all you need: Predicting limiting activity coefficients from SMILES with natural language processing

arXiv: https://arxiv.org/abs/2206.07048 · HTML: https://mlsanity.com/paper/2206.07048/

## Key facts

- Cited by 19 papers in the map (data through 14 Oct 2026).
- Builds on 10 of its 38 references that are in the map.
- First posted on arXiv 15 Jun 2022.

## Builds on (most cited first, 10 of 10)

- [Attention Is All You Need](https://mlsanity.com/paper/1706.03762/) (2017)
- [Language Models are Few-Shot Learners](https://mlsanity.com/paper/2005.14165/) (2020)
- [An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale](https://mlsanity.com/paper/2010.11929/) (2020)
- [On Layer Normalization in the Transformer Architecture](https://mlsanity.com/paper/2002.04745/) (2020)
- [Image Transformer](https://mlsanity.com/paper/1802.05751/) (2018)
- [SMILES Transformer: Pre-trained Molecular Fingerprint for Low Data Drug Discovery](https://mlsanity.com/paper/1911.04738/) (2019)
- [SMILES Enumeration as Data Augmentation for Neural Network Modeling of Molecules](https://mlsanity.com/paper/1703.07076/) (2017)
- [Generative Chemical Transformer: Neural Machine Learning of Molecular Geometric Structures from Chemical Language via Attention](https://mlsanity.com/paper/2103.00213/) (2021)
- [Machine Learning in Thermodynamics: Prediction of Activity Coefficients by Matrix Completion](https://mlsanity.com/paper/2001.10675/) (2020)
- [Predicting Chemical Properties using Self-Attention Multi-task Learning based on SMILES Representation](https://mlsanity.com/paper/2010.11272/) (2020)

## Built on by (most cited first, 19 of 19)

- [HANNA: Hard-constraint Neural Network for Consistent Activity Coefficient Prediction](https://mlsanity.com/paper/2407.18011/) (2024)
- [Graph Neural Networks for Temperature-Dependent Activity Coefficient Prediction of Solutes in Ionic Liquids](https://mlsanity.com/paper/2206.11776/) (2022)
- [From Words to Molecules: A Survey of Large Language Models in Chemistry](https://mlsanity.com/paper/2402.01439/) (2024)
- [Gibbs-Helmholtz Graph Neural Network: capturing the temperature dependency of activity coefficients at infinite dilution](https://mlsanity.com/paper/2212.01199/) (2022)
- [Thermodynamics-Consistent Graph Neural Networks](https://mlsanity.com/paper/2407.18372/) (2024)
- [SPT-NRTL: A physics-guided machine learning model to predict thermodynamically consistent activity coefficients](https://mlsanity.com/paper/2209.04135/) (2022)
- [Artificial Intelligence and Generative Models for Materials Discovery -- A Review](https://mlsanity.com/paper/2508.03278/) (2025)
- [A Survey of AI for Materials Science: Foundation Models, LLM Agents, Datasets, and Tools](https://mlsanity.com/paper/2506.20743/) (2025)
- [Impact of Domain Knowledge and Multi-Modality on Intelligent Molecular Property Prediction: A Systematic Survey](https://mlsanity.com/paper/2402.07249/) (2024)
- [GraphXForm: Graph transformer for computer-aided molecular design](https://mlsanity.com/paper/2411.01667/) (2024)
- [Molecular Machine Learning in Chemical Process Design](https://mlsanity.com/paper/2508.20527/) (2025)
- [Hierarchical Matrix Completion for the Prediction of Properties of Binary Mixtures](https://mlsanity.com/paper/2410.06060/) (2024)
- [Federated Learning from Molecules to Processes: A Perspective](https://mlsanity.com/paper/2506.18525/) (2025)
- [Differentiable Thermodynamic Phase-Equilibria for Machine Learning](https://mlsanity.com/paper/2603.11249/) (2026)
- [When SMILES have Language: Drug Classification using Text Classification Methods on Drug SMILES Strings](https://mlsanity.com/paper/2403.12984/) (2024)
- [MLPROP -- an open interactive web interface for thermophysical property prediction with machine learning](https://mlsanity.com/paper/2504.05970/) (2025)
- [Data-Driven Extended Corresponding State Approach for Residual Property Prediction of Hydrofluoroolefins](https://mlsanity.com/paper/2507.21720/) (2025)
- [DeepEOSNet: Capturing the dependency on thermodynamic state in property prediction tasks](https://mlsanity.com/paper/2509.17018/) (2025)
- [A Systematic Evaluation of Molecular Mixture Behavior Prediction](https://mlsanity.com/paper/2605.29698/) (2026)

## Abstract (arXiv)

Knowledge of mixtures' phase equilibria is crucial in nature and technical chemistry. Phase equilibria calculations of mixtures require activity coefficients. However, experimental data on activity coefficients is often limited due to high cost of experiments. For an accurate and efficient prediction of activity coefficients, machine learning approaches have been recently developed. However, current machine learning approaches still extrapolate poorly for activity coefficients of unknown molecules. In this work, we introduce the SMILES-to-Properties-Transformer (SPT), a natural language processing network to predict binary limiting activity coefficients from SMILES codes. To overcome the limitations of available experimental data, we initially train our network on a large dataset of synthetic data sampled from COSMO-RS (10 Million data points) and then fine-tune the model on experimental data (20 870 data points). This training strategy enables SPT to accurately predict limiting activity coefficients even for unknown molecules, cutting the mean prediction error in half compared to state-of-the-art models for activity coefficient predictions such as COSMO-RS, UNIFAC, and improving on recent machine learning approaches.
