Abstract
Traditional AI methods often rely on task-specific model designs and training, which constrain both the scalability of model size and generalization across different tasks. Here, we introduce ChemFM, a large foundation model specifically developed for chemicals. By conducting a series of scaling experiments, we identify UniChem as the informative molecular database for pre-training the foundation model. ChemFM comprises 3 billion parameters and is pre-trained on 178 million molecules using self-supervised causal language modeling to extract generalizable molecular representations. This model can be adapted to diverse downstream chemical applications using either full-parameter or parameter-efficient fine-tuning methods. ChemFM consistently outperforms state-of-the-art task-specific AI models across all tested tasks. Notably, it achieves up to 67.48% performance improvement across 34 property prediction benchmarks, up to 33.80% reduction in mean average deviation between conditioned and actual properties of generated molecules in conditional molecular generation tasks, and up to 3.7% top-1 accuracy improvement across 4 reaction prediction datasets. Moreover, ChemFM demonstrates its superior performance in predicting antibiotic activity and cytotoxicity, highlighting its potential to advance the discovery of novel antibiotics. Furthermore, we demonstrate that, as a foundation model, ChemFM exhibits strong data efficiency, requiring significantly fewer labeled training samples to achieve state-of-the-art performance.
Introduction
In the field of computational chemistry, the prevailing paradigm has been the development of task-specific models. While effective for narrow applications like solubility prediction or toxicity screening, these models often struggle to generalize and require massive amounts of labeled data. ChemFM addresses these challenges by shifting toward a foundation model approach. By treating chemistry as a language and training on a diverse, informative dataset, ChemFM learns the underlying "grammar" of molecular structures, enabling it to perform across a wide range of tasks with unprecedented efficiency.
Methodology: Scaling Laws and Data Informativeness
The core innovation of ChemFM lies in its data-centric scaling strategy. Rather than simply training on the largest available dataset, such as ZINC20 (1.8 billion molecules), the researchers conducted scaling experiments to identify the most "informative" data. They discovered that while performance on ZINC20 saturates quickly due to structural redundancy, the UniChem dataset (178 million molecules) follows a power-law scaling trend, allowing larger models to continue gaining intelligence.
ChemFM is built on the TinyLlama architecture and utilizes SMILES (Simplified Molecular Input Line Entry System) strings for molecular representation. To improve robustness, the model uses a 10× data augmentation strategy, generating multiple non-canonical SMILES for each molecule during pre-training.
Versatile Downstream Adaptation
ChemFM is designed to be a general-purpose engine for chemistry. It supports both full-parameter fine-tuning and parameter-efficient methods like LoRA (Low-Rank Adaptation), which allows the 3B model to be fine-tuned on consumer-grade hardware. This flexibility enables the model to excel in three primary areas:
- Property Prediction: Evaluated on 34 benchmarks (including MoleculeNet and ADMET), ChemFM showed up to a 67.48% improvement over existing models. Its data efficiency is a standout feature; it can often outperform specialized models using only 10% of the labeled training data.
- Conditional Molecular Generation: Unlike traditional models that require separate instances for different constraints, ChemFM uses a unified prompt-based approach. It can generate molecules that simultaneously satisfy multiple criteria, such as specific scaffolds, drug-likeness (QED), and synthetic accessibility (SAS).
- Reaction Prediction: The model sets new records in forecasting chemical reaction products, achieving a 3.7% top-1 accuracy improvement on USPTO datasets.
Real-World Impact: Antibiotic Discovery
The practical utility of ChemFM was demonstrated through an antibiotic discovery task. When screening a library of 1,173 real antibiotics, ChemFM identified 149 potential leads, significantly outperforming the previous industry standard, Chemprop, which identified only 29. This suggests that ChemFM possesses a much higher true positive rate for identifying bioactive compounds, potentially accelerating the search for new treatments against resistant bacteria.
Conclusion
ChemFM represents a significant advancement in chemical AI, proving that data diversity and scaling laws are more critical than raw data volume. By providing a robust, generalizable foundation, ChemFM reduces the need for task-specific engineering and massive labeled datasets, paving the way for more efficient and creative molecular discovery. Future research will focus on optimizing inference speeds and further exploring the vast, untapped regions of chemical space.
Summary updated