LlaSMol: Advancing Large Language Models for Chemistry with a Large-Scale, Comprehensive, High-Quality Instruction Tuning Dataset

Chemistry plays a crucial role in many domains, such as drug discovery and material science. While large language models (LLMs) such as GPT-4 exhibit remarkable capabilities on natural language processing tasks, existing research indicates that their performance on chemistry tasks is discouragingly low. In this paper, however, we demonstrate that our developed LLMs can achieve very strong results on a comprehensive set of chemistry tasks, outperforming the most advanced GPT-4 and Claude 3 Opus by a substantial margin. To accomplish this, we propose SMolInstruct, a large-scale, comprehensive, and high-quality dataset for instruction tuning. It contains 14 selected chemistry tasks and over three million samples, laying a solid foundation for training and evaluating LLMs for chemistry. Using SMolInstruct, we fine-tune a set of open-source LLMs, among which, we find that Mistral serves as the best base model for chemistry tasks. Our analysis further demonstrates the critical role of the proposed dataset in driving the performance improvements.

Paper

References (82)

Scroll for more · 38 remaining

Similar papers

Reviewer fwDB7/10 · confidence 4/52024-05-03

Summary

This paper proposes a new instruction-tuning dataset, SMolInstruct, that includes 3M+ data points across 14 chemistry tasks, divided into 4 main categories, to help improve the performance of large language models in chemistry. To this end, the paper describes the data collection, curation, and splitting processes used to obtain SMolInstruct, and empirically evaluates the performance of standard open LLMs fine-tuned on this dataset using LoRA against both (i) state-of-the-art (SoTA) models that narrowly focus on individual tasks, and (ii) state-of-the-art language models like GPT-4 and Claude 3. The paper finds that fine-tuning on SMolInstruct allows the base LLM to substantially outperform the best-performing LLMs and narrow the gap with the SoTA models for the individual tasks significantly. To support these findings, the paper also conducts ablation studies by changing the underlying molecular representation and fine-tuning on different instruction tuning dataset, observing that SMolInstruct is the key factor behind the observed empirical improvements.

Rating

7

Confidence

4

Ethics flag

1

Reasons to accept

- The proposed dataset is large, well-curated, and a useful addition to the literature. - The empirical results shown in the paper are encouraging. Moreover, they are obtained with little computational resources, and thus there is strong reason to believe that a more rigorous computational exploration could unlock further improvements. - The discussion on underlying molecular representations and the importance of the fine-tuning process is insightful and important. Indeed, the argument about pre-performing canonicalization highlights that LLMs inherently struggle with more structure-related tasks, and further support the need for better-designed datasets, as well as more careful integration of LLMs with specialized components. - The empirical analysis (baselines, protocol) is comprehensive and insightful.

Reasons to reject

- The paper's argument about the differences in the fine-tuned base model performances is not rigorous enough. In particular, the hyper-parameter tuning conducted for these results is not complete enough to conclusively assert the performance differences. The point raised about the original training is plausible and pertinent. However, I would still tone this down to better reflect the significance of the results. - The paper does not evaluate on existing benchmarks for the tasks being studied, instead proposing its own test split on its own data, which makes findings less comparable with other approaches. There are well-established benchmarks for at least some of these tasks. For instance, molecular property prediction benchmarks based on MoleculeNet are very common, e.g., in the area of graph neural networks (GNNs), which the authors cite (see the OGB [1] paper for the specific benchmarks). Hence, I strongly advise the authors to re-design their splits to align with existing baselines, i.e., vetting the training split of SMolInstruct, which includes MoleculeNet data, to avoid leakage w.r.t, the established baselines, and then running similar experiments on the known benchmarks. This would not only provide a real-world reference task with relevant baselines, but also consolidate the generality of your results. [1] Hu et al. Open Graph Benchmark: Datasets for Machine Learning on Graphs, NeurIPS 2020.

Questions to authors

- Why did you not follow existing benchmarks (where available) for the tasks at hand?

Reviewer 5qEm7/10 · confidence 3/52024-05-08

Summary

This is a solid dataset paper, which introduces a new domain-specific text-based dataset for instruction tuning. Overall, this is a high-quality, somewhat niche, but thorough paper that shows how dataset papers ought to be done. It is very clearly written (except for a few typos here and there), provides the necessary context for a subject matter expert to understand the data generation procedure, and goes into meticulous detail of generation protocol, dataset statistics, comparison to other datasets, and experimental evaluation details. Given the importance that text-based benchmarks, even those in niche domains, have recently gained for general-purpose evaluation of LLMs, the impact of this paper is likely to be high in the community.

Rating

7

Confidence

3

Ethics flag

1

Reasons to accept

* Very likely will have moderate-to-high impact in the LM community, even if only "an benchmark dataset" in an LM eval suite * Thorough description of data collection/curation pipeline * Careful control of data leaking for reciprocal tasks (crucial for LLM benchmarks!) * Modest but thorough baseline evaluation

Reasons to reject

* Claims dataset size as a strength, but it is only 3x compared to most similar dataset (Mol-Instructions) * Dataset is somewhat niche / narrow

Questions to authors

* Q: it's unclear whether the tagging strategy used (e.g. for <SMILES>) is textual or whether it relies on a dedicated embedding for the tag (e.g. alla tagLLM https://arxiv.org/abs/2402.05140). Please clarify. * S: label all tables, even those in the appendix, with arrows to indicate lower/higher is better * S: there's a few typos throughout the paper, including "spitted into training" (Sec 3.2)

Reviewer Qxrz5/10 · confidence 5/52024-05-09

Summary

This paper proposes SMolInstruct, a large-scale instruction-tuning dataset designed with over 3 million samples and 14 chemistry tasks. The authors use this dataset to finetune several open-source LLMs like Galactica, LLaMA, and Mistral, creating the LlaSMol series of models tailored for chemistry applications. Extensive experiments show that the LlaSMol models significantly outperform existing LLMs like GPT-4 and Claude on the chemistry tasks, though they still trail behind task-specific models. The authors conduct analyses on different modeling choices like canonicalization of SMILES, use of SELFIES vs SMILES representations, and comparison to a previous chemistry instruction dataset.

Rating

5

Confidence

5

Ethics flag

1

Reasons to accept

1. SMolInstruct is large enough and diverse enough for instruction tuning of LLMs, with 3 million carefully filtered samples over 14 downstream tasks. 2. Four backbone LLMs of different architectures are evaluated in the experiments of this paper, and the performance gains are significant. 3. Careful dataset splitting avoids potential data leakage across related tasks.

Reasons to reject

1. All the data collection, validation, and processing techniques have been used by previous studies. The novelty of this paper is limited. 2. The evaluation metrics like exact match do not fully capture the models' capabilities. For example, this results in too many zeros in Table 1. Some better metrics may help reveal the models' performances. 3. The paper does not explore the models' generalization abilities beyond the specific downstream tasks in the dataset. 4. While outperforming existing LLMs, the LlaSMol models fail to surpass the non-LLM models which have far fewer parameters.

Questions to authors

I don't have additional questions for the authors.

Reviewer 5qEm2024-06-04

Thank you for the responses

Thank you for the responses and clarifications. My assessment of the strengths/weaknesses of the paper remains the same. I still think the dataset's scope is narrow (which does not mean it's not significant/relevant - my original review does not put that in doubt).

Reviewer fwDB2024-06-04

Reviewer response

I thank the authors for their response. I will keep my verdict.

Reviewer Qxrz2024-06-06

Feedback

``` For the first time, PubChem and MoleculeNet are used for instruction tuning, which is not trivial. ``` **Response:** PubChem is used for instruction tuning in 3D-MoLM [1]; MoleculeNet is used in Mol-Instructions [2]. ``` Some relevant works are not appropriately acknowledged in the related work: ``` * *molca: molecular graph-language modeling with cross-modal projector and uni-modal adapter. In EMNLP 2023.* **It seems LlaSMol share many similar tasks with this earlier work, including 1) presents property prediction results on the MoleculeNet datasets (e.g., BBBP, Clintox, and SIDER); 2) presents name conversion results; and 3) present molecule caption results** * *Towards 3D Molecule-Text Interpretation in Language Models. In ICLR 2024.* This earlier work also employs Uni-Mol for molecule property prediction, and shares some other tasks. **Why are these relevant works not discussed or compared?** **Reference:** [1] Towards 3D Molecule-Text Interpretation in Language Models [2] Mol-Instructions: A Large-Scale Biomolecular Instruction Dataset for Large Language Models

Authorsrebuttal2024-06-07

Thank you for your insightful concerns. --- **“PubChem and MoleculeNet are not used for instruction tuning for the first time”** Sorry for the inaccurate expression. We meant to say that they are used for the first time for many of our carefully selected tasks (and why we selected these tasks was described in Section 3.1), and we made non-trivial efforts in preparing the data for instruction tuning on such tasks. Specifically: - Although PubChem has been used for instruction tuning in 3D-MoLM [1], it is for the molecule-text interpretation task, instead of our name conversion tasks. To create data for name conversion, we collected and sampled compound data points from PubChem, extracted their multiple representations, and removed those data points with invalid SMILES or incomplete domains (i.e., data points with no SMILES/IUPAC/Molecular formula specified). - MoleculeNet is used for instruction tuning on properties like solubility and side effects for the first time, while Mol-Instructions only uses the QM9 dataset of MoleculeNet for energy value prediction. We intentionally and carefully chose these included properties, because domain experts suggested that they are very important and related to real-world applications like drug discovery. Besides rigorously examining data quality and fixing some issues, we put a lot of effort in creating instructions for the side effect dataset (PP-SIDER): we first removed some side effect labels whose names are not clear and specific enough for instruction tuning (e.g., Investigations), and manually created the instruction questions for each of the side effects to ensure they are correct and diverse. In conclusion, we used PubChem and MoleculeNet for instruction tuning on many carefully selected tasks for the first time, and applied non-trivial and tailored methods to process the data. Therefore, the set of instruction tuning data created by us is novel and should contribute to the area. --- **“Relevant works [3,1] are not appropriately acknowledged in the related work” “these relevant works [3,1] are not discussed or compared”** Thanks for mentioning these relevant works. We will definitely discuss them in our updated version. We primarily focus on evaluating LLMs on chemistry, especially those generalist models that can handle multiple tasks by following natural language instructions. There are indeed many existing works for each of the tasks in our proposed benchmark, and due to paper length and resource limit, we are not able to discuss or compare with many of them, but only choose one of the most representative SoTA models for each task and report its results. That said, we agree with the reviewer, and will add more discussions on [1, 3] in our updated manuscript and compare with them on applicable tasks. We would like to gently note that [1] seems to be released at the end of Jan 2024, around two months before the COLM deadline, which is usually regarded as concurrent work. --- We sincerely appreciate your invaluable feedback, and will improve our manuscript accordingly. Thank you! --- **Reference** [1] Li, S., Liu, Z., Luo, Y., Wang, X., He, X., Kawaguchi, K., ... & Tian, Q. (2024). Towards 3D Molecule-Text Interpretation in Language Models. ICLR 2024. [2] Fang, Y., Liang, X., Zhang, N., Liu, K., Huang, R., Chen, Z., ... & Chen, H. (2023). Mol-instructions: A large-scale biomolecular instruction dataset for large language models. In ICLR 2024. [3] Liu, Z., Li, S., Luo, Y., Fei, H., Cao, Y., Kawaguchi, K., ... & Chua, T. S. (2023). Molca: Molecular graph-language modeling with cross-modal projector and uni-modal adapter. In EMNLP 2023.

Program Chairsdecision2024-07-10

Decision

Accept

© 2026 NYSGPT2525 LLC