Skip to main content
QUICK REVIEW

[Paper Review] ChemFM as a Scaling Law Guided Foundation Model Pre-trained on Informative Chemicals

Feiyang Cai, Zacour, Katelin|arXiv (Cornell University)|Oct 28, 2024
Process Optimization and IntegrationEngineering3 citations
TL;DR

ChemFM is a 3-billion-parameter foundation model pre-trained on 178 million molecules from the UniChem database using self-supervised causal language modeling on SMILES strings. It achieves state-of-the-art performance across 34 property prediction benchmarks (up to 67.48% improvement), conditional molecular generation (up to 33.80% reduction in mean absolute deviation), and reaction prediction (up to 3.7% top-1 accuracy gain), demonstrating strong generalization and data efficiency.

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. We anticipate that ChemFM will significantly advance chemistry research by providing a foundation model capable of effectively generalizing across a broad range of tasks with minimal additional training.

Motivation & Objective

  • To develop a scalable, general-purpose foundation model for chemistry that generalizes across diverse downstream tasks.
  • To investigate scaling laws in chemical foundation models, identifying optimal model and dataset size relationships.
  • To evaluate the impact of data quality and diversity on foundation model performance, particularly in comparison to larger but noisier datasets.
  • To demonstrate that a foundation model can achieve state-of-the-art performance with minimal fine-tuning, including parameter-efficient fine-tuning.
  • To advance antibiotic and cytotoxicity prediction, enabling novel drug discovery.

Proposed method

  • Pre-trained a 3B-parameter transformer-based model using causal language modeling on SMILES strings from the UniChem database.
  • Selected UniChem over larger databases like ZINC20 based on scaling experiments showing superior data quality and diversity.
  • Applied self-supervised pre-training to learn generalizable molecular representations without task-specific annotations.
  • Fine-tuned ChemFM using both full-parameter and LoRA-based parameter-efficient fine-tuning for downstream tasks.
  • Conducted systematic scaling experiments to analyze model and dataset size effects on performance.
  • Evaluated performance across 34 property prediction, 4 reaction prediction, and conditional molecular generation benchmarks.

Experimental results

Research questions

  • RQ1How does model size scale with performance in chemical foundation models, and what is the optimal size for generalization?
  • RQ2Which molecular database—large but noisy or smaller but high-quality—yields better foundation model performance?
  • RQ3Can a single foundation model outperform task-specific models across diverse chemical AI tasks with minimal fine-tuning?
  • RQ4To what extent does ChemFM improve performance in antibiotic and cytotoxicity prediction compared to existing models?
  • RQ5How does data efficiency of ChemFM compare to prior models, especially with limited labeled data?

Key findings

  • ChemFM achieved up to 67.48% performance improvement over state-of-the-art models on 34 molecular property prediction benchmarks.
  • In conditional molecular generation, ChemFM reduced mean absolute deviation between conditioned and actual properties by up to 33.80%.
  • For reaction prediction, ChemFM achieved up to 3.7% higher top-1 accuracy across 4 datasets, including 61.6% top-1 accuracy on USPTO-MIT for retro-synthesis.
  • ChemFM demonstrated superior performance in predicting antibiotic activity and cytotoxicity, highlighting its potential for novel drug discovery.
  • The model achieved state-of-the-art results with significantly fewer labeled examples, confirming strong data efficiency.
  • Pre-training on UniChem (178M molecules) outperformed training on ZINC20 (1.8B molecules), indicating that data quality and diversity matter more than sheer volume.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.