Pin-Tuning: Parameter-Efficient In-Context Tuning for Few-Shot Molecular Property Prediction

Liang Wang, Qiang Liu, Shaozhen Liu, Xin Sun, Shu Wu +1 more
11/2/2024
cs.LGcs.AIq-bio.MN

No official code found. Best implementation: CRIPAC-DIG/Pin-Tuning (9 stars, last commit 2025-01-25).

Abstract

Molecular property prediction (MPP) is integral to drug discovery and material science, but often faces the challenge of data scarcity in real-world scenarios. Addressing this, few-shot molecular property prediction (FSMPP) has been developed. Unlike other few-shot tasks, FSMPP typically employs a pre-trained molecular encoder and a context-aware classifier, benefiting from molecular pre-training and molecular context information. Despite these advancements, existing methods struggle with the ineffective fine-tuning of pre-trained encoders. We attribute this issue to the imbalance between the abundance of tunable parameters and the scarcity of labeled molecules, and the lack of contextual perceptiveness in the encoders. To overcome this hurdle, we propose a parameter-efficient in-context tuning method, named Pin-Tuning. Specifically, we propose a lightweight adapter for pre-trained message passing layers (MP-Adapter) and Bayesian weight consolidation for pre-trained atom/bond embedding layers (Emb-BWC), to achieve parameter-efficient tuning while preventing over-fitting and catastrophic forgetting. Additionally, we enhance the MP-Adapters with contextual perceptiveness. This innovation allows for in-context tuning of the pre-trained encoder, thereby improving its adaptability for specific FSMPP tasks. When evaluated on public datasets, our method demonstrates superior tuning with fewer trainable parameters, improving few-shot predictive performance.

View on arXivView PDF

Code Implementations(1)

[NeurIPS 2024] The source code of "Pin-Tuning: Parameter-Efficient In-Context Tuning for Few-Shot Molecular Property Prediction"

90Shell, PythonOct 30, 20241 years ago

Similar Papers

Cite this paper

@article{wang2024pintuning,
  title  = {Pin-Tuning: Parameter-Efficient In-Context Tuning for Few-Shot Molecular Property Prediction},
  author = {Liang Wang and Qiang Liu and Shaozhen Liu and Xin Sun and Shu Wu and Liang Wang},
  year   = {2024},
  eprint = {2411.01158},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2411.01158},
  url    = {http://arxiv.org/abs/2411.01158v1},
  journal = {NEURIPS 2024 2024}
}

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/2411.01158.svg)](https://codeofpaper.com/paper/2411.01158)

Discussion