Towards Faster and More Compact Foundation Models for Molecular Property Prediction

Yasir Ghunaim, Andrés Villa, Gergo Ignacz, Gyorgy Szekely, Motasem Alfarra +1 more
4/28/2025
cs.LGq-bio.BM

Official code: Yasir-Ghunaim/efficient-jmp (3 stars, last commit 2025-04-01).

Abstract

Advancements in machine learning for molecular property prediction have improved accuracy but at the expense of higher computational cost and longer training times. Recently, the Joint Multi-domain Pre-training (JMP) foundation model has demonstrated strong performance across various downstream tasks with reduced training time over previous models. Despite JMP's advantages, fine-tuning it on molecular datasets ranging from small-scale to large-scale requires considerable time and computational resources. In this work, we investigate strategies to enhance efficiency by reducing model size while preserving performance. To better understand the model's efficiency, we analyze the layer contributions of JMP and find that later interaction blocks provide diminishing returns, suggesting an opportunity for model compression. We explore block reduction strategies by pruning the pre-trained model and evaluating its impact on efficiency and accuracy during fine-tuning. Our analysis reveals that removing two interaction blocks results in a minimal performance drop, reducing the model size by 32% while increasing inference throughput by 1.3x. These results suggest that JMP-L is over-parameterized and that a smaller, more efficient variant can achieve comparable performance with lower computational cost. Our study provides insights for developing lighter, faster, and more scalable foundation models for molecular and materials discovery. The code is publicly available at: https://github.com/Yasir-Ghunaim/efficient-jmp.

View on arXivView PDF

Code Implementations(1)

Making molecular foundation models faster and smaller through pruning and distillation.

30Shell, PythonApr 1, 20251 years agoNOASSERTION

Similar Papers

Cite this paper

@article{ghunaim2025towards,
  title  = {Towards Faster and More Compact Foundation Models for Molecular Property Prediction},
  author = {Yasir Ghunaim and Andrés Villa and Gergo Ignacz and Gyorgy Szekely and Motasem Alfarra and Bernard Ghanem},
  year   = {2025},
  eprint = {2504.19538},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.19538v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.19538.svg)](https://codeofpaper.com/paper/2504.19538)

Discussion