Energy Efficient Protein Language Models: Leveraging Small Language Models with LoRA for Controllable Protein Generation
本文提出了两种基于Llama-3-8B和Phi-3-mini的小型蛋白质语言模型,通过LoRA技术降低模型大小和训练成本,实现可控制的蛋白质生成,并展示了其在能源效率方面的优势。
更新于 2025-08-13。作者:Aayush Shah、Shankar Jayaratnam。
中文摘要
大型语言模型(LLMs)在自然语言处理(NLP)任务中取得了显著的成功,并在蛋白质序列生成等其他领域显示出有希望的结果。然而,用于NLP的LLMs与专门用于特定任务且通常规模更大的蛋白质语言模型之间存在明显的差异。NLP中的LLMs能够有效处理多个任务,且规模较小;而蛋白质语言模型则通常针对特定任务进行专门设计,且只有更大的规模存在。在本研究中,我们引入了两种基于Llama-3-8B和Phi-3-mini的小型蛋白质语言模型,它们能够进行不可控和可控的蛋白质生成。在不可控生成任务中,我们最佳模型实现了平均pLDDT分数为69.75,展示了在生成可行蛋白质结构方面的稳健性能。在可控生成任务中,即模型根据提示中指定的属性生成蛋白质,我们实现了令人瞩目的平均TM-Score为0.84,表明与目标蛋白质具有很高的结构相似性。我们选择了包括六种酶类在内的10个属性,以扩展先前蛋白质语言模型的功能。我们的方法利用了低秩适配器(LoRA)技术,将可训练参数降低到原始模型规模的4%,从而降低了计算需求。通过使用UniRef50数据集的子集和小型模型,我们减少了70%的整体训练时间,而没有影响性能。值得注意的是,Phi-3-mini将可训练参数减少了60%,与Llama 3相比,降低了30%的训练成本。因此,Phi-3实现了相当于0.81的TM-Score,证明了较小的模型可以匹配大型模型,如Llama 3的性能。我们还展示了我们的模型在高效能的ET-SoC-1芯片上的部署,显著提高了TPS/W的3倍。
英文摘要
Large language models (LLMs) have demonstrated significant success in natural language processing (NLP) tasks and have shown promising results in other domains such as protein sequence generation. However, there remain salient differences between LLMs used for NLP, which effectively handle multiple tasks and are available in small sizes, and protein language models that are often specialized for specific tasks and only exist in larger sizes. In this work, we introduce two small protein language models, based on Llama-3-8B and Phi-3-mini, that are capable of both uncontrollable and controllable protein generation. For the uncontrollable generation task, our best model achieves an average pLDDT score of 69.75, demonstrating robust performance in generating viable protein structures. For the controllable generation task, in which the model generates proteins according to properties specified in the prompt, we achieve a remarkable average TM-Score of 0.84, indicating high structural similarity to target proteins. We chose 10 properties, including six classes of enzymes, to extend the capabilities of prior protein language models. Our approach utilizes the Low-Rank Adaptor (LoRA) technique, reducing trainable parameters to just 4% of the original model size, lowering computational requirements. By using a subset of the UniRef50 dataset and small models, we reduced the overall training time by 70% without compromising performance. Notably, Phi-3-mini reduced trainable parameters by 60%, decreasing training cost by 30% compared to Llama 3. Consequently, Phi-3 achieved a comparable TM-Score of 0.81, demonstrating that smaller models can match the performance of larger ones, like Llama 3. We also demonstrate the deployment of our models on the energy efficient ET-SoC-1 chip, significantly improving the TPS/W by a factor of 3.
解读
一句话总结
本文提出了两种基于Llama-3-8B和Phi-3-mini的小型蛋白质语言模型,通过LoRA技术降低模型大小和训练成本,实现可控制的蛋白质生成,并展示了其在能源效率方面的优势。
问题1:这篇论文想要解决什么具体问题?
• 问题背景:当前蛋白质语言模型通常规模较大,训练和推理成本高,限制了其应用。 • 现有方案不足:大型蛋白质语言模型需要大量计算资源,导致能源消耗高,不适合广泛使用。 • 研究目标:开发小型蛋白质语言模型,在保证性能的同时降低训练和推理成本。
问题2:论文的核心创新点是什么?
• 技术创新:基于LoRA技术,将模型大小缩小到原始大小的4%,降低训练成本。 • 方法改进:使用小型语言模型Phi-3-mini,进一步减少训练成本和推理时间。 • 优势:相比大型模型,Phi-3-mini减少了60%的可训练参数,降低了30%的训练成本,同时性能相当。
问题3:实验结果如何验证了方法的有效性?
• 关键实验:使用Llama-3-8B和Phi-3-mini模型进行不可控和可控蛋白质生成实验。 • 性能提升:Llama-3-8B模型在不可控生成任务上平均pLDDT得分为69.75±12.74,Phi-3-mini在可控生成任务上平均TM-Score为0.84。 • 对比结果:与ProLLaMA等基线方法相比,Llama-3-8B在不可控生成任务上表现更好,Phi-3-mini在可控生成任务上性能相当。
问题4:这个研究的实际应用价值是什么?
• 应用场景:药物开发、人工酶开发、环保等领域。 • 实施建议:使用小型蛋白质语言模型和高效芯片进行蛋白质设计和生成。 • 局限与展望:未来可以扩展可控生成属性的范围,并整合更多模态,如结构预测,以适应更广泛的生物技术应用。