Generating Fast Specialized Simulators for Stochastic Reaction Networks via Partial Evaluation

Till Köster, Tom Warnke, A. Uhrmacher
{"title":"Generating Fast Specialized Simulators for Stochastic Reaction Networks via Partial Evaluation","authors":"Till Köster, Tom Warnke, A. Uhrmacher","doi":"10.1145/3485465","DOIUrl":null,"url":null,"abstract":"Domain-specific modeling languages allow a clear separation between simulation model and simulator and, thus, facilitate the development of simulation models and add to the credibility of simulation results. Partial evaluation provides an effective means for efficiently executing models defined in such languages. However, it also implies some challenges of its own. We illustrate this and solutions based on a simple domain-specific language for biochemical reaction networks as well as on the network representation of the established BioNetGen language. We implement different approaches adopting the same simulation algorithms: one generic simulator that parses models at runtime and one generator that produces a simulator specialized to a given model based on partial evaluation and code generation. For the purpose of better understanding, we additionally generate intermediate variants, where only some parts are partially evaluated. Akin to profile-guided optimization, we use dynamic execution of the model to further optimize the simulators. The performance of the approaches is carefully benchmarked using representative models of small to large biochemical reaction networks. The generic simulator achieves a performance similar to state-of-the-art simulators in the domain, whereas the specialized simulator outperforms established simulation tools with a speedup of more than an order of magnitude. Technical limitations in regard to the size of the generated code are discussed and overcome using a combination of link-time optimization and code separation. A detailed performance study is undertaken, investigating how and where partial evaluation has the largest effect.","PeriodicalId":326454,"journal":{"name":"ACM Transactions on Modeling and Computer Simulation (TOMACS)","volume":"32 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-03-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"4","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"ACM Transactions on Modeling and Computer Simulation (TOMACS)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3485465","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 4

Abstract

Domain-specific modeling languages allow a clear separation between simulation model and simulator and, thus, facilitate the development of simulation models and add to the credibility of simulation results. Partial evaluation provides an effective means for efficiently executing models defined in such languages. However, it also implies some challenges of its own. We illustrate this and solutions based on a simple domain-specific language for biochemical reaction networks as well as on the network representation of the established BioNetGen language. We implement different approaches adopting the same simulation algorithms: one generic simulator that parses models at runtime and one generator that produces a simulator specialized to a given model based on partial evaluation and code generation. For the purpose of better understanding, we additionally generate intermediate variants, where only some parts are partially evaluated. Akin to profile-guided optimization, we use dynamic execution of the model to further optimize the simulators. The performance of the approaches is carefully benchmarked using representative models of small to large biochemical reaction networks. The generic simulator achieves a performance similar to state-of-the-art simulators in the domain, whereas the specialized simulator outperforms established simulation tools with a speedup of more than an order of magnitude. Technical limitations in regard to the size of the generated code are discussed and overcome using a combination of link-time optimization and code separation. A detailed performance study is undertaken, investigating how and where partial evaluation has the largest effect.
基于部分评估的随机反应网络快速专用模拟器的生成
领域特定的建模语言允许仿真模型和模拟器之间的明确分离,从而促进仿真模型的开发并增加仿真结果的可信度。部分求值为有效地执行用这些语言定义的模型提供了一种有效的方法。然而,这也意味着它自身的一些挑战。我们基于生化反应网络的简单领域特定语言以及已建立的BioNetGen语言的网络表示来说明这一点和解决方案。我们采用相同的仿真算法实现不同的方法:一个通用模拟器在运行时解析模型,一个生成器根据部分求值和代码生成生成专门针对给定模型的模拟器。为了更好地理解,我们另外生成中间变量,其中只有部分被部分评估。与轮廓引导优化类似,我们使用模型的动态执行来进一步优化模拟器。使用小型到大型生化反应网络的代表性模型仔细地对方法的性能进行基准测试。通用模拟器实现了与该领域最先进的模拟器相似的性能,而专用模拟器则以超过一个数量级的速度优于已建立的仿真工具。讨论了关于生成代码大小的技术限制,并使用链接时间优化和代码分离的组合来克服这些限制。进行了详细的性能研究,调查部分评估如何以及在何处产生最大影响。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
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学术文献互助群
群 号:481959085
Book学术官方微信