[论文解读] LlaSMol: Advancing Large Language Models for Chemistry with a Large-Scale, Comprehensive, High-Quality Instruction Tuning Dataset
本文介绍 SMolInstruct,这是一个用于化学领域、包含 3.4M 样本、14 个任务的指令微调数据集,并展示基于 Galactica、Llama 2、Code Llama、Mistral 的经微调的 LlaSMol 模型在化学任务上优于 GPT-4,且接近最先进的特定任务模型。
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.
研究动机与目标
- 阐明在化学领域需要超越任务特定模型的LLMs的动机。
- 提供一个大规模、高质量的化学任务指令微调数据集。
- 证明经微调的LLM在多样化的化学任务上能够超越 GPT-4。
- 分析基础模型选择与可训练参数数量对性能的影响。
提出的方法
- 使用来自多样来源的 14 项化学任务和超过 3M 样本来构建 SMolInstruct。
- 进行严格的数据清洗、分割以避免信息泄漏,并对 SMILES 表示进行规范化。
- 使用 LoRA 在 SMolInstruct 上对四个开源 LLMs(Galactica、Llama 2、Code Llama、Mistral)进行微调。
- 在多项化学任务上对比 GPT-4 和最先进的特定任务模型等基线进行评估。
- 比较不同的 LoRA 配置以研究可训练参数规模与模块选择的影响。

实验结果
研究问题
- RQ1一个大规模、高质量的指令微调数据集是否能让 LLMs 有效完成广泛的化学任务?
- RQ2在化学基准测试上,SMolInstruct 的微调与零样本或非微调的 LLMs相比如何?
- RQ3基础模型的选择与 LoRA 参数化对化学任务性能的影响是什么?
- RQ4LLMs 在化学任务上能在多大程度上接近或超越最先进的特定任务模型?
主要发现
- 在 SMolInstruct 的所有测试化学任务中,LlaSMol 模型都优于 GPT-4。
- 基于 Mistral 的 LlaSMol 在四个基础模型中始终表现最强。
- 仅有约 0.59% 的可训练参数(约 40M/7B),LlaSMol 可在若干任务上接近或超越 SoTA(如 NC-I2S、PP-SIDER、MC)。
- 在一些常见任务上,LlaSMol 模型有时领先 Molinst(Mol-Instructions 微调),这表明更大、质量更高的 SMolInstruct 数据集的优点。
- Code Llama 与 Mistral 基础模型在编程语言/编码结构与化学表示之间显示出协同作用,提升了与 SMILES 相关的任务。
- 更大的基础模型和更多的 LoRA 模块通常带来更好的结果;然而,基础模型的能力仍然是性能的关键决定因素。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。