{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,10]],"date-time":"2026-11-10T17:45:20Z","timestamp":1794332720726,"version":"4.9.0"},"reference-count":50,"publisher":"Association for Computing Machinery (ACM)","issue":"FSE","license":[{"start":{"date-parts":[[2025,6,19]],"date-time":"2025-06-19T00:00:00Z","timestamp":1750291200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/legalcode"}],"funder":[{"DOI":"10.13039\/100000001","name":"NSF","doi-asserted-by":"publisher","award":["#2313054"],"award-info":[{"award-number":["#2313054"]}],"id":[{"id":"10.13039\/100000001","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. ACM Softw. Eng."],"published-print":{"date-parts":[[2025,6,19]]},"abstract":"<jats:p>\n                    Machine learning (ML) applications have become an integral part of our lives. ML applications extensively use floating-point computation and involve very large\/small numbers; thus, maintaining the numerical stability of such complex computations remains an important challenge. Numerical bugs can lead to system crashes, incorrect output, and wasted computing resources. In this paper, we introduce a novel idea, namely\n                    <jats:italic toggle=\"yes\">soft assertions (SA)<\/jats:italic>\n                    , to encode safety\/error conditions for the places where numerical instability can occur. A soft assertion is an ML model automatically trained using the dataset obtained during unit testing of unstable functions. Given the values at the unstable function in an ML application, a soft assertion reports how to change these values in order to trigger the instability. We then use the output of soft assertions as signals to effectively mutate inputs to trigger numerical instability in ML applications. In the evaluation, we used the GRIST benchmark, a total of 79 programs, as well as 15 real-world ML applications from GitHub. We compared our tool with 5 state-of-the-art (SOTA) fuzzers. We found all the GRIST bugs and outperformed the baselines. We found 13 numerical bugs in real-world code, one of which had already been confirmed by the GitHub developers. While the baselines mostly found the bugs that report\n                    <jats:monospace>NaN<\/jats:monospace>\n                    and\n                    <jats:monospace>INF<\/jats:monospace>\n                    , our tool\n                    <jats:italic toggle=\"yes\">Soft Assertion Fuzzer<\/jats:italic>\n                    found numerical bugs with incorrect output. We showed one case where the\n                    <jats:italic toggle=\"yes\">Tumor Detection Model<\/jats:italic>\n                    , trained on Brain MRI images, should have predicted \"tumor\", but instead, it incorrectly predicted \"no tumor\" due to the numerical bugs. Our replication package is located at\n                    <jats:ext-link xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" ext-link-type=\"uri\" xlink:href=\"https:\/\/figshare.com\/s\/6528d21ccd28bea94c32\">https:\/\/figshare.com\/s\/6528d21ccd28bea94c32<\/jats:ext-link>\n                    .\n                  <\/jats:p>","DOI":"10.1145\/3729394","type":"journal-article","created":{"date-parts":[[2025,6,19]],"date-time":"2025-06-19T11:16:02Z","timestamp":1750331762000},"page":"2806-2827","source":"Crossref","is-referenced-by-count":4,"title":["Automatically Detecting Numerical Instability in Machine Learning Applications via Soft Assertions"],"prefix":"10.1145","volume":"2","author":[{"ORCID":"https:\/\/orcid.org\/0009-0009-0854-5404","authenticated-orcid":false,"given":"Shaila","family":"Sharmin","sequence":"first","affiliation":[{"name":"Iowa State University, Ames, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-7014-112X","authenticated-orcid":false,"given":"Anwar Hossain","family":"Zahid","sequence":"additional","affiliation":[{"name":"Iowa State University, Ames, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0001-5976-705X","authenticated-orcid":false,"given":"Subhankar","family":"Bhattacharjee","sequence":"additional","affiliation":[{"name":"Iowa State University, Ames, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0005-7096-6753","authenticated-orcid":false,"given":"Chiamaka","family":"Igwilo","sequence":"additional","affiliation":[{"name":"Iowa State University, Ames, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-3802-1512","authenticated-orcid":false,"given":"Miryung","family":"Kim","sequence":"additional","affiliation":[{"name":"University of California at Los Angeles, Los Angeles, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-6797-0648","authenticated-orcid":false,"given":"Wei","family":"Le","sequence":"additional","affiliation":[{"name":"Iowa State University, Ames, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2025,6,19]]},"reference":[{"key":"e_1_3_1_2_2","unstructured":"BESBES Ahmed. 2021. Focal_loss.py. GitHub. Available at: https:\/\/github.com\/ahmedbesbes\/character-based-cnn\/blob\/master\/src\/focal_loss.py. Accessed: 2024-03-21."},{"issue":"153","key":"e_1_3_1_3_2","first-page":"1","article-title":"Automatic differentiation in machine learning: a survey","volume":"18","author":"Baydin Atilim Gunes","year":"2018","unstructured":"Atilim Gunes Baydin, Barak A. Pearlmutter, Alexey Andreyevich Radul, and Jeffrey Mark Siskind. 2018. Automatic differentiation in machine learning: a survey. Journal of machine learning research 18, 153 (2018), 1\u201343. https:\/\/jmlr.org\/papers\/volume18\/17-468\/17-468.pdf","journal-title":"Journal of machine learning research"},{"key":"e_1_3_1_4_2","volume-title":"Numerical Analysis","author":"Burden Richard L.","year":"2001","unstructured":"Richard L. Burden and J. Douglas Faires. 2001. Numerical Analysis (7th ed.). Brooks\/Cole, Pacific Grove, CA.","edition":"7"},{"key":"e_1_3_1_5_2","unstructured":"Navoneel Chakrabarty. 2024. Brain MRI Images for Brain Tumor Detection. GitHub. Available at: https:\/\/www.kaggle.com\/datasets\/navoneel\/brain-mri-images-for-brain-tumor-detection\/data. Accessed: 2024-09-10."},{"key":"e_1_3_1_6_2","doi-asserted-by":"publisher","unstructured":"Sangeeta Chowdhary Jay P Lim and Santosh Nagarakatte. 2020. Debugging and detecting numerical errors in computation with posits. In Proceedings of the 41st ACM SIGPLAN Conference on Programming Language Design and Implementation. 731\u2013746. doi:10.1145\/3385412.3386004","DOI":"10.1145\/3385412.3386004"},{"key":"e_1_3_1_7_2","doi-asserted-by":"publisher","unstructured":"Sangeeta Chowdhary and Santosh Nagarakatte. 2021. Parallel shadow execution to accelerate the debugging of numerical errors. In Proceedings of the 29th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering. 615\u2013626. doi:10.1145\/3468264.3468585","DOI":"10.1145\/3468264.3468585"},{"key":"e_1_3_1_8_2","unstructured":"codespecs. 2024. Daikon Documentation. GitHub. Available at: https:\/\/plse.cs.washington.edu\/daikon\/pubs\/. Accessed: 2025-01-22."},{"key":"e_1_3_1_9_2","unstructured":"Rodrigo P\u00e9rez Dattari. 2023. Ranking_losses.py. GitHub. Available at: https:\/\/github.com\/rperezdattari\/Stable-Motion-Primitives-via-Imitation-and-Contrastive-Learning\/blob\/main\/src\/agent\/utils\/ranking_losses.py. Accessed: 2024-03-21."},{"key":"e_1_3_1_10_2","unstructured":"Bruce Dawson. 2008. Comparing Floating Point Numbers 2008 Edition http:\/\/www.cygnus-software.com\/papers\/comparingfloats\/comparingfloats.htm. Accessed: 2024-03-21."},{"key":"e_1_3_1_11_2","unstructured":"DeCLaRe. 2022. OT_solver.py. GitHub. Available at: https:\/\/github.com\/declare-lab\/MM-Align\/blob\/main\/src\/modules\/OT_solver.py. Accessed: 2024-03-21."},{"key":"e_1_3_1_12_2","doi-asserted-by":"publisher","DOI":"10.1109\/ASE.2017.8115662"},{"key":"e_1_3_1_13_2","unstructured":"Yanjia Li Ethan. 2023. Loss.py. GitHub. Available at: https:\/\/github.com\/ethanyanjiali\/minChatGPT\/blob\/main\/src\/loss.py. Accessed: 2024-03-21."},{"key":"e_1_3_1_14_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.jacr.2017.12.028"},{"key":"e_1_3_1_15_2","unstructured":"Ethan Gilmore. 2024. MicroMLP. GitHub. Available at: https:\/\/github.com\/ethangilmore\/MicroMLP. Accessed: 2024-09-10."},{"key":"e_1_3_1_16_2","doi-asserted-by":"publisher","DOI":"10.1145\/2843948"},{"key":"e_1_3_1_17_2","doi-asserted-by":"publisher","unstructured":"Jianmin Guo Yu Jiang Yue Zhao Quan Chen and Jiaguang Sun. 2018. Dlfuzz: Differential fuzzing testing of deep learning systems. In Proceedings of the 2018 26th ACM Joint Meeting on European Soft-ware Engineering Conference and Symposium on the Foundations of Software Engineering. 739\u2013743. doi:10.1145\/3236024.3264835","DOI":"10.1145\/3236024.3264835"},{"key":"e_1_3_1_18_2","unstructured":"Nikita Gushchin. 2023. Cunet. GitHub. Available at: https:\/\/github.com\/ngushchin\/EntropicNeuralOptimalTransport\/tree\/e66cf61b37f06f0714165161618f7a944af189c9. Accessed: 2024-09-10."},{"key":"e_1_3_1_19_2","unstructured":"Fabrice Harel-Canada. 2022. A basic python-based fuzzing tool used to support miscellaneous research objectives. GitHub. Available at: https:\/\/github.com\/fabriceyhc\/pyfuzz. Accessed: 2023-15-11."},{"key":"e_1_3_1_20_2","doi-asserted-by":"publisher","unstructured":"Richard Hawkins Colin Paterson Chiara Picardi Yan Jia Radu Calinescu and Ibrahim Habli. 2021. Guidance on the Assurance of Machine Learning in Autonomous Systems (AMLAS). arXiv preprint arXiv:2102.01564 (2021). doi:10.48550\/arXiv.2102.01564","DOI":"10.48550\/arXiv.2102.01564"},{"key":"e_1_3_1_21_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICCV.2015.123"},{"key":"e_1_3_1_22_2","doi-asserted-by":"publisher","unstructured":"Sharon Chee Yin Ho Vahid Majdinasab Mohayeminul Islam Diego Elias Costa Emad Shihab Foutse Khomh Sarah Nadi and Muhammad Raza. 2023. An empirical study on bugs inside PyTorch: A replication study. (2023) 220\u2013231. doi:10.1109\/ICSME58846.2023.00031","DOI":"10.1109\/ICSME58846.2023.00031"},{"key":"e_1_3_1_23_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-59410-7_40"},{"key":"e_1_3_1_24_2","unstructured":"Jinwoo Kim. 2023. SO.py. GitHub. Available at: https:\/\/github.com\/jw9730\/lps\/blob\/b6ba12faa9ec74ba95d95299895a21da944dd4af\/src\/symmetry\/groups\/SO.py. Accessed: 2024-03-21."},{"key":"e_1_3_1_25_2","doi-asserted-by":"publisher","unstructured":"Eliska Kloberdanz Kyle G Kloberdanz and Wei Le. 2022. DeepStability: A study of unstable numerical methods and their solutions in deep learning. In Proceedings of the 44th International Conference on Software Engineering. 586\u2013597. doi:10.1145\/3510003.3510095","DOI":"10.1145\/3510003.3510095"},{"key":"e_1_3_1_26_2","doi-asserted-by":"publisher","unstructured":"Linyi Li Yuhao Zhang Luyao Ren Yingfei Xiong and Tao Xie. 2023. Reliability Assurance for Deep Neural Network Architectures Against Numerical Defects. 1827\u20131839 pages. doi:10.1109\/ICSE48619.2023.00156","DOI":"10.1109\/ICSE48619.2023.00156"},{"key":"e_1_3_1_27_2","doi-asserted-by":"publisher","unstructured":"Jiawei Liu Jinkun Lin Fabian Ruffy Cheng Tan Jinyang Li Aurojit Panda and Lingming Zhang. 2023. Nnsmith: Generating diverse and valid test cases for deep learning compilers. In Proceedings of the 28th ACM International Conference on Architectural Support for Programming Languages and Operating Systems Volume 2. 530\u2013543. doi:10.1145\/3575693.3575707","DOI":"10.1145\/3575693.3575707"},{"key":"e_1_3_1_28_2","unstructured":"Weitang Liu. 2023. Triplet_loss.py. GitHub. Available at: https:\/\/github.com\/lonePatient\/TorchBlocks\/blob\/445140f8190a037b590d3344cdbd6cae5b850da0\/src\/torchblocks\/losses\/triplet_loss.py. Accessed: 2024-03-21."},{"key":"e_1_3_1_29_2","unstructured":"Google LLC. 2023. Atheris: A Coverage-Guided Native Python Fuzzer. https:\/\/github.com\/google\/atheris Accessed: 2023-12-03."},{"key":"e_1_3_1_30_2","unstructured":"Longyahui. 2021. Crf.py. GitHub. Available at: https:\/\/github.com\/longyahui\/GCNMDA\/blob\/master\/src\/crf.py. Accessed: 2024-03-21."},{"key":"e_1_3_1_31_2","doi-asserted-by":"publisher","DOI":"10.5555\/3327757.3327811"},{"key":"e_1_3_1_32_2","unstructured":"Adam Paszke Sam Gross Soumith Chintala Gregory Chanan Edward Yang Zachary DeVito Zeming Lin Alban Desmaison Luca Antiga and Adam Lerer. 2017. Automatic Differentiation in PyTorch. In NIPS 2017 Workshop on Automatic Differentiation."},{"key":"e_1_3_1_33_2","doi-asserted-by":"publisher","unstructured":"Kexin Pei Yinzhi Cao Junfeng Yang and Suman Jana. 2017. DeepXplore: Automated Whitebox Testing of Deep Learning Systems. (2017) 1\u201318. doi:10.1145\/3132747.3132785","DOI":"10.1145\/3132747.3132785"},{"key":"e_1_3_1_34_2","doi-asserted-by":"publisher","unstructured":"Hung Viet Pham Thibaud Lutellier Weizhen Qi and Lin Tan. 2019. CRADLE: cross-backend validation to detect and localize bugs in deep learning libraries. In 2019 IEEE\/ACM 41st International Conference on Software Engineering (ICSE). IEEE Computer Society Los Alamitos CA USA (2019) 1027\u20131038. doi:10.1109\/ICSE.2019.00107","DOI":"10.1109\/ICSE.2019.00107"},{"key":"e_1_3_1_35_2","unstructured":"Robin Scheibler. 2023. Diffusion-separation. GitHub. Available at: https:\/\/github.com\/fakufaku\/diffusion-separation\/blob\/main\/utils\/linalg.py. Accessed: 2024-09-10.."},{"key":"e_1_3_1_36_2","unstructured":"Mohit Shaharwale. 2024. TumorScope. GitHub. Available at: https:\/\/github.com\/mohits2806\/TumorScope. Accessed: 2024-09-10."},{"key":"e_1_3_1_37_2","unstructured":"Simon. 2024. Value Error. GitHub. Available at: https:\/\/github.com\/scikit-learn\/scikit-learn\/issues\/29678. Accessed: 2024-09-07."},{"key":"e_1_3_1_38_2","unstructured":"Strath.AI. 2023. SatelliteCloudGenerator. GitHub. Available at: https:\/\/github.com\/strath-ai\/SatelliteCloudGenerator\/blob\/d120eaf787d379527d7aeb4f7cb3f635b00b50d5\/src\/noise.py. Accessed: 2024-03-21."},{"key":"e_1_3_1_39_2","unstructured":"Zeye Sun. 2023. Loss.py. GitHub. Available at: https:\/\/github.com\/sunzeyeah\/RLHF\/blob\/cd1a6d54971eb0513f38974aa6dcca53aa2f3174\/src\/models\/loss.py. Accessed: 2024-03-21."},{"key":"e_1_3_1_40_2","doi-asserted-by":"publisher","unstructured":"Florian Tambon Amin Nikanjam Le An Foutse Khomh and Giuliano Antoniol. 2024. Silent Bugs in Deep Learning Frameworks: An Empirical Study of Keras and TensorFlow. 10 pages. doi:10.1007\/sl0664-023-10389-6","DOI":"10.1007\/sl0664-023-10389-6"},{"key":"e_1_3_1_41_2","unstructured":"Hypothesis Development Team. 2023. Hypothesis: A new approach to property-based testing https:\/\/hypothesis.readthedocs.io\/en\/latest\/ Accessed: 2024-01-26."},{"key":"e_1_3_1_42_2","doi-asserted-by":"publisher","unstructured":"Jackson Vanover Xuan Deng and Cindy Rubio-Gonz\u00e1lez. 2020. Discovering discrepancies in numerical libraries. In Proceedings of the 29th ACM SIGSOFT International Symposium on Software Testing and Analysis. 488\u2013501. doi:10.1145\/3395363.3397380","DOI":"10.1145\/3395363.3397380"},{"key":"e_1_3_1_43_2","doi-asserted-by":"publisher","unstructured":"Gan Wang Zan Wang Junjie Chen Xiang Chen and Ming Yan. 2022. An empirical study on numerical bugs in deep learning programs. In Proceedings of the 37th IEEE\/ACM International Conference on Automated Software Engineering. 1\u20135. doi:10.1145\/3551349.3559561","DOI":"10.1145\/3551349.3559561"},{"key":"e_1_3_1_44_2","doi-asserted-by":"publisher","DOI":"10.1007\/sl1634-018-0318-1"},{"key":"e_1_3_1_45_2","doi-asserted-by":"publisher","unstructured":"Cody Watson Michele Tufano Kevin Moran Gabriele Bavota and Denys Poshyvanyk. 2020. On learning meaningful assert statements for unit test cases. In Proceedings of the ACM\/IEEE 42nd International Conference on Software Engineering. 1398\u20131409. doi:10.1145\/3377811.3380429","DOI":"10.1145\/3377811.3380429"},{"key":"e_1_3_1_46_2","doi-asserted-by":"publisher","unstructured":"Robert White and Jens Krinke. 2020. Reassert: Deep learning for assert generation. arXiv preprint arXiv:2011.09784 (2020). doi:10.48550\/arXiv.2011.09784","DOI":"10.48550\/arXiv.2011.09784"},{"key":"e_1_3_1_47_2","unstructured":"Li Xingxuan. 2023. prior_wd_optim.py. GitHub. Available at: https:\/\/github.com\/DAMO-NLP-SG\/MVCR\/blob\/main\/src\/prior_wd_optim.py. Accessed: 2024-03-21."},{"key":"e_1_3_1_48_2","doi-asserted-by":"publisher","unstructured":"Ming Yan Junjie Chen Xiangyu Zhang Lin Tan Gan Wang and Zan Wang. 2021. Exposing numerical bugs in deep learning via gradient back-propagation. In Proceedings of the 29th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering. 627\u2013638. doi:10.1145\/3468264.3468612","DOI":"10.1145\/3468264.3468612"},{"key":"e_1_3_1_49_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE48619.2023.00105"},{"key":"e_1_3_1_50_2","doi-asserted-by":"publisher","unstructured":"Hanmo You Zan Wang Junjie Chen Shuang Liu and Shuochuan Li. 2023. Regression Fuzzing for Deep Learning Systems. (2023) 82\u201394. doi:10.1109\/ICSE48619.2023.00019","DOI":"10.1109\/ICSE48619.2023.00019"},{"key":"e_1_3_1_51_2","doi-asserted-by":"publisher","unstructured":"Yuhao Zhang Luyao Ren Liqian Chen Yingfei Xiong Shing-Chi Cheung and Tao Xie. 2020. Detecting numerical bugs in neural network architectures. In Proceedings of the 28th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering. 826\u2013837. doi:10.1145\/3368089.3409720","DOI":"10.1145\/3368089.3409720"}],"container-title":["Proceedings of the ACM on Software Engineering"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3729394","content-type":"application\/pdf","content-version":"vor","intended-application":"syndication"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3729394","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,23]],"date-time":"2026-08-23T11:06:52Z","timestamp":1787483212000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3729394"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,6,19]]},"references-count":50,"journal-issue":{"issue":"FSE","published-print":{"date-parts":[[2025,6,19]]}},"alternative-id":["10.1145\/3729394"],"URL":"https:\/\/doi.org\/10.1145\/3729394","relation":{},"ISSN":["2994-970X"],"issn-type":[{"value":"2994-970X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,6,19]]}}}