Skip to main content
QUICK REVIEW

[Paper Review] SparseChem: Fast and accurate machine learning model for small molecules

Ádám Arany, Jaak Simm|arXiv (Cornell University)|Mar 9, 2022
Computational Drug Discovery MethodsComputer Science6 citations
TL;DR

SparseChem is a fast, scalable machine learning framework designed for high-dimensional sparse molecular data, such as ECFP fingerprints, enabling efficient multi-task learning for classification, regression, and censored regression. It achieves training of 420,000 compounds across 3,500 tasks in just 2 minutes on a V100 GPU, with state-of-the-art performance on benchmark datasets including AUC-ROC of 0.794 and R² of 0.358.

ABSTRACT

SparseChem provides fast and accurate machine learning models for biochemical applications. Especially, the package supports very high-dimensional sparse inputs, e.g., millions of features and millions of compounds. It is possible to train classification, regression and censored regression models, or combination of them from command line. Additionally, the library can be accessed directly from Python. Source code and documentation is freely available under MIT License on GitHub.

Motivation & Objective

  • To address the challenge of training accurate machine learning models on high-dimensional, sparse molecular data common in drug discovery.
  • To enable scalable multi-task learning with millions of features and thousands of tasks using efficient sparse neural networks.
  • To support diverse learning setups including classification, regression, and censored regression within a single unified framework.
  • To provide high-speed training and inference on both CPU and GPU hardware for real-world drug discovery pipelines.
  • To offer extensible, user-friendly access via command-line interface and Python API for broad adoption.

Proposed method

  • SparseChem employs a sparse neural network layer as the input layer, enabling efficient processing of million-dimensional sparse feature vectors such as ECFP fingerprints.
  • It uses a sparse training loss that only computes gradients on observed output elements, enabling efficient training with tens of thousands of tasks.
  • Internal mini-batching allows larger effective batch sizes than would fit in GPU memory, improving training efficiency.
  • The framework supports hybrid models that combine classification and (censored) regression tasks in a single network, improving generalization and training speed.
  • It implements task-specific loss functions: binary cross-entropy for classification, mean squared error for regression, and one-sided square loss for upper/lower censored regression.
  • The system allows per-task weighting and computes standard metrics (AUC-ROC, AUC-PR, R², RMSE) per task for comprehensive evaluation.

Experimental results

Research questions

  • RQ1Can a machine learning framework efficiently handle million-dimensional sparse molecular fingerprints while maintaining high predictive accuracy?
  • RQ2How does multi-task learning with sparse neural networks improve performance in QSAR modeling for drug discovery?
  • RQ3Can censored regression loss functions effectively model bioactivity data with upper or lower bounds?
  • RQ4What is the training speed and scalability of a deep learning framework on industry-scale datasets with 420,000 compounds and 3,500 tasks?
  • RQ5To what extent does hybrid modeling of classification and regression tasks improve model performance compared to single-task learning?

Key findings

  • SparseChem trained 420,000 compounds across 3,500 tasks in just 2 minutes on a single NVIDIA V100 GPU, demonstrating exceptional training speed.
  • On the CheMBL 29 dataset, the classification model achieved an AUC-ROC of 0.794 and AUC-PR of 0.717 with 12 epochs per minute.
  • The regression model achieved an R² of 0.358 and Pearson correlation of 0.620, with 15 epochs per minute on the same hardware.
  • The censored regression model achieved R² of 0.356 and correlation of 0.621, showing minimal performance difference from standard regression.
  • The framework supports up to 30,000 tasks and allows per-task weighting, enabling fine-tuning for auxiliary or prioritized tasks.
  • The system enables full training and inference on both CPU and GPU, with command-line and Python API access for flexible integration.

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.