Papers › MolecularGPT: Open Large Language Model (LLM) for Few-Shot Molecular Property Prediction

MolecularGPT: Open Large Language Model (LLM) for Few-Shot Molecular Property Prediction

18 Jun 2024arXiv:2406.12950archive 2025-07-28

Yuyan Liu, Sirui Ding, Sheng Zhou, Wenqi Fan, Qiaoyu Tan

Molecular property prediction (MPP) is a fundamental and crucial task in drug discovery. However, prior methods are limited by the requirement for a large number of labeled molecules and their restricted ability to generalize for unseen and new tasks, both of which are essential for real-world applications. To address these challenges, we present MolecularGPT for few-shot MPP. From a perspective on instruction tuning, we fine-tune large language models (LLMs) based on curated molecular instructions spanning over 1000 property prediction tasks. This enables building a versatile and specialized LLM that can be adapted to novel MPP tasks without any fine-tuning through zero- and few-shot in-context learning (ICL). MolecularGPT exhibits competitive in-context reasoning capabilities across 10 downstream evaluation datasets, setting new benchmarks for few-shot molecular prediction tasks. More importantly, with just two-shot examples, MolecularGPT can outperform standard supervised graph neural network methods on 4 out of 7 datasets. It also excels state-of-the-art LLM baselines by up to 15.7% increase on classification accuracy and decrease of 17.9 on regression metrics (e.g., RMSE) under zero-shot. This study demonstrates the potential of LLMs as effective few-shot molecular property predictors. The code is available at https://github.com/NYUSHCS/MolecularGPT.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2406.12950")

Code

Syntology Ran 9 of 10 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 9 ran with no contract checked.

By repository: official repository: 10 samples from 1 repository, 9 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

nyushcs/moleculargpt officialmentioned in papermentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 9 ran; 0 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

9ran
1unverified

Licence: 0 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from nyushcs/moleculargpt. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

create_prompt nyushcs/moleculargpt/ICL_test_diversity.py official repository ran Apache-2.0 (permissive) · 5cbb7bb23f2c061d · report
create_prompt nyushcs/moleculargpt/ICL_test_reverse_cls.py official repository ran Apache-2.0 (permissive) · 437f17c491f15275 · report
create_prompt nyushcs/moleculargpt/ICL_test_reverse_reg.py official repository ran Apache-2.0 (permissive) · 40ec3f3c72f787b8 · report
create_prompt nyushcs/moleculargpt/ICL_test_sim_cls.py official repository ran Apache-2.0 (permissive) · 504b9ab37dc7458f · report
create_prompt nyushcs/moleculargpt/ICL_test_sim_reg.py official repository ran Apache-2.0 (permissive) · 32661c96034aa972 · report
shard_name nyushcs/moleculargpt/dataset.py official repository ran Apache-2.0 (permissive) · d5fa4e62584661e2 · report
tanimoto_ecfp4 nyushcs/moleculargpt/metrics_numba.py official repository ran Apache-2.0 (permissive) · eb752e4e58f7074a · report
tanimoto_maccs nyushcs/moleculargpt/metrics_numba.py official repository ran Apache-2.0 (permissive) · 8297a70b2a756969 · report
word_popcount nyushcs/moleculargpt/metrics_numba.py official repository ran Apache-2.0 (permissive) · 8372cd306fe6ea81 · report
write_table nyushcs/moleculargpt/dataset.py official repository unverified Apache-2.0 (permissive) · f725c39623b78b8e · report

Tasks

Drug DiscoveryGraph Neural NetworkIn-Context LearningLanguage ModelingLanguage ModellingLarge Language ModelMolecular Property PredictionProperty Prediction

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Graph Neural Network

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections