Chaoming Wang, Sichao He, Shouwei Luo, Yuxiang Huan, Si Wu
{"title":"Integrating physical units into high-performance AI-driven scientific computing","authors":"Chaoming Wang, Sichao He, Shouwei Luo, Yuxiang Huan, Si Wu","doi":"10.1038/s41467-025-58626-4","DOIUrl":null,"url":null,"abstract":"<p>Artificial intelligence is revolutionizing scientific research across various disciplines. The foundation of scientific research lies in rigorous scientific computing based on standardized physical units. However, current mainstream high-performance numerical computing libraries for artificial intelligence generally lack native support for physical units, significantly impeding the integration of artificial intelligence methodologies into scientific research. To fill this gap, we introduce <span>SAIUnit</span>, a system designed to seamlessly integrate physical units into scientific artificial intelligence libraries, with a focus on compatibility with JAX. <span>SAIUnit</span> offers a comprehensive library of over 2000 physical units and 500 unit-aware mathematical functions. It is fully compatible with JAX transformations, allowing for automatic differentiation, just-in-time compilation, vectorization, and parallelization while maintaining unit consistency. We demonstrate <span>SAIUnit</span>’s applicability and effectiveness across diverse artificial intelligence-driven scientific computing domains, including numerical integration, brain modeling, and physics-informed neural networks. Our results show that by confining unit checking to the compilation phase, <span>SAIUnit</span> enhances the accuracy, reliability, interpretability, and collaborative potential of scientific computations without compromising runtime performance. By bridging the gap between abstract computing frameworks and physical units, <span>SAIUnit</span> represents a crucial step towards more robust and physically grounded artificial intelligence-driven scientific computing.</p>","PeriodicalId":19066,"journal":{"name":"Nature Communications","volume":"62 1","pages":""},"PeriodicalIF":14.7000,"publicationDate":"2025-04-16","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Nature Communications","FirstCategoryId":"103","ListUrlMain":"https://doi.org/10.1038/s41467-025-58626-4","RegionNum":1,"RegionCategory":"综合性期刊","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"MULTIDISCIPLINARY SCIENCES","Score":null,"Total":0}
引用次数: 0
Abstract
Artificial intelligence is revolutionizing scientific research across various disciplines. The foundation of scientific research lies in rigorous scientific computing based on standardized physical units. However, current mainstream high-performance numerical computing libraries for artificial intelligence generally lack native support for physical units, significantly impeding the integration of artificial intelligence methodologies into scientific research. To fill this gap, we introduce SAIUnit, a system designed to seamlessly integrate physical units into scientific artificial intelligence libraries, with a focus on compatibility with JAX. SAIUnit offers a comprehensive library of over 2000 physical units and 500 unit-aware mathematical functions. It is fully compatible with JAX transformations, allowing for automatic differentiation, just-in-time compilation, vectorization, and parallelization while maintaining unit consistency. We demonstrate SAIUnit’s applicability and effectiveness across diverse artificial intelligence-driven scientific computing domains, including numerical integration, brain modeling, and physics-informed neural networks. Our results show that by confining unit checking to the compilation phase, SAIUnit enhances the accuracy, reliability, interpretability, and collaborative potential of scientific computations without compromising runtime performance. By bridging the gap between abstract computing frameworks and physical units, SAIUnit represents a crucial step towards more robust and physically grounded artificial intelligence-driven scientific computing.
期刊介绍:
Nature Communications, an open-access journal, publishes high-quality research spanning all areas of the natural sciences. Papers featured in the journal showcase significant advances relevant to specialists in each respective field. With a 2-year impact factor of 16.6 (2022) and a median time of 8 days from submission to the first editorial decision, Nature Communications is committed to rapid dissemination of research findings. As a multidisciplinary journal, it welcomes contributions from biological, health, physical, chemical, Earth, social, mathematical, applied, and engineering sciences, aiming to highlight important breakthroughs within each domain.