使用JAX的现代、高效且可微的输运方程模型:在群体平衡方程中的应用
Modern, Efficient, and Differentiable Transport Equation Models using JAX: Applications to Population Balance Equations
AI总结:
针对群体平衡方程求解耗时、建模依赖人工经验的问题,基于JAX实现了高效且完全可微的PBE求解器,相比NumPy实现最高300倍加速,可微优化比传统方法快40倍,为科学机器学习集成与物理发现奠定基础。
摘要:
群体平衡方程(Population Balance Equation,PBE)模型有望实现众多工程流程的自动化,具有深远影响。在制药领域,基于结晶模型的设计有助于缩短过长的药物开发周期。即便如此,存在于大多数输运方程(而非仅PBE)中的两大主要障碍限制了这一潜力的发挥。值得注意的是,以具有代表性的精度计算这些模型的解所耗费的时间通常是限制因素。同样,由于依赖人类专家从经验数据中推测组成模型,模型构建过程往往繁琐且浪费宝贵时间。混合模型通过将神经网络与物理PBE模型紧密结合,有望克服这两大障碍。为了消除实验中的猜测工作,混合模型有助于从数据中确定物理关系,这一过程也被称为“发现物理”。在此,我们旨在通过对现有PBE算法进行现代化实现,为计划中的科学机器学习(Scientific Machine Learning,SciML)集成做准备,该实现将计算效率和可微性置于首位。为实现这一目标,我们采用了JAX——一个用于加速计算的前沿库。我们通过将我们的求解器与使用更老旧、更普及的软件编写的其他求解器进行基准测试,展示了这种现代PBE建模方法的速度优势。在这些软件工具中,最主要的是无处不在的NumPy,我们的测试显示JAX在PBE模拟中实现了最高300倍的相对加速。我们的求解器还具备完全可微性,我们证明这是大规模集成可学习的数据驱动模型的唯一可行选择。我们表明,在优化较大模型时,可微方法比传统方法快40倍,这是后续工作中实现神经网络集成以进行物理发现的关键。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。