arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.05966q-bio.BMcs.LG
收藏

节能蛋白质语言模型:利用LoRA的小型语言模型实现可控蛋白质生成

Energy Efficient Protein Language Models: Leveraging Small Language Models with LoRA for Controllable Protein Generation

Esperanto Technologies(埃斯佩兰托科技公司)

Aayush Shah, Shankar Jayaratnam

AI总结:

本研究提出两个基于Llama-3-8B和Phi-3-mini的小型蛋白质语言模型,利用LoRA技术实现可控与不可控蛋白质生成,在保持性能的同时大幅降低计算成本,并成功部署于节能芯片。

摘要:

大型语言模型(LLMs)在自然语言处理(NLP)任务中已展现出显著成功,并在蛋白质序列生成等其他领域也显示出有前景的结果。然而,用于NLP的LLMs与蛋白质语言模型之间仍存在显著差异:前者能有效处理多种任务且具有小尺寸版本,而后者通常专精于特定任务且仅以较大尺寸存在。在本工作中,我们引入了两个小型蛋白质语言模型,分别基于Llama-3-8B和Phi-3-mini,它们既能进行不可控生成,也能进行可控蛋白质生成。对于不可控生成任务,我们最好的模型实现了平均pLDDT分数69.75,展示了生成可行蛋白质结构的稳健性能。对于可控生成任务(模型根据提示中指定的属性生成蛋白质),我们取得了显著的平均TM-Score 0.84,表明与目标蛋白质具有高度结构相似性。我们选择了10种属性,包括六类酶,以扩展先前蛋白质语言模型的能力。我们的方法利用低秩适配器(LoRA)技术,将可训练参数减少至原始模型大小的仅4%,降低了计算需求。通过使用UniRef50数据集的子集和小型模型,我们在不牺牲性能的情况下将总训练时间减少了70%。值得注意的是,与Llama 3相比,Phi-3-mini将可训练参数减少了60%,训练成本降低了30%。因此,Phi-3实现了可比的TM-Score 0.81,证明较小的模型可以匹配较大模型(如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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑