蛋白质语言模型的高效推理、训练和微调

IF 4.1 2区 综合性期刊 Q1 MULTIDISCIPLINARY SCIENCES
Muhammed Hasan Çelik , Xiaohui Xie
{"title":"蛋白质语言模型的高效推理、训练和微调","authors":"Muhammed Hasan Çelik ,&nbsp;Xiaohui Xie","doi":"10.1016/j.isci.2025.113495","DOIUrl":null,"url":null,"abstract":"<div><div>Protein language models (PLMs) have shown great promise in protein structure and function predictions, but their adoption is limited by computational cost. We address this challenge by enhancing the efficiency of evolutionary scale modeling (ESM). Using FlashAttention and sequence packing, we achieve 4–9× faster inference and 3–14× lower memory usage. Four-bit quantization of billion-parameter models further reduces memory by 2–3× while preserving accuracy for missense variant effect prediction. Training is also optimized, cutting runtime 6-fold with methods, such as activation checkpointing and DeepSpeed zero-offload. Parameter-efficient fine-tuning of a few adapter weights yields state-of-the-art performance at protein property and function predictions, resulting in 70% Spearman’s correlation for melting point and 87% AU-PRC for transcription factor identification. Our efficient ESM (ESME) implementation significantly lowers the barrier to using these powerful models, making them accessible to academic laboratories with limited computational resources. The code is available on GitHub.</div></div>","PeriodicalId":342,"journal":{"name":"iScience","volume":"28 10","pages":"Article 113495"},"PeriodicalIF":4.1000,"publicationDate":"2025-09-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Efficient inference, training, and fine-tuning of protein language models\",\"authors\":\"Muhammed Hasan Çelik ,&nbsp;Xiaohui Xie\",\"doi\":\"10.1016/j.isci.2025.113495\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>Protein language models (PLMs) have shown great promise in protein structure and function predictions, but their adoption is limited by computational cost. We address this challenge by enhancing the efficiency of evolutionary scale modeling (ESM). Using FlashAttention and sequence packing, we achieve 4–9× faster inference and 3–14× lower memory usage. Four-bit quantization of billion-parameter models further reduces memory by 2–3× while preserving accuracy for missense variant effect prediction. Training is also optimized, cutting runtime 6-fold with methods, such as activation checkpointing and DeepSpeed zero-offload. Parameter-efficient fine-tuning of a few adapter weights yields state-of-the-art performance at protein property and function predictions, resulting in 70% Spearman’s correlation for melting point and 87% AU-PRC for transcription factor identification. Our efficient ESM (ESME) implementation significantly lowers the barrier to using these powerful models, making them accessible to academic laboratories with limited computational resources. The code is available on GitHub.</div></div>\",\"PeriodicalId\":342,\"journal\":{\"name\":\"iScience\",\"volume\":\"28 10\",\"pages\":\"Article 113495\"},\"PeriodicalIF\":4.1000,\"publicationDate\":\"2025-09-03\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"iScience\",\"FirstCategoryId\":\"103\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S2589004225017560\",\"RegionNum\":2,\"RegionCategory\":\"综合性期刊\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"MULTIDISCIPLINARY SCIENCES\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"iScience","FirstCategoryId":"103","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2589004225017560","RegionNum":2,"RegionCategory":"综合性期刊","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"MULTIDISCIPLINARY SCIENCES","Score":null,"Total":0}
引用次数: 0

摘要

蛋白质语言模型(PLMs)在蛋白质结构和功能预测方面显示出巨大的前景,但其应用受到计算成本的限制。我们通过提高进化尺度建模(ESM)的效率来解决这一挑战。使用FlashAttention和序列打包,我们实现了4 - 9倍的快速推理和3 - 14倍的低内存使用。十亿参数模型的4位量化进一步减少了2 - 3倍的内存,同时保持了错义变异效应预测的准确性。训练也得到了优化,通过激活检查点和DeepSpeed零卸载等方法将运行时间缩短了6倍。一些适配器权重的参数高效微调在蛋白质特性和功能预测方面产生最先进的性能,导致熔点的70% Spearman相关性和转录因子鉴定的87% AU-PRC。我们高效的ESM (ESME)实现大大降低了使用这些强大模型的障碍,使它们能够在计算资源有限的学术实验室中使用。代码可在GitHub上获得。
本文章由计算机程序翻译,如有差异,请以英文原文为准。

Efficient inference, training, and fine-tuning of protein language models

Efficient inference, training, and fine-tuning of protein language models
Protein language models (PLMs) have shown great promise in protein structure and function predictions, but their adoption is limited by computational cost. We address this challenge by enhancing the efficiency of evolutionary scale modeling (ESM). Using FlashAttention and sequence packing, we achieve 4–9× faster inference and 3–14× lower memory usage. Four-bit quantization of billion-parameter models further reduces memory by 2–3× while preserving accuracy for missense variant effect prediction. Training is also optimized, cutting runtime 6-fold with methods, such as activation checkpointing and DeepSpeed zero-offload. Parameter-efficient fine-tuning of a few adapter weights yields state-of-the-art performance at protein property and function predictions, resulting in 70% Spearman’s correlation for melting point and 87% AU-PRC for transcription factor identification. Our efficient ESM (ESME) implementation significantly lowers the barrier to using these powerful models, making them accessible to academic laboratories with limited computational resources. The code is available on GitHub.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
iScience
iScience Multidisciplinary-Multidisciplinary
CiteScore
7.20
自引率
1.70%
发文量
1972
审稿时长
6 weeks
期刊介绍: Science has many big remaining questions. To address them, we will need to work collaboratively and across disciplines. The goal of iScience is to help fuel that type of interdisciplinary thinking. iScience is a new open-access journal from Cell Press that provides a platform for original research in the life, physical, and earth sciences. The primary criterion for publication in iScience is a significant contribution to a relevant field combined with robust results and underlying methodology. The advances appearing in iScience include both fundamental and applied investigations across this interdisciplinary range of topic areas. To support transparency in scientific investigation, we are happy to consider replication studies and papers that describe negative results. We know you want your work to be published quickly and to be widely visible within your community and beyond. With the strong international reputation of Cell Press behind it, publication in iScience will help your work garner the attention and recognition it merits. Like all Cell Press journals, iScience prioritizes rapid publication. Our editorial team pays special attention to high-quality author service and to efficient, clear-cut decisions based on the information available within the manuscript. iScience taps into the expertise across Cell Press journals and selected partners to inform our editorial decisions and help publish your science in a timely and seamless way.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信