用JAX加速求解药物结晶模型,实现高效可微分计算。
Modern, Efficient, and Differentiable Transport Equation Models using JAX: Applications to Population Balance Equations
- 基于JAX构建可微分的粒子群平衡方程求解器
- 相比NumPy快300倍,优化大模型效率提升40倍
- 为神经网络融合物理模型提供可扩展基础
粒子群平衡方程(PBE)模型有望自动化诸多工程流程,尤其在制药领域可缩短药物研发周期。然而,大多数传输方程(包括PBE)面临两大障碍:求解耗时过长,且建模过程依赖人工经验,费时费力。混合模型通过将神经网络与物理PBE模型紧密结合,有望突破这两重限制,实现从数据中“发现物理规律”。本文基于现代计算框架JAX,实现了一种高效、可微分的PBE算法,以支持未来科学机器学习(SciML)集成。通过基准测试,该求解器相较传统工具(如NumPy)最高提速300倍;同时,其完全可微特性使大规模可学习模型优化速度比传统方法快40倍,为后续物理规律发现中的神经网络融合奠定关键基础。
原文摘要 · Abstract (English)
Population balance equation (PBE) models have potential to automate many engineering processes with far-reaching implications. In the pharmaceutical sector, crystallization model-based design can contribute to shortening excessive drug development timelines. Even so, two major barriers, typical of most transport equations, not just PBEs, have limited this potential. Notably, the time taken to compute a solution to these models with representative accuracy is frequently limiting. Likewise, the model construction process is often tedious and wastes valuable time, owing to the reliance on human expertise to guess constituent models from empirical data. Hybrid models promise to overcome both barriers through tight integration of neural networks with physical PBE models. Towards eliminating experimental guesswork, hybrid models facilitate determining physical relationships from data, also known as 'discovering physics'. Here, we aim to prepare for planned Scientific Machine Learning (SciML) integration through a contemporary implementation of an existing PBE algorithm, one with computational efficiency and differentiability at the forefront. To accomplish this, we utilized JAX, a cutting-edge library for accelerated computing. We showcase the speed benefits of this modern take on PBE modelling by benchmarking our solver to others we prepared using older, more widespread software. Primarily among these software tools is the ubiquitous NumPy, where we show JAX achieves up to 300x relative acceleration in PBE simulations. Our solver is also fully differentiable, which we demonstrate is the only feasible option for integrating learnable data-driven models at scale. We show that differentiability can be 40x faster for optimizing larger models than conventional approaches, which represents the key to neural network integration for physics discovery in later work.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。